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.