Sepasoft MES Module Suite
system.mes.batch.queue.changeActiveStep(batchQueueEntry, path, [changedBy])
Method on Ignition.mes.batch.queue for 3.81.12 RC3 and later.
Below:
- Function Name
- Summary
- Syntax
- Parameters
- Returns
- Code
- Result
- Notes
- Common Errors
- Related Functions
- Category Functions
- Batch Queue, Execution functions.
- Version
- Permissions / Scope
Related Topics: <link to related component(s)>
Function Name
Summary
This function changes the active execution of a step to a different valid step in the recipe. The batch must be actively running, the specified step's associated logic (e.g. Procedure, Unit Procedure, or Operation) must be in Manual mode, and the currently active step must be in a terminal state (e.g. idle, complete, aborted, or stopped).
Syntax
Python |
changeActiveStep( batchQueueEntry: BatchQueueEntry path: String changedBy: String = None ) |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
batchQueueEntry | batch object | Yes | batchQueueEntry |
path | String | Yes | The full path to the step which should be made an active step. The format of the path must follow the /Procedure/Unit_Procedure/Operation:Step pattern. The "{}" can be used in place of the Procedure. Example: /{}:Step, /{}/Unit_Procedure:Step, or /{}/Unit_Procedure/Operation:Step |
changedBy | String | Optional | Optional string value to associate with the change. If not specified, "Script" will be used. Default: |
Returns
| Type | Description |
|---|---|
No return value. | No return value. |
Example
Code
bq =
Result
Batch execution change. No return value.
Notes
Important behaviors, limitations, or rules.
Examples:
-
Case sensitive.
-
Null values return empty string.
-
Does not modify the original variable.
Common Errors
| Error | Cause | Solution |
|---|---|---|
| Invalid parameter type | Parameter must be a string | Convert value before calling function |
Related Functions
Category Functions
Batch Queue, Execution functions.
Version
Active Step | Skip Step is available in 3.81.12 RC3 and later.
Permissions / Scope
If the function only works in certain contexts.
Sepasoft MES Module Suite