wfCurrentStep

Retrieves the name of a step relative to the current step.

Type and Usage

Parameters

The only parameter is an integer that represents the number of steps relative to the current step.

Output

  • Returns a step name.

  • Reaching the beginning or the end of the workflow returns the name of the first or last step, respectively.

Example

Returns the current step name:

<$wfCurrentStep(0)$>

Returns the previous step name:

<$wfCurrentStep(-1)$>

Returns the next step name:

<$wfCurrentStep(1)$>

To actually move to the next step you must set up a jump, as in this example:

<$wfSet("wfJumpName", "move to next step")$> 
<$wfSet("wfJumpTargetStep", wfCurrentStep(1))$> 
<$wfSet("wfJumpEntryNotifyOff", "0")$>