Container (Activity)


  • Purpose: To group and encapsulate a set of activities within a workflow, creating a logical block or sub-flow.

  • Functionality: The "Container" activity acts as a visual grouping element on the workflow canvas. You can drag and drop other activities inside a Container to organize them. Containers help to:
    • Improve Workflow Readability: Grouping related activities together makes complex workflows easier to understand and navigate visually.
    • Create Reusable Sub-Flows: Containers can be used to encapsulate a set of activities that represent a reusable sub-process within a larger workflow.
    • Apply Scope and Context: Containers might define a scope for variables or error handling within the enclosed activities (depending on the specific workflow engine's features).

  • Use Cases:
    • Grouping activities related to a specific business logic step (e.g., "Customer Data Validation", "Order Item Processing").
    • Creating visual sub-sections within a large workflow to improve organization.
    • Encapsulating a set of activities that you might want to reuse in other parts of the workflow or in different workflows.