Package com.uc4.api.objects
Class ProcessFlowGeneral
- java.lang.Object
-
- com.uc4.api.objects.ProcessFlowGeneral
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessFlowGeneral.DeploymentDependencyDeploymentDependency.
-
Constructor Summary
Constructors Modifier Constructor Description protectedProcessFlowGeneral(boolean isExternal)protectedProcessFlowGeneral(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessFlowGeneralcopy()Creates a deep copy of this objectUC4AliasgetAlias()Returns the alias name of this task ornullif no alias is set.intgetDaysAfterJobPlanActivation()Returns the number of days as of JobPlan activation.ProcessFlowGeneral.DeploymentDependencygetDeploymentDependency()Returns the dependency of the component process worflow.UC4ObjectNamegetExecute()Returns the name of the object that is to be started when the checkpoint has been exceeded.TimegetTime()Returns the checkpoint time.UC4TimezoneNamegetTimezone()Returns the TimeZone that is to be used.booleanisRequestParameterAtWFStart()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).booleanisRequestTaskParameters()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.booleanisRollbackEnabled()Returnstrueif rollback is enabled for this ProcessFlow task.booleanisRunPerPatch()Returnstrueif this task should run per patch in a deployment ProcessFlow.booleanisTimeCheckpoint()Returnstrueif time checkpoint is enabled for this JobPlanTask.voidsetAlias(UC4Alias alias)Sets 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.voidsetTime(Time time)Sets 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 voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
-
getAlias
public UC4Alias 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
public ProcessFlowGeneral.DeploymentDependency getDeploymentDependency()
Returns the dependency of the component process worflow.- Returns:
- One of the
DeploymentDependencydefined in this class (NA, PARALLEL, SERIAL)
-
setDeploymentDependency
public void setDeploymentDependency(ProcessFlowGeneral.DeploymentDependency deploymentDependency)
Sets the dependency of the component process workflow.- Parameters:
deploymentDependency- One of theDeploymentDependencydefined in this class (NA, PARALLEL, SERIAL)
-
setAlias
public void setAlias(UC4Alias alias)
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
public Time getTime()
Returns the checkpoint time.- Returns:
- Checkpoint time
-
setTime
public void setTime(Time time)
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
public UC4TimezoneName getTimezone()
Returns the TimeZone that is to be used.- Returns:
- Used TimeZone
-
setTimezone
public void setTimezone(UC4TimezoneName timezone)
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
public UC4ObjectName getExecute()
Returns the name of the object that is to be started when the checkpoint has been exceeded.- Returns:
- Object name
-
setExecute
public void setExecute(UC4ObjectName execute)
Sets the name of the object that is to be started when the checkpoint has been exceeded.- Parameters:
execute- Object name
-
copy
public ProcessFlowGeneral copy()
Creates a deep copy of this object- Returns:
- A copy of this object
-
-