forked from elsa-workflows/elsa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HelloWorldHttp.json
114 lines (114 loc) · 2.81 KB
/
HelloWorldHttp.json
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
{
"id": "hello-world-json-v1",
"definitionId": "hello-world-json",
"name": "Hello World",
"isLatest": true,
"isPublished": true,
"root": {
"type": "Elsa.Flowchart",
"id": "Flowchart1",
"start": "HttpEndpoint1",
"activities": [
{
"path": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "hello-world-json"
},
"memoryReference": {
"id": "197d84ee-74f0-438b-8e44-33534b26a223"
}
},
"supportedMethods": {
"typeName": "String[]",
"expression": {
"type": "Object",
"value": "[\u0022GET\u0022]"
},
"memoryReference": {
"id": "HttpEndpoint1:input-1"
}
},
"authorize": {
"typeName": "Boolean",
"expression": {
"type": "Literal",
"value": "False"
},
"memoryReference": {
"id": "HttpEndpoint1:input-2"
}
},
"id": "HttpEndpoint1",
"type": "Elsa.HttpEndpoint",
"customProperties": {
"CanStartWorkflow": true,
"RunAsynchronously": false
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "Hello JSON world!"
},
"memoryReference": {
"id": "5c2989ff-3f95-4d55-b9f0-891ce8d054c6"
}
},
"id": "WriteLine1",
"type": "Elsa.WriteLine"
},
{
"statusCode": {
"typeName": "System.Net.HttpStatusCode, System.Net.Primitives",
"expression": {
"type": "Literal",
"value": "OK"
},
"memoryReference": {
"id": "WriteHttpResponse1:input-1"
}
},
"content": {
"typeName": "Object",
"expression": {
"type": "Literal",
"value": "Hello JSON world!"
},
"memoryReference": {
"id": "fffa83c4-86c9-4d27-9a01-65ca29dd1f97"
}
},
"responseHeaders": {
"typeName": "Elsa.Http.Models.HttpResponseHeaders, Elsa.Http",
"expression": {
"type": "Literal",
"value": "{}"
},
"memoryReference": {
"id": "WriteHttpResponse1:input-2"
}
},
"id": "WriteHttpResponse1",
"type": "Elsa.WriteHttpResponse"
}
],
"connections": [
{
"source": "HttpEndpoint1",
"target": "WriteLine1",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine1",
"target": "WriteHttpResponse1",
"sourcePort": "Done",
"targetPort": "In"
}
]
}
}