Preserve Workflow Definition Snapshot in Workflow Instances to Ensure Execution Consistency · Issue #6627 · elsa-workflows/elsa-core · GitHub
More Web Proxy on the site http://driver.im/
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
When executing a workflow definition, the resulting workflow instance reflects live changes made to the workflow definition, even after execution. For example, if a workflow definition initially has 3 activities and a workflow instance is created from it, then later a 4th activity is added to the definition, the previously created instance (which should remain immutable) also reflects the 4th activity. This results in inconsistencies, as the workflow instance does not preserve the graph it originally executed.
Proposed Enhancement
Describe the enhancement you'd like
Workflow instances should retain a snapshot of the workflow definition graph at the time of execution. Once a workflow instance is created and execution has begun (or completed), any subsequent modifications to the definition should not impact existing instances.
We also need to consider that when using ScheduleChildActivity, the workflow execution context should resolve and execute based on the persisted graph of the workflow instance, not the latest definition. This would guarantee that child workflows maintain logical consistency and behave as expected even if the parent definition has changed.
Solutions
Replicate column StringData from the workflow definition table to the workflow instance when executing the workflow
The input, output, and variable also need to be replicated.
The text was updated successfully, but these errors were encountered:
Enhancement Request
Enhancement Overview
When executing a workflow definition, the resulting workflow instance reflects live changes made to the workflow definition, even after execution. For example, if a workflow definition initially has 3 activities and a workflow instance is created from it, then later a 4th activity is added to the definition, the previously created instance (which should remain immutable) also reflects the 4th activity. This results in inconsistencies, as the workflow instance does not preserve the graph it originally executed.
Proposed Enhancement
Describe the enhancement you'd like
Workflow instances should retain a snapshot of the workflow definition graph at the time of execution. Once a workflow instance is created and execution has begun (or completed), any subsequent modifications to the definition should not impact existing instances.
We also need to consider that when using ScheduleChildActivity, the workflow execution context should resolve and execute based on the persisted graph of the workflow instance, not the latest definition. This would guarantee that child workflows maintain logical consistency and behave as expected even if the parent definition has changed.
Solutions
Replicate column StringData from the workflow definition table to the workflow instance when executing the workflow
The input, output, and variable also need to be replicated.
The text was updated successfully, but these errors were encountered: