TIBCOSoftware / flogo

Project Flogo is an open source ecosystem of opinionated event-driven capabilities to simplify building efficient & modern serverless functions, microservices & edge apps.
http://flogo.io
BSD 3-Clause "New" or "Revised" License
2.41k stars 288 forks source link

When referencing $property throws an error in the ui #435

Open mellistibco opened 5 years ago

mellistibco commented 5 years ago

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):

fcastill commented 5 years ago

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.