* Creates a workflow with a loop.
(iterations = 3)
| 336 | * Creates a workflow with a loop. |
| 337 | */ |
| 338 | static withLoop(iterations = 3): WorkflowBuilder { |
| 339 | return new WorkflowBuilder() |
| 340 | .addStarter('start', { x: 0, y: 0 }) |
| 341 | .addLoop('loop', { x: 200, y: 0 }, { iterations }) |
| 342 | .addLoopChild('loop', 'loop-body', 'function', { x: 50, y: 50 }) |
| 343 | .addFunction('end', { x: 500, y: 0 }) |
| 344 | .connect('start', 'loop') |
| 345 | .connect('loop', 'end') |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * Creates a workflow with parallel execution. |
no test coverage detected