elsa-workflows / elsa-workflows/elsa-core

Generator Activities

Open
#2,964 0 comments 1 reaction 0 assignees View on GitHub
activity core triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.