danielgerlag / danielgerlag/workflow-core
How to add a workflow as a step to another workflow
- Dominant language
- C#
- Stars
- 5.9k
- Forks
- 1.3k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 5
Description
Hello,
I have defined 2 workflows Workflow1 and Workflow2, each of them have their own steps.
I need to execute the Workflow2 after the Workflow1 completes and pass data from last step of Workflow1 to Workflow2 first step.
actually the requirement is to add the Workflow2 as a new step/subflow to Workflow1 dynamically. I am trying to achieve these by Json configuration.
Is it possible to merge/combine two workflows on fly?
Please advice
---Workflow1
```
{
"Id": "Workflow1",
"Version": 1,
"Steps": [
{
"Id": "ExtractSender",
"StepType": "WorkflowCoreConsole.StepsFixed.ExtractSender, WorkflowCoreConsole",
"NextStepId": "ExtractSubject",
"Inputs": {
"MessageDoc": "data"
}
}
{
"Id": "ExtractSubject",
"StepType": "WorkflowCoreConsole.StepsFixed.ExtractSubject, WorkflowCoreConsole",
"Inputs": {
"MessageDoc": "data"
}
}
]
}
```
---Workflow2
```
{
"Id": "Workflow2",
"Version": 1,
"Steps": [
{
"Id": "BlackList",
"StepType": "WorkflowCoreConsole.Steps.BlackList, WorkflowCoreConsole",
"NextStepId": "ExtractReceipent",
"Inputs": {
"MessageDoc": "data"
}
},
{
"Id": "ExtractReceipent",
"StepType": "WorkflowCoreConsole.StepsFixed.ExtractReceipent, WorkflowCoreConsole",
"Inputs": {
"MessageDoc": "data"
}
}
]
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.