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 enum
DeploymentDependency. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProcessFlowGeneral
(boolean isExternal) protected
ProcessFlowGeneral
(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 ornull
if no alias is set.int
Returns 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.boolean
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).boolean
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.boolean
Returnstrue
if rollback is enabled for this ProcessFlow task.boolean
Returnstrue
if this task should run per patch in a deployment ProcessFlow.boolean
Returnstrue
if time checkpoint is enabled for this JobPlanTask.void
Sets the alias, usenull
to remove the alias.void
setDaysAfterJobPlanActivation
(int daysAfterJobPlanActivation) Sets the number of days as of JobPlan activation.void
setDeploymentDependency
(ProcessFlowGeneral.DeploymentDependency deploymentDependency) Sets the dependency of the component process workflow.void
setExecute
(UC4ObjectName execute) Sets the name of the object that is to be started when the checkpoint has been exceeded.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).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.void
setRollbackEnabled
(boolean rollbackEnabled) Enables or disables rollback for this ProcessFlow task.void
setRunPerPatch
(boolean runPerPatch) Enables or disables the patch flag.void
Sets the Checkpoint time.void
setTimeCheckpoint
(boolean timeCheckpoint) Enables or disables the time checkpoint for this JobPlanTask.void
setTimezone
(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 ornull
if 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
-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.
-
isRollbackEnabled
public boolean isRollbackEnabled()Returnstrue
if 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()Returnstrue
if 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
-true
if this task should run per patch in a deployment ProcessFlow,false
if 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
DeploymentDependency
defined in this class (NA, PARALLEL, SERIAL)
-
setDeploymentDependency
Sets the dependency of the component process workflow.- Parameters:
deploymentDependency
- One of theDeploymentDependency
defined in this class (NA, PARALLEL, SERIAL)
-
setAlias
Sets the alias, usenull
to remove the alias.- Parameters:
alias
- Alias name or null
-
isTimeCheckpoint
public boolean isTimeCheckpoint()Returnstrue
if 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
-