Defining Constraint Behavior Properties

The Constraint behavior enables you to specify conditions that must be satisfied for a given data node to be considered valid. If the condition is not satisfied (that is, if it evaluates to false), messages are displayed to the user.

When editing order and task data in an editor, you can right-click data node behaviors and select Open Properties View to access the behavior properties.You use the Properties view tabs to model Constraint behaviors.

Note:

The level at which you create a behavior (at the data element level, task level, or order level) determines where you access and configure the behavior's properties. See "Creating New Behaviors" for more information.

To define Constraint behavior properties:

  1. From the Design perspective, right-click the behavior and select Open Properties View.

    The Behaviors Properties view is displayed.

  2. Click the Message tab.

  3. In the Language field, select a predefined language in which to display the message to the web client user.

    See "Defining OSM Preferences" for more information.

  4. In the Message field, enter the text that you want to display to the web client user when the OSM server applies a Constraint behavior.

  5. In the Display As field, define the level of severity of the message.

    The level of severity in conjunction with the task status severity setting affects how the OSM server proceeds after a Constraint behavior has been triggered. See "Constraint Behavior Properties View Message Tab" and "Task Editor States/Statuses Tab" for more information.

  6. Click the Details tab.

    The Behaviors Properties view Details tab is displayed. The Name, Type, and Path field values are read-only, and cannot be modified on this tab. See "Defining Behavior Detail Properties" for more information about the options that you can define on this page.

  7. Click the Conditions tab.

    Use the Conditions tab to add conditional logic to the Constraint behavior.

    Note:

    The OSM server applies Constraint behaviors when any Constraint behavior conditions evaluate to false. If you define no conditions for the Constraint behavior, the OSM server will never apply the behavior in the web client.

    See "Defining Behavior Condition Properties" for more information about defining conditions for behaviors.

  8. Click the Notes tab.

    Use the Notes tab to describe the functionality or include internal documentation about the Constraint behavior.

Note:

See OSM Concepts for more information about behavior default values, inheritance, and declarative syntax.

Related Topics

Constraint Behavior Properties View Message Tab

Working with Behaviors

About Web Client Behavior Support

Constraint Behavior Properties View Message Tab

Use the Properties view Message tab to define the language, content, and severity level of the message. For data element level Constraint behaviors, the severity level, in conjunction with the task status severity level, affects whether or not the task is allowed to transition.

Field Use
Language Select the display language for the message.
Message Enter one or more messages to display when a condition is not satisfied.
Display as Select the severity level as follows:
  • Critical: On save, OSM does not save the order data and displays the message in bold red text, with the "ERROR" label.

  • Error: On save, OSM saves the order data and displays the message in red text, with the "ERROR" label.

  • Warning: On save, OSM saves the order data and displays the message in yellow text, with the "WARNING" label.

  • Valid: On save, OSM saves the order data and displays the message in green text, with the "INFO" label.


Related Topics

Defining Constraint Behavior Properties

Working with Behaviors

About Web Client Behavior Support

Task Editor States/Statuses Tab