The solution we applied here is to set up a STATIC VAR that tells the select processes to run or not. Then we include this script inside of those workflows;
:set &GwBatchesState# = get_var(gw.batches.state,state,1)
:print "Guidewire Batches State: &GwBatchesState#"
:if &GwBatchesState# = "OFF"
: print "The GW.BATCHES.STATE is OFF. Terminating."
: stop NOMSG
:endif
We then created these two workflows to alter its state;
GW.BATCHES.STATE.ON
GW.BATCHES.STATE.OFF
A cool thing about this solution is we can also schedule the execution of the ON/OFF workflows for planned or regular outages. Our ON/OFF processes also send an alert to the appropriate people.
------------------------------
Pete Wirfs
SAIF Corporation
Salem Oregon USA
------------------------------
Original Message:
Sent: 07-12-2020 07:37 AM
From: Rahul
Subject: Script function to suspend jobs/workflows running through JSCH
Hi Team,
Is there a script function available to suspend jobs/work flows running through a JSCH? We have weekly maintenance activities in which we have to manually edit the schedules to deactivate a bunch of jobs and we want to avoid this manual effort.
The other option is to create a seperate JSCH for those jobs/workflows and suspend recursively when required. But just wanted to know if there is any other way.
Thanks,
Kumar