Antoine_Sauteron_1266

Modifying a task's return code from its post-process tab

Discussion created by Antoine_Sauteron_1266 on Aug 3, 2016
Latest reply on Aug 5, 2016 by Antoine_Sauteron_1266
Postconditions of tasks within a workflow allow you to change their return codes.
However, should several different return codes of a task correspond to a successful run, you would have to create as many ELSE blocks as return codes.

In such a case, you may want to put something like the code below directly in the task's !process tab. Here return codes "2", "4", "6", "8" and "127" are considered valid:
:SET  &RETCODE# = GET_UC_OBJECT_STATUS( ,,"RETCODE")
:IF &RETCODE# = "2" OR "4" OR "6" OR "8" OR "127"
:  MODIFY_STATE RETCODE=0
:ENDIF

Outcomes