Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flows #7

Closed
PetrosPapapa opened this issue Jul 14, 2020 · 1 comment · Fixed by #14
Closed

Flows #7

PetrosPapapa opened this issue Jul 14, 2020 · 1 comment · Fixed by #14
Labels
feature New feature or request

Comments

@PetrosPapapa
Copy link
Member

PetrosPapapa commented Jul 14, 2020

It would be nice to have a mechanism to create multi-task simulations. This can be a simple language to compose TaskGenerators inspired by BPMN gateways.

It could include:

  • Then for sequence
  • And for parallel
  • All for multiple parallel tasks
  • Or for inclusive or (run both events, proceed when either completes)
  • Cond for selection based on a given condition (but what would that condition be? is there a use case for this?)
  • NoTask or similar for doing nothing
  • Wait for another simulation??!

It should be easy to compose the futures returned from SimulationActor.task().

We might need an implicit conversion from TaskGenerator to Flow. The hard part is making sure we run ready() at the right time(s).

We should subclass a FlowSimulationActor.

Everything should go under a new com.workflowfm.simulator.flows package.

@PetrosPapapa PetrosPapapa added the feature New feature or request label Jul 14, 2020
@PetrosPapapa PetrosPapapa changed the title Gateways / Flows Flows Jul 15, 2020
@PetrosPapapa
Copy link
Member Author

PetrosPapapa commented Jul 16, 2020

Maybe conditions can be of this type: (Task, Long) => Boolean

But what if your Cond is the very first thing happening?

This was referenced Jul 30, 2020
@MBaczun MBaczun mentioned this issue Aug 3, 2020
@MBaczun MBaczun linked a pull request Aug 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant