@groovy.util.logging.Slf4j @groovy.lang.Singleton class ProductionLogService extends java.lang.Object
This service provided methods to log production activity for long-term tracking. This works with the ProductionLOg domain object to record the important shop floor activity. This log is typically used for production and yield reports.
Constructor and description |
---|
ProductionLogService
() |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.List<java.lang.String> |
archiveOld(ProductionLogArchiveRequest request) Archives/deletes old records, using the given configuration. |
|
void |
log(ProductionLogRequest request) Logs a given production event. |
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() |
Archives/deletes old records, using the given configuration.
Note: This method creates new transactions when archiving each batch of records. If called from within an existing transaction, then no new transactions will be created.
request
- The configuration to use for this archive run.Logs a given production event.
request
- The request to log.