> #### 6.10.2 Defining Start Process Triggers

> Before this trigger can be defined, special configuration and set up is required. For instructions, see the Interstage Business Process Manager Developers Guide. Also, you need access to the information discussed in the "Trigger Configuration Information You Need to Know" section.

> ###### To define a Start Process Trigger:

> 1. Display the process definition.

> 2. Add the data items (UDAs) you will need for your trigger to the process definition. See "Define the set of user-defined process attributes" for instructions, or you can add STRING-type UDAs by simply typing the desired UDA name in the Data Mapping Variable drop-down list when it is time to do so (see Step 9c below).

> 3. Click the Properties button in the Target Area. Then click the Triggers tab.

> The General sub-pane of the Process Definition properties Triggers pane appears.

> 4. Click the Add button and type a name for your trigger in the Name dialog box. The name Order was used in the figure below.

> The name of your trigger appears in the Name field and is highlighted in the triggers list box at the top of the pane.

> 5. (Optional) Enter a description for your trigger in the Description text area.

> The following figure is an example of what you'll see:

> Figure 102: Starting Trigger Definition

> You will notice that there is an Enabled checkbox on this dialog box. Checking this checkbox enables the trigger, so please wait until after you have defined your trigger before enabling it.

> 6. Click the Event sub-tab and enter the location URL of the Event Data Format (XML Schema) File in the XML Schema field.

> 7. Click Retrieve.

> 8. If you want processes to be started only under certain conditions, create an expression in the Event Filter field that defines those conditions. For information and instructions on using expressions, see the "1. Display the process definition. 2. In the Action Set pane, define a Web Services Java Action as an Epilogue JavaAction to execute just before the enactment thread leaves the node. Alternatively, paste in Actions created in other Action Sets. For more information, see the "Web Services Java Action" section.Note: You will not be able to assign JavaActions that are not of the appropriate type to the custom node3. Click OK.Expressions in Interstage Business Process Manager

> 2. In the Action Set pane, define a Web Services Java Action as an Epilogue JavaAction to execute just before the enactment thread leaves the node. Alternatively, paste in Actions created in other Action Sets. For more information, see the "Web Services Java Action" section.

> Note: You will not be able to assign JavaActions that are not of the appropriate type to the custom node

> 3. Click OK.

> Expressions in Interstage Business Process Manager" section. The following is an example of an expression that will start a process only if the price of the item is greater than $20.00:

> toFloat(getXPath("/shiporder/item/price/text()")) > 20

> Figure 103: Loading XML Schema

> 9. Map the data from your Event Data (XML) File to your UDAs. Do this as follows:

> 1. Click the Data Mapping sub-tab then the Add button (the Add button on the bottom right part of the screen).
> 2. Select an event element that you want to map to a UDA from the Event Element drop-down list. Click in the empty field that appears to activate the drop-down list.
> 3. Select a UDA from the Variable drop-down list that you want to map from an event element. If you do not have UDAs on this process definition, you can add them by entering a name for the UDA that you want to add (and use for mapping this data).
> 4. Repeat Steps a-c for every event element that you want to map to a UDA.

> Figure 104: Mapping Event Elements

> 10. When you have completed the mapping of data, click the General sub-tab and check the Enabled checkbox to enable your trigger.

> 11. Click OK.

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