Class RepositoryServiceImpl
- All Implemented Interfaces:
RepositoryService
- Author:
- Tom Baeyens, Falko Menge, Joram Barrez
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.ServiceImpl
commandExecutor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateProcessDefinitionById
(String processDefinitionId) Activates the process definition with the given id.void
activateProcessDefinitionById
(String processDefinitionId, boolean activateProcessInstances, Date activationDate) Activates the process definition with the given id.void
activateProcessDefinitionByKey
(String processDefinitionKey) Activates the process definition with the given key (=id in the bpmn20.xml file).void
activateProcessDefinitionByKey
(String processDefinitionKey, boolean activateProcessInstances, Date activationDate) Activates the process definition with the given key (=id in the bpmn20.xml file).void
addCandidateStarterGroup
(String processDefinitionId, String groupId) Authorizes a candidate group for a process definition.void
addCandidateStarterUser
(String processDefinitionId, String userId) Authorizes a candidate user for a process definition.Query case definitions.Query decision definitions.Query decision requirements definition.Starts creating a new deploymentcreateDeployment
(ProcessApplicationReference processApplication) Starts creating a newProcessApplicationDeployment
.Query process definitions.Query process definitions.void
deleteCandidateStarterGroup
(String processDefinitionId, String groupId) Removes the authorization of a candidate group for a process definition.void
deleteCandidateStarterUser
(String processDefinitionId, String userId) Removes the authorization of a candidate user for a process definition.void
deleteDeployment
(String deploymentId) Deletes the given deployment.void
deleteDeployment
(String deploymentId, boolean cascade) Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.void
deleteDeployment
(String deploymentId, boolean cascade, boolean skipCustomListeners) Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.void
deleteDeployment
(String deploymentId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings) Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.void
deleteDeploymentCascade
(String deploymentId) Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.void
deleteProcessDefinition
(String processDefinitionId) Deletes the process definition which belongs to the given process definition id.void
deleteProcessDefinition
(String processDefinitionId, boolean cascade) Deletes the process definition which belongs to the given process definition id.void
deleteProcessDefinition
(String processDefinitionId, boolean cascade, boolean skipCustomListeners) Deletes the process definition which belongs to the given process definition id.void
deleteProcessDefinition
(String processDefinitionId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings) Deletes the process definition which belongs to the given process definition id.Fluent builder to delete process definitions.deployWithResult
(DeploymentBuilderImpl deploymentBuilder) getBpmnModelInstance
(String processDefinitionId) Returns theBpmnModelInstance
for the given processDefinitionId.getCaseDefinition
(String caseDefinitionId) Returns theCaseDefinition
.getCaseDiagram
(String caseDefinitionId) Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.getCaseModel
(String caseDefinitionId) Gives access to a deployed case model, e.g., a CMMN 1.0 XML file, through a stream of bytes.getCmmnModelInstance
(String caseDefinitionId) Returns theCmmnModelInstance
for the given caseDefinitionId.getDecisionDefinition
(String decisionDefinitionId) Returns theDecisionDefinition
.getDecisionDiagram
(String decisionDefinitionId) Gives access to a deployed decision diagram, e.g., a PNG image, through a stream of bytes.getDecisionModel
(String decisionDefinitionId) Gives access to a deployed decision model, e.g., a DMN 1.1 XML file, through a stream of bytes.getDecisionRequirementsDefinition
(String decisionRequirementsDefinitionId) Returns theDecisionRequirementsDefinition
.getDecisionRequirementsDiagram
(String decisionRequirementsDefinitionId) Gives access to a deployed decision requirements diagram, e.g., a PNG image, through a stream of bytes.getDecisionRequirementsModel
(String decisionRequirementsDefinitionId) Gives access to a deployed decision requirements model, e.g., a DMN 1.1 XML file, through a stream of bytes.getDeployedProcessDefinition
(String processDefinitionId) getDeploymentResourceNames
(String deploymentId) Retrieves a list of deployment resource names for the given deployment, ordered alphabetically.getDeploymentResources
(String deploymentId) Retrieves a list of deployment resources for the given deployment, ordered alphabetically by name.getDmnModelInstance
(String decisionDefinitionId) Returns theDmnModelInstance
for the given decisionDefinitionId.getIdentityLinksForProcessDefinition
(String processDefinitionId) Retrieves theIdentityLink
s associated with the given process definition.getProcessDefinition
(String processDefinitionId) Returns theProcessDefinition
including all BPMN information like additional Properties (e.g.getProcessDiagram
(String processDefinitionId) Gives access to a deployed process diagram, e.g., a PNG image, through a stream of bytes.getProcessDiagramLayout
(String processDefinitionId) Provides positions and dimensions of elements in a process diagram as provided byRepositoryService.getProcessDiagram(String)
.getProcessModel
(String processDefinitionId) Gives access to a deployed process model, e.g., a BPMN 2.0 XML file, through a stream of bytes.getResourceAsStream
(String deploymentId, String resourceName) Gives access to a deployment resource through a stream of bytes.getResourceAsStreamById
(String deploymentId, String resourceId) Gives access to a deployment resource through a stream of bytes.getStaticCalledProcessDefinitions
(String processDefinitionId) For the given process, returns a list ofCalledProcessDefinition
.void
setDeploymentCharset
(Charset deploymentCharset) void
suspendProcessDefinitionById
(String processDefinitionId) Suspends the process definition with the given id.void
suspendProcessDefinitionById
(String processDefinitionId, boolean suspendProcessInstances, Date suspensionDate) Suspends the process definition with the given id.void
suspendProcessDefinitionByKey
(String processDefinitionKey) Suspends the all process definitions with the given key (= id in the bpmn20.xml file).void
suspendProcessDefinitionByKey
(String processDefinitionKey, boolean suspendProcessInstances, Date suspensionDate) Suspends the all process definitions with the given key (= id in the bpmn20.xml file).void
updateCaseDefinitionHistoryTimeToLive
(String caseDefinitionId, Integer historyTimeToLive) Updates time to live of case definition.void
updateDecisionDefinitionHistoryTimeToLive
(String decisionDefinitionId, Integer historyTimeToLive) Updates time to live of decision definition.void
updateProcessDefinitionHistoryTimeToLive
(String processDefinitionId, Integer historyTimeToLive) Updates time to live of process definition.Activate or suspend process definitions using a fluent builder.Methods inherited from class org.camunda.bpm.engine.impl.ServiceImpl
getCommandExecutor, setCommandExecutor
-
Field Details
-
deploymentCharset
-
-
Constructor Details
-
RepositoryServiceImpl
public RepositoryServiceImpl()
-
-
Method Details
-
getDeploymentCharset
-
setDeploymentCharset
-
createDeployment
Description copied from interface:RepositoryService
Starts creating a new deployment- Specified by:
createDeployment
in interfaceRepositoryService
-
createDeployment
public ProcessApplicationDeploymentBuilder createDeployment(ProcessApplicationReference processApplication) Description copied from interface:RepositoryService
Starts creating a newProcessApplicationDeployment
.- Specified by:
createDeployment
in interfaceRepositoryService
- See Also:
-
deployWithResult
-
deleteDeployment
Description copied from interface:RepositoryService
Deletes the given deployment.- Specified by:
deleteDeployment
in interfaceRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
deleteDeploymentCascade
Description copied from interface:RepositoryService
Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Specified by:
deleteDeploymentCascade
in interfaceRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
deleteDeployment
Description copied from interface:RepositoryService
Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Specified by:
deleteDeployment
in interfaceRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
deleteDeployment
Description copied from interface:RepositoryService
Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Specified by:
deleteDeployment
in 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-inExecutionListener
s are notified with theExecutionListener.EVENTNAME_END
event.
-
deleteDeployment
public void deleteDeployment(String deploymentId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings) Description copied from interface:RepositoryService
Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.- Specified by:
deleteDeployment
in 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-inExecutionListener
s are notified with theExecutionListener.EVENTNAME_END
event.skipIoMappings
- specifies whether input/output mappings for tasks should be invoked
-
deleteProcessDefinition
Description copied from interface:RepositoryService
Deletes 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:
deleteProcessDefinition
in interfaceRepositoryService
- Parameters:
processDefinitionId
- the id, which corresponds to the process definition- See Also:
-
deleteProcessDefinition
Description copied from interface:RepositoryService
Deletes 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:
deleteProcessDefinition
in interfaceRepositoryService
- Parameters:
processDefinitionId
- the id, which corresponds to the process definitioncascade
- if set to true, all process instances (including) history are deleted- See Also:
-
deleteProcessDefinition
public void deleteProcessDefinition(String processDefinitionId, boolean cascade, boolean skipCustomListeners) Description copied from interface:RepositoryService
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.- Specified by:
deleteProcessDefinition
in 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-inExecutionListener
s are notified with theExecutionListener.EVENTNAME_END
event. Is only used if cascade set to true.
-
deleteProcessDefinition
public void deleteProcessDefinition(String processDefinitionId, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings) Description copied from interface:RepositoryService
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.- Specified by:
deleteProcessDefinition
in 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-inExecutionListener
s are notified with theExecutionListener.EVENTNAME_END
event. Is only used if cascade set to true.skipIoMappings
- Specifies whether input/output mappings for tasks should be invoked
-
deleteProcessDefinitions
Description copied from interface:RepositoryService
Fluent builder to delete process definitions.- Specified by:
deleteProcessDefinitions
in interfaceRepositoryService
- Returns:
- the builder to delete process definitions
-
createProcessDefinitionQuery
Description copied from interface:RepositoryService
Query process definitions.- Specified by:
createProcessDefinitionQuery
in interfaceRepositoryService
-
createCaseDefinitionQuery
Description copied from interface:RepositoryService
Query case definitions.- Specified by:
createCaseDefinitionQuery
in interfaceRepositoryService
-
createDecisionDefinitionQuery
Description copied from interface:RepositoryService
Query decision definitions.- Specified by:
createDecisionDefinitionQuery
in interfaceRepositoryService
-
createDecisionRequirementsDefinitionQuery
Description copied from interface:RepositoryService
Query decision requirements definition.- Specified by:
createDecisionRequirementsDefinitionQuery
in interfaceRepositoryService
-
getDeploymentResourceNames
Description copied from interface:RepositoryService
Retrieves a list of deployment resource names for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNames
in interfaceRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getDeploymentResources
Description copied from interface:RepositoryService
Retrieves a list of deployment resources for the given deployment, ordered alphabetically by name.- Specified by:
getDeploymentResources
in interfaceRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
Description copied from interface:RepositoryService
Gives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStream
in interfaceRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.
-
getResourceAsStreamById
Description copied from interface:RepositoryService
Gives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStreamById
in interfaceRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceId
- id of the resource, cannot be null.
-
createDeploymentQuery
Description copied from interface:RepositoryService
Query process definitions.- Specified by:
createDeploymentQuery
in interfaceRepositoryService
-
getProcessDefinition
Description copied from interface:RepositoryService
Returns theProcessDefinition
including all BPMN information like additional Properties (e.g. documentation).- Specified by:
getProcessDefinition
in interfaceRepositoryService
-
getDeployedProcessDefinition
-
suspendProcessDefinitionById
Description copied from interface:RepositoryService
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
RepositoryService.updateProcessDefinitionSuspensionState()
.- Specified by:
suspendProcessDefinitionById
in interfaceRepositoryService
-
suspendProcessDefinitionById
public void suspendProcessDefinitionById(String processDefinitionId, boolean suspendProcessInstances, Date suspensionDate) Description copied from interface:RepositoryService
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
RepositoryService.updateProcessDefinitionSuspensionState()
.- Specified by:
suspendProcessDefinitionById
in interfaceRepositoryService
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!- See Also:
-
suspendProcessDefinitionByKey
Description copied from interface:RepositoryService
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
RepositoryService.updateProcessDefinitionSuspensionState()
.- Specified by:
suspendProcessDefinitionByKey
in interfaceRepositoryService
-
suspendProcessDefinitionByKey
public void suspendProcessDefinitionByKey(String processDefinitionKey, boolean suspendProcessInstances, Date suspensionDate) Description copied from interface:RepositoryService
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
RepositoryService.updateProcessDefinitionSuspensionState()
.- Specified by:
suspendProcessDefinitionByKey
in interfaceRepositoryService
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!- See Also:
-
activateProcessDefinitionById
Description copied from interface:RepositoryService
Activates the process definition with the given id.Note: for more complex activate commands use
RepositoryService.updateProcessDefinitionSuspensionState()
.- Specified by:
activateProcessDefinitionById
in interfaceRepositoryService
-
activateProcessDefinitionById
public void activateProcessDefinitionById(String processDefinitionId, boolean activateProcessInstances, Date activationDate) Description copied from interface:RepositoryService
Activates the process definition with the given id.Note: for more complex activate commands use
RepositoryService.updateProcessDefinitionSuspensionState()
.- Specified by:
activateProcessDefinitionById
in interfaceRepositoryService
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!- See Also:
-
activateProcessDefinitionByKey
Description copied from interface:RepositoryService
Activates the process definition with the given key (=id in the bpmn20.xml file).Note: for more complex activate commands use
RepositoryService.updateProcessDefinitionSuspensionState()
.- Specified by:
activateProcessDefinitionByKey
in interfaceRepositoryService
-
activateProcessDefinitionByKey
public void activateProcessDefinitionByKey(String processDefinitionKey, boolean activateProcessInstances, Date activationDate) Description copied from interface:RepositoryService
Activates the process definition with the given key (=id in the bpmn20.xml file).Note: for more complex activate commands use
RepositoryService.updateProcessDefinitionSuspensionState()
.- Specified by:
activateProcessDefinitionByKey
in interfaceRepositoryService
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!- See Also:
-
updateProcessDefinitionSuspensionState
Description copied from interface:RepositoryService
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()
.- Specified by:
updateProcessDefinitionSuspensionState
in interfaceRepositoryService
- Returns:
- the builder to update the suspension state
-
updateProcessDefinitionHistoryTimeToLive
public void updateProcessDefinitionHistoryTimeToLive(String processDefinitionId, Integer historyTimeToLive) Description copied from interface:RepositoryService
Updates time to live of process definition. The field is used within history cleanup process.- Specified by:
updateProcessDefinitionHistoryTimeToLive
in interfaceRepositoryService
- Parameters:
processDefinitionId
- The id of the process definition to updatehistoryTimeToLive
- the value of history time to live to update
-
updateDecisionDefinitionHistoryTimeToLive
public void updateDecisionDefinitionHistoryTimeToLive(String decisionDefinitionId, Integer historyTimeToLive) Description copied from interface:RepositoryService
Updates time to live of decision definition. The field is used within history cleanup process.- Specified by:
updateDecisionDefinitionHistoryTimeToLive
in interfaceRepositoryService
- Parameters:
decisionDefinitionId
- The id of the decision definition to updatehistoryTimeToLive
- the value of history time to live to update
-
updateCaseDefinitionHistoryTimeToLive
public void updateCaseDefinitionHistoryTimeToLive(String caseDefinitionId, Integer historyTimeToLive) Description copied from interface:RepositoryService
Updates time to live of case definition. The field is used within history cleanup process.- Specified by:
updateCaseDefinitionHistoryTimeToLive
in interfaceRepositoryService
- Parameters:
caseDefinitionId
- The given case definition id to updatehistoryTimeToLive
- the value of history time to live to update
-
getProcessModel
Description copied from interface:RepositoryService
Gives access to a deployed process model, e.g., a BPMN 2.0 XML file, through a stream of bytes.- Specified by:
getProcessModel
in interfaceRepositoryService
- Parameters:
processDefinitionId
- id of aProcessDefinition
, cannot be null.
-
getProcessDiagram
Description copied from interface:RepositoryService
Gives access to a deployed process diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getProcessDiagram
in interfaceRepositoryService
- Parameters:
processDefinitionId
- id of aProcessDefinition
, cannot be null.- Returns:
- null when the diagram resource name of a
ProcessDefinition
is null.
-
getCaseDiagram
Description copied from interface:RepositoryService
Gives access to a deployed case diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getCaseDiagram
in interfaceRepositoryService
- Parameters:
caseDefinitionId
- id of aCaseDefinition
, cannot be null.- Returns:
- null when the diagram resource name of a
CaseDefinition
is null.
-
getProcessDiagramLayout
Description copied from interface:RepositoryService
Provides 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:
getProcessDiagramLayout
in interfaceRepositoryService
- Parameters:
processDefinitionId
- id of aProcessDefinition
, cannot be null.- Returns:
- Map with process element ids as keys and positions and dimensions as values.
-
getBpmnModelInstance
Description copied from interface:RepositoryService
Returns theBpmnModelInstance
for the given processDefinitionId.- Specified by:
getBpmnModelInstance
in interfaceRepositoryService
- Parameters:
processDefinitionId
- the id of the Process Definition for which theBpmnModelInstance
should be retrieved.- Returns:
- the
BpmnModelInstance
-
getCmmnModelInstance
Description copied from interface:RepositoryService
Returns theCmmnModelInstance
for the given caseDefinitionId.- Specified by:
getCmmnModelInstance
in interfaceRepositoryService
- Parameters:
caseDefinitionId
- the id of the Case Definition for which theCmmnModelInstance
should be retrieved.- Returns:
- the
CmmnModelInstance
-
getDmnModelInstance
Description copied from interface:RepositoryService
Returns theDmnModelInstance
for the given decisionDefinitionId.- Specified by:
getDmnModelInstance
in interfaceRepositoryService
- Parameters:
decisionDefinitionId
- the id of the Decision Definition for which theDmnModelInstance
should be retrieved.- Returns:
- the
DmnModelInstance
-
addCandidateStarterUser
Description copied from interface:RepositoryService
Authorizes a candidate user for a process definition.- Specified by:
addCandidateStarterUser
in interfaceRepositoryService
- Parameters:
processDefinitionId
- id of the process definition, cannot be null.userId
- id of the user involve, cannot be null.
-
addCandidateStarterGroup
Description copied from interface:RepositoryService
Authorizes a candidate group for a process definition.- Specified by:
addCandidateStarterGroup
in interfaceRepositoryService
- Parameters:
processDefinitionId
- id of the process definition, cannot be null.groupId
- id of the group involve, cannot be null.
-
deleteCandidateStarterGroup
Description copied from interface:RepositoryService
Removes the authorization of a candidate group for a process definition.- Specified by:
deleteCandidateStarterGroup
in interfaceRepositoryService
- Parameters:
processDefinitionId
- id of the process definition, cannot be null.groupId
- id of the group involve, cannot be null.
-
deleteCandidateStarterUser
Description copied from interface:RepositoryService
Removes the authorization of a candidate user for a process definition.- Specified by:
deleteCandidateStarterUser
in interfaceRepositoryService
- Parameters:
processDefinitionId
- id of the process definition, cannot be null.userId
- id of the user involve, cannot be null.
-
getIdentityLinksForProcessDefinition
Description copied from interface:RepositoryService
Retrieves theIdentityLink
s associated with the given process definition. Such anIdentityLink
informs how a certain identity (eg. group or user) is authorized for a certain process definition- Specified by:
getIdentityLinksForProcessDefinition
in interfaceRepositoryService
-
getCaseDefinition
Description copied from interface:RepositoryService
Returns theCaseDefinition
.- Specified by:
getCaseDefinition
in interfaceRepositoryService
-
getCaseModel
Description copied from interface:RepositoryService
Gives access to a deployed case model, e.g., a CMMN 1.0 XML file, through a stream of bytes.- Specified by:
getCaseModel
in interfaceRepositoryService
- Parameters:
caseDefinitionId
- id of aCaseDefinition
, cannot be null.
-
getDecisionDefinition
Description copied from interface:RepositoryService
Returns theDecisionDefinition
.- Specified by:
getDecisionDefinition
in interfaceRepositoryService
-
getDecisionRequirementsDefinition
public DecisionRequirementsDefinition getDecisionRequirementsDefinition(String decisionRequirementsDefinitionId) Description copied from interface:RepositoryService
Returns theDecisionRequirementsDefinition
.- Specified by:
getDecisionRequirementsDefinition
in interfaceRepositoryService
-
getDecisionModel
Description copied from interface:RepositoryService
Gives access to a deployed decision model, e.g., a DMN 1.1 XML file, through a stream of bytes.- Specified by:
getDecisionModel
in interfaceRepositoryService
- Parameters:
decisionDefinitionId
- id of aDecisionDefinition
, cannot be null.
-
getDecisionRequirementsModel
Description copied from interface:RepositoryService
Gives access to a deployed decision requirements model, e.g., a DMN 1.1 XML file, through a stream of bytes.- Specified by:
getDecisionRequirementsModel
in interfaceRepositoryService
- Parameters:
decisionRequirementsDefinitionId
- id of aDecisionRequirementsDefinition
, cannot be null.
-
getDecisionDiagram
Description copied from interface:RepositoryService
Gives access to a deployed decision diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getDecisionDiagram
in interfaceRepositoryService
- Parameters:
decisionDefinitionId
- id of aDecisionDefinition
, cannot be null.- Returns:
- null when the diagram resource name of a
DecisionDefinition
is null.
-
getDecisionRequirementsDiagram
Description copied from interface:RepositoryService
Gives access to a deployed decision requirements diagram, e.g., a PNG image, through a stream of bytes.- Specified by:
getDecisionRequirementsDiagram
in interfaceRepositoryService
- Parameters:
decisionRequirementsDefinitionId
- id of aDecisionRequirementsDefinition
, cannot be null.- Returns:
- null when the diagram resource name of a
DecisionRequirementsDefinition
is null.
-
getStaticCalledProcessDefinitions
public Collection<CalledProcessDefinition> getStaticCalledProcessDefinitions(String processDefinitionId) Description copied from interface:RepositoryService
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. EachCalledProcessDefinition
contains 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:
getStaticCalledProcessDefinitions
in interfaceRepositoryService
- Parameters:
processDefinitionId
- id of aProcessDefinition
- Returns:
- a list of
CalledProcessDefinition
.
-