public interface CmmnRepositoryService
| Modifier and Type | Method and Description |
|---|---|
void |
addCandidateStarterGroup(String caseDefinitionId,
String groupId)
Authorizes a candidate group for a case definition.
|
void |
addCandidateStarterUser(String caseDefinitionId,
String userId)
Authorizes a candidate user for a case definition.
|
void |
changeDeploymentParentDeploymentId(String deploymentId,
String newParentDeploymentId)
Changes the parent deployment id of a deployment.
|
CaseDefinitionQuery |
createCaseDefinitionQuery()
Query case definitions
|
CmmnDeploymentBuilder |
createDeployment()
Starts creating a new deployment
|
CmmnDeploymentQuery |
createDeploymentQuery()
Query deployments
|
void |
deleteCandidateStarterGroup(String caseDefinitionId,
String groupId)
Removes the authorization of a candidate group for a case definition.
|
void |
deleteCandidateStarterUser(String caseDefinitionId,
String userId)
Removes the authorization of a candidate user for a case definition.
|
void |
deleteDeployment(String deploymentId,
boolean cascade)
Deletes the given deployment and cascade deletion to case instances, history case instances and jobs.
|
CaseDefinition |
getCaseDefinition(String caseDefinitionId)
Returns the
CaseDefinition including all CMMN information like additional Properties (e.g. |
InputStream |
getCaseDiagram(String caseDefinitionId)
Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.
|
CmmnModel |
getCmmnModel(String caseDefinitionId)
Gives access to a deployed case model, e.g., a CMMN 1.1 XML file, through a stream of bytes.
|
List<DmnDecision> |
getDecisionsForCaseDefinition(String caseDefinitionId)
Retrieves the
DmnDecisions associated with the given case definition. |
List<DmnDecision> |
getDecisionTablesForCaseDefinition(String caseDefinitionId)
Deprecated.
replaced by getDecisionsForCaseDefinition(String caseDefinition)
|
List<String> |
getDeploymentResourceNames(String deploymentId)
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.
|
List<FormDefinition> |
getFormDefinitionsForCaseDefinition(String caseDefinitionId)
Retrieves the
FormDefinitions associated with the given case definition. |
List<org.flowable.identitylink.api.IdentityLink> |
getIdentityLinksForCaseDefinition(String caseDefinitionId)
Retrieves the
IdentityLinks associated with the given case definition. |
InputStream |
getResourceAsStream(String deploymentId,
String resourceName)
Gives access to a deployment resource through a stream of bytes.
|
void |
setCaseDefinitionCategory(String caseDefinitionId,
String category)
Sets the category of the case definition.
|
CmmnDeploymentBuilder createDeployment()
List<String> getDeploymentResourceNames(String deploymentId)
deploymentId - id of the deployment, cannot be null.InputStream getResourceAsStream(String deploymentId, String resourceName)
deploymentId - id of the deployment, cannot be null.resourceName - name of the resource, cannot be null.FlowableObjectNotFoundException - when the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.CaseDefinition getCaseDefinition(String caseDefinitionId)
CaseDefinition including all CMMN information like additional Properties (e.g. documentation).CmmnModel getCmmnModel(String caseDefinitionId)
caseDefinitionId - id of a CaseDefinition, cannot be null.FlowableObjectNotFoundException - when the case model doesn't exist.InputStream getCaseDiagram(String caseDefinitionId)
caseDefinitionId - id of a CaseDefinition, cannot be null.CaseDefinition is null.FlowableObjectNotFoundException - when the case diagram doesn't exist.void deleteDeployment(String deploymentId, boolean cascade)
deploymentId - id of the deployment, cannot be null.CmmnDeploymentQuery createDeploymentQuery()
CaseDefinitionQuery createCaseDefinitionQuery()
void addCandidateStarterUser(String caseDefinitionId, String userId)
caseDefinitionId - id of the case definition, cannot be null.userId - id of the user involve, cannot be null.FlowableObjectNotFoundException - when the case definition or user doesn't exist.void addCandidateStarterGroup(String caseDefinitionId, String groupId)
caseDefinitionId - id of the case definition, cannot be null.groupId - id of the group involve, cannot be null.FlowableObjectNotFoundException - when the case definition or group doesn't exist.void deleteCandidateStarterUser(String caseDefinitionId, String userId)
caseDefinitionId - id of the case definition, cannot be null.userId - id of the user involve, cannot be null.FlowableObjectNotFoundException - when the case definition or user doesn't exist.void deleteCandidateStarterGroup(String caseDefinitionId, String groupId)
caseDefinitionId - id of the case definition, cannot be null.groupId - id of the group involve, cannot be null.FlowableObjectNotFoundException - when the case definition or group doesn't exist.List<org.flowable.identitylink.api.IdentityLink> getIdentityLinksForCaseDefinition(String caseDefinitionId)
IdentityLinks associated with the given case definition. Such an IdentityLink informs how a certain identity (eg. group or user) is authorized for a certain
case definitionvoid setCaseDefinitionCategory(String caseDefinitionId, String category)
CaseDefinitionQuery.caseDefinitionCategory(String).FlowableObjectNotFoundException - if no case definition with the provided id can be found.void changeDeploymentParentDeploymentId(String deploymentId, String newParentDeploymentId)
deploymentId - The id of the deployment of which the parent deployment identifier will be changed.newParentDeploymentId - The new parent deployment identifier.List<DmnDecision> getDecisionsForCaseDefinition(String caseDefinitionId)
DmnDecisions associated with the given case definition.caseDefinitionId - id of the case definition, cannot be null.@Deprecated List<DmnDecision> getDecisionTablesForCaseDefinition(String caseDefinitionId)
DmnDecisions associated with the given case definition.caseDefinitionId - id of the case definition, cannot be null.List<FormDefinition> getFormDefinitionsForCaseDefinition(String caseDefinitionId)
FormDefinitions associated with the given case definition.caseDefinitionId - id of the case definition, cannot be null.Copyright © 2021 Flowable. All rights reserved.