Class WorkflowTaskImpl
java.lang.Object
com.tremolosecurity.provisioning.core.WorkflowTaskImpl
- All Implemented Interfaces:
WorkflowTask
,Serializable
- Direct Known Subclasses:
AddAttribute
,AddGroup
,Approval
,CallWorkflow
,CustomTask
,Delete
,IfAttrExists
,IfAttrHasValue
,IfNotUserExists
,Mapping
,NotifyUser
,Provision
,Resync
- See Also:
-
Constructor Summary
ConstructorDescriptionWorkflowTaskImpl
(WorkflowTaskType taskConfig, ConfigManager cfg, Workflow wf) -
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract boolean
protected final boolean
finishTasks
(ArrayList<WorkflowTask> subs, int start, User user, Map<String, Object> request) final WorkflowTaskType
final ConfigManager
abstract String
getLabel()
abstract void
init
(WorkflowTaskType taskConfig) void
boolean
isOnHold()
static WorkflowTaskImpl
loadTask
(WorkflowTaskType cfg, ConfigManager cfgMgr, Workflow wf) void
markComplete
(boolean wasSuccess) void
reInit()
final void
reInit
(ConfigManager cfgMgr, Workflow wf) renderTemplate
(String val, Map<String, Object> request) boolean
protected final boolean
restartChildren
(User user, Map<String, Object> request) final boolean
protected final boolean
runSubTasks
(ArrayList<WorkflowTask> subs, User user, Map<String, Object> request) final void
void
setOnHold
(boolean isOnHold) void
setOnSuccess
(ArrayList<WorkflowTask> tasks) void
setWorkflow
(Workflow workflow) protected boolean
startNextTask
(List<WorkflowTask> tasks)
-
Constructor Details
-
WorkflowTaskImpl
public WorkflowTaskImpl() -
WorkflowTaskImpl
public WorkflowTaskImpl(WorkflowTaskType taskConfig, ConfigManager cfg, Workflow wf) throws ProvisioningException - Throws:
ProvisioningException
-
-
Method Details
-
getLabel
- Specified by:
getLabel
in interfaceWorkflowTask
-
init
- Specified by:
init
in interfaceWorkflowTask
- Throws:
ProvisioningException
-
doTask
- Specified by:
doTask
in interfaceWorkflowTask
- Throws:
ProvisioningException
-
reInit
- Specified by:
reInit
in interfaceWorkflowTask
- Throws:
ProvisioningException
-
reInit
- Specified by:
reInit
in interfaceWorkflowTask
- Throws:
ProvisioningException
-
loadTask
public static WorkflowTaskImpl loadTask(WorkflowTaskType cfg, ConfigManager cfgMgr, Workflow wf) throws ProvisioningException - Throws:
ProvisioningException
-
finishTasks
protected final boolean finishTasks(ArrayList<WorkflowTask> subs, int start, User user, Map<String, Object> request) throws ProvisioningException- Throws:
ProvisioningException
-
runSubTasks
protected final boolean runSubTasks(ArrayList<WorkflowTask> subs, User user, Map<String, Object> request) throws ProvisioningException- Throws:
ProvisioningException
-
restartTasks
- Specified by:
restartTasks
in interfaceWorkflowTask
- Throws:
ProvisioningException
-
startNextTask
- Throws:
ProvisioningException
-
restartChildren
protected final boolean restartChildren(User user, Map<String, Object> request) throws ProvisioningException- Throws:
ProvisioningException
-
initWorkFlow
- Specified by:
initWorkFlow
in interfaceWorkflowTask
- Throws:
ProvisioningException
-
getConfig
- Specified by:
getConfig
in interfaceWorkflowTask
-
getConfigManager
- Specified by:
getConfigManager
in interfaceWorkflowTask
-
setConfigManager
- Specified by:
setConfigManager
in interfaceWorkflowTask
-
getWorkflow
- Specified by:
getWorkflow
in interfaceWorkflowTask
-
setWorkflow
- Specified by:
setWorkflow
in interfaceWorkflowTask
-
isOnHold
public boolean isOnHold()- Specified by:
isOnHold
in interfaceWorkflowTask
-
setOnHold
public void setOnHold(boolean isOnHold) - Specified by:
setOnHold
in interfaceWorkflowTask
-
restartChildren
- Specified by:
restartChildren
in interfaceWorkflowTask
- Throws:
ProvisioningException
-
findApprovalTask
- Specified by:
findApprovalTask
in interfaceWorkflowTask
-
renderTemplate
- Specified by:
renderTemplate
in interfaceWorkflowTask
-
getOnSuccess
- Specified by:
getOnSuccess
in interfaceWorkflowTask
-
getOnFailure
- Specified by:
getOnFailure
in interfaceWorkflowTask
-
markComplete
public void markComplete(boolean wasSuccess) -
canHaveChildren
public boolean canHaveChildren()- Specified by:
canHaveChildren
in interfaceWorkflowTask
-
setOnSuccess
-