Package de.hybris.platform.workflow
Interface WorkflowActionService
- All Known Subinterfaces:
CMSWorkflowActionService
- All Known Implementing Classes:
DefaultCMSWorkflowActionService,DefaultWorkflowActionService
public interface WorkflowActionService
Service used to manipulate workflow actions. The main features are :
- fetch actions for various criteria
-
create action based on some
WorkflowActionTemplateModel - check status of given workflow action
- modify status of given workflow action
-
Method Summary
Modifier and TypeMethodDescriptioncomplete(WorkflowActionModel action) Completes actioncreateWorkflowAction(WorkflowActionTemplateModel template, WorkflowModel workflow) Creates workflow action based on template and attach it to workflowdisable(WorkflowActionModel action) Disable actiongetActionForCode(WorkflowModel workflow, String code) getAllUserWorkflowActionsWithAttachment(ComposedTypeModel attachmentType) Returns workflow actions with attachment that match type passed as a parametergetAllUserWorkflowActionsWithAttachment(String attachmentTypeCodeOrClassName) Returns workflow actions with attachment that match type or code passed as a parametergetAllUserWorkflowActionsWithAttachments(List<String> attachments) Returns workflow actions with attachment that match types passedgetAllUserWorkflowActionsWithAttachments(List<String> attachments, Collection<WorkflowActionStatus> actionStatuses) Returns workflow actions with attachment that match types passed and statusesgetEndWorkflowActions(WorkflowModel workflow) Returns ended workflow actionsgetNormalWorkflowActions(WorkflowModel workflow) Returns normal workflow actionsgetStartWorkflowActions(WorkflowModel workflow) Returns start workflow actionsgetWorkflowActionsByType(WorkflowActionType type, WorkflowModel workflow) Returns workflow actions by typeidle(WorkflowActionModel action) Idles actionbooleanisActive(WorkflowActionModel action) Returns true if action is activebooleanisCompleted(WorkflowActionModel action) Returns true if action is completedbooleanisDisabled(WorkflowActionModel action) Returns true if action is disabledbooleanisEndedByWorkflow(WorkflowActionModel action) Returns true if action is ended by a workdlowbooleanReturns true if user is assigned to action
-
Method Details
-
getNormalWorkflowActions
Returns normal workflow actions- Parameters:
workflow- to which actions belongs to
-
getStartWorkflowActions
Returns start workflow actions- Parameters:
workflow- to which actions belongs to
-
getEndWorkflowActions
Returns ended workflow actions- Parameters:
workflow- to which actions belongs to
-
getWorkflowActionsByType
Returns workflow actions by type- Parameters:
workflow- to which actions belongs totype- action type
-
getAllUserWorkflowActionsWithAttachment
List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(String attachmentTypeCodeOrClassName) Returns workflow actions with attachment that match type or code passed as a parameter- Parameters:
attachmentTypeCodeOrClassName- attachment typecode or class name
-
getAllUserWorkflowActionsWithAttachment
Returns workflow actions with attachment that match type passed as a parameter- Parameters:
attachmentType- attachment type
-
getAllUserWorkflowActionsWithAttachments
Returns workflow actions with attachment that match types passed- Parameters:
attachments- attachment types
-
getAllUserWorkflowActionsWithAttachments
List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(List<String> attachments, Collection<WorkflowActionStatus> actionStatuses) Returns workflow actions with attachment that match types passed and statuses- Parameters:
attachments- attachment typesactionStatuses- statuses that must match
-
createWorkflowAction
WorkflowActionModel createWorkflowAction(WorkflowActionTemplateModel template, WorkflowModel workflow) Creates workflow action based on template and attach it to workflow- Parameters:
template- action templateworkflow- to which action will be attached to- Returns:
- created action
-
isUserAssignedPrincipal
Returns true if user is assigned to action- Parameters:
action-- Returns:
- true if user is assigned to action, false otherwise
-
isCompleted
Returns true if action is completed- Parameters:
action- to be checked
-
isActive
Returns true if action is active- Parameters:
action- to be checked
-
isEndedByWorkflow
Returns true if action is ended by a workdlow- Parameters:
action- to be checked
-
isDisabled
Returns true if action is disabled- Parameters:
action- to be checked
-
disable
Disable action- Parameters:
action- to be disabled
-
complete
Completes action- Parameters:
action- to be completed
-
idle
Idles action- Parameters:
action- to be idled
-
getActionForCode
-