we are using a generic service dialog to trigger a state machine. However, we are assembling some hashes with the help of user input which needs to be transferred to the state machine.
There are several approaches and we didn’t get one of it working by now:
- Saving the data in a hidden service dialog field. Problem here is that we gather some data with a dynamic dialog field which returns some results back to the user but there is additional data that cannot be presented to the user and would require an additional dialog field. But how do we save data in another dialog field is it possible?
- Saving the data somewhere in $evm space. Is there some place in $evm like $evm.root[‘cache’] or something else where I can put some data to read it later on from state machine?
- Saving data to the filesystem. We could serialise the data to json and save it on the filesystem. We did not test this option by now.
What do you think about the approaches? Is there a better way that we didn’t think of?