Class WorkflowServiceImpl
- java.lang.Object
-
- de.hybris.platform.workflow.services.impl.WorkflowServiceImpl
-
- All Implemented Interfaces:
WorkflowService
@Deprecated public class WorkflowServiceImpl extends java.lang.Object implements WorkflowService
Deprecated.since ages - UseDefaultWorkflowServiceinstead.
-
-
Field Summary
-
Fields inherited from interface de.hybris.platform.workflow.services.WorkflowService
ACTION_CREATE, ACTION_REMOVE, ACTION_SAVE
-
-
Constructor Summary
Constructors Constructor Description WorkflowServiceImpl()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddComment(java.lang.Object comment, WorkflowActionModel action)Deprecated.voidaddItems(ItemModel workflowModel, java.util.List<ItemModel> itemsToAdd)Deprecated.voidassignUser(PrincipalModel principalModel, WorkflowModel workflowModel)Deprecated.booleancanBeStarted(WorkflowModel workf)Deprecated.ItemModelcontainsItem(ItemModel workflowModel, java.util.List<ItemModel> itemsToAdd)Deprecated.WorkflowModelcreateAdhocWorkflow(java.lang.String defaultName, java.util.List<ItemModel> itemsToAdd)Deprecated.WorkflowModelcreateWorkflow(WorkflowTemplateModel templateModel, ItemModel itemModel)Deprecated.Creates workflow out of given template and starts it.WorkflowModelcreateWorkflow(java.lang.String workflowName, WorkflowTemplateModel template, java.util.List<ItemModel> itemsToAdd)Deprecated.Creates workflow out of given template with given name but does NOT start it.voiddecideAction(WorkflowActionModel action, WorkflowDecisionModel decision)Deprecated.voidevaluteActivationScripts(ItemModel itemModel, java.util.Map currentValues, java.util.Map initialValues, java.lang.String action)Deprecated.java.util.List<WorkflowActionModel>getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType)Deprecated.java.util.List<WorkflowActionModel>getAllUserWorkflowActionsWithAttachment(java.lang.String attachmentClassName)Deprecated.java.util.List<WorkflowActionModel>getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachmentClassNames)Deprecated.java.util.List<WorkflowActionModel>getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachmentClassNames, java.util.Collection<WorkflowActionStatus> actionStatuses)Deprecated.* @deprecated as of release 4.3, please useWorkflowActionService.getAllUserWorkflowActionsWithAttachments(List, Collection)java.util.List<WorkflowTemplateModel>getAllVisibleWorkflowTemplates()Deprecated.java.util.List<WorkflowModel>getAllWorkflows(int workflowsStatuses, int adhocWorkflowsStatuses, java.util.Date dateFrom, java.util.Date dateTo, java.util.Date adhocDateFrom, java.util.Date adhocDateTo)Deprecated.java.util.List<WorkflowTemplateModel>getAllWorkflowTemplates()Deprecated.java.util.List<ItemModel>getAttachmentsForAction(WorkflowActionModel action)Deprecated.java.util.List<ItemModel>getAttachmentsForAction(WorkflowActionModel action, java.lang.String attachmentClassName)Deprecated.java.util.List<ItemModel>getAttachmentsForAction(WorkflowActionModel action, java.util.List<java.lang.String> attachmentClassNames)Deprecated.java.util.List<WorkflowActionCommentModel>getCommentsForAction(WorkflowActionModel action)Deprecated.java.util.List<WorkflowDecisionModel>getDecisionsForAction(WorkflowActionModel action)Deprecated.since ages - as of release 4.3, please useWorkflowActionModel.getDecisions()java.util.List<WorkflowActionModel>getEndWorkflowActions(WorkflowModel wfModel)Deprecated.protected bsh.InterpretergetInterpreter()Deprecated.java.util.List<WorkflowActionModel>getNormalWorkflowActions(WorkflowModel wfModel)Deprecated.java.util.DategetStartTime(WorkflowModel workflow)Deprecated.java.util.List<WorkflowActionModel>getStartWorkflowActions(WorkflowModel wfModel)Deprecated.UserServicegetUserService()Deprecated.java.util.List<WorkflowActionModel>getWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel)Deprecated.WorkflowDAOgetWorkflowDao()Deprecated.java.util.List<WorkflowModel>getWorkflowsByTemplate(WorkflowTemplateModel template)Deprecated.since ages - as of release 4.3, please useWorkflowService.getWorkflowsForTemplateAndUser(de.hybris.platform.workflow.model.WorkflowTemplateModel, UserModel)booleanisAdhocWorkflow(WorkflowModel workflowModel)Deprecated.booleanisAutomatedComment(WorkflowActionCommentModel comment)Deprecated.since agesbooleanisFinished(java.lang.Object workflowModel)Deprecated.booleanisPaused(java.lang.Object workflowModel)Deprecated.booleanisPlanned(java.lang.Object workflowModel)Deprecated.booleanisRunning(java.lang.Object workflowModel)Deprecated.* @deprecated as of release 4.3, please useWorkflowService.isRunning(WorkflowModel)booleanisTerminated(java.lang.Object workflowModel)Deprecated.voidsetModelService(ModelService modelService)Deprecated.voidsetUserService(UserService userService)Deprecated.voidsetWorkflowDao(WorkflowDAO workflowDao)Deprecated.voidstartWorkflow(ItemModel workflowModel)Deprecated.voidterminateWorkflow(ItemModel workflowModel)Deprecated.* @deprecated as of release 4.3, please useWorkflowProcessingService.terminateWorkflow(WorkflowModel)voidunassignUser(PrincipalModel principalModel, WorkflowModel workflowModel)Deprecated.
-
-
-
Method Detail
-
getAllUserWorkflowActionsWithAttachment
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(java.lang.String attachmentClassName)
Deprecated.- Specified by:
getAllUserWorkflowActionsWithAttachmentin interfaceWorkflowService
-
getAllUserWorkflowActionsWithAttachment
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType)
Deprecated.- Specified by:
getAllUserWorkflowActionsWithAttachmentin interfaceWorkflowService
-
getAllUserWorkflowActionsWithAttachments
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachmentClassNames)
Deprecated.- Specified by:
getAllUserWorkflowActionsWithAttachmentsin interfaceWorkflowService
-
getAllUserWorkflowActionsWithAttachments
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachmentClassNames, java.util.Collection<WorkflowActionStatus> actionStatuses)
Deprecated.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
public java.util.List<WorkflowActionCommentModel> getCommentsForAction(WorkflowActionModel action)
Deprecated.- Specified by:
getCommentsForActionin interfaceWorkflowService
-
getAttachmentsForAction
public java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action)
Deprecated.- Specified by:
getAttachmentsForActionin interfaceWorkflowService
-
getAttachmentsForAction
public java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.lang.String attachmentClassName)
Deprecated.- Specified by:
getAttachmentsForActionin interfaceWorkflowService
-
getAttachmentsForAction
public java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.util.List<java.lang.String> attachmentClassNames)
Deprecated.- Specified by:
getAttachmentsForActionin interfaceWorkflowService
-
getDecisionsForAction
@Deprecated public java.util.List<WorkflowDecisionModel> getDecisionsForAction(WorkflowActionModel action)
Deprecated.since ages - as of release 4.3, please useWorkflowActionModel.getDecisions()- Specified by:
getDecisionsForActionin interfaceWorkflowService
-
decideAction
public void decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
Deprecated.- Specified by:
decideActionin interfaceWorkflowService
-
addComment
public void addComment(java.lang.Object comment, WorkflowActionModel action)Deprecated.- Specified by:
addCommentin interfaceWorkflowService
-
evaluteActivationScripts
public void evaluteActivationScripts(ItemModel itemModel, java.util.Map currentValues, java.util.Map initialValues, java.lang.String action)
Deprecated.- Specified by:
evaluteActivationScriptsin interfaceWorkflowService
-
getInterpreter
protected bsh.Interpreter getInterpreter()
Deprecated.
-
createWorkflow
public WorkflowModel createWorkflow(WorkflowTemplateModel templateModel, ItemModel itemModel)
Deprecated.Creates workflow out of given template and starts it. Given item is attached to it.- Specified by:
createWorkflowin interfaceWorkflowService
-
createWorkflow
public WorkflowModel createWorkflow(java.lang.String workflowName, WorkflowTemplateModel template, java.util.List<ItemModel> itemsToAdd)
Deprecated.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 public boolean isAutomatedComment(WorkflowActionCommentModel comment)
Deprecated.since ages- Specified by:
isAutomatedCommentin interfaceWorkflowService
-
getAllWorkflowTemplates
public java.util.List<WorkflowTemplateModel> getAllWorkflowTemplates()
Deprecated.- Specified by:
getAllWorkflowTemplatesin interfaceWorkflowService
-
getWorkflowsByTemplate
@Deprecated public java.util.List<WorkflowModel> getWorkflowsByTemplate(WorkflowTemplateModel template)
Deprecated.since ages - as of release 4.3, please useWorkflowService.getWorkflowsForTemplateAndUser(de.hybris.platform.workflow.model.WorkflowTemplateModel, UserModel)- Specified by:
getWorkflowsByTemplatein interfaceWorkflowService
-
getAllWorkflows
public java.util.List<WorkflowModel> getAllWorkflows(int workflowsStatuses, int adhocWorkflowsStatuses, java.util.Date dateFrom, java.util.Date dateTo, java.util.Date adhocDateFrom, java.util.Date adhocDateTo)
Deprecated.- 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
public WorkflowDAO getWorkflowDao()
Deprecated.
-
createAdhocWorkflow
public WorkflowModel createAdhocWorkflow(java.lang.String defaultName, java.util.List<ItemModel> itemsToAdd)
Deprecated.- Specified by:
createAdhocWorkflowin interfaceWorkflowService- Parameters:
defaultName- of adhoc workflowitemsToAdd- list of items to add- Returns:
- created adhoc workflow
-
setWorkflowDao
public void setWorkflowDao(WorkflowDAO workflowDao)
Deprecated.- Parameters:
workflowDao- the workflowDao to set
-
assignUser
public void assignUser(PrincipalModel principalModel, WorkflowModel workflowModel)
Deprecated.- Specified by:
assignUserin interfaceWorkflowService- Parameters:
principalModel- to assign to given workflow
-
setModelService
public void setModelService(ModelService modelService)
Deprecated.- Parameters:
modelService- the modelService to set
-
getAllVisibleWorkflowTemplates
public java.util.List<WorkflowTemplateModel> getAllVisibleWorkflowTemplates()
Deprecated.- 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
public UserService getUserService()
Deprecated.- Returns:
- the userService
-
setUserService
public void setUserService(UserService userService)
Deprecated.- Parameters:
userService- the userService to set
-
isPaused
public boolean isPaused(java.lang.Object workflowModel)
Deprecated.- Specified by:
isPausedin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is paused
-
startWorkflow
public void startWorkflow(ItemModel workflowModel)
Deprecated.- Specified by:
startWorkflowin interfaceWorkflowService
-
terminateWorkflow
public void terminateWorkflow(ItemModel workflowModel)
Deprecated.Description copied from interface:WorkflowService* @deprecated as of release 4.3, please useWorkflowProcessingService.terminateWorkflow(WorkflowModel)terminate given (adhoc) workflow
- Specified by:
terminateWorkflowin interfaceWorkflowService
-
isTerminated
public boolean isTerminated(java.lang.Object workflowModel)
Deprecated.- Specified by:
isTerminatedin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is terminated
-
isPlanned
public boolean isPlanned(java.lang.Object workflowModel)
Deprecated.- Specified by:
isPlannedin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is planned
-
isRunning
public boolean isRunning(java.lang.Object workflowModel)
Deprecated.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
public boolean isFinished(java.lang.Object workflowModel)
Deprecated.- Specified by:
isFinishedin interfaceWorkflowService- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is finished
-
addItems
public void addItems(ItemModel workflowModel, java.util.List<ItemModel> itemsToAdd)
Deprecated.- Specified by:
addItemsin interfaceWorkflowService
-
containsItem
public ItemModel containsItem(ItemModel workflowModel, java.util.List<ItemModel> itemsToAdd)
Deprecated.- Specified by:
containsItemin interfaceWorkflowService- Returns:
- first item from given list found in workflow, null otherwise
-
isAdhocWorkflow
public boolean isAdhocWorkflow(WorkflowModel workflowModel)
Deprecated.- Specified by:
isAdhocWorkflowin interfaceWorkflowService- Returns:
- true if given workflow was created out of adhoc-workflow template
-
canBeStarted
public boolean canBeStarted(WorkflowModel workf)
Deprecated.- Specified by:
canBeStartedin interfaceWorkflowService- Returns:
- true if given workflow can be started, false otherwise (e.g. when there are is no user assigned)
-
getStartTime
public java.util.Date getStartTime(WorkflowModel workflow)
Deprecated.- Specified by:
getStartTimein interfaceWorkflowService- Returns:
- start time of given workflow
-
unassignUser
public void unassignUser(PrincipalModel principalModel, WorkflowModel workflowModel)
Deprecated.- Specified by:
unassignUserin interfaceWorkflowService- Parameters:
principalModel- to unassign from given adhoc workflow
-
getStartWorkflowActions
public java.util.List<WorkflowActionModel> getStartWorkflowActions(WorkflowModel wfModel)
Deprecated.- Specified by:
getStartWorkflowActionsin interfaceWorkflowService- Returns:
- all workflow actions that are marked as 'start action'
-
getNormalWorkflowActions
public java.util.List<WorkflowActionModel> getNormalWorkflowActions(WorkflowModel wfModel)
Deprecated.- Specified by:
getNormalWorkflowActionsin interfaceWorkflowService- Returns:
- all workflow actions that are marked as 'normal action'
-
getEndWorkflowActions
public java.util.List<WorkflowActionModel> getEndWorkflowActions(WorkflowModel wfModel)
Deprecated.- Specified by:
getEndWorkflowActionsin interfaceWorkflowService- Returns:
- all workflow actions that are marked as 'end action'
-
getWorkflowActionsByType
public java.util.List<WorkflowActionModel> getWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel)
Deprecated.- Specified by:
getWorkflowActionsByTypein interfaceWorkflowService- Returns:
- all workflow actions which are of given type
-
-