@io.micronaut.data.annotation.MappedEntity @org.simplemes.eframe.domain.annotation.DomainEntity @java.lang.SuppressWarnings(value: unused) @groovy.transform.EqualsAndHashCode(includes: [order, sequence]) class OrderOperState extends java.lang.Object implements WorkStateTrait, WorkableInterface
This object holds the work state of an operation for an order. This domain uses the WorkStateTrait to provide most of the logic and fields needed.
This WorkStateTrait contains the quantities in queue, work and done. This object also implements the WorkableInterface to encapsulate the process of working on various objects.Type | Name and description |
---|---|
private java.util.Date |
dateCreated |
private java.util.Date |
dateFirstQueued The date/time any quantity was first queued at this point (operation or top-level). |
private java.util.Date |
dateFirstStarted The date/time any quantity was first started at this point (operation or top-level). |
private java.util.Date |
dateQtyQueued The date/time any quantity was queued at this point (operation or top-level). |
private java.util.Date |
dateQtyStarted The date/time any quantity was started at this point (operation or top-level). |
private java.util.Date |
dateUpdated |
private java.lang.String |
fields The custom field holder. |
private Order |
order This operation state always belongs to a single Order. |
private BigDecimal |
qtyDone The number of pieces to completed (done) on this object. |
private BigDecimal |
qtyInQueue The number of pieces waiting to be worked (in queue) for this object. |
private BigDecimal |
qtyInWork The number of pieces actively in work for this object. |
private int |
sequence A copy of the sequence for the operation this state applies to. |
private java.util.UUID |
uuid |
Constructor and description |
---|
OrderOperState
() The empty constructor. |
OrderOperState
(OperationTrait operation) A copy constructor to copy the operation info from another operation. |
OrderOperState
() |
Type Params | Return Type | Name and description |
---|---|---|
|
WorkableInterface |
determineNextWorkable() Determines the next workable to be performed after this workable is completed. |
|
void |
saveChanges() Saves any changes to this record. |
|
java.lang.String |
toString() Provides a human readable string for this object. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The date/time any quantity was first queued at this point (operation or top-level).
WorkStateTrait field.The date/time any quantity was first started at this point (operation or top-level).
WorkStateTrait field.The date/time any quantity was queued at this point (operation or top-level). Can be null if the nothing is in queue.
WorkStateTrait field.The date/time any quantity was started at this point (operation or top-level). Can be null if the nothing is in work.
WorkStateTrait field.The custom field holder.
This operation state always belongs to a single Order.
The number of pieces to completed (done) on this object.
WorkStateTrait field.The number of pieces waiting to be worked (in queue) for this object.
WorkStateTrait field.The number of pieces actively in work for this object.
WorkStateTrait field.A copy of the sequence for the operation this state applies to.
The empty constructor.
A copy constructor to copy the operation info from another operation.
operation
- The routing to copy from.Determines the next workable to be performed after this workable is completed. This operation state delegates to the order/routing to figure this out.
Saves any changes to this record.
Provides a human readable string for this object.
Groovy Documentation