interface WorkableInterface
This interface represents the smallest possible unit that can be worked. Classes that implement this can be processed with the Work Service. These classes will provide tha ability to start and complete work on the workable element.
Note: These methods are normally provided by the WorkStateTrait logic.Constructor and description |
---|
WorkableInterface
() |
Type Params | Return Type | Name and description |
---|---|---|
|
BigDecimal |
completeQty(BigDecimal qty) Completes the given qty at this workable location. |
|
WorkableInterface |
determineNextWorkable() Determines the next workable to be performed after this workable is completed. |
|
void |
queueQty(BigDecimal qty) Queues the given qty at this workable. |
|
BigDecimal |
reverseCompleteQty(BigDecimal qty) Reverses the complete of work on an Order/LSN. |
|
BigDecimal |
reverseStartQty(BigDecimal qty) Reverses the start of work on an Order/LSN. |
|
BigDecimal |
startQty(BigDecimal qty) Starts the given qty at this workable location. |
|
BigDecimal |
startQty(BigDecimal qty, java.util.Date dateTime) Starts the given qty at this workable location. |
|
BigDecimal |
validateCompleteQty(BigDecimal qty) Validates that the given qty can be completed at this workable location. |
|
BigDecimal |
validateStartQty(BigDecimal qty) Validates that the given qty can be started at this workable location. |
Completes the given qty at this workable location. This should move the qty from in work to the next step (if any)
qty
- The quantity to complete. Default: all quantity in workDetermines the next workable to be performed after this workable is completed.
Queues the given qty at this workable.
qty
- The quantity to queue.Reverses the complete of work on an Order/LSN. This moves the done qty back to in queue.
qty
- The quantity to start. Default: all of the done quantityReverses the start of work on an Order/LSN. This moves the in work qty back to in queue.
qty
- The quantity to start. Default: all quantity in workStarts the given qty at this workable location. This should move the qty from in queue to in work.
qty
- The quantity to start. Default: all quantity in queueStarts the given qty at this workable location. This should move the qty from in queue to in work.
qty
- The quantity to start. Default: all quantity in queuedateTime
- The date/time this qty is started (Default: now).Validates that the given qty can be completed at this workable location.
qty
- The quantity to complete. Default: all quantity in workValidates that the given qty can be started at this workable location.
qty
- The quantity to start. Default: all quantity in queue