> #### 5.6.2 Expression Builder Example: Set Process Description

> This example uses the Expression Builder to build an expression for a Set Process Description-type JavaAction. This JavaAction runs when the process instance is started. The expression used is built using all of the various sections of the Expression Builder interface to demonstrate how they are used.

> The process description formed by this example tells those viewing it when the process instance was started and its purpose. Before this expression can be built, a user-defined attribute (UDA) of string type called Desc must be added to the process definition upon which this Set Process Description JavaAction is assigned. For instructions in adding UDAs, see the "Define the set of user-defined process attributes" section. For instructions assigning a Set Process Description JavaAction, see the "Set Process Description Java Action" section.

> Figure 48: Setting a Process Description with the Expression Builder

> To build this expression:

> 1. Type Process started in the Literals field.

> 2. Select CurrentDate from the Functions field.

> 3. Select Desc from the Variables field.

> 4. Click the Literals field Add button to add the Process started string constant to the expression.

> 5. Click the + operator to add a + to the expression.

> 6. Click the Functions field Add button to add the current date to the expression.

> 7. Click the + operator to add another + to the expression.

> 8. Click the Variables field Add button to add the value of the Desc UDA to the expression.

> 9. Click OK to verify the expression as valid then commit it to the JavaAction from which it was called.

> If the expression is valid, the Expression Builder is dismissed and the expression appears in the editor from which it was called as shown in the figure below. At this point, you have completed your expression. Step 10 shows the results of using this expression in the Set Process Description JavaAction.

> Figure 49: Expression Example in Editor

> This expression evaluates to a process description like that in the following figure:

> Figure 50: The New Process Description

Business Process Manager Help-Fujitsu Computer Systems Corporation Interstage Website Voice: (888) 248-9273 Interstage BPM Information