elsa-workflows / elsa-workflows/elsa-core

Suggestion: A way to declare dependencies between workflows

Open
#7,018 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

## Feature Request

### Problem Overview
In my use case I am declaring workflows via code which uses other workflows as activities.
This means that the WorkflowsProvider has to initiate the dependency first and then the parent, otherwise a `Could not find workflow definition with ID` Exception is thrown.

### Proposed Solution
In my project I have created a solution which uses a DependsOnWorkflowAttribute, which is respected in my own modified implementation of the ClrWorkflowsProvider.

### Alternative Solutions
There are a lot of different solutions to this issue. You could declare dependencies in a property or somehow dynamically check which workflows a workflow uses as activities and build them first.

### Use Cases
I am unsure if this is a general use case or if only I have this issue. I am aware this is probably not a common issue.

### Additional Context
If the Attribute based solution is desirable, I could try and clean up my code a bit and create a PR.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.