Class WorkflowServiceImpl
java.lang.Object
de.hybris.platform.workflow.services.impl.WorkflowServiceImpl
- All Implemented Interfaces:
WorkflowService
- Direct Known Subclasses:
CmsWorkflowServiceImpl
@Deprecated(since="ages",
forRemoval=true)
public class WorkflowServiceImpl
extends Object
implements WorkflowService
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Fields inherited from interface de.hybris.platform.workflow.services.WorkflowService
ACTION_CREATE, ACTION_REMOVE, ACTION_SAVE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(Object comment, WorkflowActionModel action) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidassignUser(PrincipalModel principalModel, WorkflowModel workflowModel) Deprecated, for removal: This API element is subject to removal in a future version.booleancanBeStarted(WorkflowModel workf) Deprecated, for removal: This API element is subject to removal in a future version.containsItem(ItemModel workflowModel, List<ItemModel> itemsToAdd) Deprecated, for removal: This API element is subject to removal in a future version.createAdhocWorkflow(String defaultName, List<ItemModel> itemsToAdd) Deprecated, for removal: This API element is subject to removal in a future version.createWorkflow(WorkflowTemplateModel templateModel, ItemModel itemModel) Deprecated, for removal: This API element is subject to removal in a future version.Creates workflow out of given template and starts it.createWorkflow(String workflowName, WorkflowTemplateModel template, List<ItemModel> itemsToAdd) Deprecated, for removal: This API element is subject to removal in a future version.Creates workflow out of given template with given name but does NOT start it.voiddecideAction(WorkflowActionModel action, WorkflowDecisionModel decision) Deprecated, for removal: This API element is subject to removal in a future version.voidevaluteActivationScripts(ItemModel itemModel, Map currentValues, Map initialValues, String action) Deprecated, for removal: This API element is subject to removal in a future version.getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType) Deprecated, for removal: This API element is subject to removal in a future version.getAllUserWorkflowActionsWithAttachment(String attachmentClassName) Deprecated, for removal: This API element is subject to removal in a future version.getAllUserWorkflowActionsWithAttachments(List<String> attachmentClassNames) Deprecated, for removal: This API element is subject to removal in a future version.getAllUserWorkflowActionsWithAttachments(List<String> attachmentClassNames, Collection<WorkflowActionStatus> actionStatuses) Deprecated, for removal: This API element is subject to removal in a future version.* @deprecated as of release 4.3, please useWorkflowActionService.getAllUserWorkflowActionsWithAttachments(List, Collection)Deprecated, for removal: This API element is subject to removal in a future version.getAllWorkflows(int workflowsStatuses, int adhocWorkflowsStatuses, Date dateFrom, Date dateTo, Date adhocDateFrom, Date adhocDateTo) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getAttachmentsForAction(WorkflowActionModel action, String attachmentClassName) Deprecated, for removal: This API element is subject to removal in a future version.getAttachmentsForAction(WorkflowActionModel action, List<String> attachmentClassNames) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useWorkflowActionModel.getDecisions()getEndWorkflowActions(WorkflowModel wfModel) Deprecated, for removal: This API element is subject to removal in a future version.protected bsh.InterpreterDeprecated, for removal: This API element is subject to removal in a future version.getNormalWorkflowActions(WorkflowModel wfModel) Deprecated, for removal: This API element is subject to removal in a future version.getStartTime(WorkflowModel workflow) Deprecated, for removal: This API element is subject to removal in a future version.getStartWorkflowActions(WorkflowModel wfModel) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getWorkflowsByTemplate(WorkflowTemplateModel template) Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useWorkflowService.getWorkflowsForTemplateAndUser(de.hybris.platform.workflow.model.WorkflowTemplateModel, UserModel)booleanisAdhocWorkflow(WorkflowModel workflowModel) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.since agesbooleanisFinished(Object workflowModel) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.* @deprecated as of release 4.3, please useWorkflowService.isRunning(WorkflowModel)booleanisTerminated(Object workflowModel) Deprecated, for removal: This API element is subject to removal in a future version.voidsetModelService(ModelService modelService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetUserService(UserService userService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetWorkflowDao(WorkflowDAO workflowDao) Deprecated, for removal: This API element is subject to removal in a future version.voidstartWorkflow(ItemModel workflowModel) Deprecated, for removal: This API element is subject to removal in a future version.voidterminateWorkflow(ItemModel workflowModel) Deprecated, for removal: This API element is subject to removal in a future version.* @deprecated as of release 4.3, please useWorkflowProcessingService.terminateWorkflow(WorkflowModel)voidunassignUser(PrincipalModel principalModel, WorkflowModel workflowModel) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
WorkflowServiceImpl
public WorkflowServiceImpl()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getAllUserWorkflowActionsWithAttachment
public List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(String attachmentClassName) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllUserWorkflowActionsWithAttachmentin interfaceWorkflowService
-
getAllUserWorkflowActionsWithAttachment
public List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllUserWorkflowActionsWithAttachmentin interfaceWorkflowService
-
getAllUserWorkflowActionsWithAttachments
public List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(List<String> attachmentClassNames) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllUserWorkflowActionsWithAttachmentsin interfaceWorkflowService
-
getAllUserWorkflowActionsWithAttachments
public List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(List<String> attachmentClassNames, Collection<WorkflowActionStatus> actionStatuses) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:WorkflowService* @deprecated as of release 4.3, please useWorkflowActionService.getAllUserWorkflowActionsWithAttachments(List, Collection)Retrieves workflow actions with specified criteria.
- Specified by:
getAllUserWorkflowActionsWithAttachmentsin interfaceWorkflowService- Parameters:
attachmentClassNames- list of allowed attachment class namesactionStatuses- allowed action statuses- Returns:
- list of workflow actions
-
getCommentsForAction
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCommentsForActionin interfaceWorkflowService
-
getAttachmentsForAction
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttachmentsForActionin interfaceWorkflowService
-
getAttachmentsForAction
public List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, String attachmentClassName) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttachmentsForActionin interfaceWorkflowService
-
getAttachmentsForAction
public List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, List<String> attachmentClassNames) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAttachmentsForActionin interfaceWorkflowService
-
getDecisionsForAction
@Deprecated(since="ages", forRemoval=true) public List<WorkflowDecisionModel> getDecisionsForAction(WorkflowActionModel action) Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useWorkflowActionModel.getDecisions()- Specified by:
getDecisionsForActionin interfaceWorkflowService
-
decideAction
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
decideActionin interfaceWorkflowService
-
addComment
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addCommentin interfaceWorkflowService
-
evaluteActivationScripts
public void evaluteActivationScripts(ItemModel itemModel, Map currentValues, Map initialValues, String action) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
evaluteActivationScriptsin interfaceWorkflowService
-
getInterpreter
protected bsh.Interpreter getInterpreter()Deprecated, for removal: This API element is subject to removal in a future version. -
createWorkflow
Deprecated, for removal: This API element is subject to removal in a future version.Creates workflow out of given template and starts it. Given item is attached to it.- Specified by:
createWorkflowin interfaceWorkflowService
-
createWorkflow
public WorkflowModel createWorkflow(String workflowName, WorkflowTemplateModel template, List<ItemModel> itemsToAdd) Deprecated, for removal: This API element is subject to removal in a future version.Creates workflow out of given template with given name but does NOT start it. Given list of items is attached to it.- Specified by:
createWorkflowin interfaceWorkflowService
-
isAutomatedComment
@Deprecated(since="ages", forRemoval=true) public boolean isAutomatedComment(WorkflowActionCommentModel comment) Deprecated, for removal: This API element is subject to removal in a future version.since ages- Specified by:
isAutomatedCommentin interfaceWorkflowService
-
getAllWorkflowTemplates
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllWorkflowTemplatesin interfaceWorkflowService
-
getWorkflowsByTemplate
@Deprecated(since="ages", forRemoval=true) public List<WorkflowModel> getWorkflowsByTemplate(WorkflowTemplateModel template) Deprecated, for removal: This API element is subject to removal in a future version.since ages - as of release 4.3, please useWorkflowService.getWorkflowsForTemplateAndUser(de.hybris.platform.workflow.model.WorkflowTemplateModel, UserModel)- Specified by:
getWorkflowsByTemplatein interfaceWorkflowService
-
getAllWorkflows
public List<WorkflowModel> getAllWorkflows(int workflowsStatuses, int adhocWorkflowsStatuses, Date dateFrom, Date dateTo, Date adhocDateFrom, Date adhocDateTo) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllWorkflowsin interfaceWorkflowService- Parameters:
workflowsStatuses- 0 - all, seeWorkflowConstants.WorkflowStatusfor other valuesadhocWorkflowsStatuses- 0 - all, seeWorkflowConstants.WorkflowStatusfor other values- Returns:
- List of workflows fulfilling given criteria, e.g. if only planned and running workflows should be returned then put 3 as workflowsStatuses and 0 for adhocWorkflowsStatuses.
-
getWorkflowDao
Deprecated, for removal: This API element is subject to removal in a future version. -
createAdhocWorkflow
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createAdhocWorkflowin interfaceWorkflowService- Parameters:
defaultName- of adhoc workflowitemsToAdd- list of items to add- Returns:
- created adhoc workflow
-
setWorkflowDao
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
workflowDao- the workflowDao to set
-
assignUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
assignUserin interfaceWorkflowService- Parameters:
principalModel- to assign to given workflow
-
setModelService
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
modelService- the modelService to set
-
getAllVisibleWorkflowTemplates
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllVisibleWorkflowTemplatesin interfaceWorkflowService- Returns:
- all visible workflow templates for current session user, including templates that user is owner of, excluding special adhoc-workflow template
-
getUserService
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the userService
-
setUserService
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
userService- the userService to set
-
isPaused
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isPausedin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is paused
-
startWorkflow
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
startWorkflowin interfaceWorkflowService
-
terminateWorkflow
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:WorkflowService* @deprecated as of release 4.3, please useWorkflowProcessingService.terminateWorkflow(WorkflowModel)terminate given (adhoc) workflow
- Specified by:
terminateWorkflowin interfaceWorkflowService
-
isTerminated
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isTerminatedin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is terminated
-
isPlanned
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isPlannedin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is planned
-
isRunning
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:WorkflowService* @deprecated as of release 4.3, please useWorkflowService.isRunning(WorkflowModel)- Specified by:
isRunningin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is running
-
isFinished
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isFinishedin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is finished
-
addItems
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addItemsin interfaceWorkflowService
-
containsItem
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsItemin interfaceWorkflowService- Returns:
- first item from given list found in workflow, null otherwise
-
isAdhocWorkflow
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isAdhocWorkflowin interfaceWorkflowService- Returns:
- true if given workflow was created out of adhoc-workflow template
-
canBeStarted
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
canBeStartedin interfaceWorkflowService- Returns:
- true if given workflow can be started, false otherwise (e.g. when there are is no user assigned)
-
getStartTime
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getStartTimein interfaceWorkflowService- Returns:
- start time of given workflow
-
unassignUser
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
unassignUserin interfaceWorkflowService- Parameters:
principalModel- to unassign from given adhoc workflow
-
getStartWorkflowActions
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getStartWorkflowActionsin interfaceWorkflowService- Returns:
- all workflow actions that are marked as 'start action'
-
getNormalWorkflowActions
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNormalWorkflowActionsin interfaceWorkflowService- Returns:
- all workflow actions that are marked as 'normal action'
-
getEndWorkflowActions
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getEndWorkflowActionsin interfaceWorkflowService- Returns:
- all workflow actions that are marked as 'end action'
-
getWorkflowActionsByType
public List<WorkflowActionModel> getWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getWorkflowActionsByTypein interfaceWorkflowService- Returns:
- all workflow actions which are of given type
-
DefaultWorkflowServiceinstead.