Class RepositoryServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.ServiceImpl
-
- org.camunda.bpm.engine.impl.RepositoryServiceImpl
-
- All Implemented Interfaces:
RepositoryService
public class RepositoryServiceImpl extends ServiceImpl implements RepositoryService
- Author:
- Tom Baeyens, Falko Menge, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.charset.CharsetdeploymentCharset-
Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl
commandExecutor
-
-
Constructor Summary
Constructors Constructor Description RepositoryServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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)Authorizes a candidate group for a process definition.voidaddCandidateStarterUser(java.lang.String processDefinitionId, java.lang.String userId)Authorizes a candidate user for a process definition.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)Removes the authorization of a candidate group for a process definition.voiddeleteCandidateStarterUser(java.lang.String processDefinitionId, java.lang.String userId)Removes the authorization of a candidate user for a process definition.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)Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.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.DeploymentWithDefinitionsdeployWithResult(DeploymentBuilderImpl deploymentBuilder)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.ReadOnlyProcessDefinitiongetDeployedProcessDefinition(java.lang.String processDefinitionId)java.nio.charset.CharsetgetDeploymentCharset()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)Retrieves theIdentityLinks associated with the given process definition.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 byRepositoryService.getProcessDiagram(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.voidsetDeploymentCharset(java.nio.charset.Charset deploymentCharset)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.-
Methods inherited from class org.camunda.bpm.engine.impl.ServiceImpl
getCommandExecutor, setCommandExecutor
-
-
-
-
Method Detail
-
getDeploymentCharset
public java.nio.charset.Charset getDeploymentCharset()
-
setDeploymentCharset
public void setDeploymentCharset(java.nio.charset.Charset deploymentCharset)
-
createDeployment
public DeploymentBuilder createDeployment()
Description copied from interface:RepositoryServiceStarts creating a new deployment- Specified by:
createDeploymentin interfaceRepositoryService
-
createDeployment
public ProcessApplicationDeploymentBuilder createDeployment(ProcessApplicationReference processApplication)
Description copied from interface:RepositoryServiceStarts creating a newProcessApplicationDeployment.- Specified by:
createDeploymentin interfaceRepositoryService- See Also:
ProcessApplicationDeploymentBuilder
-
deployWithResult
public DeploymentWithDefinitions deployWithResult(DeploymentBuilderImpl deploymentBuilder)
-
deleteDeployment
public void deleteDeployment(java.lang.String deploymentId)
Description copied from interface:RepositoryServiceDeletes the given deployment.- Specified by:
deleteDeploymentin interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
deleteDeploymentCascade
public void deleteDeploymentCascade(java.lang.String deploymentId)
Description copied from interface:RepositoryServiceDeletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Specified by:
deleteDeploymentCascadein interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
deleteDeployment
public void deleteDeployment(java.lang.String deploymentId, boolean cascade)Description copied from interface:RepositoryServiceDeletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Specified by:
deleteDeploymentin interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
deleteDeployment
public void deleteDeployment(java.lang.String deploymentId, boolean cascade, boolean skipCustomListeners)Description copied from interface:RepositoryServiceDeletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Specified by:
deleteDeploymentin interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.cascade- if set to true, all process instances (including) history are deletedskipCustomListeners- if true, only the built-inExecutionListeners are notified with theExecutionListener.EVENTNAME_ENDevent.
-
deleteDeployment
public void deleteDeployment(java.lang.String deploymentId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)Description copied from interface:RepositoryServiceDeletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Specified by:
deleteDeploymentin interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.cascade- if set to true, all process instances (including) history are deletedskipCustomListeners- if true, only the built-inExecutionListeners are notified with theExecutionListener.EVENTNAME_ENDevent.skipIoMappings- specifies whether input/output mappings for tasks should be invoked
-
deleteProcessDefinition
public void deleteProcessDefinition(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceDeletes the process definition which belongs to the given process definition id. Same behavior asRepositoryService.deleteProcessDefinition(java.lang.String, boolean, boolean)Both boolean parameters of this method are per default false. The deletion is in this case not cascading.- Specified by:
deleteProcessDefinitionin interfaceRepositoryService- Parameters:
processDefinitionId- the id, which corresponds to the process definition- See Also:
RepositoryService.deleteProcessDefinition(java.lang.String, boolean, boolean)
-
deleteProcessDefinition
public void deleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade)Description copied from interface:RepositoryServiceDeletes the process definition which belongs to the given process definition id. Cascades the deletion if the cascade is set to true. Same behavior asRepositoryService.deleteProcessDefinition(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.- Specified by:
deleteProcessDefinitionin interfaceRepositoryService- Parameters:
processDefinitionId- the id, which corresponds to the process definitioncascade- if set to true, all process instances (including) history are deleted- See Also:
RepositoryService.deleteProcessDefinition(java.lang.String, boolean, boolean)
-
deleteProcessDefinition
public void deleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade, boolean skipCustomListeners)Description copied from interface:RepositoryServiceDeletes 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.- Specified by:
deleteProcessDefinitionin interfaceRepositoryService- Parameters:
processDefinitionId- the id, which corresponds to the process definitioncascade- if set to true, all process instances (including) history are deletedskipCustomListeners- if true, only the built-inExecutionListeners are notified with theExecutionListener.EVENTNAME_ENDevent. Is only used if cascade set to true.
-
deleteProcessDefinition
public void deleteProcessDefinition(java.lang.String processDefinitionId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)Description copied from interface:RepositoryServiceDeletes 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.- Specified by:
deleteProcessDefinitionin interfaceRepositoryService- Parameters:
processDefinitionId- the id, which corresponds to the process definitioncascade- if set to true, all process instances (including) history are deletedskipCustomListeners- if true, only the built-inExecutionListeners are notified with theExecutionListener.EVENTNAME_ENDevent. Is only used if cascade set to true.skipIoMappings- Specifies whether input/output mappings for tasks should be invoked
-
deleteProcessDefinitions
public DeleteProcessDefinitionsSelectBuilder deleteProcessDefinitions()
Description copied from interface:RepositoryServiceFluent builder to delete process definitions.- Specified by:
deleteProcessDefinitionsin interfaceRepositoryService- Returns:
- the builder to delete process definitions
-
createProcessDefinitionQuery
public ProcessDefinitionQuery createProcessDefinitionQuery()
Description copied from interface:RepositoryServiceQuery process definitions.- Specified by:
createProcessDefinitionQueryin interfaceRepositoryService
-
createCaseDefinitionQuery
public CaseDefinitionQuery createCaseDefinitionQuery()
Description copied from interface:RepositoryServiceQuery case definitions.- Specified by:
createCaseDefinitionQueryin interfaceRepositoryService
-
createDecisionDefinitionQuery
public DecisionDefinitionQuery createDecisionDefinitionQuery()
Description copied from interface:RepositoryServiceQuery decision definitions.- Specified by:
createDecisionDefinitionQueryin interfaceRepositoryService
-
createDecisionRequirementsDefinitionQuery
public DecisionRequirementsDefinitionQuery createDecisionRequirementsDefinitionQuery()
Description copied from interface:RepositoryServiceQuery decision requirements definition.- Specified by:
createDecisionRequirementsDefinitionQueryin interfaceRepositoryService
-
getDeploymentResourceNames
public java.util.List<java.lang.String> getDeploymentResourceNames(java.lang.String deploymentId)
Description copied from interface:RepositoryServiceRetrieves a list of deployment resource names for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNamesin interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
getDeploymentResources
public java.util.List<Resource> getDeploymentResources(java.lang.String deploymentId)
Description copied from interface:RepositoryServiceRetrieves a list of deployment resources for the given deployment, ordered alphabetically by name.- Specified by:
getDeploymentResourcesin interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)Description copied from interface:RepositoryServiceGives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStreamin interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.resourceName- name of the resource, cannot be null.
-
getResourceAsStreamById
public java.io.InputStream getResourceAsStreamById(java.lang.String deploymentId, java.lang.String resourceId)Description copied from interface:RepositoryServiceGives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStreamByIdin interfaceRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.resourceId- id of the resource, cannot be null.
-
createDeploymentQuery
public DeploymentQuery createDeploymentQuery()
Description copied from interface:RepositoryServiceQuery process definitions.- Specified by:
createDeploymentQueryin interfaceRepositoryService
-
getProcessDefinition
public ProcessDefinition getProcessDefinition(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceReturns theProcessDefinitionincluding all BPMN information like additional Properties (e.g. documentation).- Specified by:
getProcessDefinitionin interfaceRepositoryService
-
getDeployedProcessDefinition
public ReadOnlyProcessDefinition getDeployedProcessDefinition(java.lang.String processDefinitionId)
-
suspendProcessDefinitionById
public void suspendProcessDefinitionById(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceSuspends 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
RepositoryService.updateProcessDefinitionSuspensionState().- Specified by:
suspendProcessDefinitionByIdin interfaceRepositoryService
-
suspendProcessDefinitionById
public void suspendProcessDefinitionById(java.lang.String processDefinitionId, boolean suspendProcessInstances, java.util.Date suspensionDate)Description copied from interface:RepositoryServiceSuspends 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
RepositoryService.updateProcessDefinitionSuspensionState().- Specified by:
suspendProcessDefinitionByIdin interfaceRepositoryServicesuspendProcessInstances- 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!- See Also:
RuntimeService.suspendProcessInstanceById(String)
-
suspendProcessDefinitionByKey
public void suspendProcessDefinitionByKey(java.lang.String processDefinitionKey)
Description copied from interface:RepositoryServiceSuspends 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
RepositoryService.updateProcessDefinitionSuspensionState().- Specified by:
suspendProcessDefinitionByKeyin interfaceRepositoryService
-
suspendProcessDefinitionByKey
public void suspendProcessDefinitionByKey(java.lang.String processDefinitionKey, boolean suspendProcessInstances, java.util.Date suspensionDate)Description copied from interface:RepositoryServiceSuspends 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
RepositoryService.updateProcessDefinitionSuspensionState().- Specified by:
suspendProcessDefinitionByKeyin interfaceRepositoryServicesuspendProcessInstances- 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!- See Also:
RuntimeService.suspendProcessInstanceById(String)
-
activateProcessDefinitionById
public void activateProcessDefinitionById(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceActivates the process definition with the given id.Note: for more complex activate commands use
RepositoryService.updateProcessDefinitionSuspensionState().- Specified by:
activateProcessDefinitionByIdin interfaceRepositoryService
-
activateProcessDefinitionById
public void activateProcessDefinitionById(java.lang.String processDefinitionId, boolean activateProcessInstances, java.util.Date activationDate)Description copied from interface:RepositoryServiceActivates the process definition with the given id.Note: for more complex activate commands use
RepositoryService.updateProcessDefinitionSuspensionState().- Specified by:
activateProcessDefinitionByIdin interfaceRepositoryServiceactivationDate- 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!- See Also:
RuntimeService.activateProcessInstanceById(String)
-
activateProcessDefinitionByKey
public void activateProcessDefinitionByKey(java.lang.String processDefinitionKey)
Description copied from interface:RepositoryServiceActivates the process definition with the given key (=id in the bpmn20.xml file).Note: for more complex activate commands use
RepositoryService.updateProcessDefinitionSuspensionState().- Specified by:
activateProcessDefinitionByKeyin interfaceRepositoryService
-
activateProcessDefinitionByKey
public void activateProcessDefinitionByKey(java.lang.String processDefinitionKey, boolean activateProcessInstances, java.util.Date activationDate)Description copied from interface:RepositoryServiceActivates the process definition with the given key (=id in the bpmn20.xml file).Note: for more complex activate commands use
RepositoryService.updateProcessDefinitionSuspensionState().- Specified by:
activateProcessDefinitionByKeyin interfaceRepositoryServiceactivationDate- 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!- See Also:
RuntimeService.activateProcessInstanceById(String)
-
updateProcessDefinitionSuspensionState
public UpdateProcessDefinitionSuspensionStateSelectBuilder updateProcessDefinitionSuspensionState()
Description copied from interface:RepositoryServiceActivate 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().- Specified by:
updateProcessDefinitionSuspensionStatein interfaceRepositoryService- Returns:
- the builder to update the suspension state
-
updateProcessDefinitionHistoryTimeToLive
public void updateProcessDefinitionHistoryTimeToLive(java.lang.String processDefinitionId, java.lang.Integer historyTimeToLive)Description copied from interface:RepositoryServiceUpdates time to live of process definition. The field is used within history cleanup process.- Specified by:
updateProcessDefinitionHistoryTimeToLivein interfaceRepositoryService
-
updateDecisionDefinitionHistoryTimeToLive
public void updateDecisionDefinitionHistoryTimeToLive(java.lang.String decisionDefinitionId, java.lang.Integer historyTimeToLive)Description copied from interface:RepositoryServiceUpdates time to live of decision definition. The field is used within history cleanup process.- Specified by:
updateDecisionDefinitionHistoryTimeToLivein interfaceRepositoryService
-
updateCaseDefinitionHistoryTimeToLive
public void updateCaseDefinitionHistoryTimeToLive(java.lang.String caseDefinitionId, java.lang.Integer historyTimeToLive)Description copied from interface:RepositoryServiceUpdates time to live of case definition. The field is used within history cleanup process.- Specified by:
updateCaseDefinitionHistoryTimeToLivein interfaceRepositoryService
-
getProcessModel
public java.io.InputStream getProcessModel(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceGives access to a deployed process model, e.g., a BPMN 2.0 XML file, through a stream of bytes.- Specified by:
getProcessModelin interfaceRepositoryService- Parameters:
processDefinitionId- id of aProcessDefinition, cannot be null.
-
getProcessDiagram
public java.io.InputStream getProcessDiagram(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceGives access to a deployed process diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getProcessDiagramin interfaceRepositoryService- Parameters:
processDefinitionId- id of aProcessDefinition, cannot be null.- Returns:
- null when the diagram resource name of a
ProcessDefinitionis null.
-
getCaseDiagram
public java.io.InputStream getCaseDiagram(java.lang.String caseDefinitionId)
Description copied from interface:RepositoryServiceGives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getCaseDiagramin interfaceRepositoryService- Parameters:
caseDefinitionId- id of aCaseDefinition, cannot be null.- Returns:
- null when the diagram resource name of a
CaseDefinitionis null.
-
getProcessDiagramLayout
public DiagramLayout getProcessDiagramLayout(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceProvides positions and dimensions of elements in a process diagram as provided byRepositoryService.getProcessDiagram(String). This method requires a process model and a diagram image to be deployed.- Specified by:
getProcessDiagramLayoutin interfaceRepositoryService- Parameters:
processDefinitionId- id of aProcessDefinition, cannot be null.- Returns:
- Map with process element ids as keys and positions and dimensions as values.
-
getBpmnModelInstance
public BpmnModelInstance getBpmnModelInstance(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceReturns theBpmnModelInstancefor the given processDefinitionId.- Specified by:
getBpmnModelInstancein interfaceRepositoryService- Parameters:
processDefinitionId- the id of the Process Definition for which theBpmnModelInstanceshould be retrieved.- Returns:
- the
BpmnModelInstance
-
getCmmnModelInstance
public CmmnModelInstance getCmmnModelInstance(java.lang.String caseDefinitionId)
Description copied from interface:RepositoryServiceReturns theCmmnModelInstancefor the given caseDefinitionId.- Specified by:
getCmmnModelInstancein interfaceRepositoryService- Parameters:
caseDefinitionId- the id of the Case Definition for which theCmmnModelInstanceshould be retrieved.- Returns:
- the
CmmnModelInstance
-
getDmnModelInstance
public DmnModelInstance getDmnModelInstance(java.lang.String decisionDefinitionId)
Description copied from interface:RepositoryServiceReturns theDmnModelInstancefor the given decisionDefinitionId.- Specified by:
getDmnModelInstancein interfaceRepositoryService- Parameters:
decisionDefinitionId- the id of the Decision Definition for which theDmnModelInstanceshould be retrieved.- Returns:
- the
DmnModelInstance
-
addCandidateStarterUser
public void addCandidateStarterUser(java.lang.String processDefinitionId, java.lang.String userId)Description copied from interface:RepositoryServiceAuthorizes a candidate user for a process definition.- Specified by:
addCandidateStarterUserin interfaceRepositoryService- Parameters:
processDefinitionId- id of the process definition, cannot be null.userId- id of the user involve, cannot be null.
-
addCandidateStarterGroup
public void addCandidateStarterGroup(java.lang.String processDefinitionId, java.lang.String groupId)Description copied from interface:RepositoryServiceAuthorizes a candidate group for a process definition.- Specified by:
addCandidateStarterGroupin interfaceRepositoryService- Parameters:
processDefinitionId- id of the process definition, cannot be null.groupId- id of the group involve, cannot be null.
-
deleteCandidateStarterGroup
public void deleteCandidateStarterGroup(java.lang.String processDefinitionId, java.lang.String groupId)Description copied from interface:RepositoryServiceRemoves the authorization of a candidate group for a process definition.- Specified by:
deleteCandidateStarterGroupin interfaceRepositoryService- Parameters:
processDefinitionId- id of the process definition, cannot be null.groupId- id of the group involve, cannot be null.
-
deleteCandidateStarterUser
public void deleteCandidateStarterUser(java.lang.String processDefinitionId, java.lang.String userId)Description copied from interface:RepositoryServiceRemoves the authorization of a candidate user for a process definition.- Specified by:
deleteCandidateStarterUserin interfaceRepositoryService- Parameters:
processDefinitionId- id of the process definition, cannot be null.userId- id of the user involve, cannot be null.
-
getIdentityLinksForProcessDefinition
public java.util.List<IdentityLink> getIdentityLinksForProcessDefinition(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceRetrieves theIdentityLinks associated with the given process definition. Such anIdentityLinkinforms how a certain identity (eg. group or user) is authorized for a certain process definition- Specified by:
getIdentityLinksForProcessDefinitionin interfaceRepositoryService
-
getCaseDefinition
public CaseDefinition getCaseDefinition(java.lang.String caseDefinitionId)
Description copied from interface:RepositoryServiceReturns theCaseDefinition.- Specified by:
getCaseDefinitionin interfaceRepositoryService
-
getCaseModel
public java.io.InputStream getCaseModel(java.lang.String caseDefinitionId)
Description copied from interface:RepositoryServiceGives access to a deployed case model, e.g., a CMMN 1.0 XML file, through a stream of bytes.- Specified by:
getCaseModelin interfaceRepositoryService- Parameters:
caseDefinitionId- id of aCaseDefinition, cannot be null.
-
getDecisionDefinition
public DecisionDefinition getDecisionDefinition(java.lang.String decisionDefinitionId)
Description copied from interface:RepositoryServiceReturns theDecisionDefinition.- Specified by:
getDecisionDefinitionin interfaceRepositoryService
-
getDecisionRequirementsDefinition
public DecisionRequirementsDefinition getDecisionRequirementsDefinition(java.lang.String decisionRequirementsDefinitionId)
Description copied from interface:RepositoryServiceReturns theDecisionRequirementsDefinition.- Specified by:
getDecisionRequirementsDefinitionin interfaceRepositoryService
-
getDecisionModel
public java.io.InputStream getDecisionModel(java.lang.String decisionDefinitionId)
Description copied from interface:RepositoryServiceGives access to a deployed decision model, e.g., a DMN 1.1 XML file, through a stream of bytes.- Specified by:
getDecisionModelin interfaceRepositoryService- Parameters:
decisionDefinitionId- id of aDecisionDefinition, cannot be null.
-
getDecisionRequirementsModel
public java.io.InputStream getDecisionRequirementsModel(java.lang.String decisionRequirementsDefinitionId)
Description copied from interface:RepositoryServiceGives access to a deployed decision requirements model, e.g., a DMN 1.1 XML file, through a stream of bytes.- Specified by:
getDecisionRequirementsModelin interfaceRepositoryService- Parameters:
decisionRequirementsDefinitionId- id of aDecisionRequirementsDefinition, cannot be null.
-
getDecisionDiagram
public java.io.InputStream getDecisionDiagram(java.lang.String decisionDefinitionId)
Description copied from interface:RepositoryServiceGives access to a deployed decision diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getDecisionDiagramin interfaceRepositoryService- Parameters:
decisionDefinitionId- id of aDecisionDefinition, cannot be null.- Returns:
- null when the diagram resource name of a
DecisionDefinitionis null.
-
getDecisionRequirementsDiagram
public java.io.InputStream getDecisionRequirementsDiagram(java.lang.String decisionRequirementsDefinitionId)
Description copied from interface:RepositoryServiceGives access to a deployed decision requirements diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getDecisionRequirementsDiagramin interfaceRepositoryService- Parameters:
decisionRequirementsDefinitionId- id of aDecisionRequirementsDefinition, cannot be null.- Returns:
- null when the diagram resource name of a
DecisionRequirementsDefinitionis null.
-
getStaticCalledProcessDefinitions
public java.util.Collection<CalledProcessDefinition> getStaticCalledProcessDefinitions(java.lang.String processDefinitionId)
Description copied from interface:RepositoryServiceFor 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.- Specified by:
getStaticCalledProcessDefinitionsin interfaceRepositoryService- Parameters:
processDefinitionId- id of aProcessDefinition- Returns:
- a list of
CalledProcessDefinition.
-
-