github.com/AiRISTAFlowInc/fs-cli@v0.2.6/test/flogo.json (about) 1 { 2 "name": "_APP_NAME_", 3 "type": "flogo:app", 4 "version": "0.0.1", 5 "description": "My flogo application description", 6 "appModel": "1.1.0", 7 "imports": [ 8 "github.com/AiRISTAFlowInc/fs-contrib/trigger/rest", 9 "github.com/AiRISTAFlowInc/fs-flow", 10 "github.com/AiRISTAFlowInc/fs-contrib/activity/log" 11 ], 12 "triggers": [ 13 { 14 "id": "my_rest_trigger", 15 "ref": "#rest", 16 "settings": { 17 "port": "8888" 18 }, 19 "handlers": [ 20 { 21 "settings": { 22 "method": "GET", 23 "path": "/test/:val" 24 }, 25 "action": { 26 "ref": "#flow", 27 "settings": { 28 "flowURI": "res://flow:simple_flow" 29 }, 30 "input": { 31 "in": "$.pathParams.val" 32 } 33 } 34 } 35 ] 36 } 37 ], 38 "resources": [ 39 { 40 "id": "flow:simple_flow", 41 "data": { 42 "name": "simple_flow", 43 "metadata": { 44 "input": [ 45 { "name": "in", "type": "string", "value": "test" } 46 ], 47 "output": [ 48 { "name": "out", "type": "string" } 49 ] 50 }, 51 "tasks": [ 52 { 53 "id": "log", 54 "name": "Log Message", 55 "activity": { 56 "ref": "#log", 57 "input": { 58 "message": "$flow.in", 59 "addDetails": false 60 } 61 } 62 } 63 ] 64 } 65 } 66 ] 67 } 68