flogo icon indicating copy to clipboard operation
flogo copied to clipboard

When referencing $property throws an error in the ui

Open mellistibco opened this issue 7 years ago • 1 comments

Current behavior (how does the issue manifest): Applications that reference $property fail to execute when running in the ui. It seems that the property object from the json is not passed to the engine for execution. If I export the app and build via the CLI, it works as expected.

The error in the UI:

expression mapping failed, due to Execution failed for mapping [string.concat("Hello ", $flow.Name, " ", $property[my_property])] due to error - failed to resolve Property: 'my_property', ensure that property is configured in the application

Expected behavior: The application should execute and resolve $property when running via the UI.

Minimal steps to reproduce the problem (not required if feature enhancement): Build an application, add a property object to the app json, import and run in the UI.

Please tell us about your environment (Operating system, docker version, browser & web ui version, etc):

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.5.6

Additional information you deem important (e.g. issue happens only occasionally):

mellistibco avatar Nov 13 '18 10:11 mellistibco

Only the flow is sent to the test runner during execution from the UI but the properties are defined at the app level. We need to know how to send the properties to the engine's test runner and also need to confirm if the flow and state service support properties or if they need to be updated as well.

fcastill avatar Dec 04 '18 23:12 fcastill