Journeys with Business logic

Each step in a journey can be categorized as either a Simple Action or Business Logic depending on the complexity and the functionalities it involves.

Business logic manage complex processes by enabling decision-making and dynamic responses based on specific conditions. These steps are vital for building intelligent, flexible journeys that adjust to different scenarios.

Key components of business logic 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 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 or arrays.
  • Try-catch error handling: 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.