Java Code Examples for org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity#getId()
The following examples show how to use
org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity#getId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultFormHandler.java From camunda-bpm-platform with Apache License 2.0 | 6 votes |
public void parseConfiguration(Element activityElement, DeploymentEntity deployment, ProcessDefinitionEntity processDefinition, BpmnParse bpmnParse) { this.deploymentId = deployment.getId(); ExpressionManager expressionManager = Context .getProcessEngineConfiguration() .getExpressionManager(); Element extensionElement = activityElement.element("extensionElements"); if (extensionElement != null) { // provide support for deprecated form properties parseFormProperties(bpmnParse, expressionManager, extensionElement); // provide support for new form field metadata parseFormData(bpmnParse, expressionManager, extensionElement); } }
Example 2
Source File: ProcessApplicationManager.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
protected List<ProcessDefinition> getDeployedProcessDefinitionArtifacts(DeploymentEntity deployment) { CommandContext commandContext = Context.getCommandContext(); // in case deployment was created by this command List<ProcessDefinition> entities = deployment.getDeployedProcessDefinitions(); if (entities == null) { String deploymentId = deployment.getId(); ProcessDefinitionManager manager = commandContext.getProcessDefinitionManager(); return manager.findProcessDefinitionsByDeploymentId(deploymentId); } return entities; }
Example 3
Source File: ProcessApplicationManager.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
protected List<CaseDefinition> getDeployedCaseDefinitionArtifacts(DeploymentEntity deployment) { CommandContext commandContext = Context.getCommandContext(); // in case deployment was created by this command List<CaseDefinition> entities = deployment.getDeployedCaseDefinitions(); if (entities == null) { String deploymentId = deployment.getId(); CaseDefinitionManager caseDefinitionManager = commandContext.getCaseDefinitionManager(); return caseDefinitionManager.findCaseDefinitionByDeploymentId(deploymentId); } return entities; }
Example 4
Source File: AbstractDefinitionDeployer.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
protected void loadDefinitions(DeploymentEntity deployment, List<DefinitionEntity> definitions, Properties properties) { for (DefinitionEntity definition : definitions) { String deploymentId = deployment.getId(); String definitionKey = definition.getKey(); DefinitionEntity persistedDefinition = findDefinitionByDeploymentAndKey(deploymentId, definitionKey); handlePersistedDefinition(definition, persistedDefinition, deployment, properties); } }
Example 5
Source File: DelegateStartFormHandler.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public DelegateStartFormHandler(StartFormHandler formHandler, DeploymentEntity deployment) { super(formHandler, deployment.getId()); }
Example 6
Source File: DelegateTaskFormHandler.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public DelegateTaskFormHandler(TaskFormHandler formHandler, DeploymentEntity deployment) { super(formHandler, deployment.getId()); }