Michael_Lowry

Context-aware JOBI that runs different commands in pre-process/process vs. post-process

Discussion created by Michael_Lowry on Jan 15, 2018
Latest reply on Jan 15, 2018 by Wolfgang_Brueckler_1288
I have an include object that I would like to generalize so that it can be used in any scripting tab of any executable object.

The JOBI is the one I made to create a static VARA object if it does not already exist. As written, the JOBI is designed to run in the post-process tab of a job, and as such, uses the :MODIFY_STATE command to make the job end in error if an error is encountered. This scripting command cannot be used in the pre-process or process tab though; there, one muse use the :STOP command instead to stop the job during the activation phase.

I would like to make the JOBI context-aware, so that:
  1. It recognizes whether it is running in the pre-process/process tab or the post-process tab; and
  2. It uses the:STOPcommand in the first case, and the:MODIFY_STATEcommand in the second.
Is there a way to do this?

Outcomes