ScriptEigener Objekttyp in der Automation Engine function: Supplies the number of restarts that were made for workflow tasks using the action RESTART TASK (Postconditions).
Syntax
SYS_ACT_RESTART_COUNT()
Return code |
---|
Number of restarts |
Comments
This script element retrieves the number of times a task has already been restarted within a workflow using the action RESTART TASK. You can define this action in the task properties of the Postconditions tab.
This value can also be retrieved using the predefined variable &$RESTART_COUNT#.
Example
The following example queries the number of times that the workflow task has been restarted and writes the corresponding information to 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:
Script Element | Description |
---|---|
Sets restart points in an executable object. |
|
Retrieves whether the object has been activated in restart mode. |
|
SYS_ACT_RESTART_ME_NR | Returns the run number (RunID"Kurzform für ""laufende Nummer"". Hierbei handelt es sich genauer um eine Zahl, welche die Durchführung einer Aufgabe eindeutig kennzeichnet. Die RunID kann zwischen 7 und 10 Stellen aufweisen. Sie wird von der Komponente Automation Engine vergeben.") of an object that has been activated in restart mode. |
Script Elements - Activation Data
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function