forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-DeleteContext-auto-subplaybook-test.yml
224 lines (224 loc) · 4.44 KB
/
playbook-DeleteContext-auto-subplaybook-test.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
id: DeleteContext-auto-subplaybook-test
version: -1
name: DeleteContext-auto-subplaybook-test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 5e88e943-63e2-4cbe-822c-427bc2124815
type: start
task:
id: 5e88e943-63e2-4cbe-822c-427bc2124815
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
- "6"
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: 19b84359-9935-4fd8-8061-73e00453c987
type: regular
task:
id: 19b84359-9935-4fd8-8061-73e00453c987
version: -1
name: Set test1
description: Sets a value into the context with the given context key
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
scriptarguments:
append: {}
key:
simple: test1
value:
simple: bla
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 220
}
}
note: false
timertriggers: []
ignoreworker: false
"2":
id: "2"
taskid: f1372274-5674-4957-85a4-5c4d5f38a0c7
type: regular
task:
id: f1372274-5674-4957-85a4-5c4d5f38a0c7
version: -1
name: Delete test1
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
all: {}
index: {}
key:
simple: test1
keysToKeep: {}
subplaybook:
simple: auto
separatecontext: false
view: |-
{
"position": {
"x": 450,
"y": 440
}
}
note: false
timertriggers: []
ignoreworker: false
"3":
id: "3"
taskid: 38ed0c32-7c7e-4acf-8af7-2d33e498ed9a
type: condition
task:
id: 38ed0c32-7c7e-4acf-8af7-2d33e498ed9a
version: -1
name: Check test1
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "5"
"yes":
- "4"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isExists
left:
value:
simple: test1
iscontext: true
view: |-
{
"position": {
"x": 450,
"y": 600
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: 61be1140-195f-442b-8b30-b570e97f439c
type: regular
task:
id: 61be1140-195f-442b-8b30-b570e97f439c
version: -1
name: key not deleted
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: 'Test1 exists: ${test1}'
separatecontext: false
view: |-
{
"position": {
"x": 460,
"y": 840
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: d4e2e370-9a58-4292-8d0d-afe2d4dc49d9
type: title
task:
id: d4e2e370-9a58-4292-8d0d-afe2d4dc49d9
version: -1
name: all good
description: Prints text to war room (Markdown supported)
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 910,
"y": 870
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: f748e94e-a91e-42cb-8204-9e025a3b9373
type: regular
task:
id: f748e94e-a91e-42cb-8204-9e025a3b9373
version: -1
name: Print current playbook id
description: Prints text to war room (Markdown supported)
scriptName: Print
type: regular
iscommand: false
brand: ""
scriptarguments:
value:
simple: 'playbook id: ${currentPlaybookID}'
separatecontext: false
view: |-
{
"position": {
"x": 930,
"y": 220
}
}
note: false
timertriggers: []
ignoreworker: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 885,
"width": 860,
"x": 450,
"y": 50
}
}
}
inputs: []
outputs: []