Open ykalidin opened 7 years ago
1) import the attached flogo.json in app. 2) Check the params mapping in the two rest activities, the transformed values are not being displayed.
{ "name": "TempCheck", "type": "flogo:app", "version": "0.0.1", "description": "", "triggers": [{ "name": "Receive HTTP Message", "ref": "github.com/TIBCOSoftware/flogo-contrib/trigger/rest", "description": "Simple REST Trigger", "settings": { "port": "8080" }, "id": "receive_http_message", "handlers": [{ "settings": { "method": "GET", "path": "/temperature", "autoIdReply": "true", "useReplyHandler": "true" }, "actionId": "temp" }] }], "actions": [{ "name": "Temp", "data": { "flow": { "type": 1, "attributes": [], "rootTask": { "id": 1, "type": 1, "tasks": [{ "id": 2, "name": "Log Message", "description": "Simple Log Activity", "type": 1, "activityType": "github-com-tibco-software-flogo-contrib-activity-log", "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/log", "attributes": [{ "name": "message", "value": null, "required": false, "type": "string" }, { "name": "flowInfo", "value": "true", "required": false, "type": "boolean" }, { "name": "addToFlow", "value": "true", "required": false, "type": "boolean" }], "inputMappings": [{ "type": 1, "value": "{T.queryParams}.city", "mapTo": "message" }] }, { "id": 3, "name": "Invoke REST Service", "description": "Simple REST Activity", "type": 1, "activityType": "github-com-tibco-software-flogo-contrib-activity-rest", "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/rest", "attributes": [{ "name": "method", "value": "GET", "required": true, "type": "string" }, { "name": "uri", "value": "http://api.openweathermap.org/data/2.5/weather", "required": true, "type": "string" }, { "name": "pathParams", "value": null, "required": false, "type": "params" }, { "name": "queryParams", "value": { "APPID": "6231d08ce5469ffd47f0cd92f4b9af3e" }, "required": false, "type": "params" }, { "name": "content", "value": null, "required": false, "type": "any" }], "inputMappings": [{ "type": 1, "value": "{T.queryParams}.city", "mapTo": "queryParams.q" }] }, { "id": 4, "name": "Log Message (2)", "description": "Simple Log Activity", "type": 1, "activityType": "github-com-tibco-software-flogo-contrib-activity-log", "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/log", "attributes": [{ "name": "message", "value": "", "required": false, "type": "string" }, { "name": "flowInfo", "value": "true", "required": false, "type": "boolean" }, { "name": "addToFlow", "value": "true", "required": false, "type": "boolean" }], "inputMappings": [{ "type": 1, "value": "{A3.result}.main.temp", "mapTo": "message" }] }, { "id": 5, "name": "Log Message (3)", "description": "Simple Log Activity", "type": 1, "activityType": "github-com-tibco-software-flogo-contrib-activity-log", "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/log", "attributes": [{ "name": "message", "value": "Too Hot", "required": false, "type": "string" }, { "name": "flowInfo", "value": "true", "required": false, "type": "boolean" }, { "name": "addToFlow", "value": "true", "required": false, "type": "boolean" }] }, { "id": 6, "name": "Invoke REST Service (2)", "description": "Simple REST Activity", "type": 1, "activityType": "github-com-tibco-software-flogo-contrib-activity-rest", "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/rest", "attributes": [{ "name": "method", "value": "GET", "required": true, "type": "string" }, { "name": "uri", "value": "http://api.openweathermap.org/data/2.5/weather", "required": true, "type": "string" }, { "name": "pathParams", "value": null, "required": false, "type": "params" }, { "name": "queryParams", "value": { "APPID": "6231d08ce5469ffd47f0cd92f4b9af3e" }, "required": false, "type": "params" }, { "name": "content", "value": null, "required": false, "type": "any" }], "inputMappings": [{ "type": 1, "value": "{T.queryParams}.lat", "mapTo": "queryParams.lat" }, { "type": 1, "value": "{T.queryParams}.lon", "mapTo": "queryParams.lon" }] }, { "id": 7, "name": "Log Message (5)", "description": "Simple Log Activity", "type": 1, "activityType": "github-com-tibco-software-flogo-contrib-activity-log", "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/log", "attributes": [{ "name": "message", "value": null, "required": false, "type": "string" }, { "name": "flowInfo", "value": "true", "required": false, "type": "boolean" }, { "name": "addToFlow", "value": "true", "required": false, "type": "boolean" }], "inputMappings": [{ "type": 1, "value": "{A6.result}.main.humidity", "mapTo": "message" }] }, { "id": 8, "name": "Log Message (4)", "description": "Simple Log Activity", "type": 1, "activityType": "github-com-tibco-software-flogo-contrib-activity-log", "activityRef": "github.com/TIBCOSoftware/flogo-contrib/activity/log", "attributes": [{ "name": "message", "value": "Its Normal,Enjoy your day!!", "required": false, "type": "string" }, { "name": "flowInfo", "value": "true", "required": false, "type": "boolean" }, { "name": "addToFlow", "value": "true", "required": false, "type": "boolean" }] }], "links": [{ "id": 1, "from": 2, "to": 3, "type": 0 }, { "id": 2, "from": 3, "to": 4, "type": 0 }, { "id": 3, "from": 4, "to": 5, "type": 1, "value": "${A3.result}.main.temp>305" }, { "id": 4, "from": 5, "to": 6, "type": 0 }, { "id": 5, "from": 6, "to": 7, "type": 0 }, { "id": 6, "from": 4, "to": 8, "type": 1, "value": "${A3.result}.main.temp<=305" }], "attributes": [] } } }, "id": "temp", "ref": "github.com/TIBCOSoftware/flogo-contrib/action/flow" }] }
@fcastill is this still an issue?
1) import the attached flogo.json in app. 2) Check the params mapping in the two rest activities, the transformed values are not being displayed.