SHARE
TWEET

Untitled

a guest Oct 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. WorkflowPurge
  2.  
  3.             s c=0
  4.  
  5.             &sql(DECLARE tieCursor CURSOR FOR
  6.  
  7.             SELECT
  8.  
  9.             ID into :ID
  10.  
  11.             FROM EnsLib_Workflow.TaskResponse)    
  12.  
  13.             &sql(OPEN tieCursor)
  14.  
  15.             FOR
  16.  
  17.             {
  18.  
  19.                         &sql(FETCH tieCursor)
  20.  
  21.                         Quit:SQLCODE
  22.  
  23.                         w !,ID
  24.  
  25.                         s c=$G(c)+1
  26.  
  27.                         s tTask=##class(EnsLib.Workflow.TaskResponse).%OpenId(ID)
  28.  
  29.                         set tSC = ##class(EnsLib.Workflow.Engine).CompleteTask(tTask)
  30.  
  31.                        
  32.  
  33.             }
  34.  
  35.             &sql(CLOSE tieCursor)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top