Configure Entry and Exit Criteria for New Item Requests
You can configure the criteria that govern when a new item request can exit a workflow status or enter into the next status.
Here's a summary of steps:
-
Define the criteria in a validation rule set.
-
Assign the criteria to a workflow status in the new item request type.
Define the Criteria in a Validation Rule Set
You can define rule sets that validate the entry and exit criteria for new item requests. Criteria can be based on attributes or descriptive flexfields.
Here are business entities that can be used in the rule sets:
Business Entity |
Provides Access To |
---|---|
Change Header |
Descriptive flexfield segments on new item request header rows. The attribute group Change Header Main, which contains attributes corresponding to the basic attributes of a new item request header: Priority, Reason, Need-by Date, Requested By, and Description. |
Change Line |
Descriptive flexfield segments (but not attributes) on new item request lines. |
Example: Define two product rules that allow the new item request workflow to exit from a status only if its Reason is Cost and Priority is High.
-
In the Setup and Maintenance work area, go to the following:
-
Offering: Product Management
-
Functional Area: Product Rules
-
Task: Manage Item Rule Sets
-
-
Click Create to create a rule set.
-
In the Create Rule Set dialog, do the following:
-
Composite: Select No.
-
Type: Select Validations.
-
Association Type: Select New item request.
-
Association Name: Select New item request.
-
Click Save and Continue.
-
-
On the Rules tab, click Create to create a rule for the rule set.
-
In the Create Rule dialog, here's how you create a rule to enforce Cost as a compulsory field:
-
Sequence: Enter the sequence number in which you want to execute this rule. This is required in case you have multiple rules. For example, enter 10
Severity is automatically set to Reject.
-
Click OK.
-
Here's how you create the rule expression:
If Expression: Right-click and select Insert Attribute to insert an attribute that applies to the new item request.
Business Entity: Select Change Header.
Attribute Group: Select Change Header Main.
Attribute: Select Reason.
Click Insert. The following expression is inserted:
[ChangeHeader].[ChangeHeaderMain].[Reason]
-
Modify the expression to form the following comparison expression:
isNull([ChangeHeader].[ChangeHeaderMain].[ReasonCode])||[ChangeHeader].[ChangeHeaderMain].[ReasonCode]!= "COST"
-
In the Validation Condition field, enter false.
-
User Message: Just to be clear, it's recommended to add a user message such as:
You must set the reason as cost.
-
To validate the rule's syntax, click Validate.
-
Click Save.
-
-
Similar to the rule set you created for cost, you must create a rule set for priority that results in the following expression:
isNull([ChangeHeader].[ChangeHeaderMain].[Priority])||[ChangeHeader].[ChangeHeaderMain].[Priority]!= "HIGH"
User Message: Just to be clear, it's recommended to add a user message such as:
You must set the priority as high.
Assign the Criteria to the New Item Request Workflow
After defining a rule set that validates the entry and exit criteria, you can assign that rule set to a new item request status.
The status types that can have entry or exit criteria are listed in the table:
Status Type |
Entry Criteria? |
Exit Criteria? |
---|---|---|
Open |
No |
Yes |
Definition |
Yes |
Yes |
Approval |
Yes |
No |
Here's how you associate the entry and exit criteria with the new item request type:
-
In the Setup and Maintenance work area, use the following:
-
Offering: Product Management
-
Functional Area: New Item Requests
-
Task: Manage New Item Request Type Details
-
-
Click the Workflow tab and select the workflow status for which you want to setup the entry and exit criteria.
-
Select the entry and exit criteria in the Entry Criteria and Exit Criteria columns.
Note that the rule set you created in a previous step appears in the entry and exit criteria columns.
-
Click Save and Close.