diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 796b64c3..4d91462f 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -536,5 +536,16 @@ export class WorkflowGenerator { this.socket.emit('workflow', this.workflowRecord); } + + public onGoForward = (newUrl: string) => { + //it's safe to always add a go forward action to the first rule in the workflow + this.workflowRecord.workflow[0].what.push({ + action: 'goForward', + args: [{waitUntil: 'commit'}], + }); + this.notifyUrlChange(newUrl); + this.socket.emit('workflow', this.workflowRecord); + } + }