WorkflowService instead@Deprecated public class WorkflowServiceImpl extends AbstractServiceImpl implements WorkflowService
typeServiceACTION_CREATE, ACTION_REMOVE, ACTION_SAVE| Constructor and Description |
|---|
WorkflowServiceImpl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(Object comment,
TypedObject action)
Deprecated.
|
void |
addItems(ItemModel workflowModel,
List<TypedObject> itemsToAdd)
Deprecated.
adds given items to given workflow
|
void |
assignUser(PrincipalModel principalModel,
WorkflowModel workflowModel)
Deprecated.
|
boolean |
canBeStarted(TypedObject workf)
Deprecated.
|
ItemModel |
containsItem(ItemModel workflowModel,
List<TypedObject> itemsToAdd)
Deprecated.
Checks if given workflow has one of given items attached.
|
TypedObject |
createAdhocWorkflow(String defaultName,
List<TypedObject> itemsToAdd)
Deprecated.
Creates adhoc workflow with given name, assigns given items to it and sets current user as owner.
|
TypedObject |
createWorkflow(String workflowName,
WorkflowTemplateModel template,
List<TypedObject> itemsToAdd)
Deprecated.
Creates workflow out of given template with given name but does NOT start it.
|
Workflow |
createWorkflow(WorkflowTemplate template,
Item item)
Deprecated.
Creates workflow out of given template and starts it.
|
void |
decideAction(TypedObject action,
TypedObject decision)
Deprecated.
|
void |
evaluteActivationScripts(TypedObject item,
Map currentValues,
Map initialValues,
String action)
Deprecated.
|
Date |
getActionCreationTime(TypedObject action)
Deprecated.
|
String |
getActionName(TypedObject action)
Deprecated.
|
PrincipalModel |
getActionPrincipalAssigned(TypedObject action)
Deprecated.
|
List<TypedObject> |
getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType)
Deprecated.
|
List<TypedObject> |
getAllUserWorkflowActionsWithAttachment(String attachmentClassName)
Deprecated.
|
List<TypedObject> |
getAllUserWorkflowActionsWithAttachments(List<String> attachmentClassNames)
Deprecated.
|
List<TypedObject> |
getAllVisibleWorkflowTemplates()
Deprecated.
|
List<TypedObject> |
getAllWorkflows(int workflowsStatuses,
int adhocWorkflowsStatuses,
Date dateFrom,
Date dateTo,
Date adhocDateFrom,
Date adhocDateTo)
Deprecated.
|
List<TypedObject> |
getAllWorkflowTemplates()
Deprecated.
|
List<TypedObject> |
getAttachmentsForAction(TypedObject action)
Deprecated.
|
List<TypedObject> |
getAttachmentsForAction(TypedObject action,
List<String> attachmentClassNames)
Deprecated.
|
List<TypedObject> |
getAttachmentsForAction(TypedObject action,
String attachmentClassName)
Deprecated.
|
String |
getComment(TypedObject comment)
Deprecated.
|
Date |
getCommentCreationTime(TypedObject comment)
Deprecated.
|
List<TypedObject> |
getCommentsForAction(TypedObject action)
Deprecated.
|
UserModel |
getCommentUser(TypedObject comment)
Deprecated.
|
String |
getDecisionCode(TypedObject decision)
Deprecated.
|
String |
getDecisionName(TypedObject decision)
Deprecated.
|
List<TypedObject> |
getDecisionsForAction(TypedObject action)
Deprecated.
|
List<WorkflowActionModel> |
getEndWorkflowActions(WorkflowModel wfModel)
Deprecated.
|
protected Interpreter |
getInterpreter()
Deprecated.
|
ModelService |
getModelService()
Deprecated.
|
List<WorkflowActionModel> |
getNormalWorkflowActions(WorkflowModel wfModel)
Deprecated.
|
Date |
getStartTime(WorkflowModel workflow)
Deprecated.
|
List<TypedObject> |
getStartWorkflowActions(TypedObject wfModel)
Deprecated.
|
List<WorkflowActionModel> |
getStartWorkflowActions(WorkflowModel wfModel)
Deprecated.
|
String |
getStatusUrl(TypedObject typedData)
Deprecated.
|
UserService |
getUserService()
Deprecated.
|
List<WorkflowActionModel> |
getWorkflowActionsByType(EnumerationValue type,
WorkflowModel wfModel)
Deprecated.
|
WorkflowDAO |
getWorkflowDao()
Deprecated.
|
String |
getWorkflowName(TypedObject action)
Deprecated.
|
List<TypedObject> |
getWorkflowsByTemplate(TypedObject template)
Deprecated.
|
boolean |
isAdhocWorkflow(TypedObject workflow)
Deprecated.
|
boolean |
isAutomatedComment(TypedObject comment)
Deprecated.
|
boolean |
isFinished(Object workflowModel)
Deprecated.
|
boolean |
isPaused(Object workflowModel)
Deprecated.
|
boolean |
isPlanned(Object workflowModel)
Deprecated.
|
boolean |
isRunning(Object workflowModel)
Deprecated.
|
boolean |
isTerminated(Object workflowModel)
Deprecated.
|
void |
setModelService(ModelService modelService)
Deprecated.
|
void |
setNewWorkflowService(WorkflowService newWorkflowService)
Deprecated.
|
void |
setUserService(UserService userService)
Deprecated.
|
void |
setWorkflowDao(WorkflowDAO workflowDao)
Deprecated.
|
void |
startWorkflow(ItemModel workflowModel)
Deprecated.
starts given (adhoc) workflow
|
void |
terminateWorkflow(ItemModel workflowModel)
Deprecated.
terminate given (adhoc) workflow
|
void |
unassignUser(PrincipalModel principalModel,
WorkflowModel workflowModel)
Deprecated.
|
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getTypeService, setCockpitTypeService, setLabelResolverpublic List<TypedObject> getAllUserWorkflowActionsWithAttachment(String attachmentClassName)
getAllUserWorkflowActionsWithAttachment in interface WorkflowServicepublic List<TypedObject> getAllUserWorkflowActionsWithAttachment(ComposedType attachmentType)
getAllUserWorkflowActionsWithAttachment in interface WorkflowServicepublic List<TypedObject> getAllUserWorkflowActionsWithAttachments(List<String> attachmentClassNames)
getAllUserWorkflowActionsWithAttachments in interface WorkflowServicepublic List<TypedObject> getCommentsForAction(TypedObject action)
getCommentsForAction in interface WorkflowServicepublic List<TypedObject> getAttachmentsForAction(TypedObject action)
getAttachmentsForAction in interface WorkflowServicepublic List<TypedObject> getAttachmentsForAction(TypedObject action, String attachmentClassName)
getAttachmentsForAction in interface WorkflowServicepublic List<TypedObject> getAttachmentsForAction(TypedObject action, List<String> attachmentClassNames)
getAttachmentsForAction in interface WorkflowServicepublic List<TypedObject> getDecisionsForAction(TypedObject action)
getDecisionsForAction in interface WorkflowServicepublic String getWorkflowName(TypedObject action)
getWorkflowName in interface WorkflowServicepublic String getActionName(TypedObject action)
getActionName in interface WorkflowServicepublic PrincipalModel getActionPrincipalAssigned(TypedObject action)
getActionPrincipalAssigned in interface WorkflowServicepublic Date getActionCreationTime(TypedObject action)
getActionCreationTime in interface WorkflowServicepublic String getDecisionName(TypedObject decision)
getDecisionName in interface WorkflowServicepublic String getDecisionCode(TypedObject decision)
getDecisionCode in interface WorkflowServicepublic void decideAction(TypedObject action, TypedObject decision)
decideAction in interface WorkflowServicepublic String getComment(TypedObject comment)
getComment in interface WorkflowServicepublic UserModel getCommentUser(TypedObject comment)
getCommentUser in interface WorkflowServicepublic Date getCommentCreationTime(TypedObject comment)
getCommentCreationTime in interface WorkflowServicepublic void addComment(Object comment, TypedObject action)
addComment in interface WorkflowServicepublic void evaluteActivationScripts(TypedObject item, Map currentValues, Map initialValues, String action)
evaluteActivationScripts in interface WorkflowServiceprotected Interpreter getInterpreter()
public Workflow createWorkflow(WorkflowTemplate template, Item item)
createWorkflow in interface WorkflowServicepublic TypedObject createWorkflow(String workflowName, WorkflowTemplateModel template, List<TypedObject> itemsToAdd)
createWorkflow in interface WorkflowServicepublic boolean isAutomatedComment(TypedObject comment)
isAutomatedComment in interface WorkflowServicepublic List<TypedObject> getAllWorkflowTemplates()
getAllWorkflowTemplates in interface WorkflowServicepublic List<TypedObject> getWorkflowsByTemplate(TypedObject template)
getWorkflowsByTemplate in interface WorkflowServicepublic List<TypedObject> 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 TypedObject createAdhocWorkflow(String defaultName, List<TypedObject> itemsToAdd)
WorkflowServicecreateAdhocWorkflow 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 ModelService getModelService()
getModelService in class AbstractServiceImplpublic void setModelService(ModelService modelService)
setModelService in class AbstractServiceImplmodelService - the modelService to setpublic List<TypedObject> 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)
WorkflowServicestartWorkflow in interface WorkflowServicepublic void terminateWorkflow(ItemModel workflowModel)
WorkflowServiceterminateWorkflow 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)
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<TypedObject> itemsToAdd)
WorkflowServiceaddItems in interface WorkflowServicepublic ItemModel containsItem(ItemModel workflowModel, List<TypedObject> itemsToAdd)
WorkflowServicecontainsItem in interface WorkflowServicepublic boolean isAdhocWorkflow(TypedObject workflow)
isAdhocWorkflow in interface WorkflowServicepublic boolean canBeStarted(TypedObject workf)
canBeStarted in interface WorkflowService@Deprecated public String getStatusUrl(TypedObject typedData)
getStatusUrl 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 workflow@Deprecated public List<TypedObject> getStartWorkflowActions(TypedObject wfModel)
WorkflowServiceWorkflowService.getStartWorkflowActions(WorkflowModel) instead.getStartWorkflowActions in interface WorkflowServicewfModel - 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 WorkflowServicepublic void setNewWorkflowService(WorkflowService newWorkflowService)
newWorkflowService - the newWorkflowService to setCopyright © 2017 SAP SE. All Rights Reserved.