HI
@Pete Wirfs Thank you for this.. I've slightly modified this and created my own version.
- Create a vara with Maintenance mode as ON/OFF
- In the event process tab check for this vara value. If the value is OFF then the workflow will run else it will skip.
- Modify the VARA whenever we want to start the maintenance so that the value will be ON and the workflow will not run.
However, as Wolfgang suggested, there is direct command TOGGLE_OBJECT_STATUS which will stop and start the events and schedulers.
------------------------------
Bharath B.
------------------------------
Original Message:
Sent: 01-06-2020 12:15 PM
From: Pete Wirfs
Subject: Stop Schedules/Events through Automic Scripting
The way we "pause" iterative processes, is with a state flag. Then we either set the state flag on or off which we do with two separate workflows, which can then be easily scheduled to run at the appropriate time.
Then we add this logic into the process script of the workflows that we want to automatically pause;
:set &GwBatchesState# = get_var(gw.batches.state,state,1):print "Guidewire Batches State: &GwBatchesState#":if &GwBatchesState# = "OFF": stop NOMSG:endif
------------------------------
Pete
Original Message:
Sent: 01-06-2020 06:22 AM
From: B Bharath Kumar Reddy
Subject: Stop Schedules/Events through Automic Scripting
Hello Team,
I'm wondering if there is any way where we can stop/start the Schedules/Events through scripts. I know that we can use ACTIVATE_UC_OBJECT to start the objects. Is there any method where we can stop the Schedules&Events at certain point of time and release them back. I've gone through documentation but I didn't find any methods to stop Schedules/Events (MODIFY_TASK is there but it's only for JOBP similarly MODIFY_SYSTEM can be used for QUEUE but not JSCH and JOBP).
We are going live with one of the project where we might have to stop the Events frequently for downtime. It would be great if we can achieve this through Automic Scripting so that we can add it in a schedule without any manual intervention.
------------------------------
Bharath B.
------------------------------