Goals System Variables

Goals that you create are added to the System Variables dropdown menu so that the Goal can be accessed in any place where system variables are used.

Goal

Returns

This system variable returns the result of a selected Goal.

SysVar Tag

For Process Director v6.1.300 and higher, the correct syntax for this variable is:

{GOAL:GoalName, format=LastEval|NextEval|PrevValue}

Deprecated

For versions of Process Director lower than v6.1.300, the only valid syntax is:

{GOAL:GoalName, previous_value=1|yes|true}

Modifiers

The result of this system variable can be formatted according to the options available to the type of data the Business Rule returns.

LastEval: This formatter will return the datetime value of the last evaluation of the Goal.

NextEval: This formatter will return the datetime value of the next Goal evaluation.

PrevValue: This formatter will return the Goal's previous value.

Deprecated

previous_value: Every time a Goal is processed, both the previous value and new value are stored. Adding the previous_value parameter will return the previous Goal value instead of the current value. The previous_value parameter should always be set to 1, yes, or true, all of which are functionally the same, to return the previous Goal value. Setting the previous_value parameter to any other value will return the current value of the Goal.

If this modifier is used in conjunction with any of the new formatters, this modifier will take precedence.