Package org.camunda.bpm.engine
Interface RepositoryService
- 
- All Known Implementing Classes:
- RepositoryServiceImpl
 
 public interface RepositoryServiceService providing access to the repository of process definitions and deployments.- Author:
- Tom Baeyens, Falko Menge, Tijs Rademakers, Joram Barrez
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidactivateProcessDefinitionById(java.lang.String processDefinitionId)Activates the process definition with the given id.voidactivateProcessDefinitionById(java.lang.String processDefinitionId, boolean activateProcessInstances, java.util.Date activationDate)Activates the process definition with the given id.voidactivateProcessDefinitionByKey(java.lang.String processDefinitionKey)Activates the process definition with the given key (=id in the bpmn20.xml file).voidactivateProcessDefinitionByKey(java.lang.String processDefinitionKey, boolean activateProcessInstances, java.util.Date activationDate)Activates the process definition with the given key (=id in the bpmn20.xml file).voidaddCandidateStarterGroup(java.lang.String processDefinitionId, java.lang.String groupId)Deprecated.Use authorization mechanism instead.voidaddCandidateStarterUser(java.lang.String processDefinitionId, java.lang.String userId)Deprecated.Use authorization mechanism instead.CaseDefinitionQuerycreateCaseDefinitionQuery()Query case definitions.DecisionDefinitionQuerycreateDecisionDefinitionQuery()Query decision definitions.DecisionRequirementsDefinitionQuerycreateDecisionRequirementsDefinitionQuery()Query decision requirements definition.DeploymentBuildercreateDeployment()Starts creating a new deploymentProcessApplicationDeploymentBuildercreateDeployment(ProcessApplicationReference processApplication)Starts creating a newProcessApplicationDeployment.DeploymentQuerycreateDeploymentQuery()Query process definitions.ProcessDefinitionQuerycreateProcessDefinitionQuery()Query process definitions.voiddeleteCandidateStarterGroup(java.lang.String processDefinitionId, java.lang.String groupId)Deprecated.Use authorization mechanism instead.voiddeleteCandidateStarterUser(java.lang.String processDefinitionId, java.lang.String userId)Deprecated.Use authorization mechanism instead.voiddeleteDeployment(java.lang.String deploymentId)Deletes the given deployment.voiddeleteDeployment(java.lang.String deploymentId, boolean cascade)Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.voiddeleteDeployment(java.lang.String deploymentId, boolean cascade, boolean skipCustomListeners)Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.voiddeleteDeployment(java.lang.String deploymentId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.voiddeleteDeploymentCascade(java.lang.String deploymentId)Deprecated.voiddeleteProcessDefinition(java.lang.String processDefinitionId)Deletes the process definition which belongs to the given process definition id.voiddeleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade)Deletes the process definition which belongs to the given process definition id.voiddeleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade, boolean skipCustomListeners)Deletes the process definition which belongs to the given process definition id.voiddeleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)Deletes the process definition which belongs to the given process definition id.DeleteProcessDefinitionsSelectBuilderdeleteProcessDefinitions()Fluent builder to delete process definitions.BpmnModelInstancegetBpmnModelInstance(java.lang.String processDefinitionId)Returns theBpmnModelInstancefor the given processDefinitionId.CaseDefinitiongetCaseDefinition(java.lang.String caseDefinitionId)Returns theCaseDefinition.java.io.InputStreamgetCaseDiagram(java.lang.String caseDefinitionId)Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.java.io.InputStreamgetCaseModel(java.lang.String caseDefinitionId)Gives access to a deployed case model, e.g., a CMMN 1.0 XML file, through a stream of bytes.CmmnModelInstancegetCmmnModelInstance(java.lang.String caseDefinitionId)Returns theCmmnModelInstancefor the given caseDefinitionId.DecisionDefinitiongetDecisionDefinition(java.lang.String decisionDefinitionId)Returns theDecisionDefinition.java.io.InputStreamgetDecisionDiagram(java.lang.String decisionDefinitionId)Gives access to a deployed decision diagram, e.g., a PNG image, through a stream of bytes.java.io.InputStreamgetDecisionModel(java.lang.String decisionDefinitionId)Gives access to a deployed decision model, e.g., a DMN 1.1 XML file, through a stream of bytes.DecisionRequirementsDefinitiongetDecisionRequirementsDefinition(java.lang.String decisionRequirementsDefinitionId)Returns theDecisionRequirementsDefinition.java.io.InputStreamgetDecisionRequirementsDiagram(java.lang.String decisionRequirementsDefinitionId)Gives access to a deployed decision requirements diagram, e.g., a PNG image, through a stream of bytes.java.io.InputStreamgetDecisionRequirementsModel(java.lang.String decisionRequirementsDefinitionId)Gives access to a deployed decision requirements model, e.g., a DMN 1.1 XML file, through a stream of bytes.java.util.List<java.lang.String>getDeploymentResourceNames(java.lang.String deploymentId)Retrieves a list of deployment resource names for the given deployment, ordered alphabetically.java.util.List<Resource>getDeploymentResources(java.lang.String deploymentId)Retrieves a list of deployment resources for the given deployment, ordered alphabetically by name.DmnModelInstancegetDmnModelInstance(java.lang.String decisionDefinitionId)Returns theDmnModelInstancefor the given decisionDefinitionId.java.util.List<IdentityLink>getIdentityLinksForProcessDefinition(java.lang.String processDefinitionId)Deprecated.Use authorization mechanism instead.ProcessDefinitiongetProcessDefinition(java.lang.String processDefinitionId)Returns theProcessDefinitionincluding all BPMN information like additional Properties (e.g.java.io.InputStreamgetProcessDiagram(java.lang.String processDefinitionId)Gives access to a deployed process diagram, e.g., a PNG image, through a stream of bytes.DiagramLayoutgetProcessDiagramLayout(java.lang.String processDefinitionId)Provides positions and dimensions of elements in a process diagram as provided bygetProcessDiagram(String).java.io.InputStreamgetProcessModel(java.lang.String processDefinitionId)Gives access to a deployed process model, e.g., a BPMN 2.0 XML file, through a stream of bytes.java.io.InputStreamgetResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)Gives access to a deployment resource through a stream of bytes.java.io.InputStreamgetResourceAsStreamById(java.lang.String deploymentId, java.lang.String resourceId)Gives access to a deployment resource through a stream of bytes.java.util.Collection<CalledProcessDefinition>getStaticCalledProcessDefinitions(java.lang.String processDefinitionId)For the given process, returns a list ofCalledProcessDefinition.voidsuspendProcessDefinitionById(java.lang.String processDefinitionId)Suspends the process definition with the given id.voidsuspendProcessDefinitionById(java.lang.String processDefinitionId, boolean suspendProcessInstances, java.util.Date suspensionDate)Suspends the process definition with the given id.voidsuspendProcessDefinitionByKey(java.lang.String processDefinitionKey)Suspends the all process definitions with the given key (= id in the bpmn20.xml file).voidsuspendProcessDefinitionByKey(java.lang.String processDefinitionKey, boolean suspendProcessInstances, java.util.Date suspensionDate)Suspends the all process definitions with the given key (= id in the bpmn20.xml file).voidupdateCaseDefinitionHistoryTimeToLive(java.lang.String caseDefinitionId, java.lang.Integer historyTimeToLive)Updates time to live of case definition.voidupdateDecisionDefinitionHistoryTimeToLive(java.lang.String decisionDefinitionId, java.lang.Integer historyTimeToLive)Updates time to live of decision definition.voidupdateProcessDefinitionHistoryTimeToLive(java.lang.String processDefinitionId, java.lang.Integer historyTimeToLive)Updates time to live of process definition.UpdateProcessDefinitionSuspensionStateSelectBuilderupdateProcessDefinitionSuspensionState()Activate or suspend process definitions using a fluent builder.
 
- 
- 
- 
Method Detail- 
createDeploymentDeploymentBuilder createDeployment() Starts creating a new deployment
 - 
createDeploymentProcessApplicationDeploymentBuilder createDeployment(ProcessApplicationReference processApplication) Starts creating a newProcessApplicationDeployment.- See Also:
- ProcessApplicationDeploymentBuilder
 
 - 
deleteDeploymentvoid deleteDeployment(java.lang.String deploymentId) Deletes the given deployment.- Parameters:
- deploymentId- id of the deployment, cannot be null.
- Throws:
- java.lang.RuntimeException- If there are still runtime or history process instances or jobs.
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.DEPLOYMENT.
 
 - 
deleteDeploymentCascade@Deprecated void deleteDeploymentCascade(java.lang.String deploymentId) Deprecated.usedeleteDeployment(String, boolean). This methods may be deleted from 5.3.Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Parameters:
- deploymentId- id of the deployment, cannot be null.
- Throws:
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.DEPLOYMENT.
 
 - 
deleteDeploymentvoid deleteDeployment(java.lang.String deploymentId, boolean cascade)Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Parameters:
- deploymentId- id of the deployment, cannot be null.
- Throws:
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.DEPLOYMENT.
 
 - 
deleteDeploymentvoid deleteDeployment(java.lang.String deploymentId, boolean cascade, boolean skipCustomListeners)Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Parameters:
- deploymentId- id of the deployment, cannot be null.
- cascade- if set to true, all process instances (including) history are deleted
- skipCustomListeners- if true, only the built-in- ExecutionListeners are notified with the- ExecutionListener.EVENTNAME_ENDevent.
- Throws:
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.DEPLOYMENT.
 
 - 
deleteDeploymentvoid deleteDeployment(java.lang.String deploymentId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Parameters:
- deploymentId- id of the deployment, cannot be null.
- cascade- if set to true, all process instances (including) history are deleted
- skipCustomListeners- if true, only the built-in- ExecutionListeners are notified with the- ExecutionListener.EVENTNAME_ENDevent.
- skipIoMappings- specifies whether input/output mappings for tasks should be invoked
- Throws:
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.DEPLOYMENT.
 
 - 
deleteProcessDefinitionvoid deleteProcessDefinition(java.lang.String processDefinitionId) Deletes the process definition which belongs to the given process definition id. Same behavior asdeleteProcessDefinition(java.lang.String, boolean, boolean)Both boolean parameters of this method are per default false. The deletion is in this case not cascading.- Parameters:
- processDefinitionId- the id, which corresponds to the process definition
- Throws:
- ProcessEngineException- If the process definition does not exist
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.PROCESS_DEFINITION.
- See Also:
- deleteProcessDefinition(java.lang.String, boolean, boolean)
 
 - 
deleteProcessDefinitionvoid deleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade)Deletes the process definition which belongs to the given process definition id. Cascades the deletion if the cascade is set to true. Same behavior asdeleteProcessDefinition(java.lang.String, boolean, boolean)The skipCustomListeners parameter is per default false. The custom listeners are called if the cascading flag is set to true and the process instances are deleted.- Parameters:
- processDefinitionId- the id, which corresponds to the process definition
- cascade- if set to true, all process instances (including) history are deleted
- Throws:
- ProcessEngineException- If the process definition does not exist
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.PROCESS_DEFINITION.
- See Also:
- deleteProcessDefinition(java.lang.String, boolean, boolean)
 
 - 
deleteProcessDefinitionvoid deleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade, boolean skipCustomListeners)Deletes the process definition which belongs to the given process definition id. Cascades the deletion if the cascade is set to true the custom listener can be skipped if the third parameter is set to true.- Parameters:
- processDefinitionId- the id, which corresponds to the process definition
- cascade- if set to true, all process instances (including) history are deleted
- skipCustomListeners- if true, only the built-in- ExecutionListeners are notified with the- ExecutionListener.EVENTNAME_ENDevent. Is only used if cascade set to true.
- Throws:
- ProcessEngineException- If the process definition does not exist
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.PROCESS_DEFINITION.
 
 - 
deleteProcessDefinitionvoid deleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)Deletes the process definition which belongs to the given process definition id. Cascades the deletion if the cascade is set to true, the custom listener can be skipped if the third parameter is set to true, io mappings can be skipped if the forth parameter is set to true.- Parameters:
- processDefinitionId- the id, which corresponds to the process definition
- cascade- if set to true, all process instances (including) history are deleted
- skipCustomListeners- if true, only the built-in- ExecutionListeners are notified with the- ExecutionListener.EVENTNAME_ENDevent. Is only used if cascade set to true.
- skipIoMappings- Specifies whether input/output mappings for tasks should be invoked
- Throws:
- ProcessEngineException- If the process definition does not exist
- AuthorizationException- If the user has no- Permissions.DELETEpermission on- Resources.PROCESS_DEFINITION.
 
 - 
deleteProcessDefinitionsDeleteProcessDefinitionsSelectBuilder deleteProcessDefinitions() Fluent builder to delete process definitions.- Returns:
- the builder to delete process definitions
 
 - 
getDeploymentResourceNamesjava.util.List<java.lang.String> getDeploymentResourceNames(java.lang.String deploymentId) Retrieves a list of deployment resource names for the given deployment, ordered alphabetically.- Parameters:
- deploymentId- id of the deployment, cannot be null.
- Throws:
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DEPLOYMENT.
 
 - 
getDeploymentResourcesjava.util.List<Resource> getDeploymentResources(java.lang.String deploymentId) Retrieves a list of deployment resources for the given deployment, ordered alphabetically by name.- Parameters:
- deploymentId- id of the deployment, cannot be null.
- Throws:
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DEPLOYMENT.
 
 - 
getResourceAsStreamjava.io.InputStream getResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)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:
- ProcessEngineException- When the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DEPLOYMENT.
 
 - 
getResourceAsStreamByIdjava.io.InputStream getResourceAsStreamById(java.lang.String deploymentId, java.lang.String resourceId)Gives access to a deployment resource through a stream of bytes.- Parameters:
- deploymentId- id of the deployment, cannot be null.
- resourceId- id of the resource, cannot be null.
- Throws:
- ProcessEngineException- When the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DEPLOYMENT.
 
 - 
createProcessDefinitionQueryProcessDefinitionQuery createProcessDefinitionQuery() Query process definitions.
 - 
createCaseDefinitionQueryCaseDefinitionQuery createCaseDefinitionQuery() Query case definitions.
 - 
createDecisionDefinitionQueryDecisionDefinitionQuery createDecisionDefinitionQuery() Query decision definitions.
 - 
createDecisionRequirementsDefinitionQueryDecisionRequirementsDefinitionQuery createDecisionRequirementsDefinitionQuery() Query decision requirements definition.
 - 
createDeploymentQueryDeploymentQuery createDeploymentQuery() Query process definitions.
 - 
suspendProcessDefinitionByIdvoid suspendProcessDefinitionById(java.lang.String processDefinitionId) Suspends the process definition with the given id. If a process definition is in state suspended, it will not be possible to start new process instances based on the process definition. Note: all the process instances of the process definition will still be active (ie. not suspended)!Note: for more complex suspend commands use updateProcessDefinitionSuspensionState().- Throws:
- ProcessEngineException- If no such processDefinition can be found.
- AuthorizationException- If the user has none of the following:- ProcessDefinitionPermissions.SUSPENDpermission on- Resources.PROCESS_DEFINITION- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION
 
 - 
suspendProcessDefinitionByIdvoid suspendProcessDefinitionById(java.lang.String processDefinitionId, boolean suspendProcessInstances, java.util.Date suspensionDate)Suspends the process definition with the given id. If a process definition is in state suspended, it will not be possible to start new process instances based on the process definition.Note: for more complex suspend commands use updateProcessDefinitionSuspensionState().- Parameters:
- suspendProcessInstances- If true, all the process instances of the provided process definition will be suspended too.
- suspensionDate- The date on which the process definition will be suspended. If null, the process definition is suspended immediately. Note: The job executor needs to be active to use this!
- Throws:
- ProcessEngineException- If no such processDefinition can be found.
- AuthorizationException-
- If the user has no
- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION.
- and if
- suspendProcessInstancesis set to- trueand the user has none of the following:- ProcessInstancePermissions.SUSPENDpermission on- Resources.PROCESS_INSTANCE
- ProcessDefinitionPermissions.SUSPEND_INSTANCEpermission on- Resources.PROCESS_DEFINITION
- Permissions.UPDATEpermission on- Resources.PROCESS_INSTANCE
- Permissions.UPDATE_INSTANCEpermission on- Resources.PROCESS_DEFINITION
 
- If the user has no
- See Also:
- RuntimeService.suspendProcessInstanceById(String)
 
 - 
suspendProcessDefinitionByKeyvoid suspendProcessDefinitionByKey(java.lang.String processDefinitionKey) Suspends the all process definitions with the given key (= id in the bpmn20.xml file). If a process definition is in state suspended, it will not be possible to start new process instances based on the process definition. Note: all the process instances of the process definition will still be active (ie. not suspended)!Note: for more complex suspend commands use updateProcessDefinitionSuspensionState().- Throws:
- ProcessEngineException- If no such processDefinition can be found.
- AuthorizationException- If the user has none of the following:- ProcessDefinitionPermissions.SUSPENDpermission on- Resources.PROCESS_DEFINITION- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION
 
 - 
suspendProcessDefinitionByKeyvoid suspendProcessDefinitionByKey(java.lang.String processDefinitionKey, boolean suspendProcessInstances, java.util.Date suspensionDate)Suspends the all process definitions with the given key (= id in the bpmn20.xml file). If a process definition is in state suspended, it will not be possible to start new process instances based on the process definition.Note: for more complex suspend commands use updateProcessDefinitionSuspensionState().- Parameters:
- suspendProcessInstances- If true, all the process instances of the provided process definition will be suspended too.
- suspensionDate- The date on which the process definition will be suspended. If null, the process definition is suspended immediately. Note: The job executor needs to be active to use this!
- Throws:
- ProcessEngineException- If no such processDefinition can be found.
- AuthorizationException-
- If the user has no
- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION.
- and if
- suspendProcessInstancesis set to- trueand the user has none of the following:- ProcessInstancePermissions.SUSPENDpermission on- Resources.PROCESS_INSTANCE
- ProcessDefinitionPermissions.SUSPEND_INSTANCEpermission on- Resources.PROCESS_DEFINITION
- Permissions.UPDATEpermission on- Resources.PROCESS_INSTANCE
- Permissions.UPDATE_INSTANCEpermission on- Resources.PROCESS_DEFINITION
 
- If the user has no
- See Also:
- RuntimeService.suspendProcessInstanceById(String)
 
 - 
activateProcessDefinitionByIdvoid activateProcessDefinitionById(java.lang.String processDefinitionId) Activates the process definition with the given id.Note: for more complex activate commands use updateProcessDefinitionSuspensionState().- Throws:
- ProcessEngineException- If no such processDefinition can be found or if the process definition is already in state active.
- AuthorizationException- If the user has none of the following:- ProcessDefinitionPermissions.SUSPENDpermission on- Resources.PROCESS_DEFINITION- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION
 
 - 
activateProcessDefinitionByIdvoid activateProcessDefinitionById(java.lang.String processDefinitionId, boolean activateProcessInstances, java.util.Date activationDate)Activates the process definition with the given id.Note: for more complex activate commands use updateProcessDefinitionSuspensionState().- Parameters:
- suspendProcessInstances- If true, all the process instances of the provided process definition will be activated too.
- activationDate- The date on which the process definition will be activated. If null, the process definition is suspended immediately. Note: The job executor needs to be active to use this!
- Throws:
- ProcessEngineException- If no such processDefinition can be found.
- AuthorizationException-
- If the user has no
- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION.
- and if
- suspendProcessInstancesis set to- trueand the user has none of the following:- ProcessInstancePermissions.SUSPENDpermission on- Resources.PROCESS_INSTANCE
- ProcessDefinitionPermissions.SUSPEND_INSTANCEpermission on- Resources.PROCESS_DEFINITION
- Permissions.UPDATEpermission on- Resources.PROCESS_INSTANCE
- Permissions.UPDATE_INSTANCEpermission on- Resources.PROCESS_DEFINITION
 
- If the user has no
- See Also:
- RuntimeService.activateProcessInstanceById(String)
 
 - 
activateProcessDefinitionByKeyvoid activateProcessDefinitionByKey(java.lang.String processDefinitionKey) Activates the process definition with the given key (=id in the bpmn20.xml file).Note: for more complex activate commands use updateProcessDefinitionSuspensionState().- Throws:
- ProcessEngineException- If no such processDefinition can be found.
- AuthorizationException- If the user has none of the following:- ProcessDefinitionPermissions.SUSPENDpermission on- Resources.PROCESS_DEFINITION- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION
 
 - 
activateProcessDefinitionByKeyvoid activateProcessDefinitionByKey(java.lang.String processDefinitionKey, boolean activateProcessInstances, java.util.Date activationDate)Activates the process definition with the given key (=id in the bpmn20.xml file).Note: for more complex activate commands use updateProcessDefinitionSuspensionState().- Parameters:
- suspendProcessInstances- If true, all the process instances of the provided process definition will be activated too.
- activationDate- The date on which the process definition will be activated. If null, the process definition is suspended immediately. Note: The job executor needs to be active to use this!
- Throws:
- ProcessEngineException- If no such processDefinition can be found.
- AuthorizationException-
- If the user has no
- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION.
- and if
- suspendProcessInstancesis set to- trueand the user has none of the following:- ProcessInstancePermissions.SUSPENDpermission on- Resources.PROCESS_INSTANCE
- ProcessDefinitionPermissions.SUSPEND_INSTANCEpermission on- Resources.PROCESS_DEFINITION
- Permissions.UPDATEpermission on- Resources.PROCESS_INSTANCE
- Permissions.UPDATE_INSTANCEpermission on- Resources.PROCESS_DEFINITION
 
- If the user has no
- See Also:
- RuntimeService.activateProcessInstanceById(String)
 
 - 
updateProcessDefinitionSuspensionStateUpdateProcessDefinitionSuspensionStateSelectBuilder updateProcessDefinitionSuspensionState() Activate or suspend process definitions using a fluent builder. Specify the definitions by calling one of the by methods, like byProcessDefinitionId. To update the suspension state callUpdateProcessDefinitionSuspensionStateBuilder.activate()orUpdateProcessDefinitionSuspensionStateBuilder.suspend().- Returns:
- the builder to update the suspension state
 
 - 
updateProcessDefinitionHistoryTimeToLivevoid updateProcessDefinitionHistoryTimeToLive(java.lang.String processDefinitionId, java.lang.Integer historyTimeToLive)Updates time to live of process definition. The field is used within history cleanup process.- Parameters:
- processDefinitionId-
- historyTimeToLive-
- Throws:
- AuthorizationException- If the user has no- Permissions.UPDATEpermission on- Resources.PROCESS_DEFINITION.
 
 - 
updateDecisionDefinitionHistoryTimeToLivevoid updateDecisionDefinitionHistoryTimeToLive(java.lang.String decisionDefinitionId, java.lang.Integer historyTimeToLive)Updates time to live of decision definition. The field is used within history cleanup process.- Parameters:
- decisionDefinitionId-
- historyTimeToLive-
- Throws:
- AuthorizationException- If the user has no- Permissions.UPDATEpermission on- Resources.DECISION_DEFINITION.
 
 - 
updateCaseDefinitionHistoryTimeToLivevoid updateCaseDefinitionHistoryTimeToLive(java.lang.String caseDefinitionId, java.lang.Integer historyTimeToLive)Updates time to live of case definition. The field is used within history cleanup process.- Parameters:
- caseDefinitionId-
- historyTimeToLive-
 
 - 
getProcessModeljava.io.InputStream getProcessModel(java.lang.String processDefinitionId) Gives access to a deployed process model, e.g., a BPMN 2.0 XML file, through a stream of bytes.- Parameters:
- processDefinitionId- id of a- ProcessDefinition, cannot be null.
- Throws:
- NotFoundException- when the process model doesn't exist.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.PROCESS_DEFINITION.
 
 - 
getProcessDiagramjava.io.InputStream getProcessDiagram(java.lang.String processDefinitionId) Gives access to a deployed process diagram, e.g., a PNG image, through a stream of bytes.- Parameters:
- processDefinitionId- id of a- ProcessDefinition, cannot be null.
- Returns:
- null when the diagram resource name of a ProcessDefinitionis null.
- Throws:
- ProcessEngineException- when the process diagram doesn't exist.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.PROCESS_DEFINITION.
 
 - 
getProcessDefinitionProcessDefinition getProcessDefinition(java.lang.String processDefinitionId) Returns theProcessDefinitionincluding all BPMN information like additional Properties (e.g. documentation).- Throws:
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.PROCESS_DEFINITION.
 
 - 
getProcessDiagramLayoutDiagramLayout getProcessDiagramLayout(java.lang.String processDefinitionId) Provides positions and dimensions of elements in a process diagram as provided bygetProcessDiagram(String). This method requires a process model and a diagram image to be deployed.- Parameters:
- processDefinitionId- id of a- ProcessDefinition, cannot be null.
- Returns:
- Map with process element ids as keys and positions and dimensions as values.
- Throws:
- ProcessEngineException- When the process model or diagram doesn't exist.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.PROCESS_DEFINITION.
 
 - 
getBpmnModelInstanceBpmnModelInstance getBpmnModelInstance(java.lang.String processDefinitionId) Returns theBpmnModelInstancefor the given processDefinitionId.- Parameters:
- processDefinitionId- the id of the Process Definition for which the- BpmnModelInstanceshould be retrieved.
- Returns:
- the BpmnModelInstance
- Throws:
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.PROCESS_DEFINITION.
 
 - 
getCmmnModelInstanceCmmnModelInstance getCmmnModelInstance(java.lang.String caseDefinitionId) Returns theCmmnModelInstancefor the given caseDefinitionId.- Parameters:
- caseDefinitionId- the id of the Case Definition for which the- CmmnModelInstanceshould be retrieved.
- Returns:
- the CmmnModelInstance
- Throws:
- NotValidException- when the given case definition id or deployment id or resource name is null
- NotFoundException- when no CMMN model instance or deployment resource is found for the given case definition id
- ProcessEngineException- when an internal exception happens during the execution of the command.
 
 - 
getDmnModelInstanceDmnModelInstance getDmnModelInstance(java.lang.String decisionDefinitionId) Returns theDmnModelInstancefor the given decisionDefinitionId.- Parameters:
- decisionDefinitionId- the id of the Decision Definition for which the- DmnModelInstanceshould be retrieved.
- Returns:
- the DmnModelInstance
- Throws:
- NotValidException- when the given decision definition id or deployment id or resource name is null
- NotFoundException- when no DMN model instance or deployment resource is found for the given decision definition id
- ProcessEngineException- when an internal exception happens during the execution of the command.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DECISION_DEFINITION.
 
 - 
addCandidateStarterUser@Deprecated void addCandidateStarterUser(java.lang.String processDefinitionId, java.lang.String userId)Deprecated.Use authorization mechanism instead.Authorizes a candidate user for a process definition.- Parameters:
- processDefinitionId- id of the process definition, cannot be null.
- userId- id of the user involve, cannot be null.
- Throws:
- ProcessEngineException- When the process definition or user doesn't exist.
 
 - 
addCandidateStarterGroup@Deprecated void addCandidateStarterGroup(java.lang.String processDefinitionId, java.lang.String groupId)Deprecated.Use authorization mechanism instead.Authorizes a candidate group for a process definition.- Parameters:
- processDefinitionId- id of the process definition, cannot be null.
- groupId- id of the group involve, cannot be null.
- Throws:
- ProcessEngineException- When the process definition or group doesn't exist.
 
 - 
deleteCandidateStarterUser@Deprecated void deleteCandidateStarterUser(java.lang.String processDefinitionId, java.lang.String userId)Deprecated.Use authorization mechanism instead.Removes the authorization of a candidate user for a process definition.- Parameters:
- processDefinitionId- id of the process definition, cannot be null.
- userId- id of the user involve, cannot be null.
- Throws:
- ProcessEngineException- When the process definition or user doesn't exist.
 
 - 
deleteCandidateStarterGroup@Deprecated void deleteCandidateStarterGroup(java.lang.String processDefinitionId, java.lang.String groupId)Deprecated.Use authorization mechanism instead.Removes the authorization of a candidate group for a process definition.- Parameters:
- processDefinitionId- id of the process definition, cannot be null.
- groupId- id of the group involve, cannot be null.
- Throws:
- ProcessEngineException- When the process definition or group doesn't exist.
 
 - 
getIdentityLinksForProcessDefinition@Deprecated java.util.List<IdentityLink> getIdentityLinksForProcessDefinition(java.lang.String processDefinitionId) Deprecated.Use authorization mechanism instead.Retrieves theIdentityLinks associated with the given process definition. Such anIdentityLinkinforms how a certain identity (eg. group or user) is authorized for a certain process definition
 - 
getCaseDefinitionCaseDefinition getCaseDefinition(java.lang.String caseDefinitionId) Returns theCaseDefinition.- Throws:
- NotValidException- when the given case definition id is null
- NotFoundException- when no case definition is found for the given case definition id
- ProcessEngineException- when an internal exception happens during the execution of the command.
 
 - 
getCaseModeljava.io.InputStream getCaseModel(java.lang.String caseDefinitionId) Gives access to a deployed case model, e.g., a CMMN 1.0 XML file, through a stream of bytes.- Parameters:
- caseDefinitionId- id of a- CaseDefinition, cannot be null.
- Throws:
- NotValidException- when the given case definition id or deployment id or resource name is null
- NotFoundException- when no case definition or deployment resource is found for the given case definition id
- ProcessEngineException- when an internal exception happens during the execution of the command
 
 - 
getCaseDiagramjava.io.InputStream getCaseDiagram(java.lang.String caseDefinitionId) Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.- Parameters:
- caseDefinitionId- id of a- CaseDefinition, cannot be null.
- Returns:
- null when the diagram resource name of a CaseDefinitionis null.
- Throws:
- ProcessEngineException- when the process diagram doesn't exist.
 
 - 
getDecisionDefinitionDecisionDefinition getDecisionDefinition(java.lang.String decisionDefinitionId) Returns theDecisionDefinition.- Throws:
- NotValidException- when the given decision definition id is null
- NotFoundException- when no decision definition is found for the given decision definition id
- ProcessEngineException- when an internal exception happens during the execution of the command.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DECISION_DEFINITION.
 
 - 
getDecisionRequirementsDefinitionDecisionRequirementsDefinition getDecisionRequirementsDefinition(java.lang.String decisionRequirementsDefinitionId) Returns theDecisionRequirementsDefinition.- Throws:
- NotValidException- when the given decision requirements definition id is null
- NotFoundException- when no decision requirements definition is found for the given decision requirements definition id
- ProcessEngineException- when an internal exception happens during the execution of the command.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DECISION_REQUIREMENTS_DEFINITION.
 
 - 
getDecisionModeljava.io.InputStream getDecisionModel(java.lang.String decisionDefinitionId) Gives access to a deployed decision model, e.g., a DMN 1.1 XML file, through a stream of bytes.- Parameters:
- decisionDefinitionId- id of a- DecisionDefinition, cannot be null.
- Throws:
- NotValidException- when the given decision definition id or deployment id or resource name is null
- NotFoundException- when no decision definition or deployment resource is found for the given decision definition id
- ProcessEngineException- when an internal exception happens during the execution of the command
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DECISION_DEFINITION.
 
 - 
getDecisionRequirementsModeljava.io.InputStream getDecisionRequirementsModel(java.lang.String decisionRequirementsDefinitionId) Gives access to a deployed decision requirements model, e.g., a DMN 1.1 XML file, through a stream of bytes.- Parameters:
- decisionRequirementsDefinitionId- id of a- DecisionRequirementsDefinition, cannot be null.
- Throws:
- NotValidException- when the given decision requirements definition id or deployment id or resource name is null
- NotFoundException- when no decision requirements definition or deployment resource is found for the given decision requirements definition id
- ProcessEngineException- when an internal exception happens during the execution of the command
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DECISION_REQUIREMENTS_DEFINITION.
 
 - 
getDecisionDiagramjava.io.InputStream getDecisionDiagram(java.lang.String decisionDefinitionId) Gives access to a deployed decision diagram, e.g., a PNG image, through a stream of bytes.- Parameters:
- decisionDefinitionId- id of a- DecisionDefinition, cannot be null.
- Returns:
- null when the diagram resource name of a DecisionDefinitionis null.
- Throws:
- ProcessEngineException- when the decision diagram doesn't exist.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DECISION_DEFINITION.
 
 - 
getDecisionRequirementsDiagramjava.io.InputStream getDecisionRequirementsDiagram(java.lang.String decisionRequirementsDefinitionId) Gives access to a deployed decision requirements diagram, e.g., a PNG image, through a stream of bytes.- Parameters:
- decisionRequirementsDefinitionId- id of a- DecisionRequirementsDefinition, cannot be null.
- Returns:
- null when the diagram resource name of a DecisionRequirementsDefinitionis null.
- Throws:
- ProcessEngineException- when the decision requirements diagram doesn't exist.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.DECISION_REQUIREMENTS_DEFINITION.
 
 - 
getStaticCalledProcessDefinitionsjava.util.Collection<CalledProcessDefinition> getStaticCalledProcessDefinitions(java.lang.String processDefinitionId) For the given process, returns a list ofCalledProcessDefinition. The list contains all processes that are referenced statically by call activities in the given process. This method does not resolve process definitions that are referenced with expressions. EachCalledProcessDefinitioncontains a list of call activity ids, which specifies the call activities that are calling that process. This method does not resolve references to case definitions.- Parameters:
- processDefinitionId- id of a- ProcessDefinition
- Returns:
- a list of CalledProcessDefinition.
- Throws:
- NotFoundException- When the process definition doesn't exist.
- AuthorizationException- If the user has no- Permissions.READpermission on- Resources.PROCESS_DEFINITION.
 
 
- 
 
-