org.camunda.bpm.engine.impl.cmd
Class DeployCmd<T>
java.lang.Object
org.camunda.bpm.engine.impl.cmd.DeployCmd<T>
- All Implemented Interfaces:
- Serializable, Command<Deployment>
public class DeployCmd<T>
- extends Object
- implements Command<Deployment>, Serializable
- Author:
- Tom Baeyens, Joram Barrez, Thorben Lindhauer, Daniel Meyer
- See Also:
- Serialized Form
|
Method Summary |
protected void |
acquireExclusiveLock(CommandContext commandContext)
|
protected void |
deploy(DeploymentEntity deployment)
|
Deployment |
execute(CommandContext commandContext)
|
protected Set<String> |
findDeploymentIdsForProcessDefinitions(CommandContext commandContext,
Set<String> processDefinitionKeys)
|
protected List<? extends ProcessDefinition> |
getDeployedProcesses(DeploymentEntity deployment)
|
protected DeploymentEntity |
getExistingDeployment(CommandContext commandContext,
String deploymentName)
|
protected DeploymentEntity |
initDeployment()
|
protected boolean |
isBpmnResource(ResourceEntity resourceEntity)
|
protected boolean |
isCmmnResource(ResourceEntity resourceEntity)
|
protected ProcessApplicationRegistration |
registerProcessApplication(CommandContext commandContext,
DeploymentEntity deployment,
Set<String> processKeysToRegisterFor)
|
protected void |
registerWithJobExecutor(CommandContext commandContext,
DeploymentEntity deployment)
|
protected Map<String,ResourceEntity> |
resolveResourcesToDeploy(CommandContext commandContext,
DeploymentEntity deployment)
|
protected boolean |
resourcesDiffer(ResourceEntity resource,
ResourceEntity existing)
|
protected Set<String> |
resumePreviousByDeploymentName(CommandContext commandContext,
DeploymentEntity deployment)
Searches for previous deployments with the same name. |
protected Set<String> |
resumePreviousByProcessDefinitionKey(CommandContext commandContext,
DeploymentEntity deployment,
Set<String> processKeysToRegisterFor)
Searches in previous deployments for the same processes and retrieves the deployment ids. |
protected Set<String> |
retrieveProcessKeysFromResources(Map<String,ResourceEntity> resources)
|
protected void |
scheduleProcessDefinitionActivation(CommandContext commandContext,
DeploymentEntity deployment)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
deploymentBuilder
protected DeploymentBuilderImpl deploymentBuilder
DeployCmd
public DeployCmd(DeploymentBuilderImpl deploymentBuilder)
execute
public Deployment execute(CommandContext commandContext)
- Specified by:
execute in interface Command<Deployment>
acquireExclusiveLock
protected void acquireExclusiveLock(CommandContext commandContext)
initDeployment
protected DeploymentEntity initDeployment()
resolveResourcesToDeploy
protected Map<String,ResourceEntity> resolveResourcesToDeploy(CommandContext commandContext,
DeploymentEntity deployment)
resourcesDiffer
protected boolean resourcesDiffer(ResourceEntity resource,
ResourceEntity existing)
deploy
protected void deploy(DeploymentEntity deployment)
getExistingDeployment
protected DeploymentEntity getExistingDeployment(CommandContext commandContext,
String deploymentName)
scheduleProcessDefinitionActivation
protected void scheduleProcessDefinitionActivation(CommandContext commandContext,
DeploymentEntity deployment)
registerProcessApplication
protected ProcessApplicationRegistration registerProcessApplication(CommandContext commandContext,
DeploymentEntity deployment,
Set<String> processKeysToRegisterFor)
resumePreviousByProcessDefinitionKey
protected Set<String> resumePreviousByProcessDefinitionKey(CommandContext commandContext,
DeploymentEntity deployment,
Set<String> processKeysToRegisterFor)
- Searches in previous deployments for the same processes and retrieves the deployment ids.
- Parameters:
commandContext - deployment - the current deploymentprocessKeysToRegisterFor - the process keys this process application wants to registerdeploymentsToRegister - the set where to add further deployments this process application
should be registered for
- Returns:
- a set of deployment ids that contain versions of the
processKeysToRegisterFor
resumePreviousByDeploymentName
protected Set<String> resumePreviousByDeploymentName(CommandContext commandContext,
DeploymentEntity deployment)
- Searches for previous deployments with the same name.
- Parameters:
commandContext - deployment - the current deployment
- Returns:
- a set of deployment ids
getDeployedProcesses
protected List<? extends ProcessDefinition> getDeployedProcesses(DeploymentEntity deployment)
retrieveProcessKeysFromResources
protected Set<String> retrieveProcessKeysFromResources(Map<String,ResourceEntity> resources)
isBpmnResource
protected boolean isBpmnResource(ResourceEntity resourceEntity)
isCmmnResource
protected boolean isCmmnResource(ResourceEntity resourceEntity)
findDeploymentIdsForProcessDefinitions
protected Set<String> findDeploymentIdsForProcessDefinitions(CommandContext commandContext,
Set<String> processDefinitionKeys)
registerWithJobExecutor
protected void registerWithJobExecutor(CommandContext commandContext,
DeploymentEntity deployment)
Copyright © 2015 camunda services GmbH. All rights reserved.