File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,13 @@ class WorkflowManagerConfig implements WorkflowManagerConfigProps {
4848 if ( isMatched ) {
4949 const store = WorkflowManagerConfig . _store ;
5050 const dispatch = store ?. dispatch as Store [ 'dispatch' ] ;
51- const payload = JSON . parse ( message . toString ( ) ) ;
52- const action = payload ?. props ?. action || '' ;
53- const result = payload ?. props ?. result || { } ;
51+ const parsedMessage = JSON . parse ( message . toString ( ) ) ;
52+ const process_id = parsedMessage ?. process_id || '' ;
53+ const action = parsedMessage ?. props ?. action || '' ;
54+ const result = parsedMessage ?. props ?. result || { } ;
55+ const payload = { process_id, result } ;
5456
55- dispatch ( createWorkflowAction ( action , result ) ) ;
57+ dispatch ( createWorkflowAction ( action , payload ) ) ;
5658 }
5759 } ;
5860 }
You can’t perform that action at this time.
0 commit comments