phpflo / phpflo

Flow-based programming for PHP
MIT License
217 stars 21 forks source link

Using Metadata #42

Closed ilvalerione closed 5 years ago

ilvalerione commented 5 years ago

Hello, I'm starting to explore flow based programming and I'm really interested to this package for PHP implementation that seams really great.

As mentioned in the phpflo-fbp repo in the schema definition example, when a process is attached to the fbp configuration file a developer can use metadata field to pass some configuration parameters that the component may need to run properly:

'processes' => [ 'ReadFile' => [ 'component' => '', 'metadata' => [ 'label' => '', ], ], ],

In the component development example is not mentioned how to treat metadata injection.

After running some example and exploring the code of this package I think that it doesn't treat the metadata field at the actual state of implementation. It could be an essential feature to give the developer the chance to pass some mandatory configuration to run a task.

Or it works in some way that I don't understand?