forked from CloudSlang/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnew_hire.sl
More file actions
35 lines (28 loc) · 700 Bytes
/
new_hire.sl
File metadata and controls
35 lines (28 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
namespace: tutorials_06.hiring
imports:
base: tutorials_06.base
hiring: tutorials_06.hiring
flow:
name: new_hire
inputs:
- address
workflow:
- print_start:
do:
base.print:
- text: "Starting new hire process"
- check_address:
do:
hiring.check_availability:
- address
publish:
- availability: ${available}
- print_finish:
do:
base.print:
- text: "${'Availability for address ' + address + ' is: ' + str(availability)}"
- on_failure:
- print_fail:
do:
base.print:
- text: "${'Failed to create address: ' + address}"