LetsFlow
Search…
NOP trigger
NOP trigger is able to manipulate data within the process. So it allows you to update asset or actors information.
YAML
JSON
1
"$schema": https://specs.letsflow.io/v0.2.0/action/nop/schema.json#
2
actor: issuer
3
default_response: approve
4
trigger_response:
5
"<if>":
6
condition:
7
"<apply>":
8
input:
9
available:
10
"<ref>": assets.available
11
query: available.shipments > `0`
12
then: approve
13
else: deny
14
responses:
15
approve: {}
16
dany: {}
Copied!
1
{
2
"$schema": "https://specs.letsflow.io/v0.2.0/action/nop/schema.json#",
3
"actor": "issuer",
4
"default_response": "approve",
5
"trigger_response": {
6
"<if>": {
7
"condition": {
8
"<apply>": {
9
"input": {
10
"available": {
11
"<ref>": "assets.available"
12
}
13
},
14
"query": "available.shipments > `0`"
15
}
16
},
17
"then": "approve",
18
"else": "deny"
19
}
20
},
21
"responses": {
22
"approve": {},
23
"dany": {}
24
}
25
}
Copied!
Last modified 2yr ago
Copy link