public class ToolExecutionStatus
extends java.lang.Object
Contains:
The return code is important to decide whether AWM should execute the next tool in the sequence of an ActionDescriptor or abort the action with an exception.
IToolExecutor| Constructor and Description |
|---|
ToolExecutionStatus(java.lang.String pToolName,
int pToolRc)
Creates a new ToolExecutionStatus without a message.
|
ToolExecutionStatus(java.lang.String pToolName,
int pToolRc,
java.lang.String pToolMsg)
Creates a new ToolExecutionStatus with a message.
|
ToolExecutionStatus(java.lang.String pToolName,
int pToolRc,
java.lang.String pToolMsg,
java.util.List<ResourceOperation> pResOps)
Creates a new ToolExecutionStatus with a message and resource operations
(see
ResourceOperation). |
ToolExecutionStatus(java.lang.String pToolName,
int pToolRc,
java.lang.String pToolMsg,
java.util.List<ResourceOperation> pResOps,
java.util.Map<Property,IPropertyValue> pParmMap)
Creates a new ToolExecutionStatus with a message and resource operations
(see
ResourceOperation). |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.util.Map<Property,IPropertyValue>> |
getMassOutputParameters() |
java.util.Map<Property,IPropertyValue> |
getOutputParameters() |
java.util.List<ResourceOperation> |
getResourceOperations() |
ToolDescriptor |
getToolDescriptor()
Gets the
ToolDescriptor which returned the execution status. |
java.lang.String |
getToolMsg() |
java.lang.String |
getToolName() |
int |
getToolRC() |
java.util.List<ValidateMessage> |
getValidateMessages()
Deprecated.
validation messages are now returned by
IToolResult
and can be obtained via
IToolOutput.getValidationMessages() or
ActionExecutor.getAllValidationMessages(IAction) |
boolean |
isProcessed()
Gets the "processed" flag of the execution status.
|
void |
putOutputParameter(Property pProp,
java.lang.String pValue)
Puts a single output parameter in the ToolExecutionStatus.
|
void |
putResourceOperation(ResourceOperation pResOp)
Adds a new ResourceOperation.
|
boolean |
resourceOperationErrorsOccurred() |
void |
setMassOutputParameters(java.util.List<java.util.Map<Property,IPropertyValue>> pMassOutParms)
Sets all mass output parameters of the tool.
|
void |
setOutputParameters(java.util.Map<Property,IPropertyValue> pOutParms)
Sets all output parameters of the tool.
|
void |
setProcessed(boolean pProcessed)
Set the "processed" flag of this tool execution status.
|
void |
setresourceOperationErrorsOccurred(boolean pErrorsOccurred) |
void |
setResourceOperations(java.util.List<ResourceOperation> pResOperations) |
void |
setToolDescriptor(ToolDescriptor pToolDescriptor)
Sets the
ToolDescriptor which returned the status. |
void |
setToolMsg(java.lang.String pToolMsg)
Sets the tool message in the ToolExecutionStatus.
|
void |
setValidateMessages(java.util.List<ValidateMessage> pValidateMessages)
Deprecated.
Use
IToolResult instead to return validation
messages. |
java.lang.String |
toString() |
public ToolExecutionStatus(java.lang.String pToolName,
int pToolRc)
pToolName - The name of the executed toolpToolRc - The return code of the executed toolpublic ToolExecutionStatus(java.lang.String pToolName,
int pToolRc,
java.lang.String pToolMsg)
pToolName - The name of the executed toolpToolRc - The return code of the executed toolpToolMsg - A readable message which describes the tool executionpublic ToolExecutionStatus(java.lang.String pToolName,
int pToolRc,
java.lang.String pToolMsg,
java.util.List<ResourceOperation> pResOps)
ResourceOperation).pToolName - The name of the executed toolpToolRc - The return code of the executed toolpToolMsg - A readable message which describes the tool executionpResOps - The resource operations of the tool, if there were somepublic ToolExecutionStatus(java.lang.String pToolName,
int pToolRc,
java.lang.String pToolMsg,
java.util.List<ResourceOperation> pResOps,
java.util.Map<Property,IPropertyValue> pParmMap)
ResourceOperation).pToolName - The name of the executed tool.pToolRc - The return code of the executed tool.pToolMsg - A readable message which describes the tool execution.pResOps - The resource operations of the tool. Can be null
or an empty list.pParmMap - The output parameters of the executed tool.public java.lang.String getToolMsg()
public void setToolMsg(java.lang.String pToolMsg)
pToolMsg - the message of the tool.public java.lang.String getToolName()
public int getToolRC()
public java.util.List<ResourceOperation> getResourceOperations()
public void setResourceOperations(java.util.List<ResourceOperation> pResOperations)
pResOperations - the resource operations to be setpublic void putResourceOperation(ResourceOperation pResOp)
pResOp - the ResourceOperation to addpublic java.util.Map<Property,IPropertyValue> getOutputParameters()
public void setOutputParameters(java.util.Map<Property,IPropertyValue> pOutParms)
pOutParms - Map with Properties and their corresponding PropertyValues.public java.util.List<java.util.Map<Property,IPropertyValue>> getMassOutputParameters()
public void setMassOutputParameters(java.util.List<java.util.Map<Property,IPropertyValue>> pMassOutParms)
pMassOutParms - Map with Properties and their corresponding PropertyValues.public void putOutputParameter(Property pProp, java.lang.String pValue)
pProp - The Property of the output parameterpValue - The value of the output parameterpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setProcessed(boolean pProcessed)
true.pProcessed - the "processed" flag.isProcessed()public boolean isProcessed()
true this usually means that the execution status was
already processed in a way (e.g. shown in a dialog).public boolean resourceOperationErrorsOccurred()
public void setresourceOperationErrorsOccurred(boolean pErrorsOccurred)
pErrorsOccurred - whether resource operation errors occurredresourceOperationErrorsOccurred()@Deprecated public java.util.List<ValidateMessage> getValidateMessages()
IToolResult
and can be obtained via
IToolOutput.getValidationMessages() or
ActionExecutor.getAllValidationMessages(IAction)@Deprecated public void setValidateMessages(java.util.List<ValidateMessage> pValidateMessages)
IToolResult instead to return validation
messages.pValidateMessages - the validate messagespublic ToolDescriptor getToolDescriptor()
ToolDescriptor which returned the execution status.null if the tool execution
status has not been returned by an IToolExecutor executed
by the ActionExecutorpublic void setToolDescriptor(ToolDescriptor pToolDescriptor)
ToolDescriptor which returned the status. This should
not be called by clients, since it's done internally after the
ActionExecutor executed the tool.pToolDescriptor - the tool descriptor to setCopyright © 2015 Micro Focus GmbH. All rights reserved.