Skip to content

Commit

Permalink
hotfix: send event from decision change
Browse files Browse the repository at this point in the history
  • Loading branch information
alonp99 committed Aug 10, 2023
1 parent 8881758 commit 4ba0836
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions services/workflows-service/src/workflow/workflow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,16 @@ export class WorkflowService {
documents: documentsWithDecision,
});

const correlationId = await this.getCorrelationIdFromWorkflow(updatedWorkflow);

this.workflowEventEmitter.emit('workflow.context.changed', {
oldRuntimeData: runtimeData,
updatedRuntimeData: updatedWorkflow,
state: updatedWorkflow.state,
entityId: (updatedWorkflow.businessId || updatedWorkflow.endUserId) as string,
correlationId: correlationId,
});

return updatedWorkflow;
}

Expand Down

0 comments on commit 4ba0836

Please sign in to comment.