elsa-workflows / elsa-workflows/elsa-core

FlowJoin with WaitAll mode not wating

Open
#6,725 16 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

The FlowJoin with WaitAll mode is not behaving as expected. When there is a loop in one of the branches, the other branch does not wait properly. The previous bookmark is removed, and the running activity gets canceled. What is the recommended way to implement parallel branches with loopbacks in a Flowchart?

this is my code:

`
new Connection(new Endpoint(fork, "cost"), new Endpoint(employeeMissionExpenseActivity)),
new Connection(new Endpoint(employeeMissionExpenseActivity), new Endpoint(supervisorMissionExpenseApprovalActivity)),
new Connection(new Endpoint(supervisorMissionExpenseApprovalActivity), new Endpoint(handleSupervisorMissionExpenseApprovalActivity)),
new Connection(new Endpoint(handleSupervisorMissionExpenseApprovalActivity, "True"), new Endpoint(managerMissionExpenseApprovalActivity)),
new Connection(new Endpoint(handleSupervisorMissionExpenseApprovalActivity, "False"), new Endpoint(employeeMissionExpenseActivity)),
new(new Endpoint(managerMissionExpenseApprovalActivity), new Endpoint(handleManagerMissionExpenseApprovalActivity)),

new Connection(new Endpoint(handleManagerMissionExpenseApprovalActivity, "True"), new Endpoint(joinReportAndCost)),
new Connection(new Endpoint(handleManagerMissionExpenseApprovalActivity, "False"), new Endpoint(employeeMissionExpenseActivity)),

new Connection(new Endpoint(joinReportAndCost), new Endpoint(checkReportAndExpenseApprovalActivity))`

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.