public class CmmnRuntimeServiceImpl extends CommonEngineServiceImpl<CmmnEngineConfiguration> implements CmmnRuntimeService
commandExecutorconfiguration| Constructor and Description |
|---|
CmmnRuntimeServiceImpl(CmmnEngineConfiguration engineConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
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 |
changePlanItemState(ChangePlanItemStateBuilderImpl changePlanItemStateBuilder) |
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() |
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 |
enablePlanItemInstance(String planItemInstanceId) |
void |
evaluateCriteria(String caseInstanceId) |
List<EntityLink> |
getEntityLinkChildrenForCaseInstance(String caseInstanceId)
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 caseInstanceId)
Retrieves the
EntityLinks where the given case instance is referenced. |
List<IdentityLink> |
getIdentityLinksForCaseInstance(String caseInstanceId)
Retrieves the
IdentityLinks associated with the given case instance. |
List<IdentityLink> |
getIdentityLinksForPlanItemInstance(String planItemInstanceId)
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 |
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 |
removeLocalVariable(String planItemInstanceId,
String variableName) |
void |
removeLocalVariables(String planItemInstanceId,
Collection<String> variableNames) |
void |
removeVariable(String caseInstanceId,
String variableName) |
void |
removeVariables(String caseInstanceId,
Collection<String> variableNames) |
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 |
setVariable(String caseInstanceId,
String variableName,
Object variableValue) |
void |
setVariables(String caseInstanceId,
Map<String,Object> variables) |
CaseInstance |
startCaseInstance(CaseInstanceBuilder caseInstanceBuilder) |
CaseInstance |
startCaseInstanceAsync(CaseInstanceBuilder caseInstanceBuilder) |
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
|
getCommandExecutor, setCommandExecutorgetConfigurationpublic CmmnRuntimeServiceImpl(CmmnEngineConfiguration engineConfiguration)
public CaseInstanceBuilder createCaseInstanceBuilder()
createCaseInstanceBuilder in interface CmmnRuntimeServicepublic PlanItemInstanceTransitionBuilder createPlanItemInstanceTransitionBuilder(String planItemInstanceId)
createPlanItemInstanceTransitionBuilder in interface CmmnRuntimeServicepublic CaseInstance startCaseInstance(CaseInstanceBuilder caseInstanceBuilder)
public CaseInstance startCaseInstanceAsync(CaseInstanceBuilder caseInstanceBuilder)
public FormInfo getStartFormModel(String caseDefinitionId, String caseInstanceId)
CmmnRuntimeServicegetStartFormModel in interface CmmnRuntimeServicecaseDefinitionId - 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.public void triggerPlanItemInstance(String planItemInstanceId)
triggerPlanItemInstance in interface CmmnRuntimeServicepublic void enablePlanItemInstance(String planItemInstanceId)
enablePlanItemInstance in interface CmmnRuntimeServicepublic void disablePlanItemInstance(String planItemInstanceId)
disablePlanItemInstance in interface CmmnRuntimeServicepublic void completeStagePlanItemInstance(String planItemInstanceId)
completeStagePlanItemInstance in interface CmmnRuntimeServicepublic void completeStagePlanItemInstance(String planItemInstanceId, boolean force)
completeStagePlanItemInstance in interface CmmnRuntimeServicepublic void startPlanItemInstance(String planItemInstanceId)
startPlanItemInstance in interface CmmnRuntimeServicepublic void completeCaseInstance(String caseInstanceId)
completeCaseInstance in interface CmmnRuntimeServicepublic void terminateCaseInstance(String caseInstanceId)
terminateCaseInstance in interface CmmnRuntimeServicepublic void terminatePlanItemInstance(String planItemInstanceId)
terminatePlanItemInstance in interface CmmnRuntimeServicepublic void deleteCaseInstance(String caseInstanceId)
deleteCaseInstance in interface CmmnRuntimeServicepublic void evaluateCriteria(String caseInstanceId)
evaluateCriteria in interface CmmnRuntimeServicepublic void completeGenericEventListenerInstance(String genericEventListenerInstanceId)
completeGenericEventListenerInstance in interface CmmnRuntimeServicepublic void completeUserEventListenerInstance(String userEventListenerInstanceId)
completeUserEventListenerInstance in interface CmmnRuntimeServicepublic Map<String,Object> getVariables(String caseInstanceId)
CmmnRuntimeServicegetVariables in interface CmmnRuntimeServicecaseInstanceId - id of case instance, cannot be null.public Map<String,VariableInstance> getVariableInstances(String caseInstanceId)
CmmnRuntimeServicegetVariableInstances in interface CmmnRuntimeServicecaseInstanceId - id of case instance, cannot be null.public Map<String,Object> getLocalVariables(String planItemInstanceId)
CmmnRuntimeServicegetLocalVariables in interface CmmnRuntimeServiceplanItemInstanceId - id of plan item instance, cannot be null.public Map<String,VariableInstance> getLocalVariableInstances(String planItemInstanceId)
CmmnRuntimeServicegetLocalVariableInstances in interface CmmnRuntimeServiceplanItemInstanceId - id of plan item instance, cannot be null.public Object getVariable(String caseInstanceId, String variableName)
CmmnRuntimeServicegetVariable in interface CmmnRuntimeServicecaseInstanceId - id of case instance, cannot be null.variableName - name of variable, cannot be null.public VariableInstance getVariableInstance(String caseInstanceId, String variableName)
CmmnRuntimeServicegetVariableInstance in interface CmmnRuntimeServicecaseInstanceId - id of case instance, cannot be null.variableName - name of variable, cannot be null.public Object getLocalVariable(String planItemInstanceId, String variableName)
CmmnRuntimeServicegetLocalVariable in interface CmmnRuntimeServiceplanItemInstanceId - id of plan item instance, cannot be null.variableName - name of variable, cannot be null.public VariableInstance getLocalVariableInstance(String planItemInstanceId, String variableName)
CmmnRuntimeServicegetLocalVariableInstance in interface CmmnRuntimeServiceplanItemInstanceId - id of plan item instance, cannot be null.variableName - name of variable, cannot be null.public boolean hasVariable(String caseInstanceId, String variableName)
CmmnRuntimeServicehasVariable in interface CmmnRuntimeServicepublic void setVariable(String caseInstanceId, String variableName, Object variableValue)
setVariable in interface CmmnRuntimeServicepublic void setVariables(String caseInstanceId, Map<String,Object> variables)
setVariables in interface CmmnRuntimeServicepublic void setLocalVariable(String planItemInstanceId, String variableName, Object variableValue)
setLocalVariable in interface CmmnRuntimeServicepublic void setLocalVariables(String planItemInstanceId, Map<String,Object> variables)
setLocalVariables in interface CmmnRuntimeServicepublic void removeVariable(String caseInstanceId, String variableName)
removeVariable in interface CmmnRuntimeServicepublic void removeVariables(String caseInstanceId, Collection<String> variableNames)
removeVariables in interface CmmnRuntimeServicepublic void removeLocalVariable(String planItemInstanceId, String variableName)
removeLocalVariable in interface CmmnRuntimeServicepublic void removeLocalVariables(String planItemInstanceId, Collection<String> variableNames)
removeLocalVariables in interface CmmnRuntimeServicepublic void setCaseInstanceName(String caseInstanceId, String caseName)
CmmnRuntimeServicesetCaseInstanceName in interface CmmnRuntimeServicecaseInstanceId - the id of the case to set the namecaseName - the name to be set on the casepublic CaseInstanceQuery createCaseInstanceQuery()
createCaseInstanceQuery in interface CmmnRuntimeServicepublic PlanItemInstanceQuery createPlanItemInstanceQuery()
createPlanItemInstanceQuery in interface CmmnRuntimeServicepublic MilestoneInstanceQuery createMilestoneInstanceQuery()
createMilestoneInstanceQuery in interface CmmnRuntimeServicepublic GenericEventListenerInstanceQuery createGenericEventListenerInstanceQuery()
createGenericEventListenerInstanceQuery in interface CmmnRuntimeServicepublic SignalEventListenerInstanceQuery createSignalEventListenerInstanceQuery()
createSignalEventListenerInstanceQuery in interface CmmnRuntimeServicepublic UserEventListenerInstanceQuery createUserEventListenerInstanceQuery()
createUserEventListenerInstanceQuery in interface CmmnRuntimeServicepublic EventSubscriptionQuery createEventSubscriptionQuery()
CmmnRuntimeServiceEventSubscriptionQuery instance, that can be used to query the event subscriptions.createEventSubscriptionQuery in interface CmmnRuntimeServicepublic List<StageResponse> getStageOverview(String caseInstanceId)
CmmnRuntimeServicegetStageOverview in interface CmmnRuntimeServicecaseInstanceId - id of the case instance, cannot be null.public void addUserIdentityLink(String caseInstanceId, String userId, String identityLinkType)
CmmnRuntimeServiceaddUserIdentityLink in interface CmmnRuntimeServicecaseInstanceId - id of the case instance, cannot be null.userId - id of the user involve, cannot be null.identityLinkType - type of identityLink, cannot be null.public void addGroupIdentityLink(String caseInstanceId, String groupId, String identityLinkType)
CmmnRuntimeServiceaddGroupIdentityLink in interface CmmnRuntimeServicecaseInstanceId - 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.public void deleteUserIdentityLink(String caseInstanceId, String userId, String identityLinkType)
CmmnRuntimeServicedeleteUserIdentityLink in interface CmmnRuntimeServicecaseInstanceId - id of the case instance, cannot be null.userId - id of the user involve, cannot be null.identityLinkType - type of identityLink, cannot be null.public void deleteGroupIdentityLink(String caseInstanceId, String groupId, String identityLinkType)
CmmnRuntimeServicedeleteGroupIdentityLink in interface CmmnRuntimeServicecaseInstanceId - 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.public List<IdentityLink> getIdentityLinksForCaseInstance(String caseInstanceId)
CmmnRuntimeServiceIdentityLinks associated with the given case instance. Such an identity link informs how a certain user is involved with a case instance.getIdentityLinksForCaseInstance in interface CmmnRuntimeServicepublic List<IdentityLink> getIdentityLinksForPlanItemInstance(String planItemInstanceId)
CmmnRuntimeServiceIdentityLinks associated with the given plan item instance. Such an identity link informs how a certain user is involved with a plan item instance.getIdentityLinksForPlanItemInstance in interface CmmnRuntimeServicepublic List<EntityLink> getEntityLinkChildrenForCaseInstance(String caseInstanceId)
CmmnRuntimeServiceEntityLinks associated with the given case instance.getEntityLinkChildrenForCaseInstance in interface CmmnRuntimeServicepublic List<EntityLink> getEntityLinkChildrenWithSameRootAsCaseInstance(String instanceId)
CmmnRuntimeServiceEntityLinks associated with the same root as the given case instance.getEntityLinkChildrenWithSameRootAsCaseInstance in interface CmmnRuntimeServicepublic List<EntityLink> getEntityLinkParentsForCaseInstance(String caseInstanceId)
CmmnRuntimeServiceEntityLinks where the given case instance is referenced.getEntityLinkParentsForCaseInstance in interface CmmnRuntimeServicepublic ChangePlanItemStateBuilder createChangePlanItemStateBuilder()
CmmnRuntimeServiceChangePlanItemStateBuilder, that allows to set various options for changing the state of a process instance.createChangePlanItemStateBuilder in interface CmmnRuntimeServicepublic void updateBusinessKey(String caseInstanceId, String businessKey)
CmmnRuntimeServiceupdateBusinessKey in interface CmmnRuntimeServicecaseInstanceId - id of the case instance to set the business key, cannot be nullbusinessKey - new businessKey valuepublic void changePlanItemState(ChangePlanItemStateBuilderImpl changePlanItemStateBuilder)
Copyright © 2023 Flowable. All rights reserved.