-
Notifications
You must be signed in to change notification settings - Fork 72
Description
First of all: FlexBe is amazing and I am forever in your debt. Now, on to business.
My Problem
So I have a configuration in which a top-level behavior has several sub-behaviors within it.
Several 'global variables' which are used by these sub-behaviors are determined by the top level behavior.
If these behaviors were instead states, then I would set the global variables in the private configuration of the top-level behavior and use them as parameters to its states.
However, this is a problem with behaviors containing behaviors. There is no way to pass them parameters that I've found outside of the runtime-control gui, while I plan on invoking behaviors as actions.
My Crackpot Theory
In looking at your code, I am wondering if it would be possible to add this feature by modifying the creation() function with an optional dict argument, which could become part of the state machine instance as in private configurations variables.
Then, as the top level state machine is created, you could potentially invoke this creation() with the top-level behavior's private configuration as the optional dict argument.
I assume there are problems with this theory.... But I thought I'd throw it out there anyway
TL;DR
I would love it if there were some way to have sub-behaviors receive or inherit parameters from their parent behavior at the state machine definition stage.