github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0017.yml (about) 1 doc_meta: | 2 folder: call-func 3 title: assemble worlflow 4 head: | 5 You can use call func to assemble a sequential workflow 6 7 This demo shows that you can adjust the seqence of the callee tasks 8 9 The result of concret implementation of callee_task1/2 will be different depending on the input vars from the caller 10 11 sections: 12 - title: Note 13 content: | 14 Please take a look of the log to see what are the contextual vars in runtime are 15 16 - title: Demo 17 log: yes 18 19 notes: 20 goal: 21 - to test multiple call func task executions should pass 22 23 vars: 24 a: runtime-a 25 e: runtime-e 26 k: runtime-k 27 28 tasks: 29 30 - 31 name: callee_task1 32 task: 33 - 34 func: shell 35 vars: 36 a: callee-a 37 b: callee-b 38 c: callee-c 39 do: 40 - echo "exec ref-task1" 41 - | 42 echo """ 43 vars: 44 a: {{.a}} 45 b: {{.b}} 46 c: {{.c}} 47 e: {{.e}} 48 k: {{.k}} 49 """ 50 51 - 52 name: task 53 desc: 54 task: 55 - 56 func: call 57 desc: call1 58 vars: 59 a: caller-ref-1a 60 b: caller-ref-1b 61 do: 62 - callee_task1 63 - callee_task2 64 65 - 66 func: call 67 desc: call2 68 vars: 69 a: caller-ref-2a 70 b: caller-ref-2b 71 do: 72 - callee_task2 73 - callee_task1 74 75 - 76 name: callee_task2 77 task: 78 - 79 func: shell 80 vars: 81 a: callee-a 82 b: callee-b 83 c: callee-c 84 do: 85 - echo "exec ref-task2" 86 - | 87 echo """ 88 vars: 89 a: {{.a}} 90 b: {{.b}} 91 c: {{.c}} 92 e: {{.e}} 93 k: {{.k}} 94 """