Package com.uc4.api.objects
Class ProcessFlowGeneral
java.lang.Object
com.uc4.api.objects.ProcessFlowGeneral
- All Implemented Interfaces:
HasAlias
This class can be used to access the "General" tab of a task in a
ProcessFlow. An alias name and a time checkpoint can be specified here.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeploymentDependency. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProcessFlowGeneral(boolean isExternal) protectedProcessFlowGeneral(com.uc4.util.XMLDocument doc, Element task) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a deep copy of this objectgetAlias()Returns the alias name of this task ornullif no alias is set.intReturns the number of days as of JobPlan activation.Returns the dependency of the component process worflow.Returns the name of the object that is to be started when the checkpoint has been exceeded.getTime()Returns the checkpoint time.Returns the TimeZone that is to be used.booleanIf this property is set and "Request task parameters" is selected as well, the container window is displayed immediately at the generation time of the workflow (and not at the point of time when the appropriate task would be ready to run within the workflow).booleanIf this property is set and the selected task has either a PromptSet or selected "Request task parameters" option on object definition level, the container window pops-up.booleanReturnstrueif rollback is enabled for this ProcessFlow task.booleanReturnstrueif this task should run per patch in a deployment ProcessFlow.booleanReturnstrueif time checkpoint is enabled for this JobPlanTask.voidSets the alias, usenullto remove the alias.voidsetDaysAfterJobPlanActivation(int daysAfterJobPlanActivation) Sets the number of days as of JobPlan activation.voidsetDeploymentDependency(ProcessFlowGeneral.DeploymentDependency deploymentDependency) Sets the dependency of the component process workflow.voidsetExecute(UC4ObjectName execute) Sets the name of the object that is to be started when the checkpoint has been exceeded.voidsetRequestParameterAtWFStart(boolean requestParameterAtWFStart) If this property is set and "Request task parameters" is selected as well, the container window is displayed immediately at the generation time of the workflow (and not at the point of time when the appropriate task would be ready to run within the workflow).voidsetRequestTaskParameters(boolean requestTaskParameters) If this property is set and the selected task has either a PromptSet or selected "Request task parameters" option on object definition level, the container window pops-up.voidsetRollbackEnabled(boolean rollbackEnabled) Enables or disables rollback for this ProcessFlow task.voidsetRunPerPatch(boolean runPerPatch) Enables or disables the patch flag.voidSets the Checkpoint time.voidsetTimeCheckpoint(boolean timeCheckpoint) Enables or disables the time checkpoint for this JobPlanTask.voidsetTimezone(UC4TimezoneName timezone) Sets the TimeZone that is to be used.protected void
-
Constructor Details
-
ProcessFlowGeneral
protected ProcessFlowGeneral(boolean isExternal) -
ProcessFlowGeneral
-
-
Method Details
-
store
-
getAlias
Returns the alias name of this task ornullif no alias is set. -
isRequestTaskParameters
public boolean isRequestTaskParameters()If this property is set and the selected task has either a PromptSet or selected "Request task parameters" option on object definition level, the container window pops-up.- Returns:
- true if task parameter should be shown
-
setRequestTaskParameters
public void setRequestTaskParameters(boolean requestTaskParameters) If this property is set and the selected task has either a PromptSet or selected "Request task parameters" option on object definition level, the container window pops-up.- Parameters:
requestTaskParameters- true if task parameter should be shown
-
isRequestParameterAtWFStart
public boolean isRequestParameterAtWFStart()If this property is set and "Request task parameters" is selected as well, the container window is displayed immediately at the generation time of the workflow (and not at the point of time when the appropriate task would be ready to run within the workflow).- Returns:
- true if the task parameters should be requested when the Workflow is generated, false if the task parameter should be requested at the time this step is executed.
-
setRequestParameterAtWFStart
public void setRequestParameterAtWFStart(boolean requestParameterAtWFStart) If this property is set and "Request task parameters" is selected as well, the container window is displayed immediately at the generation time of the workflow (and not at the point of time when the appropriate task would be ready to run within the workflow).- Parameters:
requestParameterAtWFStart-trueif the task parameters should be requested when the Workflow is generated,falseif the task parameter should be requested at the time this step is executed.
-
isRollbackEnabled
public boolean isRollbackEnabled()Returnstrueif rollback is enabled for this ProcessFlow task.- Returns:
- Rollback enabled
-
setRollbackEnabled
public void setRollbackEnabled(boolean rollbackEnabled) Enables or disables rollback for this ProcessFlow task.- Parameters:
rollbackEnabled- Rollback option
-
isRunPerPatch
public boolean isRunPerPatch()Returnstrueif this task should run per patch in a deployment ProcessFlow.- Returns:
- Run per Patch
-
setRunPerPatch
public void setRunPerPatch(boolean runPerPatch) Enables or disables the patch flag.- Parameters:
runPerPatch-trueif this task should run per patch in a deployment ProcessFlow,falseif this task is not a task for a patch in a deployment ProcessFlow
-
getDeploymentDependency
Returns the dependency of the component process worflow.- Returns:
- One of the
DeploymentDependencydefined in this class (NA, PARALLEL, SERIAL)
-
setDeploymentDependency
Sets the dependency of the component process workflow.- Parameters:
deploymentDependency- One of theDeploymentDependencydefined in this class (NA, PARALLEL, SERIAL)
-
setAlias
Sets the alias, usenullto remove the alias.- Parameters:
alias- Alias name or null
-
isTimeCheckpoint
public boolean isTimeCheckpoint()Returnstrueif time checkpoint is enabled for this JobPlanTask.- Returns:
- True if a time checkpoint is enabled
-
setTimeCheckpoint
public void setTimeCheckpoint(boolean timeCheckpoint) Enables or disables the time checkpoint for this JobPlanTask.- Parameters:
timeCheckpoint- Boolean value to set the time checkpoint
-
setDaysAfterJobPlanActivation
public void setDaysAfterJobPlanActivation(int daysAfterJobPlanActivation) Sets the number of days as of JobPlan activation.Examples:
- 0 days = the day of JobPlan activation
- 2 days = two days after JobPlan activation
- Parameters:
daysAfterJobPlanActivation- Number of days as of JobPlan activation
-
getTime
Returns the checkpoint time.- Returns:
- Checkpoint time
-
setTime
Sets the Checkpoint time.If the task could not be started before this time, the object specified in the "Execute" section will be activated.
- Parameters:
time- Checkpoint time
-
getTimezone
Returns the TimeZone that is to be used.- Returns:
- Used TimeZone
-
setTimezone
Sets the TimeZone that is to be used.- Parameters:
timezone- TimeZone
-
getDaysAfterJobPlanActivation
public int getDaysAfterJobPlanActivation()Returns the number of days as of JobPlan activation.- Returns:
- number of days as of JobPlan activation
-
getExecute
Returns the name of the object that is to be started when the checkpoint has been exceeded.- Returns:
- Object name
-
setExecute
Sets the name of the object that is to be started when the checkpoint has been exceeded.- Parameters:
execute- Object name
-
copy
Creates a deep copy of this object- Returns:
- A copy of this object
-