Package org.flowable.cmmn.api
Interface CmmnRepositoryService
public interface CmmnRepositoryService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Query case definitionsStarts creating a new deploymentQuery deploymentsvoid
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.getCaseDefinition
(String caseDefinitionId) Returns theCaseDefinition
including all CMMN information like additional Properties (e.g. documentation).getCaseDiagram
(String caseDefinitionId) Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.org.flowable.cmmn.model.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<org.flowable.dmn.api.DmnDecision>
getDecisionsForCaseDefinition
(String caseDefinitionId) Retrieves theDmnDecision
s associated with the given case definition.getDeploymentResourceNames
(String deploymentId) Retrieves a list of deployment resources for the given deployment, ordered alphabetically.List<org.flowable.form.api.FormDefinition>
getFormDefinitionsForCaseDefinition
(String caseDefinitionId) Retrieves theFormDefinition
s associated with the given case definition.List<org.flowable.identitylink.api.IdentityLink>
getIdentityLinksForCaseDefinition
(String caseDefinitionId) Retrieves theIdentityLink
s associated with the given case definition.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.
-
Method Details
-
createDeployment
CmmnDeploymentBuilder createDeployment()Starts creating a new deployment -
getDeploymentResourceNames
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
Gives access to a deployment resource through a stream of bytes.- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.- Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
-
getCaseDefinition
Returns theCaseDefinition
including all CMMN information like additional Properties (e.g. documentation). -
getCmmnModel
Gives access to a deployed case model, e.g., a CMMN 1.1 XML file, through a stream of bytes.- Parameters:
caseDefinitionId
- id of aCaseDefinition
, cannot be null.- Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when the case model doesn't exist.
-
getCaseDiagram
Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.- Parameters:
caseDefinitionId
- id of aCaseDefinition
, cannot be null.- Returns:
- null when the diagram resource name of a
CaseDefinition
is null. - Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when the case diagram doesn't exist.
-
deleteDeployment
Deletes the given deployment and cascade deletion to case instances, history case instances and jobs.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
CmmnDeploymentQuery createDeploymentQuery()Query deployments -
createCaseDefinitionQuery
CaseDefinitionQuery createCaseDefinitionQuery()Query case definitions -
addCandidateStarterUser
Authorizes a candidate user for a case definition.- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.userId
- id of the user involve, cannot be null.- Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when the case definition or user doesn't exist.
-
addCandidateStarterGroup
Authorizes a candidate group for a case definition.- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.groupId
- id of the group involve, cannot be null.- Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when the case definition or group doesn't exist.
-
deleteCandidateStarterUser
Removes the authorization of a candidate user for a case definition.- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.userId
- id of the user involve, cannot be null.- Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when the case definition or user doesn't exist.
-
deleteCandidateStarterGroup
Removes the authorization of a candidate group for a case definition.- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.groupId
- id of the group involve, cannot be null.- Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- when the case definition or group doesn't exist.
-
getIdentityLinksForCaseDefinition
List<org.flowable.identitylink.api.IdentityLink> getIdentityLinksForCaseDefinition(String caseDefinitionId) Retrieves theIdentityLink
s associated with the given case definition. Such anIdentityLink
informs how a certain identity (eg. group or user) is authorized for a certain case definition -
setCaseDefinitionCategory
Sets the category of the case definition. Case definitions can be queried by category: seeCaseDefinitionQuery.caseDefinitionCategory(String)
.- Throws:
org.flowable.common.engine.api.FlowableObjectNotFoundException
- if no case definition with the provided id can be found.
-
changeDeploymentParentDeploymentId
Changes the parent deployment id of a deployment. This is used to move deployments to a different app deployment parent.- Parameters:
deploymentId
- The id of the deployment of which the parent deployment identifier will be changed.newParentDeploymentId
- The new parent deployment identifier.
-
getDecisionsForCaseDefinition
Retrieves theDmnDecision
s associated with the given case definition.- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.
-
getFormDefinitionsForCaseDefinition
List<org.flowable.form.api.FormDefinition> getFormDefinitionsForCaseDefinition(String caseDefinitionId) Retrieves theFormDefinition
s associated with the given case definition.- Parameters:
caseDefinitionId
- id of the case definition, cannot be null.
-