-
Notifications
You must be signed in to change notification settings - Fork 616
Expand file tree
/
Copy pathNestedInputDemo.json
More file actions
53 lines (52 loc) · 1.41 KB
/
NestedInputDemo.json
File metadata and controls
53 lines (52 loc) · 1.41 KB
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
[
{
"WorkflowName": "NestedInputDemoWorkflow1",
"GlobalParams": [
{
"Name": "papa",
"Expression": "new object[] { \"1\", 4, null }"
},
{
"Name": "pa",
"Expression": "papa[0]"
},
{
"Name": "obj",
"Expression": "new pep[] { new pep(\"popo\" as string, pa as object) }"
}
],
"Rules": [
{
"RuleName": "CheckNestedSimpleProp",
"ErrorMessage": "One or more adjust rules failed.",
"ErrorType": "Error",
"RuleExpressionType": "LambdaExpression",
"Expression": "input1.NestedProp.SimpleProp == \"nestedSimpleProp\""
}
]
},
{
"WorkflowName": "NestedInputDemoWorkflow2",
"Rules": [
{
"RuleName": "CheckNestedListProp",
"ErrorMessage": "One or more adjust rules failed.",
"ErrorType": "Error",
"RuleExpressionType": "LambdaExpression",
"Expression": "input1.NestedProp.ListProp[0].Id == 1 && input1.NestedProp.ListProp[1].Value == \"second\""
}
]
},
{
"WorkflowName": "NestedInputDemoWorkflow3",
"Rules": [
{
"RuleName": "CheckNestedListPropFunctions",
"ErrorMessage": "One or more adjust rules failed.",
"ErrorType": "Error",
"RuleExpressionType": "LambdaExpression",
"Expression": "input1.NestedProp.ListProp[1].Value.ToUpper() = \"SECOND\""
}
]
}
]