@groovy.util.logging.Slf4j @groovy.lang.Singleton class WorkListService extends java.lang.Object
Defines Services for list work that is available (in queue) or in work. Can be restricted to work in a work center or global. This can show Orders and/or LSNs.
This Service is part of the Stable API.Type | Name and description |
---|---|
private static java.lang.String |
standardWorkStateColumns The comma-delimited list of columns for all 4 queries. |
Constructor and description |
---|
WorkListService
() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object[] |
buildQueryParameters(FindWorkRequest findWorkRequest, java.lang.Boolean needCount) Builds a list of parameters for the find work request. |
|
java.lang.String |
buildStandardColumns() Builds the standard columns for work queries. |
|
java.lang.String |
buildWhereClause(FindWorkRequest findWorkRequest, java.lang.String likeColumnName) Builds the where clause based on the given filter criteria. |
|
FindWorkResponse |
findWork(FindWorkRequest findWorkRequest) Finds the active/queued work available based on the request restrictions. |
|
protected java.util.List |
findWorkDetails(java.lang.Class domainClass, FindWorkRequest findWorkRequest) Internal method to find the work for a single object. |
|
protected java.util.List |
findWorkInternal(java.lang.Class domainClass, FindWorkRequest findWorkRequest, boolean needCount) Internal method to find the work records or a count. |
|
protected int |
findWorkTotalCount(java.lang.Class domainClass, FindWorkRequest findWorkRequest) Internal method to find the total number of work records available for a single object. |
|
protected java.util.List |
findWorkWithSQLForLSN(FindWorkRequest findWorkRequest, boolean needCount) Internal method to find the work for LSNs without routing. |
|
protected java.util.List |
findWorkWithSQLForLSNRouting(FindWorkRequest findWorkRequest, boolean needCount) Internal method to find the work for LSNs without routing. |
|
protected java.util.List |
findWorkWithSQLForOrder(FindWorkRequest findWorkRequest, boolean needCount) Internal method to find the work for Orders without routing. |
|
protected java.util.List |
findWorkWithSQLForOrderRouting(FindWorkRequest findWorkRequest, boolean needCount) Internal method to find the work for Orders with routing. |
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 comma-delimited list of columns for all 4 queries.
Builds a list of parameters for the find work request. Adds filter and row count limits (if needed).
findWorkRequest
- The request.needCount
- Set to true for count(*) variant (Default: false).Builds the standard columns for work queries.
Builds the where clause based on the given filter criteria.
findWorkRequest
- The request with filter criteria.likeColumnName
- The name of the like column (if needed for the filter option).Finds the active/queued work available based on the request restrictions.
findWorkRequest
- Defines the request restrictions for the search. Null allowed.Internal method to find the work for a single object.
domainClass
- The class to search for work.findWorkRequest
- Defines the request restrictions for the search.Internal method to find the work records or a count.
domainClass
- The class to search for work.findWorkRequest
- Defines the request restrictions for the search.needCount
- If true, then returns a list for the count (element 0).Internal method to find the total number of work records available for a single object.
domainClass
- The class to search for work.findWorkRequest
- Defines the request restrictions for the search.Internal method to find the work for LSNs without routing. Builds a dynamic SQL query for the right filter and tables.
findWorkRequest
- Defines the request restrictions for the search.needCount
- Set to true for count(*) variant (Default: false).Internal method to find the work for LSNs without routing. Builds a dynamic SQL query for the right filter and tables.
findWorkRequest
- Defines the request restrictions for the search.needCount
- Set to true for count(*) variant (Default: false).Internal method to find the work for Orders without routing. Builds a dynamic SQL query for the right filter and tables.
findWorkRequest
- Defines the request restrictions for the search.needCount
- Set to true for count(*) variant (Default: false).Internal method to find the work for Orders with routing. Builds a dynamic SQL query for the right filter and tables.
findWorkRequest
- Defines the request restrictions for the search.needCount
- Set to true for count(*) variant (Default: false).Groovy Documentation