Lets say we want to stop the workflow for multiple PRs at once. We can achieve this creating a new escalation and schedule it perform this action automatically.
for instance, we want to stop PR-123 from backend, for that we are going to create a escalation and once action which will be attached with this escalation.
STOPWF_PR Stop PR Workflow
Applies to: WFINSTANCE
Escalation point: Add a row only, no need to enter anything
Action : STOPWF
Create a new action and attached to this escalation
Action: STOPWF Stopwork
Type: Custom Class
Custom Class: psdi.workflow.StopWorkflowAction (auto populated)
Accessible from:
ESCALATION
for instance, we want to stop PR-123 from backend, for that we are going to create a escalation and once action which will be attached with this escalation.
STOPWF_PR Stop PR Workflow
Applies to: WFINSTANCE
Condition:Schedule: Your desired time and date. suppose every 1 minute
active = 1 and ownertable = 'PR' and exists (select 1 from PR where PR.PRID = wfinstance.ownerid and prnum in ('PR-123')
)
Escalation point: Add a row only, no need to enter anything
Action : STOPWF
Create a new action and attached to this escalation
Action: STOPWF Stopwork
Type: Custom Class
Custom Class: psdi.workflow.StopWorkflowAction (auto populated)
Accessible from:
ESCALATION
No comments:
Post a Comment