How to Use a Logic Flow in a BP stage
Integrating pre-defined logic flows into various stages of your business process, particularly during the entry or exit phases of a stage, is both crucial and beneficial. This integration enables the seamless transfer of necessary inputs into the flow, where the logic is autonomously executed, producing results that can be utilized in various aspects of the process, such as in completion criteria or stage guards. This capability not only streamlines process execution but also ensures efficiency by abstracting the complexity of the underlying logic, allowing you to focus on the strategic aspects of the business process without getting entangled in the technical details.
Configuring the Logic Flow in the Entering / Existing Phase
The initial step involves creating the specific step within your business process and navigating to its 'Entering Phase'. Here, you can search for and select the logic flow you wish to execute upon entering this phase. Ensure you provide any necessary inputs required for the logic flow. The same procedure applies to the 'Exiting Phase', where you can configure a different or the same logic flow to run upon exiting the step.
In the following example, we demonstrate adding a pre-created logic flow to the entering state of a business stage. This specific logic flow is designed to calculate the monthly car insurance premium. It operates by taking the necessary inputs and computing the final decimal result, which represents the premium value. This calculated value can then be utilized in a subsequent decision-making step within the business process.

After providing the required inputs to the logic flow and saving your configuration, you can utilize the resulting decimal value using the auto-created context variable produced by the flow in various aspects of the stage, including within the stage itself or in the transition guard, enhancing decision-making and process flow control.
