Setting Up Stop Process Actions
This topic describes how to prevent processes, such an inspection, from being completed or scheduled based on your business rule.
You can configure the Stop Process action to prevent the final inspection from being scheduled based on your business rule.
The Stop Process action is supported for this event:
Event Attribute |
Value |
---|---|
Offering |
Permits |
Business Object |
Inspection |
Event Name |
Before Inspection Saved |
To configure a Stop Process action:
-
Expand the Criteria section of the Business Rules Details page.
For more information on setting up criteria, see Setting Up Business Rule Criteria.
-
Make sure your statements reference the applicable attributes in the business object.
This example illustrates how you can set up your criteria sequence to confirm the inspection being scheduled is the final inspection and that there is no outstanding fee balance.
-
Expand the Actions section of the Business Rules Details page.
-
Click Add.
-
From the Action Name drop-down list, select Stop Process.
-
Click Configure.
-
Enter the text to include in the message that displays to the user if the action is triggered.
This example illustrates including custom message text.
The Stop Process action prevents the final inspection from being scheduled, and it displays a message to alert the user in the following format:
The process has stopped due to this reason: {CUSTOM_MESSAGE_TEXT}.
Where {CUSTOM_MESSAGE_TEXT} is the text you enter in the Message Body field.
This example illustrates the error message displayed when you attempt to schedule a final inspection for a permit. The configured business rule stipulates that the entire fee balance must be paid, and in this case there is a remaining balance.
Note: The Stop Process action is triggered only during a request for a new inspection. It is not triggered during import, migration, or when an inspection is canceled or updated. Also, keep in mind that the Stop Process action isn’t triggered by requests sent from the Oracle Inspector mobile app, however requests sent from a browser running on a mobile device will trigger the Stop Process action.