TIBCOSoftware / flogo-cli

Project Flogo Command Line Interface
http://flogo.io
BSD 3-Clause "New" or "Revised" License
57 stars 28 forks source link

Struggling to get started with flogo-cli #4

Closed ecarlier-tibco closed 8 years ago

ecarlier-tibco commented 8 years ago

Hi there, probably more a documentation issue at this point, and a request for guidance to get an first app running. What i wanted to do is take the weather app example from flogo-web and run it using flogo-cli I ran the app successfully on flogo-web and exported the flow using "Export for CLI" (generated file : "weather_flow.json")

Here is what I did:

flogo create weather_app
cd weather_app
flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/log
flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/rest
flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/twilio
flogo add trigger github.com/TIBCOSoftware/flogo-contrib/trigger/rest

I updated the bin/triggers.json to configure my rest trigger so far so good. then I tried to add my flow using the generated "weather_flow.json"

flogo add flow weather_flow.json 
Error: cannot embed 'weather_flow.json', validation of the flow's json failed:
  - model: model is required
  - type: type is required
  - rootTask: rootTask is required

This creates error as you can see above. I don't mind updating manually my flow json file, but I cannot find anywhere a document that describes how to write it ? Did I miss it ?

One side remark: the Readme's sometimes mention the possibility to use Slack to ask questions. But this on a Slack team I don't belong to: 1) either there is a process to join the Slack team, and then this should mentioned 2) or this is a restricted Slack team, and then you should remove this from the Readme's

Thanks, Eric triggers.json.zip weather_flow.json.zip

fm-tibco commented 8 years ago

Currently there is an issue with the export of the cli flow from flogo web. For now, from that exported file, extract the contents of the top level "flow" object and copy into its own json file. Then try adding that using the cli.

On Monday, September 5, 2016, ecarlier-tibco notifications@github.com wrote:

Hi there, probably more a documentation issue at this point, and a request for guidance to get an first app running. What i wanted to do is take the weather app example from flogo-web and run it using flogo-cli I ran the app successfully on flogo-web and exported the flow using "Export for CLI" (generated file : "weather_flow.json")

Here is what I did:

flogo create weather_app cd weather_app flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/log flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/rest flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/twilio flogo add trigger github.com/TIBCOSoftware/flogo-contrib/trigger/rest

I updated the bin/triggers.json to configure my rest trigger so far so good. then I tried to add my flow using the generated "weather_flow.json"

flogo add flow weather_flow.json Error: cannot embed 'weather_flow.json', validation of the flow's json failed:

  • model: model is required
  • type: type is required
  • rootTask: rootTask is required

This creates error as you can see above. I don't mind updating manually my flow json file, but I cannot find anywhere a document that describes how to write it ? Did I miss it ?

One side remark: the Readme's sometimes mention the possibility to use Slack to ask questions. But this on a Slack team I don't belong to: 1) either there is a process to join the Slack team, and then this should mentioned 2) or this is a restricted Slack team, and then you should remove this from the Readme's

Thanks, Eric triggers.json.zip https://github.com/TIBCOSoftware/flogo-cli/files/455243/triggers.json.zip weather_flow.json.zip https://github.com/TIBCOSoftware/flogo-cli/files/455242/weather_flow.json.zip

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TIBCOSoftware/flogo-cli/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AQS_fMfz_DW8j15lMx0KkrjMv2pp5tFpks5qnCtDgaJpZM4J1Iki .

ecarlier-tibco commented 8 years ago

Cool ! It works ! :-) Thanks !