public interface WorkflowEngineFacade
| Modifier and Type | Method and Description |
|---|---|
void |
abortWorkflowInstance(long woinRefNum)
Aborts the workflow instance with the given refNum.
|
boolean |
assignHumanTask(long woitRefNum,
String user)
Assigns the given human task work item to the given user.
|
void |
createWorkflowInstance(CreateWorkflowInstance request)
Creates a new workflow instance as described by the request and sets
the request's refNum field to the newly created workflow instance's refNum.
|
void |
createWorkflowInstances(List<CreateWorkflowInstance> requests)
Creates a new workflow instance for each request in the given list and sets
each request's refNum field to the newly created workflow instance's refNum.
|
List<WorkItemState> |
findActiveHumanTasksByRole(String role)
Finds any active human task work item assigned to the given role.
|
List<WorkItemState> |
findActiveHumanTasksByRoleAndUser(String role,
String user)
Finds any active human task work item assigned to the given role and user.
|
List<WorkItemState> |
findActiveHumanTasksByUser(String user)
Finds any active human task work item assigned to the given user.
|
WorkItemState |
findActiveWorkItemByTokenId(long woinRefNum,
int tokenId)
Finds the work item of the given workflow instance that is associated
with the given token.
|
ExecutionErrorState |
findExecutionError(long woinRefNum)
Finds the workflow instance's execution error or returns
null if
the instance is not in an ERROR status. |
WorkflowInstanceState |
findWorkflowInstance(long woinRefNum,
Boolean isActive)
Finds a workflow instance with the given refNum using the given hint whether the
workflow instance is active.
|
List<WorkflowInstanceState> |
findWorkflowInstances(SearchWorkflowInstances request)
Finds any workflow instance that satisfied the complex search request.
|
List<WorkflowInstanceState> |
findWorkflowInstancesByLabel1(String label1,
boolean activeOnly)
Finds any workflow instance with the given label1.
|
List<WorkflowInstanceState> |
findWorkflowInstancesByLabels(String label1,
String label2,
boolean activeOnly)
Finds any workflow instance with the given label1.
|
WorkItemState |
findWorkItem(long woitRefNum,
Boolean isInstanceActive)
Finds the work item with the given refNum using the given hint describing whether
the associated workflow instance is active or not.
|
List<WorkItemState> |
findWorkItems(long woinRefNum,
Boolean isInstanceActive)
Returns all the given workflow instance's work items (active and non-active)
using the given work items that are associated with
the given hint whether the workflow instance is active or not.
|
Set<String> |
getDeployedWorkflowNames()
Returns the set of those workflow names that are currently deployed to the engine.
|
Set<String> |
getKnownWorkflowNames()
Returns
the set of those workflow names that are currently deployed to the engine
PLUSS
the set of those workflow names that are found in the engine's database.
|
Map<Long,Date> |
getNextActiveTimerDueDates(List<Long> woinRefNums)
Finds the next active timer work item's due date for every workflow instance in given list.
|
Set<Long> |
getWorkflowInstancesWithActiveHumanTask(List<Long> woinRefNums)
Finds those workflow instances that are currently waiting for at least 1 human task
to become submitted.
|
Map<String,Map<WorkflowInstanceFacadeStatus,Integer>> |
getWorkflowStatistics()
Returns a map that describes workflow statistics.
|
boolean |
isNodeInMasterRole()
Returns whether the engine deployment at hand is in the master role within its cluster.
|
void |
resumeWorkflowInstance(long woinRefNum)
Resumes the workflow instance with the given refNum.
|
void |
retryWorkflowInstance(long woinRefNum)
Retries the workflow instance's last action (that has failed).
|
void |
sendSignalByLabel1(String label1,
String signal,
Object argument)
Sends the signal to all matching signal work items of the any workflow instance with the given label1 using the given argument.
|
void |
sendSignalByLabels(String label1,
String label2,
String signal,
Object argument)
Sends the signal to all matching signal work items of the any workflow instance with the given label1 and label2 using the given argument.
|
void |
sendSignalToWorkflowInstance(long woinRefNum,
String signal,
Object argument)
Sends the signal to all matching signal work items of the given workflow instance using the given argument.
|
void |
sendSignalToWorkItem(long woitRefNum,
String signal,
Object argument)
Sends the signal to the given signal work item using the given argument.
|
void |
skipTimer(long woitRefNum)
Sets the given timer work item's due date to the current date.
|
void |
submitHumanTask(long woitRefNum,
Object result)
Submits the given human task work item with the given result.
|
void |
submitTask(long woitRefNum,
Object result)
Submits the given task work item with the given result.
|
void |
suspendWorkflowInstance(long woinRefNum)
Suspends the workflow instance with the given refNum.
|
void createWorkflowInstance(CreateWorkflowInstance request)
void createWorkflowInstances(List<CreateWorkflowInstance> requests)
void abortWorkflowInstance(long woinRefNum)
void suspendWorkflowInstance(long woinRefNum)
void resumeWorkflowInstance(long woinRefNum)
void retryWorkflowInstance(long woinRefNum)
void sendSignalToWorkflowInstance(long woinRefNum,
String signal,
Object argument)
void sendSignalToWorkItem(long woitRefNum,
String signal,
Object argument)
void sendSignalByLabel1(String label1, String signal, Object argument)
void sendSignalByLabels(String label1, String label2, String signal, Object argument)
void skipTimer(long woitRefNum)
boolean assignHumanTask(long woitRefNum,
String user)
void submitTask(long woitRefNum,
Object result)
void submitHumanTask(long woitRefNum,
Object result)
WorkflowInstanceState findWorkflowInstance(long woinRefNum, Boolean isActive)
false the workflow instance is searched in the
archive table. Otherwise, it is first searched in the engine's main table
and if not found there in the archive table.List<WorkflowInstanceState> findWorkflowInstancesByLabel1(String label1, boolean activeOnly)
List<WorkflowInstanceState> findWorkflowInstancesByLabels(String label1, String label2, boolean activeOnly)
List<WorkflowInstanceState> findWorkflowInstances(SearchWorkflowInstances request)
WorkItemState findWorkItem(long woitRefNum, Boolean isInstanceActive)
false the work item is searched in the
archive table. Otherwise, it is first searched in the engine's main table
and if not found there in the archive table.WorkItemState findActiveWorkItemByTokenId(long woinRefNum, int tokenId)
null if no such work item exists.List<WorkItemState> findWorkItems(long woinRefNum, Boolean isInstanceActive)
false the work item is searched in the
archive table. Otherwise, it is first searched in the engine's main table
and if not found there in the archive table.List<WorkItemState> findActiveHumanTasksByRole(String role)
List<WorkItemState> findActiveHumanTasksByUser(String user)
List<WorkItemState> findActiveHumanTasksByRoleAndUser(String role, String user)
ExecutionErrorState findExecutionError(long woinRefNum)
null if
the instance is not in an ERROR status.Map<Long,Date> getNextActiveTimerDueDates(List<Long> woinRefNums)
Set<Long> getWorkflowInstancesWithActiveHumanTask(List<Long> woinRefNums)
Set<String> getDeployedWorkflowNames()
Set<String> getKnownWorkflowNames()
Map<String,Map<WorkflowInstanceFacadeStatus,Integer>> getWorkflowStatistics()
boolean isNodeInMasterRole()
Copyright © 2017. All rights reserved.