@groovy.util.logging.Slf4j @groovy.lang.Singleton class ResolveService extends java.lang.Object
This service provided methods to resolve identifiers into workable objects in SimpleMES. This includes methods to find the appropriate workable unit and to find an order/LSN from a single ID.
See the User Guide for details on this service.Constructor and description |
---|
ResolveService
() |
Type Params | Return Type | Name and description |
---|---|---|
|
LSN |
determineLSNForWorkable(WorkableInterface w) Utility method to determine the LSN for a given workable. |
|
Order |
determineOrderForWorkable(WorkableInterface w) Utility method to determine the order for a given workable. |
|
void |
fixLSN(java.lang.Object request) Fixes the LSN/Order combination for the given object. |
|
ResolveIDResponse |
resolveID(ResolveIDRequest request) Given a barcode-style input, this will resolve the given ID into a unique MES object. |
|
void |
resolveProductionRequest(java.lang.Object request, ResolveQuantityPreference qtyPreference) Fills in the details need for most production requests. |
|
WorkableInterface[] |
resolveWorkable(ResolveWorkableRequest request) Determines the right level to process a given order and/or 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() |
Utility method to determine the LSN for a given workable.
w
- The workable.Utility method to determine the order for a given workable.
w
- The workable.Fixes the LSN/Order combination for the given object. This method is designed to fix mis-matches caused by the the framework
request
- The request containing the LSN and Order to check and resolve.Given a barcode-style input, this will resolve the given ID into a unique MES object. It searches for objects in a prioritized order (e.g. LSN, then Order, etc...) until it finds a match. The context values are used to narrow down the results in some cases.
request
- The request containing the ID and context to resolve.Fills in the details need for most production requests. This attempts to use the given input and fill in the details such as operationSequence from the current records available.
request
- The request to resolve.qtyPreference
- The resolve preference the caller needs. (Default: ResolvePreference.QUEUE_OR_WORK)Determines the right level to process a given order and/or LSN. This is based on the Product settings and the current state of this order. This finds where the in work, in queue and other quantities are handled for these cases.
request
- The request to resolve.