Step class
Represents an abstract step in a sequence managed by the Trotsky framework.
Signature:
export declare abstract class Step<P = StepBuilder, C = unknown, O = unknown> extends StepBuilder
Extends: StepBuilder
Constructors
Constructor | Modifiers | Description |
---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
C | Retrieves or sets the current context. | ||
| boolean | Checks if this instance is part of a StepBuilderList. | |
| boolean | ||
O | null | Retrieves or sets the current output. |
Methods
Method | Modifiers | Description |
---|---|---|
| Abstract method that must be implemented by subclasses to define the behavior of the step. | |
Retrieves the parent object of this instance. | ||
Clones the current step and returns a new instance with the same parameters. | ||
Retreive the configuration value for a given key on the current step or inherite the value from the parent step. | ||
Updates the configuration value for a given key on the current step. | ||
Updates the configuration object on the current step. | ||
Ends the sequence of steps. | ||
Runs all steps in the sequence and returns the current Step instance. | ||
Adds a StepSave step. | ||
Adds a StepTap step. | ||
Adds a StepWait step. | ||
Adds a StepWhen step. | ||
Sets the context. | ||
Sets the output. | ||
Sets the parent. |