TIBCOSoftware / flogo-cli

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

flogogen makes trigger code that does not conform to current trigger interfaces. #51

Closed wnichols closed 7 years ago

wnichols commented 7 years ago

Create a trigger: flogogen trigger wcntrigger Attempt to build the new trigger and you get: github.com/wnichols/wcntrigger trigger.go:16: undefined: jsonMetadata

There is no declaration for jsonMetadata. Comment the "init" method out and check the code into github.

make a test flo: flogo create testtrigger flogo build works and creates a rest service as usual. Now install the previously created trigger: flogo install github.com/wnichols/wcntrigger trigger is installed in the vendor folder. flogo build now fails with: _triggermetadata.go:31: undefined: NewFactory github.com/TIBCOSoftware/flogo-contrib/activity/log github.com/TIBCOSoftware/flogo-contrib/action/flow github.com/TIBCOSoftware/flogo-contrib/trigger/rest FATAL: command "build" failed: exit status 2 FATAL: command "build" failed: exit status 1