public interface WorkflowFacade
WorkflowModels.| Modifier and Type | Method and Description |
|---|---|
java.util.List<WorkflowItemAttachmentModel> |
addItems(WorkflowModel workflow,
java.util.List<? extends ItemModel> itemsToAdd)
Adds items to workflow as an attachment
|
boolean |
canBeStarted(WorkflowModel workflow)
Tells if workflow can be started - has assigned users to all actions etc.
|
int |
countDecisions(WorkflowModel workflowModel)
Counts all decisions to make in all actions of the workflow.
|
java.util.Optional<WorkflowModel> |
createAdHocWorkflow(PrincipalModel assignee,
java.util.Map<java.util.Locale,java.lang.String> localizedName,
java.util.Map<java.util.Locale,java.lang.String> localizedDesc,
java.util.List<ItemModel> attachments)
Creates adHocWorkflow from given template for current user.
|
WorkflowModel |
createWorkflow(WorkflowTemplateModel workflowTemplate,
java.util.Map<java.util.Locale,java.lang.String> localizedName,
java.util.Map<java.util.Locale,java.lang.String> localizedDesc,
java.util.List<ItemModel> attachments)
Creates workflow from given template for current user.
|
void |
deleteWorkflow(WorkflowModel workflow)
Deletes given workflow
|
WorkflowTemplateModel |
getAdHocWorkflowTemplate()
Gets adHoc workflow template defined for the system.
|
java.util.List<WorkflowTemplateModel> |
getAllVisibleWorkflowTemplatesForCurrentUser()
Gets workflow templates visible for current user.
|
java.util.List<WorkflowActionModel> |
getCurrentTasks(WorkflowModel workflowModel)
Gets all WorkflowAction items with status
WorkflowActionStatus.IN_PROGRESS. |
java.util.List<WorkflowActionModel> |
getWorkflowActions()
Gets workflow actions for the current user.
|
<any> |
getWorkflows(WorkflowSearchData workflowSearchData)
Gets workflows based on given search data.
|
java.util.Date |
getWorkflowStartTime(WorkflowModel workflow)
Returns start time of given workflow.
|
WorkflowStatus |
getWorkflowStatus(WorkflowModel workflowModel)
Checks
WorkflowStatus of workflow model |
boolean |
isAdHocTemplate(WorkflowTemplateModel template)
Tells is given template is adHocTemplate
WorkflowService.isAdhocWorkflow(WorkflowModel). |
boolean |
isCorrectAdHocAssignee(PrincipalModel adHocAssignedUser)
Tells if given principal can be assigned to a adHoc template.
|
boolean |
startWorkflow(WorkflowModel workflow)
Starts given workflow
|
boolean |
terminateWorkflow(WorkflowModel workflow)
Terminates given workflow
|
<any> getWorkflows(WorkflowSearchData workflowSearchData)
workflowSearchData - search data which allows to specify search criteria.Pageablejava.util.List<WorkflowActionModel> getWorkflowActions()
java.util.List<WorkflowItemAttachmentModel> addItems(WorkflowModel workflow, java.util.List<? extends ItemModel> itemsToAdd)
workflow - to which items should be addeditemsToAdd - items to addjava.util.List<WorkflowTemplateModel> getAllVisibleWorkflowTemplatesForCurrentUser()
WorkflowTemplateModel getAdHocWorkflowTemplate()
WorkflowTemplateService.getAdhocWorkflowTemplate()WorkflowModel createWorkflow(WorkflowTemplateModel workflowTemplate, java.util.Map<java.util.Locale,java.lang.String> localizedName, java.util.Map<java.util.Locale,java.lang.String> localizedDesc, java.util.List<ItemModel> attachments)
workflowTemplate - template to start.localizedName - localized name.localizedDesc - localized workflow description.attachments - list of items to be attached to the workflow.java.util.Optional<WorkflowModel> createAdHocWorkflow(PrincipalModel assignee, java.util.Map<java.util.Locale,java.lang.String> localizedName, java.util.Map<java.util.Locale,java.lang.String> localizedDesc, java.util.List<ItemModel> attachments)
assignee - adHocTemplate assignee.localizedName - localized name.localizedDesc - localized workflow description.attachments - list of items to be attached to the workflow.boolean startWorkflow(WorkflowModel workflow)
workflow - workflow to startboolean canBeStarted(WorkflowModel workflow)
WorkflowService.canBeStarted(WorkflowModel)workflow - workflow to be startedboolean isAdHocTemplate(WorkflowTemplateModel template)
WorkflowService.isAdhocWorkflow(WorkflowModel).template - template to be checked.boolean isCorrectAdHocAssignee(PrincipalModel adHocAssignedUser)
WorkflowTemplateService.getAdhocWorkflowTemplateDummyOwner()adHocAssignedUser - WorkflowStatus getWorkflowStatus(WorkflowModel workflowModel)
WorkflowStatus of workflow modelworkflowModel - model of workflownull if it was impossible to determinevoid deleteWorkflow(WorkflowModel workflow) throws ObjectDeletionException
workflow - workflow to deleteObjectDeletionExceptionboolean terminateWorkflow(WorkflowModel workflow)
workflow - workflow to terminatejava.util.List<WorkflowActionModel> getCurrentTasks(WorkflowModel workflowModel)
WorkflowActionStatus.IN_PROGRESS.workflowModel - workflow to check.int countDecisions(WorkflowModel workflowModel)
workflowModel - workflow to check.java.util.Date getWorkflowStartTime(WorkflowModel workflow)
workflow - workflow to check.Copyright © 2017 SAP SE. All Rights Reserved.