ProTransaction
internal
A Scheduler Pro-specific STM transaction that extends the base Transaction with awareness of the scheduling engine's calculated fields. When the project recalculates after a user edit, both the user input and the engine-computed results are recorded as separate actions in the same transaction.
This class merges and filters those actions so that only user-initiated changes are kept for undo/redo purposes, since calculated values will be automatically recomputed by the engine when a transaction is undone or redone. It also tracks the input generation number to correctly associate user actions with their corresponding calculated results.
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Last generation of the user input actions. Some transactions may contain conflict resolutions or just be a manual transaction, grouping several user actions and project calculations. This number represents the current number of user input stages. Used internally to count and group them.
Has a corresponding runtime inputGeneration property.
-
Transaction title
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ProTransaction class, or subclass thereof.
-
Identifies an object as an instance of ProTransaction class, or subclass thereof.
-
Last generation of the user input actions. Some transactions may contain conflict resolutions or just be a manual transaction, grouping several user actions and project calculations. This number represents the current number of user input stages. Used internally to count and group them.
Has a corresponding inputGeneration config.
-
Gets transaction's actions queue length
-
Gets transaction's actions queue
Functions
Functions are methods available for calling on the class-
Merges all update actions into one per model, keeping the oldest and the newest values
-
redo( ) Transaction
Redoes actions held
-
undo( ) Transaction
Undoes actions held