public class ExecuteObject extends XMLRequest
| Constructor and Description |
|---|
ExecuteObject(UC4ObjectName name)
Constructs a
ExecuteObject using the specified object name. |
| Modifier and Type | Method and Description |
|---|---|
void |
allowImmediateStart(boolean flag)
This method can be used to set the behaviour in case the start time lies in the past.
|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
void |
executeFirstTimeTask()
This method will set the startImmediate to Zero.
|
void |
executeOnce(DateTime startDate,
DateTime logicalDate,
UC4TimezoneName tz,
boolean waitForManualRelease,
ExecuteTestOptions options)
Executes a task only once.
|
void |
executeOnce(DateTime startDate,
DateTime logicalDate,
UC4TimezoneName tz,
boolean waitForManualRelease,
ExecuteTestOptions options,
UC4ObjectName queue)
Executes a task only once.
|
void |
executeOnce(DateTime startDate,
DateTime logicalDate,
UC4TimezoneName tz,
boolean waitForManualRelease,
ExecuteTestOptions options,
UC4ObjectName queue,
UC4Alias aliasName)
Executes a task only once.
|
void |
executeRecurring(ExecuteRecurring recurring)
Executes a task in a defined period.
|
java.lang.String |
getMessageInsert()
This method returns a message insert for the message number returned by
getMessageNumber. |
int |
getMessageNumber()
This method returns a message number in case that the execution failed.
|
java.lang.String |
getMessageText()
Returns the error message translated in the language of the user.
|
ExecuteRecurring |
getRecurringDefinition()
Returns the settings of the periodic task.
|
int |
getRunID()
Returns the RunID of this request.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
boolean |
isDirectStart()
Returns the execution mode.
|
boolean |
isExecuteOnce()
Returns the execution mode.
|
boolean |
isExecuteReccuring()
Returns
true if this is a recurring execution. |
void |
putPromptBuffer(java.lang.String variable,
java.lang.String value)
Puts the name and content of a script variable to the input buffer.
|
void |
putPromptBuffer(java.lang.String variable,
java.lang.String[] array)
Puts the name and content of a script array to the input buffer.
|
protected void |
setDebug(boolean debug)
Enables debugging, subclasses may override.
|
void |
setInstanceParameter(java.lang.String name,
java.lang.String value)
This method can be used to set additional parameters which are shown in the details of the task.
|
void |
setWaitForManualRelease(boolean flag)
Waits for manual release, this method only works if executeOnce is selected.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, isAllowedInClientZero, send, setMessageBox, showQuarantineNotificationpublic ExecuteObject(UC4ObjectName name)
ExecuteObject using the specified object name.
The method Connection#sendRequest has to be used if this
object needs interactive input (Form).
In this case Connection#sendRequestAndWait would block infinitely.name - name of the UC4 object.public void setInstanceParameter(java.lang.String name,
java.lang.String value)
name - Name of the detail value; max 200 charactersvalue - Value, null is not allowedpublic void putPromptBuffer(java.lang.String variable,
java.lang.String value)
variable - Variable name without &value - Valuepublic void putPromptBuffer(java.lang.String variable,
java.lang.String[] array)
variable - Variable name without &, for example CHECKGROUP1#array - Content of the variableprotected java.lang.String getSrc()
XMLRequestgetSrc in class XMLRequestpublic void executeOnce(DateTime startDate, DateTime logicalDate, UC4TimezoneName tz, boolean waitForManualRelease, ExecuteTestOptions options)
IllegalStateException is thrown if startDate is set
(not null) and waitForManualRelease is true.
The task is executed using the CLIENT_QUEUE.startDate - Start date and time or null if the task should start immediately.logicalDate - Start date and time of the logical start date or null if not used.tz - Timezone or null if not usedwaitForManualRelease - specifies if the task should wait for manual releaseoptions - Testoptions or null if not usedpublic void setWaitForManualRelease(boolean flag)
flag - Option to wait for a manual release, true=wait, false=start immediatelypublic ExecuteRecurring getRecurringDefinition()
protected void setDebug(boolean debug)
debug - true if debug should be enabledpublic void executeOnce(DateTime startDate, DateTime logicalDate, UC4TimezoneName tz, boolean waitForManualRelease, ExecuteTestOptions options, UC4ObjectName queue)
IllegalStateException is thrown if startDate is set
(not null) and waitForManualRelease is true.startDate - Start date and time or null if the task should start immediately.logicalDate - Start date and time of the logical start date or null if not used.tz - Timezone or null if not usedwaitForManualRelease - specifies if the task should wait for manual releaseoptions - Testoptions or null if not usedqueue - Queue which should be usedpublic void executeOnce(DateTime startDate, DateTime logicalDate, UC4TimezoneName tz, boolean waitForManualRelease, ExecuteTestOptions options, UC4ObjectName queue, UC4Alias aliasName)
IllegalStateException is thrown if startDate is set
(not null) and waitForManualRelease is true.startDate - Start date and time or null if the task should start immediately.logicalDate - Start date and time of the logical start date or null if not used.tz - Timezone or null if not usedwaitForManualRelease - specifies if the task should wait for manual releaseoptions - Testoptions or null if not usedqueue - Queue which should be usedaliasName - Aliaspublic void executeRecurring(ExecuteRecurring recurring)
recurring - Settingspublic boolean isDirectStart()
true if the execution is not recurring or execute once otherwise falsepublic boolean isExecuteOnce()
true if execution mode is execute once otherwise falsepublic void allowImmediateStart(boolean flag)
true for compatibility reasons.flag - true if an UC4 Object should be allowed to start immediately, false if not.protected void createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
XMLRequestcreateRequest in class XMLRequestdoc - Document, used to create new Elementsrequest - Request Element - classes append information to this request elementsessionInfo - Information about the sessionpublic boolean isExecuteReccuring()
true if this is a recurring execution.protected void handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session)
handleContent in class XMLRequestpublic int getRunID()
getMsgbox() returns the error message.
The return value is also 0 if the request has never been sent.public int getMessageNumber()
public java.lang.String getMessageInsert()
getMessageNumber.public java.lang.String getMessageText()
public void executeFirstTimeTask()