public interface CoreWorkflowFacade
| 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.
|
WorkflowModel |
createWorkflow(java.lang.String name,
WorkflowTemplateModel template,
java.util.List<ItemModel> itemsToAdd,
UserModel owner)
Creates an instance of
WorkflowModel with given name, template, attached items and user. |
WorkflowTemplateModel |
getAdHocWorkflowTemplate()
Gets adHoc workflow template defined for the system.
|
java.util.List<WorkflowActionModel> |
getCurrentTasks(WorkflowModel workflowModel)
Gets all WorkflowAction items with status
WorkflowActionStatus.IN_PROGRESS. |
java.util.Date |
getWorkflowStartTime(WorkflowModel workflow)
Returns start time of given workflow.
|
WorkflowStatus |
getWorkflowStatus(WorkflowModel workflowModel)
Checks
WorkflowStatus of workflow model |
WorkflowTemplateModel |
getWorkflowTemplateForCode(java.lang.String code)
Loads
WorkflowTemplateModel by given code. |
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
|
java.util.List<WorkflowItemAttachmentModel> addItems(WorkflowModel workflow, java.util.List<? extends ItemModel> itemsToAdd)
workflow - to which items should be addeditemsToAdd - items to addWorkflowTemplateModel getWorkflowTemplateForCode(java.lang.String code)
WorkflowTemplateModel by given code.code - code of the WorkflowTemplateModel to be loadedWorkflowTemplateModel instance or null if the implementation cannot find appropriate
WorkflowTemplateModelWorkflowTemplateModel getAdHocWorkflowTemplate()
WorkflowTemplateService.getAdhocWorkflowTemplate()WorkflowModel createWorkflow(java.lang.String name, WorkflowTemplateModel template, java.util.List<ItemModel> itemsToAdd, UserModel owner)
WorkflowModel with given name, template, attached items and user.name - name of the workflowtemplate - WorkflowTemplateModel to be useditemsToAdd - item to be added to the workflowowner - owner of the workflowWorkflowModel based on the given argumentsboolean 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 - user to be verified if can be assigned to an adHoc templateWorkflowStatus getWorkflowStatus(WorkflowModel workflowModel)
WorkflowStatus of workflow modelworkflowModel - model of workflownull if it was impossible to determineboolean 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 © 2018 SAP SE. All Rights Reserved.