DefaultWorkflowService instead.@Deprecated public class WorkflowServiceImpl extends Object implements WorkflowService
ACTION_CREATE, ACTION_REMOVE, ACTION_SAVE| Constructor and Description |
|---|
WorkflowServiceImpl()
Deprecated.
|
public List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(String attachmentClassName)
getAllUserWorkflowActionsWithAttachment in interface WorkflowServicepublic List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType)
getAllUserWorkflowActionsWithAttachment in interface WorkflowServicepublic List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(List<String> attachmentClassNames)
getAllUserWorkflowActionsWithAttachments in interface WorkflowServicepublic List<WorkflowActionModel> getAllUserWorkflowActionsWithAttachments(List<String> attachmentClassNames, Collection<WorkflowActionStatus> actionStatuses)
WorkflowServiceWorkflowActionService.getAllUserWorkflowActionsWithAttachments(List, Collection)
Retrieves workflow actions with specified criteria.getAllUserWorkflowActionsWithAttachments in interface WorkflowServiceattachmentClassNames - list of allowed attachment class namesactionStatuses - allowed action statusespublic List<WorkflowActionCommentModel> getCommentsForAction(WorkflowActionModel action)
getCommentsForAction in interface WorkflowServicepublic List<ItemModel> getAttachmentsForAction(WorkflowActionModel action)
getAttachmentsForAction in interface WorkflowServicepublic List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, String attachmentClassName)
getAttachmentsForAction in interface WorkflowServicepublic List<ItemModel> getAttachmentsForAction(WorkflowActionModel action, List<String> attachmentClassNames)
getAttachmentsForAction in interface WorkflowService@Deprecated public List<WorkflowDecisionModel> getDecisionsForAction(WorkflowActionModel action)
WorkflowActionModel.getDecisions()getDecisionsForAction in interface WorkflowServicepublic void decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
decideAction in interface WorkflowServicepublic void addComment(Object comment, WorkflowActionModel action)
addComment in interface WorkflowServicepublic void evaluteActivationScripts(ItemModel itemModel, Map currentValues, Map initialValues, String action)
evaluteActivationScripts in interface WorkflowServiceprotected Interpreter getInterpreter()
public WorkflowModel createWorkflow(WorkflowTemplateModel templateModel, ItemModel itemModel)
createWorkflow in interface WorkflowServicepublic WorkflowModel createWorkflow(String workflowName, WorkflowTemplateModel template, List<ItemModel> itemsToAdd)
createWorkflow in interface WorkflowService@Deprecated public boolean isAutomatedComment(WorkflowActionCommentModel comment)
isAutomatedComment in interface WorkflowServicepublic List<WorkflowTemplateModel> getAllWorkflowTemplates()
getAllWorkflowTemplates in interface WorkflowService@Deprecated public List<WorkflowModel> getWorkflowsByTemplate(WorkflowTemplateModel template)
WorkflowService.getWorkflowsForTemplateAndUser(de.hybris.platform.workflow.model.WorkflowTemplateModel,UserModel)getWorkflowsByTemplate in interface WorkflowServicepublic List<WorkflowModel> getAllWorkflows(int workflowsStatuses, int adhocWorkflowsStatuses, Date dateFrom, Date dateTo, Date adhocDateFrom, Date adhocDateTo)
getAllWorkflows in interface WorkflowServiceworkflowsStatuses - 0 - all, see WorkflowConstants.WorkflowStatus for other
valuesadhocWorkflowsStatuses - 0 - all, see WorkflowConstants.WorkflowStatus for other
valuespublic WorkflowDAO getWorkflowDao()
public WorkflowModel createAdhocWorkflow(String defaultName, List<ItemModel> itemsToAdd)
createAdhocWorkflow in interface WorkflowServicedefaultName - of adhoc workflowitemsToAdd - list of items to addpublic void setWorkflowDao(WorkflowDAO workflowDao)
workflowDao - the workflowDao to setpublic void assignUser(PrincipalModel principalModel, WorkflowModel workflowModel)
assignUser in interface WorkflowServiceprincipalModel - to assign to given workflowpublic void setModelService(ModelService modelService)
modelService - the modelService to setpublic List<WorkflowTemplateModel> getAllVisibleWorkflowTemplates()
getAllVisibleWorkflowTemplates in interface WorkflowServicepublic UserService getUserService()
public void setUserService(UserService userService)
userService - the userService to setpublic boolean isPaused(Object workflowModel)
isPaused in interface WorkflowServiceworkflowModel - or adhoc workflow modelpublic void startWorkflow(ItemModel workflowModel)
startWorkflow in interface WorkflowServicepublic void terminateWorkflow(ItemModel workflowModel)
WorkflowServiceWorkflowProcessingService.terminateWorkflow(WorkflowModel)
terminate given (adhoc) workflowterminateWorkflow in interface WorkflowServicepublic boolean isTerminated(Object workflowModel)
isTerminated in interface WorkflowServiceworkflowModel - or adhoc workflow modelpublic boolean isPlanned(Object workflowModel)
isPlanned in interface WorkflowServiceworkflowModel - or adhoc workflow modelpublic boolean isRunning(Object workflowModel)
WorkflowServiceWorkflowService.isRunning(WorkflowModel)isRunning in interface WorkflowServiceworkflowModel - or adhoc workflow modelpublic boolean isFinished(Object workflowModel)
isFinished in interface WorkflowServiceworkflowModel - or adhoc workflow modelpublic void addItems(ItemModel workflowModel, List<ItemModel> itemsToAdd)
addItems in interface WorkflowServicepublic ItemModel containsItem(ItemModel workflowModel, List<ItemModel> itemsToAdd)
containsItem in interface WorkflowServicepublic boolean isAdhocWorkflow(WorkflowModel workflowModel)
isAdhocWorkflow in interface WorkflowServicepublic boolean canBeStarted(WorkflowModel workf)
canBeStarted in interface WorkflowServicepublic Date getStartTime(WorkflowModel workflow)
getStartTime in interface WorkflowServicepublic void unassignUser(PrincipalModel principalModel, WorkflowModel workflowModel)
unassignUser in interface WorkflowServiceprincipalModel - to unassign from given adhoc workflowpublic List<WorkflowActionModel> getStartWorkflowActions(WorkflowModel wfModel)
getStartWorkflowActions in interface WorkflowServicepublic List<WorkflowActionModel> getNormalWorkflowActions(WorkflowModel wfModel)
getNormalWorkflowActions in interface WorkflowServicepublic List<WorkflowActionModel> getEndWorkflowActions(WorkflowModel wfModel)
getEndWorkflowActions in interface WorkflowServicepublic List<WorkflowActionModel> getWorkflowActionsByType(EnumerationValue type, WorkflowModel wfModel)
getWorkflowActionsByType in interface WorkflowServiceCopyright © 2017 SAP SE. All Rights Reserved.