You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using the invokeonDone handler to deal with the result of a machine who has entered a final state. I return a data object in those final states. The onDone handler has access to event.data, but waitFor does not. The state object that the waitFor handler has access to includes a configuration array, and I can get at the state data through the first entry in that array, but that smells wrong.
My current use case for this is the need to invoke several machines in parallel and deal with the combined results derived from the final state data. waitFor would be perfect for this except it doesn't have access to this data.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm currently using the
invoke
onDone
handler to deal with the result of a machine who has entered afinal
state. I return adata
object in thosefinal
states. TheonDone
handler has access toevent.data
, butwaitFor
does not. Thestate
object that thewaitFor
handler has access to includes aconfiguration
array, and I can get at the state data through the first entry in that array, but that smells wrong.Simple example:
My current use case for this is the need to invoke several machines in parallel and deal with the combined results derived from the final state data.
waitFor
would be perfect for this except it doesn't have access to this data.Beta Was this translation helpful? Give feedback.
All reactions