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?