SYS_ACT_RESTART_COUNT

Use the SYS_ACT_RESTART_COUNT script function to retrieve the number of times that the task has been restarted within a Workflow by means of the RESTART TASK action in the Postconditions. For more information, see Conditions, Preconditions, Postconditions.

Syntax

SYS_ACT_RESTART_COUNT ()

Tip: The predefined variable &$RESTART_COUNT# also retrieves the number of times the task has been restarted.

Example

The following example queries the number of times that the task has already been restarted in the Workflow, and writes the number in the activation report.

:SET &RCOUNT# = SYS_ACT_RESTART_COUNT()
:
IF &RCOUNT# = 0
:
PRINT "The task has not yet been restarted."
:
ELSE
:
PRINT "Number of restarts: &RCOUNT#"
:
ENDIF

See also:

seealso

Script Elements for Restarting Tasks