Calculations as part of a process

In a process design, you can use calculations to:

  • populate a field on a window for an automatic action
  • set a value in a condition
To use a calculation to populate a field in an automatic action:
  1. In Process Designer, open the required process.
  2. Select the required automatic action, then in the Properties grid, click Action Instance Data.
    The window for the action appears.
  3. Right-click the field that you want to add the calculation to, then click Calculation.
    The Edit Formula dialog appears.

When you display the Edit Formula dialog in Process Designer, it does not include the Dependencies list because the calculation does not need to look for changes in dependent attributes: it will run when required by the process, and take the current values of any attributes it needs.

  1. Enter the required calculation in the Editor field, then click OK.
    The calculation appears in the field on the window.

You cannot edit the formula in the process window - you need to right-click the field, then click Calculation to redisplay the Edit Formula dialog. If you add a calculation to a single-line field, the ends of lines in your calculation appear as squares.

  1. Click OK on the process window, then save the changes to your process.
To use a calculation in a condition:
  1. In Process Designer, expand the Business Objects tree.
  2. Expand the required Process Object folder, for example, Incident, and then click the Condition folder.
  3. In the Actions list, click New.
    The Properties grid for the new condition appears.
  4. Type a title for the condition, then alongside Condition Type, select Calculation.
  5. Alongside Calculation Formula, click .
    The Edit Formula dialog appears.
  6. Enter the required calculation in the Editor field, then click OK.
  7. Select the required Comparison and a specific or runtime value to compare against the calculation, then click .
    The Condition is saved, and can be used in a process.