Skip to content

Re-use workflows #44

Description

@softius

Given that we already have named workflows, we can implement a jump functionality so that another workflow will be executed. This will allow to re-use workflows.

$workflow->to('my-unique-id');

It might be necessary to convert exchanges between the parent workflow.

$workflow
  ->callback(function() {
    // Convert exchange
  })
  ->to('my-unique-id');

When the sub-workflow is completed, we will need to revert to the original Exchange.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions