We use the following method for dynamic deactivation of UC4 processing. It requires a VARA, two workflows, and a little scripting. You can be as clever as you want about scheduling the two workflows to activate/deactivate your processes when you need them to.
Created a VARA.MYPROCESS.STATE variable.
Created two workflows:
1. SET.MYPROCESS.STATE.INACTIVE
2. SET.MYPROCESS.STATE.ACTIVE
And add this small script into any objects that need to be inactivated by this variable;
:set &MyState# = get_var(VARA.MYPROCESS.STATE,state,1)
:print "MYPROCESS State: &MyState#"
:if &MyState# = "INACTIVE"
: print "MYPROCESS.STATE is OFF. Terminating."
: stop NOMSG
:endif
------------------------------
Pete Wirfs
SAIF Corporation
Salem Oregon USA
------------------------------
Original Message:
Sent: 07-30-2020 03:55 PM
From: Steve Connell
Subject: Set Objects in a Schedule to INACTIVE automatically
Michael,
I would appreciate an example of scripting the active/inactive objects solution you mentioned.
We are migrating an existing ESP installation o Automic. The existing installation has a batch process that begins by 'suspending' a large number of applications (workflows in our Automic solution) to avoid interference. As the batch progresses, the suspended applications are 'resumed' by various batch applications once they are no longer in possible conflict. The most straight-forward method of replicating this function in Automic would be a Suspend task at the beginning of the batch workflow and a reusable Resume task in the appropriate child workflows where Suspend sets a workflow(s) or job(s) inactive and Resume sets the workflow(s) or job(s) active. None of the suspensions would occur while the wrokflow/task is executing so things like TOGGLE_OBJECT_STATUS or ACTIVATE/DEACTIVATE do not apply since there is not a run ID available.
Thanks.
Original Message:
Sent: 12-22-2016 07:11 AM
From: Michael Coxson
Subject: Set Objects in a Schedule to INACTIVE automatically
With a combination of scripting and API you could schedule a future execution of a process that sets your target object inactive. You could technically do this completely through AE scripting via export/import but it's easier to manage or modify via the API.
If if you want an example I can provide it.
If your schedules get reactivated daily but your objects do not you could just set the objects themselves inactive and while the schedule will execute the objects will not. This obviously doesn't help if the objects are used elsewhere unless you create a jobplan and deactivate the tasks against the objects in question.