Details
-
Bug
-
Resolution: Fixed
-
None
-
None
-
Empty show more show less
Description
problem
If calling the cron daily action, all configured actions are called multiple times.
The problem is, that the doCronDaily method of each workflow must be called. Internally a callActions call is performed to trigger the actions configured in the LEK_workflow_action table.
But In the callActions method the inheritance tree for that workflow is walked through. So a XXX workflow which inherits from the default workflow triggers then the cronDaily actions for XXX and default. In the next Workflow YYY the same, and since the Default Workflow itself exists as Workflow the default workflow triggers are called again.
solution
All Workflow do function called on each workflow, must collect all possible workflow IDs first, and then one callAction for that all collected IDs must be performed.