elsa-workflows / elsa-workflows/elsa-core

[BUG] ParentWorkflowInstanceId is not working as intended

Open
#5,236 1 comment 0 reactions 0 assignees View on GitHub
bug triaged
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)

![image](https://github.com/elsa-workflows/elsa-core/assets/581644/f58449f1-b80c-4d54-9259-948bf75fdefb)

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

![image](https://github.com/elsa-workflows/elsa-core/assets/581644/b05b1a83-4c5c-4d25-bf18-67ed649731b0)

## 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

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.