@groovy.util.logging.Slf4j @javax.transaction.Transactional class WorkService extends java.lang.Object
Defines Services for the starting and completing work on Orders and LSNs.
This service is tightly coupled with the Order object. Most of the real business logic used to move production around the shop floor is contained here. This Service is part of the Stable API.Modifiers | Name | Description |
---|---|---|
static java.lang.String |
ACTION_COMPLETE |
The ActionLog entry used for complete work requests. |
static java.lang.String |
ACTION_REVERSE_COMPLETE |
The ActionLog ActionLog entry used for reverse complete work requests. |
static java.lang.String |
ACTION_REVERSE_START |
The ActionLog ActionLog entry used for reverse start work requests. |
static java.lang.String |
ACTION_START |
The ActionLog ActionLog entry used for start work requests. |
Type | Name and description |
---|---|
private ProductionLogService |
productionLogService |
private ResolveService |
resolveService |
Constructor and description |
---|
WorkService
() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.List<CompleteResponse> |
complete(CompleteRequest request) Complete work on an Order/LSN. |
|
java.util.List<CompleteResponse> |
reverseComplete(CompleteRequest request) Reverses the complete of work on an Order/LSN. |
|
java.util.List<StartResponse> |
reverseStart(StartRequest request) Reverses the start of work on an Order/LSN. |
|
java.util.List<StartResponse> |
start(StartRequest request) Begin work on an Order/LSN. |
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 ActionLog entry used for complete work requests.
The ActionLog ActionLog entry used for reverse complete work requests.
The ActionLog ActionLog entry used for reverse start work requests.
The ActionLog ActionLog entry used for start work requests.
Complete work on an Order/LSN. The quantity processed is optional. Below is a typical usage:
WorkService workService // Allow automatic injection of WorkService void complete() {* def request = new CompleteRequest() request.qty = 3.0 request.order = Order.findByOrder('M001') Order results = workService.complete(request) }
request
- The complete request data itself. This request is refined by the method
ResolveService.resolveProductionRequest.Reverses the complete of work on an Order/LSN. The quantity processed is optional. This moves the done qty back to in queue. No undo actions are supported for this.
request
- The complete request data itself. This request is refined by the method
ResolveService.resolveProductionRequest.Reverses the start of work on an Order/LSN. The quantity processed is optional. This moves the in work qty back to in queue. No undo actions are supported for this.
request
- The start request data itself. This request is refined by the method
ResolveService.resolveProductionRequest.Begin work on an Order/LSN. The quantity processed is optional. Below is a typical usage:
WorkService workService // Allow automatic injection of WorkService def request = new StartRequest() request.qty = 3.0 request.order = Order.findByOrder('M001') workService.start(request)
request
- The start request data itself. This request is refined by the method
ResolveService.resolveProductionRequest.Groovy Documentation