Package com.uc4.communication.requests
Class ModifyProcessFlowMonitor
java.lang.Object
com.uc4.communication.requests.XMLRequest
com.uc4.communication.requests.ModifyProcessFlowMonitor
Adds a task or changes an existing task in a ProcessFlow monitor which is opened for modification.
After this request has been executed an updated ProcessFlow monitor can be retrieved using the method
getMonitor()
.-
Constructor Summary
ConstructorsConstructorDescriptionModifyProcessFlowMonitor
(JobPlanMonitor monitor, JobPlanTask add) Adds a task to a ProcessFlow.ModifyProcessFlowMonitor
(JobPlanMonitor monitor, JobPlanMonitor.Task mod) Modifies an existing task in the ProcessFlow monitor.ModifyProcessFlowMonitor
(JobPlanMonitor monitor, JobPlanMonitor.Task mod, JobPlanMonitor.Task dep) Removes a dependency of a task in the ProcessFlow monitor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createRequest
(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request.Returns an updated ProcessFlow monitor after this request has been executed.protected String
getSrc()
Returns the request source.protected void
handleContent
(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, isAllowedInClientZero, send, setMessageBox, showQuarantineNotification
-
Constructor Details
-
ModifyProcessFlowMonitor
Adds a task to a ProcessFlow. The added task has no successor or predecessor. The dependencies must be set in a second step using the other constructor of this class.- Parameters:
monitor
- ProcessFlow monitoradd
- Task which should be added.
-
ModifyProcessFlowMonitor
Modifies an existing task in the ProcessFlow monitor.- Parameters:
monitor
- ProcessFlow monitormod
- Modified task
-
ModifyProcessFlowMonitor
public ModifyProcessFlowMonitor(JobPlanMonitor monitor, JobPlanMonitor.Task mod, JobPlanMonitor.Task dep) Removes a dependency of a task in the ProcessFlow monitor.- Parameters:
monitor
- ProcessFlow monitormod
- Modified taskdep
- Dependency to remove
-
-
Method Details
-
getSrc
Description copied from class:XMLRequest
Returns the request source. This method is used internally.- Specified by:
getSrc
in classXMLRequest
- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Description copied from class:XMLRequest
Creates the XML Document for the request. This method is used internally.- Specified by:
createRequest
in classXMLRequest
- Parameters:
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the session
-
handleContent
Description copied from class:XMLRequest
Sub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContent
in classXMLRequest
- Parameters:
doc
- XML Documentsession
- Info about the user session
-
getMonitor
Returns an updated ProcessFlow monitor after this request has been executed. In case of an error or if this request has not been set the return value isnull
.- Returns:
- ProcessFlow monitor if successfully executed, otherwise
null
-