- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023 04:57 AM
Hello,
I have a first workflow "(Arkea) CHG - Intégration STD" that calls another workflow "(Arkea) CHG - Intégration STD" when "Approbation du package" is approved like it's shown here :
Here are the conditions to start the second workflow "(Arkea) CHG - Intégration STD" :
When I test, the first workflow works fine but the second one is launched twice which causes the last activity to be canceled as shown here :
I tried to change the conditions but nothing works, it's always executed twice..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 05:12 AM
The solution to resolve this is to add a "Join activity" before the "Wait for condition" in the workflow that calls the workflow that was duplicated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023 07:33 AM
Most likely this happens because you call the sub workflow once from the main workflow and it triggers second time because of the trigger itself - what i mean is :
1 - you start main wfl
2 - sub wfl called (once)
3 - but the actual trigger conditions are met on the database level (the record - the change record) - meaning the conditions are the same and it is triggered again - as the Wfl framework cannot know it was already ran once and triggeres it second time.
You can use inputs to narrow this down - try this doc for how to use inputs in sub flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023 01:58 AM
Hello,
Even if I don't put any conditions to run the WF, it's still running twice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 05:12 AM
The solution to resolve this is to add a "Join activity" before the "Wait for condition" in the workflow that calls the workflow that was duplicated.