Adding a Business Rule Using the HTML Form
If a rule template view is defined for the rule template, then you can provide values for the bindings, defined in TIBCO BusinessEvents Studio, in a HTML form.
The form interface is the visual presentation of the rule template defined by rule template views. See TIBCO BusinessEvents Developer’s Guide for more details about rule template views.
- Procedure
- On the Workspace tab, in the Artifact Explorer pane, select the down arrow icon for the rule template you want to use and select New Business Rule.
- Type the business rule name in the dialogue box and click
Finish.
If the rule template view is defined for the rule template, then the HTML form is presented in the business rule editor. Based on the data types in the rule template view, the HTML element are generated for the HTML form.
Rule Template Data Type and HTML Field Type Mapping Rule Template Data Type HTML Field Type Integer Textbox Double Textbox String TextBox/TextArea (based on the Select widget for string bindings in Rule Template Instance field in the Personal Preferences settings).
If you specify the
WidgetType
as TextBox or TextArea in the binding itself, you cannot change it in the Personal Preferences setting.Boolean Check box String (with associated domain model) Dropdown list Datetime Datetime widget Long Textbox - Enter the threshold values in the input fields of the HTML form.
- Click Save to save updates to the business rule.
Validate the business rule based on the value entered and bindings defined for the rule template, see Business Rule Editor Reference.