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

Generator Activities #2964

Open
sfmskywalker opened this issue Apr 25, 2022 · 0 comments
Open

Generator Activities #2964

sfmskywalker opened this issue Apr 25, 2022 · 0 comments
Labels
activity This issue relates to a workflows activity core This issue relates to the core library

Comments

@sfmskywalker
Copy link
Member

sfmskywalker commented Apr 25, 2022

A generator is a kind of activity that generates events within an existing workflow instance, even when this activity is not scheduled.

An example of a generator is the Timer activity.
In Elsa 2, the Timer activity will tick only once when used as a blocking activity.

In Elsa 3, the Timer activity will invoke the workflow periodically until the workflow is explicitly transitioned into the Finished state or the activity is deactivated.

Hot vs Cold

By default, generators are "hot". The user should be able to change its initial state as "cold", which means it will become "hot" only once workflow execution enters the generator for the first time (or when marked hot programmatically or via some activity).

When "hot", the generator will continuously (depending on the nature of the generator) generate events / execute the workflow instance, until the generator is deactivated (turning it "cold" again). Or, as mentioned, when the workflow is explicitly completed (e.g. using the Finish activity.

@sfmskywalker sfmskywalker added core This issue relates to the core library activity This issue relates to a workflows activity labels Apr 28, 2022
@sfmskywalker sfmskywalker moved this to Todo in ELSA 3 Apr 28, 2022
@sfmskywalker sfmskywalker removed the status in ELSA 3 May 24, 2022
@sfmskywalker sfmskywalker mentioned this issue Aug 1, 2022
56 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
activity This issue relates to a workflows activity core This issue relates to the core library
Projects
Status: No status
Development

No branches or pull requests

1 participant