Interface CMSWorkflowActionService
- All Superinterfaces:
WorkflowActionService
- All Known Implementing Classes:
DefaultCMSWorkflowActionService
Service to manage workflow actions and decisions.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllActiveWorkflowActionsByStatusAndPrincipals(Set<CronJobStatus> workflowStatuses, Collection<PrincipalModel> currentPrincipals, PageableData pageableData) This method finds all the activeWorkflowActionModelofAbstractPageModelattachment types for the given principals and specified workflow statuses.getActionDecisionForCode(WorkflowActionModel action, String decisionCode) Finds theWorkflowDecisionModelfor a givenWorkflowActionModelthat matches the provided decision code.getWorkflowActionForCode(WorkflowModel workflow, String actionCode) Finds theWorkflowActionModelfor a givenWorkflowModelthat matches the provided action code.Methods inherited from interface de.hybris.platform.workflow.WorkflowActionService
complete, createWorkflowAction, disable, getActionForCode, getAllUserWorkflowActionsWithAttachment, getAllUserWorkflowActionsWithAttachment, getAllUserWorkflowActionsWithAttachments, getAllUserWorkflowActionsWithAttachments, getEndWorkflowActions, getNormalWorkflowActions, getStartWorkflowActions, getWorkflowActionsByType, idle, isActive, isCompleted, isDisabled, isEndedByWorkflow, isUserAssignedPrincipal
-
Method Details
-
getWorkflowActionForCode
Finds theWorkflowActionModelfor a givenWorkflowModelthat matches the provided action code.- Parameters:
workflow- - theWorkflowModelactionCode- - the action code- Returns:
- the
WorkflowActionModel
-
getActionDecisionForCode
Finds theWorkflowDecisionModelfor a givenWorkflowActionModelthat matches the provided decision code.- Parameters:
action- - theWorkflowActionModeldecisionCode- - the decision code- Returns:
- the
WorkflowDecisionModel
-
findAllActiveWorkflowActionsByStatusAndPrincipals
SearchResult<WorkflowActionModel> findAllActiveWorkflowActionsByStatusAndPrincipals(Set<CronJobStatus> workflowStatuses, Collection<PrincipalModel> currentPrincipals, PageableData pageableData) This method finds all the activeWorkflowActionModelofAbstractPageModelattachment types for the given principals and specified workflow statuses.- Parameters:
workflowStatuses- - the workflow statuses used to filter the resultcurrentPrincipals- - the principals for which to find the workflow actions that have active workflow actions to be acted upon.pageableData- - the pagination object used to set the page index and page size.- Returns:
- the search result object containing the resulting list of
WorkflowActionModeland the pagination object.
-