These 3 script functions allow you to verify if a task or a workflow is already active:
Let's say I want to start my workflow JOBP.COMMUNITY if it's not already running. It would look like this:
Let's say I want to start my workflow JOBP.COMMUNITY if it's not already running. It would look like this:
:IF SYS_STATE_ACTIVE(JOBP.COMMUNITY)= 'N'
: SET &ACT# = ACTIVATE_UC_OBJECT(JOBP.COMMUNITY)
:ENDIF
I think it is unlikely to occur again (fingers crossed) - However, if it does is there someway we could possibly reset the scheduler object to mitigate workflows missing their start times?
I have no scripting experience so would possible require some assistance in using a script to check if the scheduler object was late reloading
Hi IanFindon611036 ,
Being able to change the start time of a task within a schedule would imply that this task is an attribute of the schedule that could be modified with scripting.
However this is not the case. As far as I know, you may check if the schedule has already been started, but not dynamically change the start time of the tasks that it contains.
So a solution could be to create an TIME EVENT object that would periodically check if the JSCH is already started, and if not:
It could look like this:
Of course, This is only one possibility. As always there are probably other and better options.
Best regards,
Antoine