entryCount

Retrieves the number of times the current workflow step has been entered by the current revision.

  • This variable can be used to create conditional statements, but it should not be hard-coded or altered.

  • This variable is localized in the companion file and maintained in the key:

    <step_name>@<workflow_name>.entryCount
    

Type and Usage

Output

Returns the entry count as an integer.

Example

The following code defines a jump called MaxEntry, which exits to the parent workflow and notifies the reviewers if the last time the step was entered was more than one week ago:

<$if wfCurrentGet("entryCount")==2$>
    <$wfSet("WfJumpName","MaxEntry")$>
    <$wfSet("WfJumpTargetStep",wfExit(0,0))$>
    <$wfSet("WfJumpEntryNotifyOff","0")$>
<$endif$>