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, stop
public void cronAction()
SimpleCronTask
cronAction
in interface CronTask
cronAction
in class SimpleCronTask
public void updateWOStatus() throws java.lang.Exception
java.lang.Exception
public void refreshWorkPackHierarchy(WORemote mbo) throws java.rmi.RemoteException, MXException
mbo
- java.rmi.RemoteException
MXException
public MboRemote parentMbo(java.lang.String wonum, java.lang.String site) throws java.rmi.RemoteException, MXException
wonum
- Parent record to be fetched.java.rmi.RemoteException
MXException