stavalfi / jstream

Represent graphs, differently https://stavalfi.github.io/jstream/
2 stars 0 forks source link

What parameters should we pass to every function? #12

Open stavalfi opened 5 years ago

stavalfi commented 5 years ago

Currently, we pass the workflow-is which is absolutely useless because the user doesn't have a way to retrieve our state.

To better understand what is the best solution for this problem, first, if there is anything that the user can't do unless we provide him with some extra functionality.

What I thought so far:

solutions:

stavalfi commented 5 years ago

Solution:

we pass the following params to the user flow function:

  1. workflow-Id (will be used a transaction-id).
  2. a set of operations to analyze the lib state.
  3. the custom params that the client passed when he started that workflow.