public class ReorderCron extends SimpleCronTask
Constructor and Description |
---|
ReorderCron()
Creates a new instance of ReorderCron
|
Modifier and Type | Method and Description |
---|---|
void |
cronAction()
The action method of the cron task.
|
java.lang.String[] |
getDirectIssueSites()
This method returns an string array of the sites which the reorder for direct issue items
is requested.
|
java.lang.String |
getFromEmail()
This method returns the email address where the result email will be send from.
|
boolean |
getInoreReorderPoint()
This method returns a boolean value indicating if reorder point will be ignored in the
reorder process.
|
int |
getLeadTime()
This method returns the leadtime for the reorder process.
|
java.lang.String |
getLogFilePath()
This method returns the complete path of the log file.
|
CrontaskParamInfo[] |
getParameters()
This method provides an array of CrontaskParamInfo() object to describe
all the parameters of the crontask.
|
MboRemote |
getParameterValidationMbo(CrontaskInstanceRemote instance)
Returns the validation mbo for the crontask parameter
|
java.lang.String[][] |
getStoreRoomList()
This method returns a array of all storeroom list needs to reorder.
|
java.lang.String |
getToEmail()
This method returns the email address the result of the reorder will be send to.
|
boolean |
getUseAgreement()
This method returns a boolean value to indicate whther agreement will be considered during
the process of reorder.
|
void |
readConfig()
Read in the configuration information from mxserver.properties.
|
void |
start()
Initialize the crontask, read in the configuration data and prepare a UserInfo object.
|
beforeRemoval, getCronTaskHistoryMsg, getCrontaskInstance, getCronTaskLogger, getCronTaskSqlLogger, getDBLastSeed, getEnteredValueVector, getInterval, getIntervalFlag, getLastRunDate, getLastSeed, getName, getParamAsBoolean, getParamAsDate, getParamAsDouble, getParamAsInt, getParamAsString, getParameter, getParameterValidationMbo, getRunasUserInfo, getSleepTime, init, isOKToRun, isShutdown, setCronTaskHistoryMsg, setCrontaskInstance, setDBLastSeed, setEnteredValueVector, setInterval, setIntervalFlag, setLastRunDate, setLastSeed, setSleepTime, shutdown, stop
public java.lang.String[][] getStoreRoomList()
public java.lang.String[] getDirectIssueSites()
public int getLeadTime()
public boolean getUseAgreement()
public java.lang.String getToEmail()
public java.lang.String getFromEmail()
public java.lang.String getLogFilePath()
public boolean getInoreReorderPoint()
public void start()
start
in interface CronTask
start
in class SimpleCronTask
CronTask.stop()
,
startup()
public void readConfig() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void cronAction()
cronAction
in interface CronTask
cronAction
in class SimpleCronTask
public CrontaskParamInfo[] getParameters() throws MXException, java.rmi.RemoteException
CronTask
getParameters
in interface CronTask
getParameters
in class SimpleCronTask
MXException
java.rmi.RemoteException
CrontaskParamInfo
public MboRemote getParameterValidationMbo(CrontaskInstanceRemote instance) throws MXException, java.rmi.RemoteException
getParameterValidationMbo
in interface CronTask
getParameterValidationMbo
in class SimpleCronTask
MXException
java.rmi.RemoteException
CronTask.getParameterValidationMbo(CrontaskInstanceRemote)