Workflow "Join Element" misses nodes

Description

Steps to reproduce:
1. Create workflow with two branches as shown on image
2. Each branch must have some conditions to proceed
3. Satisfy only one condition (in my case I have empty ReferenceNo and Name2 is filled up
4. Save record

What happens in the code:
1. Method org.compiere.wf.MWFProcess.isJoinElementANDProcessed(MWFActivity) checks condition for "Name2" Node
2. There is no Activity created yet for "CheckReferenceNo" Node
3. Method isJoinElementANDProcessed returns "true" because all Activities from Name2 branch are Processed
But it must wait for parent activity of "End" Node to be created! As a result, "CheckReferenceNo" Node activity was never performed.

And how it looks without fix:


I've added a condition

It will eliminate this error:

Environment

None

Attachments

3

Activity

Show:

Heng Sin LowAugust 12, 2021 at 1:20 PM

Hi ,

I’ve problem re-create the workflow above and hence can’t reproduce the exact same issue.

Can you pack out the workflow example above so I can test and review your changes?

Regards,

Low

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created July 30, 2021 at 1:02 PM
Updated March 18, 2022 at 4:18 PM