public class DefaultWorkflowActionService extends java.lang.Object implements WorkflowActionService
WorkflowActionService| Constructor and Description |
|---|
DefaultWorkflowActionService() |
| 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 wfModel)
Returns ended workflow actions
|
java.util.List<WorkflowActionModel> |
getNormalWorkflowActions(WorkflowModel wfModel)
Returns normal workflow actions
|
java.util.List<WorkflowActionModel> |
getStartWorkflowActions(WorkflowModel wfModel)
Returns start workflow actions
|
java.util.List<WorkflowActionModel> |
getWorkflowActionsByType(WorkflowActionType type,
WorkflowModel wfModel)
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
|
void |
setI18nService(I18NService i18nService) |
void |
setModelService(ModelService modelService) |
void |
setTypeService(TypeService typeService) |
void |
setUserService(UserService userService) |
void |
setWorkflowActionDao(WorkflowActionDao workflowActionDao) |
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(java.lang.String attachmentTypeCodeOrClassName)
WorkflowActionServicegetAllUserWorkflowActionsWithAttachment in interface WorkflowActionServiceattachmentTypeCodeOrClassName - attachment typecode or class namepublic java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(ComposedTypeModel attachmentType)
WorkflowActionServicegetAllUserWorkflowActionsWithAttachment in interface WorkflowActionServiceattachmentType - attachment typepublic java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments)
WorkflowActionServicegetAllUserWorkflowActionsWithAttachments in interface WorkflowActionServiceattachments - attachment typespublic java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachments, java.util.Collection<WorkflowActionStatus> actionStatuses)
WorkflowActionServicegetAllUserWorkflowActionsWithAttachments in interface WorkflowActionServiceattachments - attachment typesactionStatuses - statuses that must matchpublic boolean isCompleted(WorkflowActionModel action)
WorkflowActionServiceisCompleted in interface WorkflowActionServiceaction - to be checkedpublic WorkflowActionModel createWorkflowAction(WorkflowActionTemplateModel template, WorkflowModel workflow)
WorkflowActionServicecreateWorkflowAction in interface WorkflowActionServicetemplate - action templateworkflow - to which action will be attached topublic boolean isUserAssignedPrincipal(WorkflowActionModel action)
WorkflowActionServiceisUserAssignedPrincipal in interface WorkflowActionServicepublic java.util.List<WorkflowActionModel> getStartWorkflowActions(WorkflowModel wfModel)
WorkflowActionServicegetStartWorkflowActions in interface WorkflowActionServicewfModel - to which actions belongs topublic java.util.List<WorkflowActionModel> getNormalWorkflowActions(WorkflowModel wfModel)
WorkflowActionServicegetNormalWorkflowActions in interface WorkflowActionServicewfModel - to which actions belongs topublic java.util.List<WorkflowActionModel> getEndWorkflowActions(WorkflowModel wfModel)
WorkflowActionServicegetEndWorkflowActions in interface WorkflowActionServicewfModel - to which actions belongs topublic java.util.List<WorkflowActionModel> getWorkflowActionsByType(WorkflowActionType type, WorkflowModel wfModel)
WorkflowActionServicegetWorkflowActionsByType in interface WorkflowActionServicetype - action typewfModel - to which actions belongs topublic boolean isActive(WorkflowActionModel action)
WorkflowActionServiceisActive in interface WorkflowActionServiceaction - to be checkedpublic boolean isEndedByWorkflow(WorkflowActionModel action)
WorkflowActionServiceisEndedByWorkflow in interface WorkflowActionServiceaction - to be checkedpublic boolean isDisabled(WorkflowActionModel action)
WorkflowActionServiceisDisabled in interface WorkflowActionServiceaction - to be checkedpublic WorkflowActionModel disable(WorkflowActionModel action)
WorkflowActionServicedisable in interface WorkflowActionServiceaction - to be disabledpublic WorkflowActionModel complete(WorkflowActionModel action)
WorkflowActionServicecomplete in interface WorkflowActionServiceaction - to be completedpublic WorkflowActionModel idle(WorkflowActionModel action)
WorkflowActionServiceidle in interface WorkflowActionServiceaction - to be idledpublic WorkflowActionModel getActionForCode(WorkflowModel workflow, java.lang.String code)
getActionForCode in interface WorkflowActionServicepublic void setModelService(ModelService modelService)
modelService - the modelService to setpublic void setTypeService(TypeService typeService)
typeService - the typeService to setpublic void setUserService(UserService userService)
userService - the userService to setpublic void setI18nService(I18NService i18nService)
i18nService - the i18nService to setpublic void setWorkflowActionDao(WorkflowActionDao workflowActionDao)
workflowActionDao - the workflowActionDao to setCopyright © 2018 SAP SE. All Rights Reserved.