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:
Thomas Trompette
2025-02-26 15:15:39 +01:00
committed by GitHub
parent 1af25bf31d
commit b705425358
12 changed files with 102 additions and 10 deletions
@@ -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,