public class WOMaterialStatusUpdateCronTask extends SimpleCronTask
| Constructor and Description |
|---|
WOMaterialStatusUpdateCronTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
cronAction()
This is the CORE METHOD of this class.
|
MboRemote |
parentMbo(java.lang.String wonum,
java.lang.String site)
This method fetches the Parent Work Order into a set of its own.
|
void |
refreshWorkPackHierarchy(WORemote mbo)
Update the Parents Work Pack Status up the hierarchy.
|
void |
updateWOStatus()
Updates the material status fields (Storeroom, Direct Issue and Work Pack) based on the following conditions:
1. |
beforeRemoval, getCronTaskHistoryMsg, getCrontaskInstance, getCronTaskLogger, getCronTaskSqlLogger, getDBLastSeed, getEnteredValueVector, getInterval, getIntervalFlag, getLastRunDate, getLastSeed, getName, getParamAsBoolean, getParamAsDate, getParamAsDouble, getParamAsInt, getParamAsString, getParameter, getParameters, getParameterValidationMbo, getParameterValidationMbo, getRunasUserInfo, getSleepTime, init, isOKToRun, isShutdown, setCronTaskHistoryMsg, setCrontaskInstance, setDBLastSeed, setEnteredValueVector, setInterval, setIntervalFlag, setLastRunDate, setLastSeed, setSleepTime, shutdown, start, stoppublic void cronAction()
SimpleCronTaskcronAction in interface CronTaskcronAction in class SimpleCronTaskpublic void updateWOStatus()
throws java.lang.Exception
java.lang.Exceptionpublic void refreshWorkPackHierarchy(WORemote mbo) throws java.rmi.RemoteException, MXException
mbo - java.rmi.RemoteExceptionMXExceptionpublic MboRemote parentMbo(java.lang.String wonum, java.lang.String site) throws java.rmi.RemoteException, MXException
wonum - Parent record to be fetched.java.rmi.RemoteExceptionMXException