All things Project Flogo... Report issues, chat with users & contributors. Join channel project-flogo/developers for project contribution & dev focused conversations.
myValue, ok := ctx.ActivityHost().Scope().GetValue(myPropName)
to get the value of a flow property (which is not explicitly mapped in the UI). It worked fine in the main flow, but it does not work in subflow because myProp
is not in the subflow's scope.
@retgits I updated some of mine to 0.9 ... for example.... Activity: https://github.com/ayh20/flogo-components/tree/master/activity/mqtt .... Trigger: https://github.com/ayh20/flogo-components/tree/master/trigger/udp
No guareentee that they are done well !
func (ti *TaskInst) Host() *TaskInst {
h := ti.flowInst.host
ti.logger.Infof("got host: %+v", h)
if inst, ok := h.(*TaskInst); ok {
return inst
}
return nil
}
ti.Host().ActivityHost().Scope()
. Does this make sense? Is there an API that can achieve this already?
Interesting. If I run flogo create and build in the vs-code debugger it works. So I suspect that the above error is related to my shell environment.
Even though the build worked I had a failure:
Error renaming executable: rename /tmp/flogo004258707/wcntest/bin/wcntest /local/home/wcn00/go/src/github.com/wcn00/wcntest/wcntest: invalid cross-device link
Because /tmp and my working dir are on physically separate filesystems (and devices).
I'm running linux.