TROPER Element (Operation)
- Last UpdatedFeb 15, 2023
- 2 minute read
The TROPER element stores the information about an operation to be executed by the daemon. The information includes the state of processing of the operation and is sufficient for the operation to execute when a daemon is restarted.
Operations are generated by an input command when operations and output commands are created.
Attributes:
|
NAME |
text |
Not automatically generated. |
|
OPTYPE |
text |
Operation type. |
|
OPSTAT |
int |
State of processing of the TROPER. Note: |
|
DEPCOU |
int |
Number of other TROPERs and TROUCOs on which this is dependent. |
|
DEPEND[*] |
ref |
References of TROPERs and TROUCOs on which it is dependent. |
|
DEPTYP[*] |
log |
Type of dependencies - on success or failure. |
|
PREOP |
ref |
Reference of previous operation which generated this output command as one of its post operations. In none then null. |
|
DATECR |
date |
Date operation created by owning input command. |
|
DATERD |
date |
Date operation is ready to execute after dependencies satisfied. |
|
DATERN |
date |
Date operation was started running (executing). |
|
NRETRY |
int |
Number of attempts to start operation running. |
|
MAXTRY |
int |
Maximum number of retries allowed before failure. |
|
WAITIM |
int |
Number of seconds delay between attempts at executing. |
|
ENDTIM |
date |
Date when operation will fail if execution remains stalled. |
|
DATESL |
date |
Date operation stalled during execution. |
|
DATECM |
date |
Date execution completed. |
|
MSTEXT |
text |
Text info set on completion. |
|
TRPASS |
log |
true if operation succeeded, false if failed. |
|
POPCOD |
int |
Code for post operation creation function to be run. If none then zero. |
|
DATEND |
date |
Date all processing of operation finished, all post operations generated, or command cancelled, or command timed out. |
|
USERST |
text |
User cancelling the TROUCO ‑ may not be implemented. |
|
TRVISI |
log |
Visible or not. |
|
DESC[256] |
text |
User description. |
|
TRTYPE |
Returns COMMType attribute if set, otherwise OPTYPE attribute is returned. |
Values of OPSTAT State Attribute and Order of Change:
|
WAIT |
The operation is waiting until it is independent of any other operation/command. DATECR is set. |
|
READY |
The operation is independent and ready to execute. DATERD is set. |
|
STALLED |
The operation could not be executed. State will later return to READY (ready for retry), or to TIMEDOUT. DATESL is set. |
|
RUNNING |
The command has started running. DATERN is set, NRETRY is incremented. |
|
COMPLETE |
A reply acknowledgement has been returned to the executing Location. DATECM, TRPASS, MSTEXT are set. |
|
STALLED_POSTOP |
Post operations could not be created. State will later return to COMPLETE ready for retry, or to TIMEDOUT. |
|
PROCESSED |
Any required post operations have been generated using the result of this command. DATEND is set. |
|
REDUNDANT |
The command will not be executed now due to dependency rules. DATEND is set. |
|
CANCELLED |
The command has been cancelled by owning TRINCO by a User. DATEND is set. |
|
TIMEDOUT |
The command has had the number of sends exhausted, or maximum time exceeded. DATEND is set. |
|
TSTATE |
Pseudo-attribute, a simplified view of the INCSTAtus attribute or a synonym for COMMType or OPTYPE attributes. |