- Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconcat-string-array.json
46 lines (46 loc) · 2.76 KB
/
concat-string-array.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
{
"triggerConfigs": [{
"label": "API Trigger",
"startTasks": [{
"taskId": "1"
}],
"properties": {
"Trigger name": "tkApplicationIntegrationSample2_API_1"
},
"triggerType": "API",
"triggerNumber": "1",
"triggerId": "api_trigger/tkApplicationIntegrationSample2_API_1"
}],
"taskConfigs": [{
"task": "FieldMappingTask",
"taskId": "1",
"parameters": {
"FieldMappingConfigTaskParameterKey": {
"key": "FieldMappingConfigTaskParameterKey",
"value": {
"jsonValue": "{\n \"@type\": \"type.googleapis.com/enterprise.crm.eventbus.proto.FieldMappingConfig\",\n \"mappedFields\": [{\n \"inputField\": {\n \"fieldType\": \"STRING_ARRAY\",\n \"transformExpression\": {\n \"initialValue\": {\n \"referenceValue\": \"$stringArray$\"\n },\n \"transformationFunctions\": [{\n \"functionType\": {\n \"stringArrayFunction\": {\n \"functionName\": \"FOR_EACH\"\n }\n },\n \"parameters\": [{\n \"initialValue\": {\n \"literalValue\": {\n \"protoValue\": {\n \"@type\": \"type.googleapis.com/enterprise.crm.eventbus.proto.TransformExpression\",\n \"initialValue\": {\n \"referenceValue\": \"~x\"\n },\n \"transformationFunctions\": [{\n \"functionType\": {\n \"stringFunction\": {\n \"functionName\": \"CONCAT\"\n }\n },\n \"parameters\": [{\n \"initialValue\": {\n \"referenceValue\": \"$textToAppend$\"\n }\n }]\n }]\n }\n }\n }\n }]\n }, {\n \"functionType\": {\n \"jsonFunction\": {\n \"functionName\": \"TO_STRING_ARRAY\"\n }\n }\n }]\n }\n },\n \"outputField\": {\n \"referenceKey\": \"$stringArray$\",\n \"fieldType\": \"STRING_ARRAY\",\n \"cardinality\": \"OPTIONAL\"\n }\n }]\n}"
}
}
},
"taskExecutionStrategy": "WHEN_ALL_SUCCEED",
"displayName": "Data Mapping"
}],
"integrationParameters": [{
"key": "stringArray",
"dataType": "STRING_ARRAY",
"defaultValue": {
"stringArray": {
"stringValues": ["oranges", "apples", "bananas", "mangos"]
}
},
"displayName": "stringArray",
"inputOutputType": "OUT"
}, {
"key": "textToAppend",
"dataType": "STRING_VALUE",
"defaultValue": {
"stringValue": "AreGreatFruits"
},
"displayName": "textToAppend"
}]
}