public interface WorkflowActionService
WorkflowActionTemplateModel| Modifier and Type | Method and Description |
|---|---|
WorkflowActionModel |
complete(WorkflowActionModel action)
Completes action
|
WorkflowActionModel |
createWorkflowAction(WorkflowActionTemplateModel template,
WorkflowModel workflow)
Creates workflow action based on template and attach it to workflow
|
WorkflowActionModel |
disable(WorkflowActionModel action)
Disable action
|
WorkflowActionModel |
getActionForCode(WorkflowModel workflow,
java.lang.String code) |
java.util.List<WorkflowActionModel> |
getAllUserWorkflowActionsWithAttachment(ComposedTypeModel attachmentType)
Returns workflow actions with attachment that match type passed as a parameter
|
java.util.List<WorkflowActionModel> |
getAllUserWorkflowActionsWithAttachment(java.lang.String attachmentTypeCodeOrClassName)
Returns workflow actions with attachment that match type or code passed as a parameter
|
java.util.List<WorkflowActionModel> |
getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments)
Returns workflow actions with attachment that match types passed
|
java.util.List<WorkflowActionModel> |
getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments,
java.util.Collection<WorkflowActionStatus> actionStatuses)
Returns workflow actions with attachment that match types passed and statuses
|
java.util.List<WorkflowActionModel> |
getEndWorkflowActions(WorkflowModel workflow)
Returns ended workflow actions
|
java.util.List<WorkflowActionModel> |
getNormalWorkflowActions(WorkflowModel workflow)
Returns normal workflow actions
|
java.util.List<WorkflowActionModel> |
getStartWorkflowActions(WorkflowModel workflow)
Returns start workflow actions
|
java.util.List<WorkflowActionModel> |
getWorkflowActionsByType(WorkflowActionType type,
WorkflowModel workflow)
Returns workflow actions by type
|
WorkflowActionModel |
idle(WorkflowActionModel action)
Idles action
|
boolean |
isActive(WorkflowActionModel action)
Returns true if action is active
|
boolean |
isCompleted(WorkflowActionModel action)
Returns true if action is completed
|
boolean |
isDisabled(WorkflowActionModel action)
Returns true if action is disabled
|
boolean |
isEndedByWorkflow(WorkflowActionModel action)
Returns true if action is ended by a workdlow
|
boolean |
isUserAssignedPrincipal(WorkflowActionModel action)
Returns true if user is assigned to action
|
java.util.List<WorkflowActionModel> getNormalWorkflowActions(WorkflowModel workflow)
workflow - to which actions belongs tojava.util.List<WorkflowActionModel> getStartWorkflowActions(WorkflowModel workflow)
workflow - to which actions belongs tojava.util.List<WorkflowActionModel> getEndWorkflowActions(WorkflowModel workflow)
workflow - to which actions belongs tojava.util.List<WorkflowActionModel> getWorkflowActionsByType(WorkflowActionType type, WorkflowModel workflow)
workflow - to which actions belongs totype - action typejava.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(java.lang.String attachmentTypeCodeOrClassName)
attachmentTypeCodeOrClassName - attachment typecode or class namejava.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(ComposedTypeModel attachmentType)
attachmentType - attachment typejava.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments)
attachments - attachment typesjava.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments, java.util.Collection<WorkflowActionStatus> actionStatuses)
attachments - attachment typesactionStatuses - statuses that must matchWorkflowActionModel createWorkflowAction(WorkflowActionTemplateModel template, WorkflowModel workflow)
template - action templateworkflow - to which action will be attached toboolean isUserAssignedPrincipal(WorkflowActionModel action)
action - boolean isCompleted(WorkflowActionModel action)
action - to be checkedboolean isActive(WorkflowActionModel action)
action - to be checkedboolean isEndedByWorkflow(WorkflowActionModel action)
action - to be checkedboolean isDisabled(WorkflowActionModel action)
action - to be checkedWorkflowActionModel disable(WorkflowActionModel action)
action - to be disabledWorkflowActionModel complete(WorkflowActionModel action)
action - to be completedWorkflowActionModel idle(WorkflowActionModel action)
action - to be idledWorkflowActionModel getActionForCode(WorkflowModel workflow, java.lang.String code)
Copyright © 2018 SAP SE. All Rights Reserved.