public class RepositoryServiceImpl extends ServiceImpl implements RepositoryService
commandExecutor| Constructor and Description |
|---|
RepositoryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
DeploymentBuilder |
createDeployment()
Starts creating a new deployment
|
ProcessApplicationDeploymentBuilder |
createDeployment(ProcessApplicationReference processApplication)
Starts creating a new
ProcessApplicationDeployment. |
DeploymentQuery |
createDeploymentQuery()
Query process definitions.
|
ProcessDefinitionQuery |
createProcessDefinitionQuery()
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 |
deleteDeploymentCascade(String deploymentId)
Deletes the given deployment and cascade deletion to process instances,
history process instances and jobs.
|
Deployment |
deploy(DeploymentBuilderImpl deploymentBuilder) |
ReadOnlyProcessDefinition |
getDeployedProcessDefinition(String processDefinitionId) |
List<String> |
getDeploymentResourceNames(String deploymentId)
Retrieves a list of deployment resources for the given deployment,
ordered alphabetically.
|
List<IdentityLink> |
getIdentityLinksForProcessDefinition(String processDefinitionId)
Retrieves the
IdentityLinks associated with the given process definition. |
ProcessDefinition |
getProcessDefinition(String processDefinitionId)
Returns the
ProcessDefinition including all BPMN information like additional
Properties (e.g. |
InputStream |
getProcessDiagram(String processDefinitionId)
Gives access to a deployed process diagram, e.g., a PNG image, through a
stream of bytes.
|
DiagramLayout |
getProcessDiagramLayout(String processDefinitionId)
Provides positions and dimensions of elements in a process diagram as
provided by
RepositoryService.getProcessDiagram(String). |
InputStream |
getProcessModel(String processDefinitionId)
Gives access to a deployed process model, e.g., a BPMN 2.0 XML file,
through a stream of bytes.
|
InputStream |
getResourceAsStream(String deploymentId,
String resourceName)
Gives access to a deployment resource through a stream of bytes.
|
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).
|
getCommandExecutor, setCommandExecutorpublic DeploymentBuilder createDeployment()
RepositoryServicecreateDeployment in interface RepositoryServicepublic ProcessApplicationDeploymentBuilder createDeployment(ProcessApplicationReference processApplication)
RepositoryServiceProcessApplicationDeployment.createDeployment in interface RepositoryServiceProcessApplicationDeploymentBuilderpublic Deployment deploy(DeploymentBuilderImpl deploymentBuilder)
public void deleteDeployment(String deploymentId)
RepositoryServicedeleteDeployment in interface RepositoryServicedeploymentId - id of the deployment, cannot be null.public void deleteDeploymentCascade(String deploymentId)
RepositoryServicedeleteDeploymentCascade in interface RepositoryServicedeploymentId - id of the deployment, cannot be null.public void deleteDeployment(String deploymentId, boolean cascade)
RepositoryServicedeleteDeployment in interface RepositoryServicedeploymentId - id of the deployment, cannot be null.public ProcessDefinitionQuery createProcessDefinitionQuery()
RepositoryServicecreateProcessDefinitionQuery in interface RepositoryServicepublic List<String> getDeploymentResourceNames(String deploymentId)
RepositoryServicegetDeploymentResourceNames in interface RepositoryServicedeploymentId - id of the deployment, cannot be null.public InputStream getResourceAsStream(String deploymentId, String resourceName)
RepositoryServicegetResourceAsStream in interface RepositoryServicedeploymentId - id of the deployment, cannot be null.resourceName - name of the resource, cannot be null.public DeploymentQuery createDeploymentQuery()
RepositoryServicecreateDeploymentQuery in interface RepositoryServicepublic ProcessDefinition getProcessDefinition(String processDefinitionId)
RepositoryServiceProcessDefinition including all BPMN information like additional
Properties (e.g. documentation).getProcessDefinition in interface RepositoryServicepublic ReadOnlyProcessDefinition getDeployedProcessDefinition(String processDefinitionId)
public void suspendProcessDefinitionById(String processDefinitionId)
RepositoryServicesuspendProcessDefinitionById in interface RepositoryServicepublic void suspendProcessDefinitionById(String processDefinitionId, boolean suspendProcessInstances, Date suspensionDate)
RepositoryServicesuspendProcessDefinitionById in interface RepositoryServicesuspendProcessInstances - 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!RuntimeService.suspendProcessInstanceById(String)public void suspendProcessDefinitionByKey(String processDefinitionKey)
RepositoryServicesuspendProcessDefinitionByKey in interface RepositoryServicepublic void suspendProcessDefinitionByKey(String processDefinitionKey, boolean suspendProcessInstances, Date suspensionDate)
RepositoryServicesuspendProcessDefinitionByKey in interface RepositoryServicesuspendProcessInstances - 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!RuntimeService.suspendProcessInstanceById(String)public void activateProcessDefinitionById(String processDefinitionId)
RepositoryServiceactivateProcessDefinitionById in interface RepositoryServicepublic void activateProcessDefinitionById(String processDefinitionId, boolean activateProcessInstances, Date activationDate)
RepositoryServiceactivateProcessDefinitionById in interface RepositoryServiceactivationDate - 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!RuntimeService.activateProcessInstanceById(String)public void activateProcessDefinitionByKey(String processDefinitionKey)
RepositoryServiceactivateProcessDefinitionByKey in interface RepositoryServicepublic void activateProcessDefinitionByKey(String processDefinitionKey, boolean activateProcessInstances, Date activationDate)
RepositoryServiceactivateProcessDefinitionByKey in interface RepositoryServiceactivationDate - 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!RuntimeService.activateProcessInstanceById(String)public InputStream getProcessModel(String processDefinitionId)
RepositoryServicegetProcessModel in interface RepositoryServiceprocessDefinitionId - id of a ProcessDefinition, cannot be null.public InputStream getProcessDiagram(String processDefinitionId)
RepositoryServicegetProcessDiagram in interface RepositoryServiceprocessDefinitionId - id of a ProcessDefinition, cannot be null.ProcessDefinition is null.public DiagramLayout getProcessDiagramLayout(String processDefinitionId)
RepositoryServiceRepositoryService.getProcessDiagram(String).
This method requires a process model and a diagram image to be deployed.getProcessDiagramLayout in interface RepositoryServiceprocessDefinitionId - id of a ProcessDefinition, cannot be null.public void addCandidateStarterUser(String processDefinitionId, String userId)
RepositoryServiceaddCandidateStarterUser in interface RepositoryServiceprocessDefinitionId - id of the process definition, cannot be null.userId - id of the user involve, cannot be null.public void addCandidateStarterGroup(String processDefinitionId, String groupId)
RepositoryServiceaddCandidateStarterGroup in interface RepositoryServiceprocessDefinitionId - id of the process definition, cannot be null.groupId - id of the group involve, cannot be null.public void deleteCandidateStarterGroup(String processDefinitionId, String groupId)
RepositoryServicedeleteCandidateStarterGroup in interface RepositoryServiceprocessDefinitionId - id of the process definition, cannot be null.groupId - id of the group involve, cannot be null.public void deleteCandidateStarterUser(String processDefinitionId, String userId)
RepositoryServicedeleteCandidateStarterUser in interface RepositoryServiceprocessDefinitionId - id of the process definition, cannot be null.userId - id of the user involve, cannot be null.public List<IdentityLink> getIdentityLinksForProcessDefinition(String processDefinitionId)
RepositoryServiceIdentityLinks associated with the given process definition.
Such an IdentityLink informs how a certain identity (eg. group or user)
is authorized for a certain process definitiongetIdentityLinksForProcessDefinition in interface RepositoryServiceCopyright © 2015. All rights reserved.