Business Rules 10.7 | webMethods Business Rules Web Help | webMethods Rules Development Help | Working with Event Rules | Creating an External Event Rule
 
Creating an External Event Rule
You can create an external event rule using the New Event Rule wizard.
*To create an external event rule:
1. Open the New Event Rule wizard as described in Accessing the Event Rule Wizard.
2. On the Event Rule page, type a name for the event rule in the Event rule name field.
3. Click the External event radio button.
4. Select a rule project from the drop down list in the Rule project field.
*If you opened the wizard from a specific rule project in the Solutions view or from the Rules Explorer view, the name of this rule project appears in the Rule project field.
*You can select any other rule project from the drop down list.
*To create a new rule project, click New and create the new rule project as described in Creating a Rule Project.
5. Select a rule set in the Rule sets field.
*The master rule set check box cannot be selected.
*To create a new rule set, click New and create the new rule set as described in Creating a Rule Set.
6. Type a description of the event rule in the Description field (optional). After you click Finish, the description appears in an expandable field in the upper left corner of the editor area.
7. Click Next.
8. On the Event Rule Parameters page, select the event model you want to assign to the event source. You can also select a data model if you want to use a new data action in an action result.
9. Move the selected event model and data model to the right side by double click, by drag and drop, or click The move right icon.
10. To remove an event model or data model from the Selected parameters list, select it and click The remove icon, or press DEL.
11. Modify the required parameter info as explained in the following table:
For this field
You can do this
Name
Click the name value to modify the parameter name (optional). The name of the parameter that was mapped from the event model cannot be modified.
Note:
Each parameter name must be unique.
Type
This value cannot be modified.
I/O
Click the I/O value to specify the input/output type as described in Working with Data Models and Parameters and Working with Event Models.
Note:
The input/output type of the parameter that was mapped from the event model must be set to Input or Both. The input/output type of a parameter that was mapped from a data model is automatically set to Output and cannot be modified.
Any
This value cannot be modified.
12. Click Next.
13. On the Event Rule Assignment Results page, select the parameter element. Hold down SHIFT or CTRL to select multiple parameter elements.
Note:
For a list of supported data types, see About Data Types.
14. Assign the selected parameter element to a result by double click, by drag and drop, or click The move right icon.
15. To remove a parameter element from the Selected parameter elements list, select it and click The delete icon, or press DEL. Hold down SHIFT or CTRL to select multiple parameter elements.
16. Modify the required parameter element info as explained in the following table:
For this field
You can do this
Label
Click the label value to modify the parameter element name (optional). This name is used as the assignment result column header.
Note:
Each parameter element name for an assignment result must be unique.
Parameter Element
This value cannot be modified.
17. To change the order in the Selected parameter elements list, click The move up icon and The move down icon in the wizard toolbar. The initial assignment result row order of the event rule in the editor area corresponds to the order of the parameter elements within the wizard.
18. Click Next. If you only want to create assignment results, click Finish.
19. On the Event Rule Action Results page, select the action. Hold down SHIFT or CTRL to select multiple actions.
20. Assign the selected action to a result by double click, by drag and drop, or click The move right icon.
21. To remove an action from the Selected actions list, select it and click The delete icon, or press DEL. Hold down SHIFT or CTRL to select multiple actions.
22. Modify the required action info as explained in the following table:
For this field
You can do this
Label
Click the label value to modify the action name (optional). This name is used as the action result column header.
Note:
Each name for an action result must be unique.
Action
Click the action name, then click the pencil button to specify action inputs as described in Adding an Action Result, Step 5.
Status
Click the current symbol to switch between active and inactive.
23. To change the order in the Selected actions list, click The move up icon and The move down icon in the wizard toolbar. The initial action result row order of the event rule in the editor area corresponds to the order of the actions within the wizard.
24. Click Finish.
An event rule is created and saved to your workspace. It appears in the editor area and under Event rule icon Event Rules > Event rule file icon [EventRuleName] in the Rules Explorer view. The selected parameters appear under Event rule icon Event Rules > Event rule file icon [EventRuleName] > Parameter icon [ParameterName] in the Rules Explorer view.