public interface CmmnRuntimeService
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(FlowableEventListener listenerToAdd)
Adds an event-listener which will be notified of ALL events by the dispatcher.
|
void |
addEventListener(FlowableEventListener listenerToAdd,
FlowableEngineEventType... types)
Adds an event-listener which will only be notified when an event occurs, which type is in the given types.
|
void |
addGroupIdentityLink(String caseInstanceId,
String groupId,
String identityLinkType)
Involves a group with a case instance.
|
void |
addUserIdentityLink(String caseInstanceId,
String userId,
String identityLinkType)
Involves a user with a case instance.
|
void |
bulkDeleteCaseInstances(Collection<String> caseInstanceId) |
void |
bulkTerminateCaseInstances(Collection<String> caseInstanceId) |
void |
completeCaseInstance(String caseInstanceId) |
void |
completeGenericEventListenerInstance(String genericEventListenerInstanceId) |
void |
completeStagePlanItemInstance(String planItemInstanceId) |
void |
completeStagePlanItemInstance(String planItemInstanceId,
boolean force) |
void |
completeUserEventListenerInstance(String userEventListenerInstanceId) |
CaseInstanceBuilder |
createCaseInstanceBuilder() |
CaseInstanceQuery |
createCaseInstanceQuery() |
ChangePlanItemStateBuilder |
createChangePlanItemStateBuilder()
Create a
ChangePlanItemStateBuilder, that allows to set various options for changing the state of a process instance. |
EventSubscriptionQuery |
createEventSubscriptionQuery()
Creates a new
EventSubscriptionQuery instance, that can be used to query the event subscriptions. |
GenericEventListenerInstanceQuery |
createGenericEventListenerInstanceQuery() |
MilestoneInstanceQuery |
createMilestoneInstanceQuery() |
PlanItemInstanceQuery |
createPlanItemInstanceQuery() |
PlanItemInstanceTransitionBuilder |
createPlanItemInstanceTransitionBuilder(String planItemInstanceId) |
SignalEventListenerInstanceQuery |
createSignalEventListenerInstanceQuery() |
UserEventListenerInstanceQuery |
createUserEventListenerInstanceQuery() |
VariableInstanceQuery |
createVariableInstanceQuery() |
void |
deleteCaseInstance(String caseInstanceId) |
void |
deleteGroupIdentityLink(String caseInstanceId,
String groupId,
String identityLinkType)
Removes the association between a group and a process instance for the given identityLinkType.
|
void |
deleteUserIdentityLink(String caseInstanceId,
String userId,
String identityLinkType)
Removes the association between a user and a process instance for the given identityLinkType.
|
void |
disablePlanItemInstance(String planItemInstanceId) |
void |
dispatchEvent(FlowableEvent event)
Dispatches the given event to any listeners that are registered.
|
void |
enablePlanItemInstance(String planItemInstanceId) |
void |
evaluateCriteria(String caseInstanceId) |
List<EntityLink> |
getEntityLinkChildrenForCaseInstance(String instanceId)
Retrieves the
EntityLinks associated with the given case instance. |
List<EntityLink> |
getEntityLinkChildrenWithSameRootAsCaseInstance(String instanceId)
Retrieves all the
EntityLinks associated with the same root as the given case instance. |
List<EntityLink> |
getEntityLinkParentsForCaseInstance(String instanceId)
Retrieves the
EntityLinks where the given case instance is referenced. |
List<org.flowable.identitylink.api.IdentityLink> |
getIdentityLinksForCaseInstance(String instanceId)
Retrieves the
IdentityLinks associated with the given case instance. |
List<org.flowable.identitylink.api.IdentityLink> |
getIdentityLinksForPlanItemInstance(String instanceId)
Retrieves the
IdentityLinks associated with the given plan item instance. |
Object |
getLocalVariable(String planItemInstanceId,
String variableName)
The local variable value.
|
VariableInstance |
getLocalVariableInstance(String planItemInstanceId,
String variableName)
The local variable.
|
Map<String,VariableInstance> |
getLocalVariableInstances(String planItemInstanceId)
All variable values that are defined in the plan item instance scope, without taking outer scopes into account.
|
Map<String,Object> |
getLocalVariables(String planItemInstanceId)
All variable values that are defined in the plan item instance scope, without taking outer scopes into account.
|
List<StageResponse> |
getStageOverview(String caseInstanceId)
Gives back a stage overview of the case instance which includes the stage information of the case model.
|
FormInfo |
getStartFormModel(String caseDefinitionId,
String caseInstanceId)
Gets a Form model instance of the start form of a specific case definition or case instance
|
Object |
getVariable(String caseInstanceId,
String variableName)
The variable value.
|
VariableInstance |
getVariableInstance(String caseInstanceId,
String variableName)
The variable.
|
Map<String,VariableInstance> |
getVariableInstances(String caseInstanceId)
All variables visible from the given case instance scope.
|
Map<String,Object> |
getVariables(String caseInstanceId)
All variables visible from the given case instance scope.
|
boolean |
hasLocalVariable(String planItemInstanceId,
String variableName)
Check whether or not this plan item instance has local variable set with the given name.
|
boolean |
hasVariable(String caseInstanceId,
String variableName)
Check whether or not this case instance has variable set with the given name, Searching for the variable is done in all scopes that are visible to the given case instance.
|
void |
removeAssignee(String caseInstanceId)
Removes the assignee of a case instance.
|
void |
removeEventListener(FlowableEventListener listenerToRemove)
Removes the given listener from this dispatcher.
|
void |
removeLocalVariable(String planItemInstanceId,
String variableName) |
void |
removeLocalVariables(String planItemInstanceId,
Collection<String> variableNames) |
void |
removeOwner(String caseInstanceId)
Removes the owner of a case instance.
|
void |
removeVariable(String caseInstanceId,
String variableName) |
void |
removeVariables(String caseInstanceId,
Collection<String> variableNames) |
void |
setAssignee(String caseInstanceId,
String userId)
Set the new assignee of a case instance.
|
void |
setCaseInstanceName(String caseInstanceId,
String caseName)
Set or change the name of the case instance.
|
void |
setLocalVariable(String planItemInstanceId,
String variableName,
Object variableValue) |
void |
setLocalVariables(String planItemInstanceId,
Map<String,Object> variables) |
void |
setOwner(String caseInstanceId,
String userId)
Set the new owner of a case instance.
|
void |
setVariable(String caseInstanceId,
String variableName,
Object variableValue) |
void |
setVariables(String caseInstanceId,
Map<String,Object> variables) |
void |
startPlanItemInstance(String planItemInstanceId) |
void |
terminateCaseInstance(String caseInstanceId) |
void |
terminatePlanItemInstance(String planItemInstanceId) |
void |
triggerPlanItemInstance(String planItemInstanceId) |
void |
updateBusinessKey(String caseInstanceId,
String businessKey)
Updates the business key for the provided case instance
|
void |
updateBusinessStatus(String caseInstanceId,
String businessStatus)
Updates the business status for the provided case instance
|
CaseInstanceBuilder createCaseInstanceBuilder()
PlanItemInstanceTransitionBuilder createPlanItemInstanceTransitionBuilder(String planItemInstanceId)
void triggerPlanItemInstance(String planItemInstanceId)
void enablePlanItemInstance(String planItemInstanceId)
void startPlanItemInstance(String planItemInstanceId)
void disablePlanItemInstance(String planItemInstanceId)
void completeStagePlanItemInstance(String planItemInstanceId)
void completeStagePlanItemInstance(String planItemInstanceId, boolean force)
void completeCaseInstance(String caseInstanceId)
void terminateCaseInstance(String caseInstanceId)
void bulkTerminateCaseInstances(Collection<String> caseInstanceId)
void terminatePlanItemInstance(String planItemInstanceId)
void deleteCaseInstance(String caseInstanceId)
void bulkDeleteCaseInstances(Collection<String> caseInstanceId)
void evaluateCriteria(String caseInstanceId)
void completeGenericEventListenerInstance(String genericEventListenerInstanceId)
void completeUserEventListenerInstance(String userEventListenerInstanceId)
Map<String,Object> getVariables(String caseInstanceId)
caseInstanceId - id of case instance, cannot be null.FlowableObjectNotFoundException - when no case instance is found for the given caseInstanceId.Map<String,VariableInstance> getVariableInstances(String caseInstanceId)
caseInstanceId - id of case instance, cannot be null.FlowableObjectNotFoundException - when no case instance is found for the given caseInstanceId.Map<String,Object> getLocalVariables(String planItemInstanceId)
planItemInstanceId - id of plan item instance, cannot be null.FlowableObjectNotFoundException - when no plan item instance is found for the given planItemInstanceId.Map<String,VariableInstance> getLocalVariableInstances(String planItemInstanceId)
planItemInstanceId - id of plan item instance, cannot be null.FlowableObjectNotFoundException - when no plan item instance is found for the given planItemInstanceId.Object getVariable(String caseInstanceId, String variableName)
caseInstanceId - id of case instance, cannot be null.variableName - name of variable, cannot be null.FlowableObjectNotFoundException - when no case instance is found for the given caseInstanceId.VariableInstance getVariableInstance(String caseInstanceId, String variableName)
caseInstanceId - id of case instance, cannot be null.variableName - name of variable, cannot be null.FlowableObjectNotFoundException - when no case instance is found for the given caseInstanceId.Object getLocalVariable(String planItemInstanceId, String variableName)
planItemInstanceId - id of plan item instance, cannot be null.variableName - name of variable, cannot be null.FlowableObjectNotFoundException - when no plan item instance is found for the given planItemInstanceId.VariableInstance getLocalVariableInstance(String planItemInstanceId, String variableName)
planItemInstanceId - id of plan item instance, cannot be null.variableName - name of variable, cannot be null.FlowableObjectNotFoundException - when no plan item instance is found for the given planItemInstanceId.boolean hasVariable(String caseInstanceId, String variableName)
boolean hasLocalVariable(String planItemInstanceId, String variableName)
void setLocalVariable(String planItemInstanceId, String variableName, Object variableValue)
void removeVariables(String caseInstanceId, Collection<String> variableNames)
void removeLocalVariables(String planItemInstanceId, Collection<String> variableNames)
VariableInstanceQuery createVariableInstanceQuery()
void setCaseInstanceName(String caseInstanceId, String caseName)
caseInstanceId - the id of the case to set the namecaseName - the name to be set on the caseCaseInstanceQuery createCaseInstanceQuery()
PlanItemInstanceQuery createPlanItemInstanceQuery()
MilestoneInstanceQuery createMilestoneInstanceQuery()
GenericEventListenerInstanceQuery createGenericEventListenerInstanceQuery()
SignalEventListenerInstanceQuery createSignalEventListenerInstanceQuery()
UserEventListenerInstanceQuery createUserEventListenerInstanceQuery()
EventSubscriptionQuery createEventSubscriptionQuery()
EventSubscriptionQuery instance, that can be used to query the event subscriptions.List<StageResponse> getStageOverview(String caseInstanceId)
caseInstanceId - id of the case instance, cannot be null.FlowableObjectNotFoundException - when the case instance doesn't exist.void setOwner(String caseInstanceId, String userId)
caseInstanceId - the id of the case to set its new owneruserId - the id of the user to set as the new ownervoid removeOwner(String caseInstanceId)
caseInstanceId - the id of the case to remove the owner fromvoid setAssignee(String caseInstanceId, String userId)
caseInstanceId - the id of the case to set its new assigneeuserId - the id of the user to set as the new assigneevoid removeAssignee(String caseInstanceId)
caseInstanceId - the id of the case to remove the assignee fromvoid addUserIdentityLink(String caseInstanceId, String userId, String identityLinkType)
caseInstanceId - id of the case instance, cannot be null.userId - id of the user involve, cannot be null.identityLinkType - type of identityLink, cannot be null.FlowableObjectNotFoundException - when the case instance doesn't exist.void addGroupIdentityLink(String caseInstanceId, String groupId, String identityLinkType)
caseInstanceId - id of the case instance, cannot be null.groupId - id of the group to involve, cannot be null.identityLinkType - type of identity, cannot be null.FlowableObjectNotFoundException - when the process instance or group doesn't exist.void deleteUserIdentityLink(String caseInstanceId, String userId, String identityLinkType)
caseInstanceId - id of the case instance, cannot be null.userId - id of the user involve, cannot be null.identityLinkType - type of identityLink, cannot be null.FlowableObjectNotFoundException - when the task or user doesn't exist.void deleteGroupIdentityLink(String caseInstanceId, String groupId, String identityLinkType)
caseInstanceId - id of the case instance, cannot be null.groupId - id of the group to involve, cannot be null.identityLinkType - type of identity, cannot be null.FlowableObjectNotFoundException - when the task or group doesn't exist.List<org.flowable.identitylink.api.IdentityLink> getIdentityLinksForCaseInstance(String instanceId)
IdentityLinks associated with the given case instance. Such an identity link informs how a certain user is involved with a case instance.List<org.flowable.identitylink.api.IdentityLink> getIdentityLinksForPlanItemInstance(String instanceId)
IdentityLinks associated with the given plan item instance. Such an identity link informs how a certain user is involved with a plan item instance.List<EntityLink> getEntityLinkChildrenForCaseInstance(String instanceId)
EntityLinks associated with the given case instance.List<EntityLink> getEntityLinkChildrenWithSameRootAsCaseInstance(String instanceId)
EntityLinks associated with the same root as the given case instance.List<EntityLink> getEntityLinkParentsForCaseInstance(String instanceId)
EntityLinks where the given case instance is referenced.FormInfo getStartFormModel(String caseDefinitionId, String caseInstanceId)
caseDefinitionId - id of case definition for which the start form should be retrieved.caseInstanceId - id of case instance for which the start form should be retrieved.ChangePlanItemStateBuilder createChangePlanItemStateBuilder()
ChangePlanItemStateBuilder, that allows to set various options for changing the state of a process instance.void updateBusinessKey(String caseInstanceId, String businessKey)
caseInstanceId - id of the case instance to set the business key, cannot be nullbusinessKey - new businessKey valuevoid updateBusinessStatus(String caseInstanceId, String businessStatus)
caseInstanceId - id of the case instance to set the business status, cannot be nullbusinessStatus - new business status valuevoid addEventListener(FlowableEventListener listenerToAdd)
listenerToAdd - the listener to addvoid addEventListener(FlowableEventListener listenerToAdd, FlowableEngineEventType... types)
listenerToAdd - the listener to addtypes - types of events the listener should be notified forvoid removeEventListener(FlowableEventListener listenerToRemove)
listenerToRemove - listener to removevoid dispatchEvent(FlowableEvent event)
event - event to dispatch.FlowableException - if an exception occurs when dispatching the event or when the FlowableEventDispatcher is disabled.FlowableIllegalArgumentException - when the given event is not suitable for dispatching.Copyright © 2022 Flowable. All rights reserved.