Create Workflow Form action (#10509)
- create form action - add `pendingEvent` to executor output - when receiving pendingEvent, exit workflow execution - let the workflow in running status for now before taking a decision
This commit is contained in:
+11
-6
@@ -67,12 +67,17 @@ export class RunWorkflowJob {
|
||||
|
||||
await this.throttleExecution(workflowVersion.workflowId);
|
||||
|
||||
const { error } = await this.workflowExecutorWorkspaceService.execute({
|
||||
workflowRunId,
|
||||
currentStepIndex: 0,
|
||||
steps: workflowVersion.steps,
|
||||
context,
|
||||
});
|
||||
const { error, pendingEvent } =
|
||||
await this.workflowExecutorWorkspaceService.execute({
|
||||
workflowRunId,
|
||||
currentStepIndex: 0,
|
||||
steps: workflowVersion.steps,
|
||||
context,
|
||||
});
|
||||
|
||||
if (pendingEvent) {
|
||||
return;
|
||||
}
|
||||
|
||||
await this.workflowRunWorkspaceService.endWorkflowRun({
|
||||
workflowRunId,
|
||||
|
||||
Reference in New Issue
Block a user