Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# 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 Guide for more details about rule template views.

Procedure
1. 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.
2. 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

3. Enter the threshold values in the input fields of the HTML form.
4. Click Save to save updates to the business rule.

What to do next

Validate the business rule based on the value entered and bindings defined for the rule template, see Business Rule Editor Reference.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.