Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance WorkflowDefinition id liquid filter #3408

Conversation

JoschaMetze
Copy link

@JoschaMetze JoschaMetze commented Nov 7, 2022

This PR enhances the core liquid filter WorkflowDefinitionIdFilter with another optional parameter. The parameter can take an (optional) workflow definition Id from which the tenant id will be used to find the workflow definition in the right tenant.

This can be used to call a subworkflow from a tenant specific workflow. Without this adapter liquid filter the workflow definition will always be searched in the default tenant.

The new syntax (following liquid syntax would be):

{{ \"<name of the workflow>\" | workflow_definition_id:\"name\",WorkflowInstanceId }}
or by tag
{{ \"<tag of the workflow>\" | workflow_definition_id:\"tag\",WorkflowInstanceId }}

@sfmskywalker sfmskywalker merged commit 131dab0 into elsa-workflows:master Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants