This example assumes that you have created the two example custom objects, Event Web Service and Custom Action Audit. It explains how to set up a custom rule in the Axeda® Configuration application using these two custom objects. The procedure provides links to the main topics for the Rule wizard, in case you want additional assistance.
First you will create a custom action for the Custom Action Audit object, and then you will create the rule using the Event Web Service object and the custom action you just created.
From anywhere in the applications, select the Configuration tab.
On the New menu, select Action. The Action wizard starts.
In the Create action page, type a Name for the action. A Name is required and can be up to 50 alphanumeric characters in length. The action appears by this name in the Applications.
Optionally, type a Description for the action.
From the Category list, select Enterprise actions.
When the list of Enterprise actions appears, select Custom action, and click Next.
In the Configure custom action page, select the Custom Action Audit object from the Action list, and click Finish. (For purposes of this example, you will not select the User Groups that can handle permissions for this action and User groups that can handle execution of this action. Refer to the online help for those pages if you want to select user groups.)
In the Confirm changes to action page, read the information presented and, if it is correct, click Finish. Otherwise, click Back to make changes. Once you click Finish in the confirmation page, you return to the Actions page, where the new action is listed. You are ready to create the custom rule.
On the New menu, select Rule. The Rule wizard starts.
In the Create rule page, type a Name for this rule. A Name is required and can be up to 50 alphanumeric characters in length. The rule appears by this name in the Applications.
Optionally, type a Description for the rule.
From the Type list, select Custom.
Click Next to display the Models for rule page.
From the Available Models table, select the check boxes for the models to which you want to apply this rule, and click Add Checked. To add all the models shown on this page of the table, click Add All.
Click Next to display the Scope for rule page. Review the Model selections and the corresponding Asset Group and Assets selections (if any). To change the Models, Asset Groups, or Assets for the rule, click the appropriate link and add or remove Models, Asset Groups, or Assets, as needed. Click Next to return to the Scope for rule page after making your changes.
From the Scope for rule page, click Next to display the Configure custom rule page.
From the Message Type list in the Configure Custom Rule page, select Event. (The other options are Alarm, Data Expression, and Registration Rule.)
From the Rule list, select the name that you assigned this custom object. If you used the suggested name, select Event Web Service.
If this rule's actions should be executed every
time the rule evaluates to true, then select Consecutive.
If Consecutive is not selected,
the actions are executed upon the first evaluation to true and are
not executed again until the rule evaluates to false and then true
again.
Click Next to configure the parameter values for this custom rule. For the Event Web Service custom object, enter a value for the state parameter.
Click Next to configure the action for this rule.
The Custom Action Audit action should appear in the list of Available actions. Select the check box for this action, and click Add Checked.
Once the Custom Action Audit action appears in the list of Selected actions, click Next if you want to select user groups for this rule. Otherwise, click Finish (recommended for purposes of this example, not recommended for production purposes).
In the Review changes to rule page, read the settings and, if they are correct, click Finish to add the new rule to the Platform. If you need to make changes, click Back to make them and then return to this page and click Finish. Your new custom rule appears in the Rules page.