Start and end job commands
- Last UpdatedNov 04, 2024
- 1 minute read
The Start Job and End Job commands are used to trigger a change in the job running on the entity.
-
To start a job, first set all the desired production attributes as needed to define the job and then trigger the Start Job command.
-
To end a job, trigger the End Job command (no production attributes are needed). All jobs running on the entity will be stopped.
The trigger attribute will stay True until the transaction is complete, at which time it will go False and you can set it again. If there are errors with one of the production attributes, or if there are errors while processing the transaction, or if none of the values have changed since the last transaction, an error will appear in the ProdAttrs.ErrorCode attribute and the transaction will not be completed.
In the event of an error, the trigger attribute will stay True and no other commands will be allowed. The object status will change to Error and the error code and error message attributes will be updated with the error information.