public class WorkflowDTO extends Object
workflow
workflow.addApprovalStep("First Approval").withApprover("admin").setReason("Admin needs always approve")
Modifier and Type | Class and Description |
---|---|
static class |
WorkflowDTO.ApprovalStepDTO |
static class |
WorkflowDTO.StepDTO |
static class |
WorkflowDTO.WatcherStepDTO |
Constructor and Description |
---|
WorkflowDTO(WorkflowType type,
String typedId) |
Modifier and Type | Method and Description |
---|---|
WorkflowDTO.ApprovalStepDTO |
addApprovalStep(String uniqueName)
Adds an approval step at the end of the workflow
|
void |
addItemReason(String itemTypedId,
String reason) |
WorkflowDTO.WatcherStepDTO |
addWatcherStep(String uniqueName)
Adds a watcher step to the end of the workflow.
|
List<String> |
getDenialReasons() |
Map<String,String> |
getItemReasons() |
WorkflowDTO.StepDTO |
getStep(String uniqueName)
Retrieves a named step (if existing)
|
LinkedHashSet<WorkflowDTO.StepDTO> |
getSteps() |
WorkflowType |
getType()
Returns the type of the workflow.
|
String |
getTypedId() |
boolean |
isDenialReasonOptional() |
boolean |
removeStep(String uniqueName)
Removes a named step (if existing)
|
WorkflowDTO |
withDenialReasons(List<String> denialReasons,
boolean isDenialReasonOptional) |
public WorkflowDTO(WorkflowType type, String typedId)
public WorkflowDTO.ApprovalStepDTO addApprovalStep(String uniqueName)
uniqueName
- Name of the steppublic WorkflowDTO.WatcherStepDTO addWatcherStep(String uniqueName)
uniqueName
- Name of the steppublic WorkflowType getType()
public boolean removeStep(String uniqueName)
uniqueName
- The name of the steppublic WorkflowDTO.StepDTO getStep(String uniqueName)
uniqueName
- The name of the steppublic WorkflowDTO withDenialReasons(List<String> denialReasons, boolean isDenialReasonOptional)
public boolean isDenialReasonOptional()
public String getTypedId()
public LinkedHashSet<WorkflowDTO.StepDTO> getSteps()
Copyright © 2016. All rights reserved.