AnsweredAssumed Answered

Stopping a workflow from a CallAPI call...

Question asked by Jean-FrancoisAnctil606475 on Jun 13, 2014
Latest reply on Jul 10, 2014 by Jean-FrancoisAnctil606475

Hi,

   I want to stop a workflow from a CallAPI call. Here is the Automic scripting I'm using:

:set &task_name# = "OPUS.UTIL_PAGER.JOBP"
:print task_name is &task_name#
:set &task_runid# = GET_UC_OBJECT_NR(&task_name#)
:print task_runid is &task_runid#
:set &ret# = MODIFY_TASK(&task_runid#,STOP)
:print ret is &ret#

  And here is the output when I run the CallAPI:

2014-06-13 10:29:48 - U0020408 task_name is OPUS.UTIL_PAGER.JOBP
2014-06-13 10:29:48 - U0020408 task_runid is 0001038326
2014-06-13 10:29:48 - U0020408 ret is 0000000000020783
  So, the script found the runid of the workflow, but the MODIFY_TASK doesn't stop it. And I can't found anywhere what the status code 20783 means...

  Does anyone have any idea why it's not working?

Outcomes