Hello Amey,
Queue can be stopped via script and this can be scheduled.
:SET &RET# = MODIFY_SYSTEM("MODE", "QUEUE_NAME", "STOP")
:IF &RET# = "0"
: PRINT "Processing the Queue object QUEUE_NAME has STOPPED successfully"
:SET &EMAIL# = SEND_MAIL("EMAIL_TO","EMAIL_CC","Automic Production QUEUE_NAME queue stopped","QUEUE_NAME processes are stopped.")
:ELSE
: PRINT "QUEUE_NAME: Error when changing the status to STOP."
:SET &EMAIL# = SEND_MAIL("EMAIL_TO","EMAIL_CC","Automic Production QUEUE_NAME queue did not stop. Stop it Manually","QUEUE_NAME processes are not stopped. Stop queue Manually")
:ENDIF
NOTE: Above script should be scheduled in different queue (like client_queue or Maintenance queue).
To stop an active workflow, runid is needed. RunId can be extracted via EH table using SQLI variable and pass the runid to TOGGLE_OBJECT_STATUS.
more information on how to use -->
TOGGLE_OBJECT_STATUS - Automic doc------------------------------
Process Automation Expert
HWS Informationssysteme GmbH
Germany
------------------------------
Original Message:
Sent: Jan 20, 2022 11:53 PM
From: Amey .
Subject: How to hold an Active JOBP Workflow
Hi Pete,
We have already implemented different Queues for different applications, but still in certain scenarios we need to stop only one application and not all . so we need to pick and choose those applications which are active and need to be kept on hold.
Regards,
Amey Deshpande