Workflow on_save not working anymore in scheduler #10357
Labels
Area: Workflow
Issues & PRs related to all things regarding workflow
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Status: Team Investigating
Labels for issues in which the Core Team are investigating / Intend to Investigate
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
Expected Behavior
After the scheduler did run, record from module B, should have the calculated field set
Actual Behavior
The second workflow for module B, didn't run, so only the change from the scheduled workflow was applied.
Possible Fix
Introduced by #10296
I reverted this commit locally, but this needs rework.
Context
We have a lot of processes which depend on each other. Some of our instances using this behavior a lot.
Merging the logic of the two workflows into one workflow is only viable in this small use-case. But we have multiple workflows which would trigger the on save workflow. So we would need to add the logic from the on save workflow into all other scheduler workflows. Which then get super hard to maintain.
The PR which was merged is in my mind a big breaking change for how workflows behave.
Your Environment
The text was updated successfully, but these errors were encountered: