public class CmmnRepositoryServiceImpl extends CommonEngineServiceImpl<CmmnEngineConfiguration> implements CmmnRepositoryService
commandExecutorconfiguration| Constructor and Description |
|---|
CmmnRepositoryServiceImpl(CmmnEngineConfiguration engineConfiguration) |
| 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.
|
CmmnDeployment |
deploy(CmmnDeploymentBuilderImpl deploymentBuilder) |
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.
|
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<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.
|
getCommandExecutor, setCommandExecutorgetConfigurationpublic CmmnRepositoryServiceImpl(CmmnEngineConfiguration engineConfiguration)
public CmmnDeploymentBuilder createDeployment()
CmmnRepositoryServicecreateDeployment in interface CmmnRepositoryServicepublic List<String> getDeploymentResourceNames(String deploymentId)
CmmnRepositoryServicegetDeploymentResourceNames in interface CmmnRepositoryServicedeploymentId - id of the deployment, cannot be null.public InputStream getResourceAsStream(String deploymentId, String resourceName)
CmmnRepositoryServicegetResourceAsStream in interface CmmnRepositoryServicedeploymentId - id of the deployment, cannot be null.resourceName - name of the resource, cannot be null.public CmmnDeployment deploy(CmmnDeploymentBuilderImpl deploymentBuilder)
public CaseDefinition getCaseDefinition(String caseDefinitionId)
CmmnRepositoryServiceCaseDefinition including all CMMN information like additional Properties (e.g. documentation).getCaseDefinition in interface CmmnRepositoryServicepublic CmmnModel getCmmnModel(String caseDefinitionId)
CmmnRepositoryServicegetCmmnModel in interface CmmnRepositoryServicecaseDefinitionId - id of a CaseDefinition, cannot be null.public InputStream getCaseDiagram(String caseDefinitionId)
CmmnRepositoryServicegetCaseDiagram in interface CmmnRepositoryServicecaseDefinitionId - id of a CaseDefinition, cannot be null.CaseDefinition is null.public void deleteDeployment(String deploymentId, boolean cascade)
CmmnRepositoryServicedeleteDeployment in interface CmmnRepositoryServicedeploymentId - id of the deployment, cannot be null.public CmmnDeploymentQuery createDeploymentQuery()
CmmnRepositoryServicecreateDeploymentQuery in interface CmmnRepositoryServicepublic CaseDefinitionQuery createCaseDefinitionQuery()
CmmnRepositoryServicecreateCaseDefinitionQuery in interface CmmnRepositoryServicepublic void addCandidateStarterUser(String caseDefinitionId, String userId)
CmmnRepositoryServiceaddCandidateStarterUser in interface CmmnRepositoryServicecaseDefinitionId - id of the case definition, cannot be null.userId - id of the user involve, cannot be null.public void addCandidateStarterGroup(String caseDefinitionId, String groupId)
CmmnRepositoryServiceaddCandidateStarterGroup in interface CmmnRepositoryServicecaseDefinitionId - id of the case definition, cannot be null.groupId - id of the group involve, cannot be null.public void deleteCandidateStarterGroup(String caseDefinitionId, String groupId)
CmmnRepositoryServicedeleteCandidateStarterGroup in interface CmmnRepositoryServicecaseDefinitionId - id of the case definition, cannot be null.groupId - id of the group involve, cannot be null.public void deleteCandidateStarterUser(String caseDefinitionId, String userId)
CmmnRepositoryServicedeleteCandidateStarterUser in interface CmmnRepositoryServicecaseDefinitionId - id of the case definition, cannot be null.userId - id of the user involve, cannot be null.public List<IdentityLink> getIdentityLinksForCaseDefinition(String caseDefinitionId)
CmmnRepositoryServiceIdentityLinks associated with the given case definition. Such an IdentityLink informs how a certain identity (eg. group or user) is authorized for a certain
case definitiongetIdentityLinksForCaseDefinition in interface CmmnRepositoryServicepublic void setCaseDefinitionCategory(String caseDefinitionId, String category)
CmmnRepositoryServiceCaseDefinitionQuery.caseDefinitionCategory(String).setCaseDefinitionCategory in interface CmmnRepositoryServicepublic void changeDeploymentParentDeploymentId(String deploymentId, String newParentDeploymentId)
CmmnRepositoryServicechangeDeploymentParentDeploymentId in interface CmmnRepositoryServicedeploymentId - The id of the deployment of which the parent deployment identifier will be changed.newParentDeploymentId - The new parent deployment identifier.public List<DmnDecision> getDecisionsForCaseDefinition(String caseDefinitionId)
CmmnRepositoryServiceDmnDecisions associated with the given case definition.getDecisionsForCaseDefinition in interface CmmnRepositoryServicecaseDefinitionId - id of the case definition, cannot be null.@Deprecated public List<DmnDecision> getDecisionTablesForCaseDefinition(String caseDefinitionId)
CmmnRepositoryServiceDmnDecisions associated with the given case definition.getDecisionTablesForCaseDefinition in interface CmmnRepositoryServicecaseDefinitionId - id of the case definition, cannot be null.public List<FormDefinition> getFormDefinitionsForCaseDefinition(String caseDefinitionId)
CmmnRepositoryServiceFormDefinitions associated with the given case definition.getFormDefinitionsForCaseDefinition in interface CmmnRepositoryServicecaseDefinitionId - id of the case definition, cannot be null.Copyright © 2023 Flowable. All rights reserved.