File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,16 @@ export default class Automations {
2323 } )
2424 }
2525
26+ async loadFlowExecutionContext ( executionId ) {
27+ if ( ! executionId || typeof executionId !== 'string' ) {
28+ throw new Error ( 'The "executionId" argument must be provided and must be a string.' )
29+ }
30+
31+ return this . app . request . get ( {
32+ url : this . app . urls . automationFlowExecutionContext ( executionId ) ,
33+ } )
34+ }
35+
2636 async activateFlowById ( flowId , initialData ) {
2737 if ( ! flowId || typeof flowId !== 'string' ) {
2838 throw new Error ( 'The "flowId" argument must be provided and must be a string.' )
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ export default class Urls {
2323 return `${ this . automation ( ) } /flow`
2424 }
2525
26+ automationFlowExecutionContext ( executionId ) {
27+ return `${ this . automation ( ) } /flow/execution-context/${ executionId } `
28+ }
29+
2630 automationFlowTrigger ( ) {
2731 return `${ this . automationFlow ( ) } /trigger`
2832 }
You can’t perform that action at this time.
0 commit comments