Browse Source

feat: Add the globalData parameter to the workflowEventHandler method.

zhaosi 1 year ago
parent
commit
503fee4051
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/workflowEngine/index.js

+ 1 - 0
src/workflowEngine/index.js

@@ -116,6 +116,7 @@ export function startWorkflowExec(workflowData, options, isPopup = true) {
         workflowEventHandler(event.action, {
         workflowEventHandler(event.action, {
           workflow: workflowRefData,
           workflow: workflowRefData,
           variables: { ...engine.referenceData.variables },
           variables: { ...engine.referenceData.variables },
+          globalData: { ...engine.referenceData.globalData },
         });
         });
       });
       });
     }
     }