Calculated Tokens

This Closedproperty box allows you to define the custom tokens created by the Token Calculator activity.

To configure Calculated Tokens

  1. Add the Token Calculator activity to your workflow definition by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
  2. Select the activity in the Designer Pane.
  3. Under Calculated Tokens, in the Properties Pane, select New Token.
  1. In the New Token dialog box, type a name for your new token next to Token Name.
  2. Below Token Name, select a function and click . For a complete list of formulas for Token Calculator, go to Formula Descriptions. ClosedShow me an example.
  3. Click Test Formula to make sure you set up the formula correctly.
  4. Note: To test a function that allows for multi-value tokens, separate each value with a semicolon. For example, to use the expression "SUM(%(token))," enter "1;2;3" and click OK.

  5. In Token Tags, set the token type. If the type of the token value is a number, for example, you must select "Number" in Token Tags.
  6. Note: To use mathematical expressions to create custom date and time tokens, use the Date Token Calculator activity.

    Note: Typing in decimal numbers (e.g., 3.5) in the Sum and Average functions is not supported when your regional settings use a comma as the decimal separator.

  7. Click OK.
  8. Optional: You can add to and organize your custom tokens in the ClosedCalculated Tokens property box in the Properties Pane.
    • Hide the expression details in the Calculated Tokens Pane by clicking Hide Details.
    • Modify a custom token by clicking on the custom token's name or expression.
    • Create additional tokens by clicking New Token.
    • Delete a token by clicking the red X .
    • Reorder custom tokens in the Calculated Tokens property box by clicking the green arrows to move the tokens up or down on the list.
    • Note: You can use tokens created with this activity to create more tokens within the same activity. To reference a token created in this activity, the referenced token must be listed before the token that refers to it in the Calculated Tokens property box.

      Tip: To easily create a complex mathematical expression, first create a series of simpler expressions. Then, reference the tokens of those simpler expressions in an additional calculated token. ClosedSee an example.