forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-TestImageOCR.yml
240 lines (240 loc) · 4.78 KB
/
playbook-TestImageOCR.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
id: TestImageOCR
version: -1
name: TestImageOCR
description: Test ImageOCR integration
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: ca1500de-479a-4148-833c-224648249b0d
type: start
task:
id: ca1500de-479a-4148-833c-224648249b0d
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: 7546faa1-33e1-4388-8ad5-5c3b52a8bca2
type: regular
task:
id: 7546faa1-33e1-4388-8ad5-5c3b52a8bca2
version: -1
name: Get Image
description: Sends http request. Returns the response as json.
scriptName: http
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
body: {}
filename:
simple: irs.png
headers: {}
insecure: {}
method:
simple: GET
password: {}
proxy: {}
saveAsFile:
simple: "yes"
unsecure: {}
url:
simple: https://raw.githubusercontent.com/demisto/content/09065150a989bd0bdc9a848dd635dca59e8e1330/Integrations/ImageOCR/test_data/irs.png
username: {}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: 9d352601-8215-4312-8368-382bb17c5a6e
type: title
task:
id: 9d352601-8215-4312-8368-382bb17c5a6e
version: -1
name: Done
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 20,
"y": 1260
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: 31606802-117a-49b4-80ef-ed85c690614a
type: regular
task:
id: 31606802-117a-49b4-80ef-ed85c690614a
version: -1
name: DeleteContext
description: Delete field from context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
scriptarguments:
all:
simple: "yes"
key: {}
keysToKeep: {}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
"10":
id: "10"
taskid: 5e1eb7ef-507f-4e2d-8141-d8b4607173d6
type: regular
task:
id: 5e1eb7ef-507f-4e2d-8141-d8b4607173d6
version: -1
name: Error
description: Prints an error entry with a given message
scriptName: PrintErrorEntry
type: regular
iscommand: false
brand: ""
scriptarguments:
message:
simple: Failed Internal/External check
separatecontext: false
view: |-
{
"position": {
"x": 640,
"y": 1220
}
}
note: false
timertriggers: []
ignoreworker: false
"13":
id: "13"
taskid: dca3e0d3-0ffe-49ae-8eca-f55d87b3cf41
type: condition
task:
id: dca3e0d3-0ffe-49ae-8eca-f55d87b3cf41
version: -1
name: Check text
type: condition
iscommand: false
brand: ""
nexttasks:
"no":
- "10"
"yes":
- "5"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: containsString
left:
value:
simple: File.Text
iscontext: true
right:
value:
simple: Internal Revenue Service
ignorecase: true
view: |-
{
"position": {
"x": 60,
"y": 820
}
}
note: false
timertriggers: []
ignoreworker: false
"14":
id: "14"
taskid: 837dbecf-5601-49de-812e-eaf3354a9113
type: regular
task:
id: 837dbecf-5601-49de-812e-eaf3354a9113
version: -1
name: OCR Extract Text
description: Extract test from an image
script: '|||image-ocr-extract-text'
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "13"
scriptarguments:
entryid:
complex:
root: File
accessor: EntryID
langs: {}
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 560
}
}
note: false
timertriggers: []
ignoreworker: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1275,
"width": 1000,
"x": 20,
"y": 50
}
}
}
inputs: []
outputs: []