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:
From the Design perspective, right-click the behavior and select Open Properties View.
The Behaviors Properties view is displayed.
Click the Message tab.
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.
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.
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.
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.
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.
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.Constraint Behavior Properties View Message Tab
About Web Client Behavior Support
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:
|
Defining Constraint Behavior Properties