Created
October 2, 2019 19:18
-
-
Save sween/4de61e617afb1df6909633142c6aec06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WorkflowPurge | |
s c=0 | |
&sql(DECLARE tieCursor CURSOR FOR | |
SELECT | |
ID into :ID | |
FROM EnsLib_Workflow.TaskResponse) | |
&sql(OPEN tieCursor) | |
FOR | |
{ | |
&sql(FETCH tieCursor) | |
Quit:SQLCODE | |
w !,ID | |
s c=$G(c)+1 | |
s tTask=##class(EnsLib.Workflow.TaskResponse).%OpenId(ID) | |
set tSC = ##class(EnsLib.Workflow.Engine).CompleteTask(tTask) | |
} | |
&sql(CLOSE tieCursor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment