Interface WorkflowService
-
- All Known Implementing Classes:
WorkflowServiceImpl
@Deprecated public interface WorkflowServiceDeprecated.since ages - as of release 4.3, please useWorkflowService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACTION_CREATEDeprecated.static java.lang.StringACTION_REMOVEDeprecated.static java.lang.StringACTION_SAVEDeprecated.
-
Method Summary
-
-
-
Field Detail
-
ACTION_CREATE
static final java.lang.String ACTION_CREATE
Deprecated.- See Also:
- Constant Field Values
-
ACTION_REMOVE
static final java.lang.String ACTION_REMOVE
Deprecated.- See Also:
- Constant Field Values
-
ACTION_SAVE
static final java.lang.String ACTION_SAVE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllUserWorkflowActionsWithAttachment
@Deprecated java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(java.lang.String attachmentClassName)
Deprecated.since ages - as of release 4.3, please useWorkflowActionService.getAllUserWorkflowActionsWithAttachment(String)
-
getAllUserWorkflowActionsWithAttachment
@Deprecated java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType)
Deprecated.since ages - as of release 4.3, please useWorkflowActionService.getAllUserWorkflowActionsWithAttachment(de.hybris.platform.core.model.type.ComposedTypeModel)
-
getAllUserWorkflowActionsWithAttachments
@Deprecated java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachmentClassNames)
Deprecated.since ages - as of release 4.3, please useWorkflowActionService.getAllUserWorkflowActionsWithAttachments(List)
-
getAllUserWorkflowActionsWithAttachments
@Deprecated java.util.List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(java.util.List<java.lang.String> attachmentClassNames, java.util.Collection<WorkflowActionStatus> actionStatuses)
Deprecated.since ages* @deprecated as of release 4.3, please useWorkflowActionService.getAllUserWorkflowActionsWithAttachments(List, Collection)Retrieves workflow actions with specified criteria.
- Parameters:
attachmentClassNames- list of allowed attachment class namesactionStatuses- allowed action statuses- Returns:
- list of workflow actions
-
getCommentsForAction
@Deprecated java.util.List<WorkflowActionCommentModel> getCommentsForAction(WorkflowActionModel action)
Deprecated.since ages - as of release 4.3, please useAbstractWorkflowActionModel.getWorkflowActionComments()
-
getAttachmentsForAction
@Deprecated java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action)
Deprecated.since ages - as of release 4.3, please useWorkflowAttachmentService.getAttachmentsForAction(WorkflowActionModel)
-
getAttachmentsForAction
@Deprecated java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.lang.String attachmentClassName)
Deprecated.since ages - as of release 4.3, please useWorkflowAttachmentService.getAttachmentsForAction(WorkflowActionModel, String)
-
getAttachmentsForAction
@Deprecated java.util.List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, java.util.List<java.lang.String> attachmentClassNames)
Deprecated.since ages - as of release 4.3, please useWorkflowAttachmentService.getAttachmentsForAction(WorkflowActionModel, List)
-
getDecisionsForAction
@Deprecated java.util.List<WorkflowDecisionModel> getDecisionsForAction(WorkflowActionModel action)
Deprecated.since ages - as of release 4.3, please useWorkflowActionModel.getDecisions()
-
decideAction
@Deprecated void decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
Deprecated.since ages - as of release 4.3, please useWorkflowProcessingService.decideAction(WorkflowActionModel, WorkflowDecisionModel)
-
addComment
@Deprecated void addComment(java.lang.Object comment, WorkflowActionModel action)Deprecated.since ages - as of release 4.3, please useWorkflowActionCommentService.addCommentToAction(String, WorkflowActionModel)
-
evaluteActivationScripts
@Deprecated void evaluteActivationScripts(ItemModel item, java.util.Map currentValues, java.util.Map initialValues, java.lang.String action)
Deprecated.since ages - as of release 4.3, please useScriptEvaluationService.evaluateActivationScripts(ItemModel, Map, Map, String)
-
createWorkflow
@Deprecated WorkflowModel createWorkflow(WorkflowTemplateModel templateModel, ItemModel itemModel)
Deprecated.since ages - as of release 4.3, please useWorkflowService.createWorkflow(WorkflowTemplateModel, ItemModel, de.hybris.platform.core.model.user.UserModel)Creates workflow out of given template and starts it. Given item is attached to it.
-
createWorkflow
@Deprecated WorkflowModel createWorkflow(java.lang.String workflowName, WorkflowTemplateModel template, java.util.List<ItemModel> itemsToAdd)
Deprecated.since ages - as of release 4.3, please useWorkflowService.createWorkflow(String, WorkflowTemplateModel, List, de.hybris.platform.core.model.user.UserModel)Creates workflow out of given template with given name but does NOT start it. Given list of items is attached to it.
-
isAutomatedComment
@Deprecated boolean isAutomatedComment(WorkflowActionCommentModel comment)
Deprecated.since ages - as of release 4.3, please useWorkflowActionCommentService.isAutomatedComment(WorkflowActionCommentModel)
-
getAllWorkflowTemplates
@Deprecated java.util.List<WorkflowTemplateModel> getAllWorkflowTemplates()
Deprecated.since ages - as of release 4.3, please useWorkflowTemplateService.getAllWorkflowTemplates()
-
getWorkflowsByTemplate
@Deprecated java.util.List<WorkflowModel> getWorkflowsByTemplate(WorkflowTemplateModel template)
Deprecated.since ages - as of release 4.3, please useWorkflowService.getWorkflowsForTemplateAndUser(WorkflowTemplateModel, de.hybris.platform.core.model.user.UserModel)
-
getAllWorkflows
@Deprecated java.util.List<WorkflowModel> getAllWorkflows(int workflowsStatuses, int adhocWorkflowsStatuses, java.util.Date dateFrom, java.util.Date dateTo, java.util.Date adhocFilterFrom, java.util.Date adhocFilterTo)
Deprecated.since ages - as of release 4.3, please useWorkflowService.getAllWorkflows(java.util.EnumSet, Date, Date)andWorkflowService.getAllAdhocWorkflows(java.util.EnumSet, Date, Date)- 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.
-
createAdhocWorkflow
@Deprecated WorkflowModel createAdhocWorkflow(java.lang.String defaultName, java.util.List<ItemModel> itemsToAdd)
Deprecated.since ages - as of release 4.3, please useWorkflowService.createAdhocWorkflow(String, List, de.hybris.platform.core.model.user.UserModel)Creates adhoc workflow with given name, assigns given items to it and sets current user as owner.
- Parameters:
itemsToAdd- list of items to adddefaultName- of adhoc workflow- Returns:
- created adhoc workflow
-
assignUser
@Deprecated void assignUser(PrincipalModel principalModel, WorkflowModel workflow)
Deprecated.since ages - as of release 4.3, please useWorkflowService.assignUser(PrincipalModel, WorkflowModel)- Parameters:
principalModel- to assign to given workflow
-
getAllVisibleWorkflowTemplates
@Deprecated java.util.List<WorkflowTemplateModel> getAllVisibleWorkflowTemplates()
Deprecated.since ages - as of release 4.3, please useWorkflowTemplateService.getAllVisibleWorkflowTemplatesForUser(de.hybris.platform.core.model.user.UserModel)- Returns:
- all visible workflow templates for current session user, including templates that user is owner of, excluding special adhoc-workflow template
-
isPaused
@Deprecated boolean isPaused(java.lang.Object workflowModel)
Deprecated.since ages - as of release 4.3, please useWorkflowService.isPaused(WorkflowModel)- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is paused
-
startWorkflow
@Deprecated void startWorkflow(ItemModel workflowModel)
Deprecated.since ages - as of release 4.3, please useWorkflowProcessingService.startWorkflow(WorkflowModel)starts given (adhoc) workflow
-
terminateWorkflow
@Deprecated void terminateWorkflow(ItemModel workflowModel)
Deprecated.since ages* @deprecated as of release 4.3, please useWorkflowProcessingService.terminateWorkflow(WorkflowModel)terminate given (adhoc) workflow
-
isTerminated
@Deprecated boolean isTerminated(java.lang.Object workflowModel)
Deprecated.since ages - as of release 4.3, please useWorkflowService.isTerminated(WorkflowModel)- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is terminated
-
isRunning
@Deprecated boolean isRunning(java.lang.Object workflowModel)
Deprecated.since ages* @deprecated as of release 4.3, please useWorkflowService.isRunning(WorkflowModel)- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is running
-
isFinished
@Deprecated boolean isFinished(java.lang.Object workflowModel)
Deprecated.since ages - as of release 4.3, please useWorkflowService.isFinished(WorkflowModel)- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is finished
-
isPlanned
@Deprecated boolean isPlanned(java.lang.Object workflowModel)
Deprecated.since ages - as of release 4.3, please useWorkflowService.isPlanned(WorkflowModel)- Parameters:
workflowModel- or adhoc workflow model- Returns:
- true if workflow is planned
-
addItems
@Deprecated void addItems(ItemModel workflowModel, java.util.List<ItemModel> itemsToAdd)
Deprecated.since ages - as of release 4.3, please useWorkflowAttachmentService.addItems(WorkflowModel, List)adds given items to given workflow
-
containsItem
@Deprecated ItemModel containsItem(ItemModel modelData, java.util.List<ItemModel> itemsToAdd)
Deprecated.since ages - as of release 4.3, please useWorkflowAttachmentService.containsItem(WorkflowModel, List)Checks if given workflow has one of given items attached.
- Returns:
- first item from given list found in workflow, null otherwise
-
isAdhocWorkflow
@Deprecated boolean isAdhocWorkflow(WorkflowModel workflow)
Deprecated.since ages - as of release 4.3, please useWorkflowService.isAdhocWorkflow(WorkflowModel)- Returns:
- true if given workflow was created out of adhoc-workflow template
-
canBeStarted
@Deprecated boolean canBeStarted(WorkflowModel workf)
Deprecated.since ages - as of release 4.3, please useWorkflowService.canBeStarted(WorkflowModel)- Returns:
- true if given workflow can be started, false otherwise (e.g. when there are is no user assigned)
-
getStartTime
@Deprecated java.util.Date getStartTime(WorkflowModel workflow)
Deprecated.since ages - as of release 4.3, please useWorkflowService.getStartTime(WorkflowModel)- Returns:
- start time of given workflow
-
unassignUser
@Deprecated void unassignUser(PrincipalModel principalModel, WorkflowModel workflow)
Deprecated.since ages - as of release 4.3, please useWorkflowService.unassignUser(WorkflowModel)- Parameters:
principalModel- to unassign from given adhoc workflow
-
getStartWorkflowActions
@Deprecated java.util.List<WorkflowActionModel> getStartWorkflowActions(WorkflowModel workflowModel)
Deprecated.since ages - as of release 4.3, please useWorkflowActionService.getStartWorkflowActions(WorkflowModel)- Returns:
- all workflow actions that are marked as 'start action'
-
getNormalWorkflowActions
@Deprecated java.util.List<WorkflowActionModel> getNormalWorkflowActions(WorkflowModel wfModel)
Deprecated.since ages - as of release 4.3, please useWorkflowActionService.getNormalWorkflowActions(WorkflowModel)- Returns:
- all workflow actions that are marked as 'normal action'
-
getEndWorkflowActions
@Deprecated java.util.List<WorkflowActionModel> getEndWorkflowActions(WorkflowModel wfModel)
Deprecated.since ages - as of release 4.3, please useWorkflowActionService.getEndWorkflowActions(WorkflowModel)- Returns:
- all workflow actions that are marked as 'end action'
-
getWorkflowActionsByType
@Deprecated java.util.List<WorkflowActionModel> getWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel)
Deprecated.since ages - as of release 4.3, please useWorkflowActionService.getWorkflowActionsByType(de.hybris.platform.workflow.enums.WorkflowActionType, WorkflowModel)- Returns:
- all workflow actions which are of given type
-
-