public class MockWorkflowExecutionContext extends WorkflowExecutionContext
Constructor and Description |
---|
MockWorkflowExecutionContext()
Create a MockWorkflowExecutionContext with no inputs.
|
MockWorkflowExecutionContext(java.util.Map<java.lang.String,PropertyValue> pInputs)
Create a MockWorkflowExecutionContext with no inputs.
|
Modifier and Type | Method and Description |
---|---|
void |
addBooleanCurrentInstanceProperty(java.lang.String pKey,
java.lang.Boolean pValue) |
void |
addBooleanInput(java.lang.String pKey,
java.lang.Boolean pValue) |
void |
addBooleanInstanceProperty(java.lang.String pInstanceCode,
java.lang.String pKey,
java.lang.Boolean pValue) |
void |
addBooleanProjectProperty(java.lang.String pKey,
java.lang.Boolean pValue) |
void |
addDoubleCurrentInstanceProperty(java.lang.String pKey,
java.lang.Double pValue) |
void |
addDoubleInput(java.lang.String pKey,
java.lang.Double pValue) |
void |
addDoubleInstanceProperty(java.lang.String pInstanceCode,
java.lang.String pKey,
java.lang.Double pValue) |
void |
addDoubleProjectProperty(java.lang.String pKey,
java.lang.Double pValue) |
void |
addIntegerCurrentInstanceProperty(java.lang.String pKey,
java.lang.Integer pValue) |
void |
addIntegerInput(java.lang.String pKey,
java.lang.Integer pValue) |
void |
addIntegerInstanceProperty(java.lang.String pInstanceCode,
java.lang.String pKey,
java.lang.Integer pValue) |
void |
addIntegerProjectProperty(java.lang.String pKey,
java.lang.Integer pValue) |
void |
addStringCurrentInstanceProperty(java.lang.String pKey,
java.lang.String pValue) |
void |
addStringInput(java.lang.String pKey,
java.lang.String pValue) |
void |
addStringInstanceProperty(java.lang.String pInstanceCode,
java.lang.String pKey,
java.lang.String pValue) |
void |
addStringProjectProperty(java.lang.String pKey,
java.lang.String pValue) |
void |
cleanArtifactsDirectory() |
void |
cleanInternalDirectory() |
void |
cleanObjectResultsDirectory() |
void |
cleanReportsDirectory() |
void |
cleanScanResultsDirectory() |
void |
cleanTempDirectory() |
void |
cleanTestResultsDirectory() |
void |
cleanTransferDirectory() |
void |
cleanWorkingDirectory()
This cleans all the directories inside the Working directory as well.
|
java.lang.String |
getInstallPluginsDirectory(java.lang.String pluginName,
java.lang.String pluginVersion)
Returns the plugin installation sub-directory for the given plugin name and plugin version.
|
boolean |
isWindows() |
void |
mkdirs() |
void |
setEnvironmentCode(java.lang.String pCode) |
void |
setInstanceCode(java.lang.String pCode) |
void |
setIsWindows(boolean pIsWindows) |
void |
setOrginatingWorkflowExecutionId(java.lang.Long pOrginatingWorkflowExecutionId)
INTERNAL USE ONLY
|
void |
setProjectId(java.lang.Long pProjectId) |
void |
setWorkflowExecutionId(java.lang.Long pWorkflowExecutionId)
INTERNAL USE ONLY
|
addProperty, addProperty, clone, getArtifactsDirectory, getBackupsDirectory, getBaseInstallDirectory, getBaseWorkingDirectory, getCommits, getEnvironment, getInput, getInputMap, getInstallPluginsDirectory, getInstance, getInternalDirectory, getIssues, getLastEndPoint, getMainInstance, getObjectResultsDirectory, getOrginatingWorkflowExecutionId, getOutputMap, getPackageObjects, getPluginExecutionId, getPrintablePropertyValue, getPrintablePropertyValue, getProject, getProjectSourcesDirectory, getProperties, getPropertyDefinitions, getPropertyValue, getPropertyValue, getPropertyValueOrDefault, getPropertyValueOrDefault, getReportsDirectory, getScanResultsDirectory, getTempDirectory, getTestResultsDirectory, getTransferDirectory, getWorkflowExecutionId, getWorkflowRequestId, getWorkflowType, getWorkingDirectory, isBuildWorkflow, isConsumesArtifacts, isDeployOrPreDeployWorkflow, isDeployOrUtilityWorkflow, isDeployWorkflow, isForceDeploy, isPostRefresh, isPreDeployWorkflow, isProducesArtifacts, isSyncStateWorkflow, isTestWorkflow, isUtilityWorkflow, setBaseInstallDirectory, setCommits, setConsumesArtifacts, setEnvironment, setForceDeploy, setInstance, setIssues, setLastEndPoint, setMainInstance, setOutput, setPackageObjects, setPluginExecutionId, setPostRefresh, setProducesArtifacts, setProject, setProperties, setPropertyDefinitions, setWorkflowRequestId, setWorkflowType, toString
public MockWorkflowExecutionContext()
public MockWorkflowExecutionContext(java.util.Map<java.lang.String,PropertyValue> pInputs)
public void setProjectId(java.lang.Long pProjectId)
public void setWorkflowExecutionId(java.lang.Long pWorkflowExecutionId)
WorkflowExecutionContext
setWorkflowExecutionId
in class WorkflowExecutionContext
public void setOrginatingWorkflowExecutionId(java.lang.Long pOrginatingWorkflowExecutionId)
WorkflowExecutionContext
setOrginatingWorkflowExecutionId
in class WorkflowExecutionContext
public void mkdirs()
public void cleanTempDirectory() throws FlexCheckedException
FlexCheckedException
public void cleanArtifactsDirectory() throws FlexCheckedException
FlexCheckedException
public void cleanInternalDirectory() throws FlexCheckedException
FlexCheckedException
public void cleanTransferDirectory() throws FlexCheckedException
FlexCheckedException
public void cleanObjectResultsDirectory() throws FlexCheckedException
FlexCheckedException
public void cleanScanResultsDirectory() throws FlexCheckedException
FlexCheckedException
public void cleanTestResultsDirectory() throws FlexCheckedException
FlexCheckedException
public void cleanReportsDirectory() throws FlexCheckedException
FlexCheckedException
public void cleanWorkingDirectory() throws FlexCheckedException
FlexCheckedException
public boolean isWindows()
isWindows
in class WorkflowExecutionContext
public void setIsWindows(boolean pIsWindows)
public void addBooleanInput(java.lang.String pKey, java.lang.Boolean pValue)
public void addDoubleInput(java.lang.String pKey, java.lang.Double pValue)
public void addIntegerInput(java.lang.String pKey, java.lang.Integer pValue)
public void addStringInput(java.lang.String pKey, java.lang.String pValue)
public void addBooleanCurrentInstanceProperty(java.lang.String pKey, java.lang.Boolean pValue)
public void addDoubleCurrentInstanceProperty(java.lang.String pKey, java.lang.Double pValue)
public void addIntegerCurrentInstanceProperty(java.lang.String pKey, java.lang.Integer pValue)
public void addStringCurrentInstanceProperty(java.lang.String pKey, java.lang.String pValue)
public void addBooleanInstanceProperty(java.lang.String pInstanceCode, java.lang.String pKey, java.lang.Boolean pValue)
public void addDoubleInstanceProperty(java.lang.String pInstanceCode, java.lang.String pKey, java.lang.Double pValue)
public void addIntegerInstanceProperty(java.lang.String pInstanceCode, java.lang.String pKey, java.lang.Integer pValue)
public void addStringInstanceProperty(java.lang.String pInstanceCode, java.lang.String pKey, java.lang.String pValue)
public void addBooleanProjectProperty(java.lang.String pKey, java.lang.Boolean pValue)
public void addDoubleProjectProperty(java.lang.String pKey, java.lang.Double pValue)
public void addIntegerProjectProperty(java.lang.String pKey, java.lang.Integer pValue)
public void addStringProjectProperty(java.lang.String pKey, java.lang.String pValue)
public void setInstanceCode(java.lang.String pCode)
public void setEnvironmentCode(java.lang.String pCode)
public java.lang.String getInstallPluginsDirectory(java.lang.String pluginName, java.lang.String pluginVersion)
WorkflowExecutionContext
[plugin installation directory]/[plugin name]/[plugin version]
getInstallPluginsDirectory
in class WorkflowExecutionContext
pluginName
- the name of the pluginpluginVersion
- the plugin version