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 - UseDefaultWorkflowService
instead.
-
-
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 void
addComment(java.lang.Object comment, WorkflowActionModel action)
Deprecated.void
addItems(ItemModel workflowModel, java.util.List<ItemModel> itemsToAdd)
Deprecated.void
assignUser(PrincipalModel principalModel, WorkflowModel workflowModel)
Deprecated.boolean
canBeStarted(WorkflowModel workf)
Deprecated.ItemModel
containsItem(ItemModel workflowModel, java.util.List<ItemModel> itemsToAdd)
Deprecated.WorkflowModel
createAdhocWorkflow(java.lang.String defaultName, java.util.List<ItemModel> itemsToAdd)
Deprecated.WorkflowModel
createWorkflow(WorkflowTemplateModel templateModel, ItemModel itemModel)
Deprecated.Creates workflow out of given template and starts it.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.void
decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
Deprecated.void
evaluteActivationScripts(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.Interpreter
getInterpreter()
Deprecated.java.util.List<WorkflowActionModel>
getNormalWorkflowActions(WorkflowModel wfModel)
Deprecated.java.util.Date
getStartTime(WorkflowModel workflow)
Deprecated.java.util.List<WorkflowActionModel>
getStartWorkflowActions(WorkflowModel wfModel)
Deprecated.UserService
getUserService()
Deprecated.java.util.List<WorkflowActionModel>
getWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel)
Deprecated.WorkflowDAO
getWorkflowDao()
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)
boolean
isAdhocWorkflow(WorkflowModel workflowModel)
Deprecated.boolean
isAutomatedComment(WorkflowActionCommentModel comment)
Deprecated.since agesboolean
isFinished(java.lang.Object workflowModel)
Deprecated.boolean
isPaused(java.lang.Object workflowModel)
Deprecated.boolean
isPlanned(java.lang.Object workflowModel)
Deprecated.boolean
isRunning(java.lang.Object workflowModel)
Deprecated.* @deprecated as of release 4.3, please useWorkflowService.isRunning(WorkflowModel)
boolean
isTerminated(java.lang.Object workflowModel)
Deprecated.void
setModelService(ModelService modelService)
Deprecated.void
setUserService(UserService userService)
Deprecated.void
setWorkflowDao(WorkflowDAO workflowDao)
Deprecated.void
startWorkflow(ItemModel workflowModel)
Deprecated.void
terminateWorkflow(ItemModel workflowModel)
Deprecated.* @deprecated as of release 4.3, please useWorkflowProcessingService.terminateWorkflow(WorkflowModel)
void
unassignUser(PrincipalModel principalModel, WorkflowModel workflowModel)
Deprecated.
-
-
-
Method Detail
-
getAllUserWorkflowActionsWithAttachment
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(java.lang.String attachmentClassName)
Deprecated.- Specified by:
getAllUserWorkflowActionsWithAttachment
in interfaceWorkflowService
-
getAllUserWorkflowActionsWithAttachment
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType)
Deprecated.- Specified by:
getAllUserWorkflowActionsWithAttachment
in interfaceWorkflowService
-
getAllUserWorkflowActionsWithAttachments
public java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachmentClassNames)
Deprecated.- Specified by:
getAllUserWorkflowActionsWithAttachments
in 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:
getAllUserWorkflowActionsWithAttachments
in 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:
getCommentsForAction
in interfaceWorkflowService
-
getAttachmentsForAction
public java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action)
Deprecated.- Specified by:
getAttachmentsForAction
in interfaceWorkflowService
-
getAttachmentsForAction
public java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.lang.String attachmentClassName)
Deprecated.- Specified by:
getAttachmentsForAction
in interfaceWorkflowService
-
getAttachmentsForAction
public java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.util.List<java.lang.String> attachmentClassNames)
Deprecated.- Specified by:
getAttachmentsForAction
in interfaceWorkflowService
-
getDecisionsForAction
@Deprecated public java.util.List<WorkflowDecisionModel> getDecisionsForAction(WorkflowActionModel action)
Deprecated.since ages - as of release 4.3, please useWorkflowActionModel.getDecisions()
- Specified by:
getDecisionsForAction
in interfaceWorkflowService
-
decideAction
public void decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
Deprecated.- Specified by:
decideAction
in interfaceWorkflowService
-
addComment
public void addComment(java.lang.Object comment, WorkflowActionModel action)
Deprecated.- Specified by:
addComment
in interfaceWorkflowService
-
evaluteActivationScripts
public void evaluteActivationScripts(ItemModel itemModel, java.util.Map currentValues, java.util.Map initialValues, java.lang.String action)
Deprecated.- Specified by:
evaluteActivationScripts
in 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:
createWorkflow
in 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:
createWorkflow
in interfaceWorkflowService
-
isAutomatedComment
@Deprecated public boolean isAutomatedComment(WorkflowActionCommentModel comment)
Deprecated.since ages- Specified by:
isAutomatedComment
in interfaceWorkflowService
-
getAllWorkflowTemplates
public java.util.List<WorkflowTemplateModel> getAllWorkflowTemplates()
Deprecated.- Specified by:
getAllWorkflowTemplates
in 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:
getWorkflowsByTemplate
in 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:
getAllWorkflows
in interfaceWorkflowService
- Parameters:
workflowsStatuses
- 0 - all, seeWorkflowConstants.WorkflowStatus
for other valuesadhocWorkflowsStatuses
- 0 - all, seeWorkflowConstants.WorkflowStatus
for 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:
createAdhocWorkflow
in 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:
assignUser
in 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:
getAllVisibleWorkflowTemplates
in 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:
isPaused
in interfaceWorkflowService
- Parameters:
workflowModel
- or adhoc workflow model- Returns:
- true if workflow is paused
-
startWorkflow
public void startWorkflow(ItemModel workflowModel)
Deprecated.- Specified by:
startWorkflow
in 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:
terminateWorkflow
in interfaceWorkflowService
-
isTerminated
public boolean isTerminated(java.lang.Object workflowModel)
Deprecated.- Specified by:
isTerminated
in interfaceWorkflowService
- Parameters:
workflowModel
- or adhoc workflow model- Returns:
- true if workflow is terminated
-
isPlanned
public boolean isPlanned(java.lang.Object workflowModel)
Deprecated.- Specified by:
isPlanned
in 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:
isRunning
in interfaceWorkflowService
- Parameters:
workflowModel
- or adhoc workflow model- Returns:
- true if workflow is running
-
isFinished
public boolean isFinished(java.lang.Object workflowModel)
Deprecated.- Specified by:
isFinished
in 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:
addItems
in interfaceWorkflowService
-
containsItem
public ItemModel containsItem(ItemModel workflowModel, java.util.List<ItemModel> itemsToAdd)
Deprecated.- Specified by:
containsItem
in interfaceWorkflowService
- Returns:
- first item from given list found in workflow, null otherwise
-
isAdhocWorkflow
public boolean isAdhocWorkflow(WorkflowModel workflowModel)
Deprecated.- Specified by:
isAdhocWorkflow
in interfaceWorkflowService
- Returns:
- true if given workflow was created out of adhoc-workflow template
-
canBeStarted
public boolean canBeStarted(WorkflowModel workf)
Deprecated.- Specified by:
canBeStarted
in 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:
getStartTime
in interfaceWorkflowService
- Returns:
- start time of given workflow
-
unassignUser
public void unassignUser(PrincipalModel principalModel, WorkflowModel workflowModel)
Deprecated.- Specified by:
unassignUser
in interfaceWorkflowService
- Parameters:
principalModel
- to unassign from given adhoc workflow
-
getStartWorkflowActions
public java.util.List<WorkflowActionModel> getStartWorkflowActions(WorkflowModel wfModel)
Deprecated.- Specified by:
getStartWorkflowActions
in interfaceWorkflowService
- Returns:
- all workflow actions that are marked as 'start action'
-
getNormalWorkflowActions
public java.util.List<WorkflowActionModel> getNormalWorkflowActions(WorkflowModel wfModel)
Deprecated.- Specified by:
getNormalWorkflowActions
in interfaceWorkflowService
- Returns:
- all workflow actions that are marked as 'normal action'
-
getEndWorkflowActions
public java.util.List<WorkflowActionModel> getEndWorkflowActions(WorkflowModel wfModel)
Deprecated.- Specified by:
getEndWorkflowActions
in 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:
getWorkflowActionsByType
in interfaceWorkflowService
- Returns:
- all workflow actions which are of given type
-
-