Business Rules Payload Configuration
The Business Rules Payload Configuration process triggers a business rules script to generate and send a payload. This payload determines the output based on a decision table and automates workflows in SAP Fieldglass.
-
Approval
-
Workflow
The payload configuration is initiated when a business rule script is triggered. Based on the selected Business Rule Type, the system generates a payload and sends it to the Business Rules Service ID. The decision table processes the input parameters and returns the output to SAP Fieldglass, which then drives the appropriate workflow.
Business Rule Type: Approval
The Approval business rule type facilitates a streamlined and automated approval workflow for modules such as Work Orders. When an approval group initiates the process, a business rules script is triggered. This script generates a payload using the Payload Configuration, which is then sent to a specific service endpoint known as the Business Rules Service ID. The payload contains input parameters that are evaluated by a decision table which is a structured set of rules that determines the appropriate output based on the data received.
The output from the decision table is returned to SAP Fieldglass, which uses it to assign an approver at the correct level. If the system is unable to find a suitable approver, the item such as a work order, enters an approval-paused status. In this state, the item awaits manual intervention, where an approver can either approve or reject it directly, or upload a decision file to complete the process.
-
Business Rule Type (mandatory)
-
Format set to JSON (mandatory)
-
Business Rules Service ID (optional)
-
End Point (mandatory)
Business Rule Type: Workflow
The Workflow business rule type configuration expands beyond approvals. It includes additional logic and fields to support dynamic workflows. When Workflow is selected as the Business Rule Type, you must define additional fields during payload configuration.
Once the Data Send Method is selected, the Business Rules Payload Name field becomes visible. This field allows the user to choose from a list of pre-configured Workflow type payloads that are available for their company. These payloads define the structure and content of the data that will be sent to the business rules engine.
Another required field is the Data Update Method, which must be set to BTP Direct Response. This setting ensures that the system expects a synchronous response from BTP after processing the payload. The response is then used to drive the next steps in the workflow.
In addition to these workflow-specific fields, the configuration also includes some common fields shared with the Approval rule type. These include the Format, which is always set to JSON, the Business Rules Service ID, which is an optional text field used to identify the service endpoint, and the End Point, a mandatory picklist that defines where the payload should be sent.
-
Business Rule Type (mandatory)
-
Format set to JSON (mandatory)
-
Data Send Method (mandatory)
-
Business Rules Payload Name (mandatory)
-
Data Update Method (mandatory)
-
Business Rules Service ID (optional)
-
End Point (mandatory)