Package eu.xenit.alfred.api.workflow
Interface IWorkflowService
public interface IWorkflowService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelWorkflow(String id) claimWorkflowTask(String taskID) Claim the task with the provided id.claimWorkflowTask(String taskID, String userName) Claim the task with the provided id.voidEnd the task with the provided id, by using the provided transitionID to specify in which way/transition the task has ended.voidGenerateWorkflows(int amount, String username) [DEV] To be used for development/testing purposes only! Generates sample workflow based on the first workflow definition available.Gets a list of all workflow definitions that are deployedgetTaskInfo(String taskID) Gets the information of the workflow task that has the provided idgetWorkflowDefinition(String workflowName) getWorkflowInfo(String workflowID) Gets the information of the workflow instance that has the provided idreleaseWorkflowTask(String taskID) searchTasks(TaskSearchQuery taskSearchQuery) Gets the information of the workflow tasks that match the provided search criteriasearchWorkflows(WorkflowSearchQuery workflowSearchQuery) Gets the information of the workflow instances that match the provided search criteriastartWorkflow(String definitionId, Map<String, Serializable> parameters) Starts one instance of the workflow of the given definitionupdateTask(String id, WorkflowOrTaskChanges changes) Updates the workflow task that has the provided id with the provided set of the changed properties with their values.updateWorkflow(String id, WorkflowOrTaskChanges changes) [Deprecated] Updates the workflow instance that has the provided id with the provided set of the changed properties with their values.
-
Field Details
-
ALFRESCO_ACTIVE
- See Also:
-
ALFRESCO_OWNER
- See Also:
-
ALFRESCO_COMPLETIONDATE
- See Also:
-
ALFRESCO_ENDDATE
- See Also:
-
ALFRESCO_STARTDATE
- See Also:
-
ALFRESCO_DUEDATE
- See Also:
-
ALFRESCO_WF_DUEDATE
- See Also:
-
ALFRESCO_ID
- See Also:
-
ALFRESCO_INITIATOR
- See Also:
-
ALFRESCO_BPM_NAME
- See Also:
-
ALFRESCO_CM_NAME
- See Also:
-
ALFRESCO_VERSION
- See Also:
-
ALFRESCO_PRIORITY
- See Also:
-
ALFRESCO_WF_PRIORITY
- See Also:
-
ALFRESCO_TITLE
- See Also:
-
ALFRESCO_WORKFLOW_PACKAGE
- See Also:
-
ALFRESCO_CONTEXT
- See Also:
-
ALFRESCO_DESCRIPTION
- See Also:
-
ALFRESCO_CLAIMABLE
- See Also:
-
ALFRESCO_RELEASABLE
- See Also:
-
ALFRESCO_TYPE
- See Also:
-
ALFRESCO_DEFINITION
- See Also:
-
ALFRESCO_STATE
- See Also:
-
ALFRESCO_TRANSITIONS
- See Also:
-
ALFRESCO_WORKFLOW_ID
- See Also:
-
ALFRESCO_WORKFLOW_INSTANCE_ID
- See Also:
-
ALFRESCO_ASSIGNEE
- See Also:
-
ALFRESCO_GROUP_ASSIGNEE
- See Also:
-
ALFRESCO_INVOLVED
- See Also:
-
-
Method Details
-
searchWorkflows
Gets the information of the workflow instances that match the provided search criteria- Parameters:
workflowSearchQuery- This parameter contains the (API-x model) search criteria for the workflow instances to be retrieved- Returns:
- Returns a TaskOrWorkflowSearchResult object containing the information of the workflow instances to be returned. These workflow instances were found by using the WorkflowSearchQuery provided
-
searchTasks
Gets the information of the workflow tasks that match the provided search criteria- Parameters:
taskSearchQuery- This parameter contains the (API-x model) search criteria for the workflow tasks to be retrieved- Returns:
- Returns a TaskOrWorkflowSearchResult object containing the information of the workflow tasks to be returned. These workflow tasks were found by using the WorkflowSearchQuery provided
-
getTaskInfo
Gets the information of the workflow task that has the provided id- Parameters:
taskID- Specifies the id of the requested workflow task- Returns:
- Returns a workflow task instance with the provided id
-
getWorkflowInfo
Gets the information of the workflow instance that has the provided id- Parameters:
workflowID- Specifies the id of the requested workflow instance- Returns:
- Returns a workflow instance instance with the provided id
-
getAllDefinitions
List<WorkflowDefinition> getAllDefinitions()Gets a list of all workflow definitions that are deployed- Returns:
- A list of all workflow definitions that are deployed
-
endTask
End the task with the provided id, by using the provided transitionID to specify in which way/transition the task has ended. This could be for example transitionID 'Next' that describes 'Task Done' transition. Other examples are 'Approve', 'Reject', etc.- Parameters:
taskID- Specifies the id of the workflow task to be endedtransitionID- Specifies the id of the transition that describes how the task ended
-
updateWorkflow
[Deprecated] Updates the workflow instance that has the provided id with the provided set of the changed properties with their values.- Parameters:
id- Specifies the id of the workflow instance that is to be updatedchanges- A hash map that contains the fullQNameof the changed properties and theirSerializablevalues- Returns:
- The updated Workflow instance instance
-
updateTask
Updates the workflow task that has the provided id with the provided set of the changed properties with their values.- Parameters:
id- Specifies the id of the workflow task that is to be updatedchanges- A hash map that contains the fullQNameof the changed properties and theirSerializablevalues- Returns:
- The updated workflow Task instance
-
claimWorkflowTask
Claim the task with the provided id. The current user will be used as the claimer.- Parameters:
taskID- Specifies the id of the workflow task that is to be claimed- Returns:
- The claimed workflow Task instance
-
claimWorkflowTask
Claim the task with the provided id. The user name provided will be used to find the claimer user.- Parameters:
taskID- Specifies the id of the workflow task that is to be claimeduserName- Specifies the user name of the user that will claim the task- Returns:
- The claimed workflow Task instance
-
releaseWorkflowTask
- Parameters:
taskID- Specifies the id of the workflowtaskthat is to be released- Returns:
- The released workflow Task instance
-
GenerateWorkflows
[DEV] To be used for development/testing purposes only! Generates sample workflow based on the first workflow definition available.- Parameters:
amount- How many workflow instances to generateusername- To who will these workflow instances be assigned
-
cancelWorkflow
-
getWorkflowDefinition
-
startWorkflow
Starts one instance of the workflow of the given definition- Parameters:
definitionId- The id defining a workflow definitionparameters- Starting parameters for workflow- Returns:
- POJO containing workflow instance id
-