Business logic

This section explains Business logic step in Quickwork that enable dynamic workflows to adapt to conditions, making journeys more intelligent and responsive to various scenarios.

Business logic steps, handle more complex processes that involve decision-making and dynamic responses based on certain conditions. These steps are crucial for creating intelligent, adaptable journeys that can respond differently under various circumstances. The components of business logic might include:

  • If condition: Executes an action or a set of actions only if a specified condition is met.
  • If else condition: Extends the If condition by providing an alternative path of execution when the If condition is not met.
  • Foreach loop: Iterates over a collection of items and performs the same action for each item, which is useful for processing lists, collections or arrays.
  • Try-catch: Handles exceptions or errors that occur in the execution of a journey, ensuring that the journey can manage or log errors without crashing.
  • Stop journey: Ends the execution of the journey prematurely based on a specified condition, which is useful for stopping processes that should not continue due to certain criteria.

An example of business logic in journey automation could involve a retail company's online order system, where different discounts are applied based on purchase amounts. If condition: Check if the total purchase exceeds $100. If true: Apply a 10% discount. If false: Apply a 5% discount. This business logic allows for automatic and dynamic discount applications, enhancing customer satisfaction and operational efficiency.

📚 Additional resources

Triggers to initiate journeys
Configuring actions
Establishing connections
Building your first journey