Adding Variable steps

The Variable step allows you to add steps which set field values or control the path a user takes when a step is actioned. For example, a value can be set automatically (Let), by user input (Set Variable) or a local variable can be created to ask users for a response (Dim) in order to proceed. The type of entry is selected from a drop-down menu attached to the Variable button.

A number of properties affecting the way the Variable step behaves, once it has been actioned, can also be set when adding the step. The type of entry you choose determines what those options are.

To add an Input statement:

This command is used as an alternative to a DIM statement (see below) where a Web Service has created a temporary variable. In order for a workflow to recognise and operate on such a temporary variable, an Input statement must be created in the procedure before the first use of the temporary variable.

  1. Click Input on the Variable button's drop-down menu. You are prompted to enter the input parameters.

  1. Click OK to save your changes. A line of code is automatically entered into the procedure block. Show me:

To add a Dim statement:

Use this statement to define a local variable and allocate storage space. These variables are only available within the current procedure.

  1. Click Dim on the Variable button's drop-down menu. You are prompted to enter the name of the variable.

  2. Type the name of the local variable.

  3. Click OK to save your changes. A line of code is automatically entered into the procedure block. Show me:

Notes

To add a Let statement:

Use this statement to assign the value of an expression to a variable or property .

Syntax:

  1. Click Let on the Variable button's drop-down menu. You are prompted to build the expression.

  2. Build the expression using the options provided. An expression is simply a set of instructions. You can define basic expressions or more complex, powerful expressions. Use basic expressions to specify which variables to include or exclude. Use advanced expressions if you are comfortable working with operators.

  3. Click OK to save your changes. A line of code is automatically entered into the procedure block. Show me:

Notes

To add a Set variable statement:

Use this statement to set the value of a variable based on user input.

  1. Click Set Variable on the Variable button's drop-down menu. You are prompted to enter the step details.

  2. Enter the step properties:

  1. Click OK to save your changes. A line of code is automatically entered into the procedure block. Show me:

Note

To add an Assign Entity statement:

Use this statement to assign or re-assign entity field values, e.g. matter fee earners. For example, this could be used to automate the re-assigning of matters if, for example, a fee earner leaves or to distribute work imported from bulk referrers.

  1. Click Assign Entity on the Variable button's drop-down menu. You are prompted for three parameters; entity, field and value.

  2. From the Entity drop-down, pick the entity you want to change. The entity you select determines which fields are displayed in the Field drop-down. The matrix below shows which fields (down the side) can be changed for which entities (across the top):

Entity/Field

Bill

Client

Contact

Matter

Packet

Project

Prospect

SumMat

Branch

 

 

 

 

 

Classification

 

 

 

 

 

Credit control status

 

 

 

 

 

 

 

Department

 

 

 

 

 

Fee earner

 

 

 

 

 

Funding type

 

 

 

 

 

 

Location

 

 

 

 

 

 

 

Partner

 

 

 

Rate table

 

 

 

 

 

Work type

 

 

 

 

 

  1. From the Field drop-down, select field you want to change.

  1. In the Value field, type a value to be passed or use the lookup to generate one by building an expression.

  2. Click OK. A line of code is automatically entered into the procedure block. Show me:

  3. When the workflow is run the appropriate entity field is assigned with the value specified.

To add an Assign Lookup statement:

Use this statement to assign or re-assign the value of an existing user-defined lookup.

  1. Click Assign Lookup on the Variable button's drop-down menu. You are prompted for three parameters; variable name, data type and data value.

  2. In Variable name, type or lookup the variable you want to change, i.e. the user-defined lookup.

  1. From the Data type drop-down, select the data type of the variable you want to change.

  1. In Data value, type a the value to be set or use the lookup to generate one by building an expression.

  1. Click OK. A line of code is automatically entered into the procedure block. Show me:

  2. When the workflow is run the appropriate lookup is assigned with the value specified.

Note

To add a Select related Party statement:

Use this statement to code workflow so that a list of related parties of the same type is displayed to users for the current context. As a result, they can then select a related party to run any subsequent workflow against.

  1. Click Select Related Party on the Variable button's drop-down menu. You are prompted select a related party type.

  2. In Relationship, type or lookup the desired related party type, e.g. EA.

  3. Click OK. A line of code is automatically entered into the procedure block. Show me:

  4. When the workflow is run the appropriate related parties will be displayed.

Note