elsa-workflows / elsa-workflows/elsa-core
[BUG] ParentWorkflowInstanceId is not working as intended
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
## Description
Based on a support request in discord https://discord.com/channels/814605913783795763/1230144500777746493
## Steps to Reproduce
Using ootb server and studio 3.1.2/3.1.0 and create
* a GrandChild workflow
* a Child workflow that uses the Dispatch Workflow activity to dispatch GrandChild
* a Parent workflow that uses the Dispath Worklow activity to dispatch Child
[Parent-child-grandChild-workflow-definitions.zip](https://github.com/elsa-workflows/elsa-core/files/15021157/Parent-child-grandChild-workflow-definitions.zip)

Run the Parent workflow from Studio and check the WorkflowInstances table. The `ParentWorkflowInstanceId` is null for all instances.

## Expected Behavior
The `ParentWorkflowInstanceId` of
* GrandChild should be set to the Child instance Id
* Child should be set to the Parent instance id
* Parent should be null
Contributor guide
Assessment
This issue has not been assessed yet.