Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-1181

Workflow Cron Daily actions are called multiple times

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • translate5 - 3.2.2
    • None
    • None

    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.

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: