code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public PlatformServiceContainer getServiceContainer() { return serviceContainer; }
<p>This is the default {@link RuntimeContainerDelegate} implementation that delegates to the local {@link MBeanServer} infrastructure. The MBeanServer is available as per the Java Virtual Machine and allows the process engine to expose Management Resources.</p> @author Daniel Meyer
getServiceContainer
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/RuntimeContainerDelegateImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/RuntimeContainerDelegateImpl.java
Apache-2.0
public String getName() { return "Parsing bpm-platform.xml file"; }
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { URL bpmPlatformXmlSource = getBpmPlatformXmlStream(operationContext); ensureNotNull("Unable to find bpm-platform.xml. This file is necessary for deploying the Camunda Platform", "bpmPlatformXmlSource", bpmPlatformXmlSource); // parse...
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public URL checkValidBpmPlatformXmlResourceLocation(String url) { url = autoCompleteUrl(url); URL fileLocation = null; try { fileLocation = checkValidUrlLocation(url); if (fileLocation == null) { fileLocation = checkValidFileLocation(url); } } catch (MalformedURLException...
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
checkValidBpmPlatformXmlResourceLocation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public String autoCompleteUrl(String url) { if (url != null) { LOG.debugAutoCompleteUrl(url); if (!url.endsWith(BPM_PLATFORM_XML_FILE)) { String appender; if (url.contains("/")) { appender = "/"; } else { appender = "\\"; } if (!(url.endsWith...
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
autoCompleteUrl
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public URL checkValidUrlLocation(String url) throws MalformedURLException { if (url == null || url.isEmpty()) { return null; } Pattern urlPattern = Pattern.compile("^(https?://).*/bpm-platform\\.xml$", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE); Matcher urlMatcher = urlPattern.matcher(url);...
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
checkValidUrlLocation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public URL checkValidFileLocation(String url) throws MalformedURLException { if (url == null || url.isEmpty()) { return null; } Pattern filePattern = Pattern.compile("^(/|[A-z]://?|[A-z]:\\\\).*[/|\\\\]bpm-platform\\.xml$", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE); Matcher fileMatcher = f...
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
checkValidFileLocation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public URL lookupBpmPlatformXmlLocationFromJndi() { String jndi = "java:comp/env/" + BPM_PLATFORM_XML_LOCATION; try { String bpmPlatformXmlLocation = InitialContext.doLookup(jndi); URL fileLocation = checkValidBpmPlatformXmlResourceLocation(bpmPlatformXmlLocation); if (fileLocation != null)...
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
lookupBpmPlatformXmlLocationFromJndi
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public URL lookupBpmPlatformXmlLocationFromEnvironmentVariable() { String bpmPlatformXmlLocation = System.getenv(BPM_PLATFORM_XML_ENVIRONMENT_VARIABLE); String logStatement = "environment variable [" + BPM_PLATFORM_XML_ENVIRONMENT_VARIABLE + "]"; if (bpmPlatformXmlLocation == null) { bpmPlatformXmlLo...
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
lookupBpmPlatformXmlLocationFromEnvironmentVariable
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public URL lookupBpmPlatformXmlFromClassPath(String resourceLocation) { URL fileLocation = ClassLoaderUtil.getClassloader(getClass()).getResource(resourceLocation); if (fileLocation != null) { LOG.foundConfigAtLocation(resourceLocation, fileLocation.toString()); } return fileLocation; }
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
lookupBpmPlatformXmlFromClassPath
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public URL lookupBpmPlatformXmlFromClassPath() { return lookupBpmPlatformXmlFromClassPath(BPM_PLATFORM_XML_RESOURCE_LOCATION); }
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
lookupBpmPlatformXmlFromClassPath
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public URL lookupBpmPlatformXml() { URL fileLocation = lookupBpmPlatformXmlLocationFromJndi(); if (fileLocation == null) { fileLocation = lookupBpmPlatformXmlLocationFromEnvironmentVariable(); } if (fileLocation == null) { fileLocation = lookupBpmPlatformXmlFromClassPath(); } retu...
<p>Deployment operation step responsible for parsing and attaching the bpm-platform.xml file.</p> @author Daniel Meyer @author Christian Lipphardt
lookupBpmPlatformXml
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractParseBpmPlatformXmlStep.java
Apache-2.0
public String getName() { return "Start process engines"; }
<p>Deployment operation step that is responsible for starting all process engines declared in a {@link List} of {@link ProcessEngineXml} files.</p> <p>This step does not start the process engines directly but rather creates individual {@link StartProcessEngineStep} instances that each start a process engine.</p> @aut...
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractStartProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractStartProcessEnginesStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { List<ProcessEngineXml> processEngines = getProcessEnginesXmls(operationContext); for (ProcessEngineXml parsedProcessEngine : processEngines) { // for each process engine add a new deployment step operationContext.addStep(crea...
<p>Deployment operation step that is responsible for starting all process engines declared in a {@link List} of {@link ProcessEngineXml} files.</p> <p>This step does not start the process engines directly but rather creates individual {@link StartProcessEngineStep} instances that each start a process engine.</p> @aut...
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractStartProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractStartProcessEnginesStep.java
Apache-2.0
protected StartProcessEngineStep createStartProcessEngineStep(ProcessEngineXml parsedProcessEngine) { return new StartProcessEngineStep(parsedProcessEngine); }
<p>Deployment operation step that is responsible for starting all process engines declared in a {@link List} of {@link ProcessEngineXml} files.</p> <p>This step does not start the process engines directly but rather creates individual {@link StartProcessEngineStep} instances that each start a process engine.</p> @aut...
createStartProcessEngineStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractStartProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/AbstractStartProcessEnginesStep.java
Apache-2.0
public String getName() { return "Deploy process archvies"; }
<p> Deployment step responsible for creating individual {@link DeployProcessArchiveStep} instances for each process archive configured in the META-INF/processes.xml file. </p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchivesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchivesStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { Map<URL, ProcessesXml> processesXmls = operationContext.getAttachment(PROCESSES_XML_RESOURCES); for (Entry<URL, ProcessesXml> processesXml : processesXmls.entrySet()) { for (ProcessArchiveXml processArchive : processesXml.getValue(...
<p> Deployment step responsible for creating individual {@link DeployProcessArchiveStep} instances for each process archive configured in the META-INF/processes.xml file. </p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchivesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchivesStep.java
Apache-2.0
protected DeployProcessArchiveStep createDeployProcessArchiveStep(ProcessArchiveXml parsedProcessArchive, URL url) { return new DeployProcessArchiveStep(parsedProcessArchive, url); }
<p> Deployment step responsible for creating individual {@link DeployProcessArchiveStep} instances for each process archive configured in the META-INF/processes.xml file. </p> @author Daniel Meyer
createDeployProcessArchiveStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchivesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchivesStep.java
Apache-2.0
@Override public String getName() { return "Deployment of process archive '" + processArchive.getName(); }
<p> Deployment operation step responsible for deploying a process archive </p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
Apache-2.0
@Override public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION); final ClassLo...
<p> Deployment operation step responsible for deploying a process archive </p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
Apache-2.0
protected void enableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder) throws IllegalArgumentException { deploymentBuilder.resumePreviousVersions(); String resumePreviousBy = processArchive.getProperties().get(ProcessArchiveXml.PROP_RESUME_PREVIOUS_BY); if (resumePreviousBy =...
<p> Deployment operation step responsible for deploying a process archive </p> @author Daniel Meyer
enableResumingOfPreviousVersions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
Apache-2.0
protected boolean isValidValueForResumePreviousBy(String resumePreviousBy) { return resumePreviousBy.equals(ResumePreviousBy.RESUME_BY_DEPLOYMENT_NAME) || resumePreviousBy.equals(ResumePreviousBy.RESUME_BY_PROCESS_DEFINITION_KEY); }
<p> Deployment operation step responsible for deploying a process archive </p> @author Daniel Meyer
isValidValueForResumePreviousBy
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
Apache-2.0
protected Map<String, byte[]> findResources(final ClassLoader processApplicationClassloader, String paResourceRoot, String[] additionalResourceSuffixes) { return ProcessApplicationScanningUtil.findResources(processApplicationClassloader, paResourceRoot, metaFileUrl, additionalResourceSuffixes); }
<p> Deployment operation step responsible for deploying a process archive </p> @author Daniel Meyer
findResources
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
Apache-2.0
@Override public void cancelOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION); ProcessEngine...
<p> Deployment operation step responsible for deploying a process archive </p> @author Daniel Meyer
cancelOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
Apache-2.0
protected ProcessEngine getProcessEngine(final PlatformServiceContainer serviceContainer) { return getProcessEngine(serviceContainer, ProcessEngines.NAME_DEFAULT); }
<p> Deployment operation step responsible for deploying a process archive </p> @author Daniel Meyer
getProcessEngine
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
Apache-2.0
protected ProcessEngine getProcessEngine(final PlatformServiceContainer serviceContainer, String defaultDeployToProcessEngineName) { String processEngineName = processArchive.getProcessEngineName(); if (processEngineName != null) { ProcessEngine processEngine = serviceContainer.getServiceValue(ServiceType...
<p> Deployment operation step responsible for deploying a process archive </p> @author Daniel Meyer
getProcessEngine
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/DeployProcessArchiveStep.java
Apache-2.0
public String getName() { return "Parse processes.xml deployment descriptor files."; }
<p>Detects and parses all META-INF/processes.xml files within the process application and attaches the parsed Metadata to the operation context.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final AbstractProcessApplication processApplication = operationContext.getAttachment(PROCESS_APPLICATION); Map<URL, ProcessesXml> parsedFiles = parseProcessesXmlFiles(processApplication); // attach parsed metadata operationConte...
<p>Detects and parses all META-INF/processes.xml files within the process application and attaches the parsed Metadata to the operation context.</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
Apache-2.0
protected Map<URL, ProcessesXml> parseProcessesXmlFiles(final AbstractProcessApplication processApplication) { String[] deploymentDescriptors = getDeploymentDescriptorLocations(processApplication); List<URL> processesXmlUrls = getProcessesXmlUrls(deploymentDescriptors, processApplication); Map<URL, Proces...
<p>Detects and parses all META-INF/processes.xml files within the process application and attaches the parsed Metadata to the operation context.</p> @author Daniel Meyer
parseProcessesXmlFiles
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
Apache-2.0
protected List<URL> getProcessesXmlUrls(String[] deploymentDescriptors, AbstractProcessApplication processApplication) { ClassLoader processApplicationClassloader = processApplication.getProcessApplicationClassloader(); List<URL> result = new ArrayList<URL>(); // load all deployment descriptor files using...
<p>Detects and parses all META-INF/processes.xml files within the process application and attaches the parsed Metadata to the operation context.</p> @author Daniel Meyer
getProcessesXmlUrls
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
Apache-2.0
protected String[] getDeploymentDescriptorLocations(AbstractProcessApplication processApplication) { ProcessApplication annotation = processApplication.getClass().getAnnotation(ProcessApplication.class); if(annotation == null) { return new String[] {ProcessApplication.DEFAULT_META_INF_PROCESSES_XML}; ...
<p>Detects and parses all META-INF/processes.xml files within the process application and attaches the parsed Metadata to the operation context.</p> @author Daniel Meyer
getDeploymentDescriptorLocations
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
Apache-2.0
protected boolean isEmptyFile(URL url) { InputStream inputStream = null; try { inputStream = url.openStream(); return inputStream.available() == 0; } catch (IOException e) { throw LOG.exceptionWhileReadingProcessesXml(url.toString(), e); } finally { IoUtil.closeSilentl...
<p>Detects and parses all META-INF/processes.xml files within the process application and attaches the parsed Metadata to the operation context.</p> @author Daniel Meyer
isEmptyFile
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
Apache-2.0
protected ProcessesXml parseProcessesXml(URL url) { final ProcessesXmlParser processesXmlParser = new ProcessesXmlParser(); ProcessesXml processesXml = processesXmlParser.createParse() .sourceUrl(url) .execute() .getProcessesXml(); return processesXml; }
<p>Detects and parses all META-INF/processes.xml files within the process application and attaches the parsed Metadata to the operation context.</p> @author Daniel Meyer
parseProcessesXml
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ParseProcessesXmlStep.java
Apache-2.0
protected List<ProcessEngineXml> getProcessEnginesXmls(DeploymentOperation operationContext) { final BpmPlatformXml bpmPlatformXml = operationContext.getAttachment(BPM_PLATFORM_XML); return bpmPlatformXml.getProcessEngines(); }
<p> Retrieves the List of ProcessEngines from an attached {@link ProcessesXml}.</p> @see AbstractParseBpmPlatformXmlStep
getProcessEnginesXmls
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/PlatformXmlStartProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/PlatformXmlStartProcessEnginesStep.java
Apache-2.0
public String getName() { return "Invoking @PostDeploy"; }
<p>Operation step responsible for invoking the {@literal @}{@link PostDeploy} method of a ProcessApplication class.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/PostDeployInvocationStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/PostDeployInvocationStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION); final String paName = processApplication.getName(); Class<? extends AbstractProcessApplication> paClass = processA...
<p>Operation step responsible for invoking the {@literal @}{@link PostDeploy} method of a ProcessApplication class.</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/PostDeployInvocationStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/PostDeployInvocationStep.java
Apache-2.0
public String getName() { return "Invoking @PreUndeploy"; }
<p>Operation step responsible for invoking the {@literal @}{@link PreUndeploy} method of a ProcessApplication class.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/PreUndeployInvocationStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/PreUndeployInvocationStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION); final String paName = processApplication.getName(); Class<? extends AbstractProcessApplication> paClass = processA...
<p>Operation step responsible for invoking the {@literal @}{@link PreUndeploy} method of a ProcessApplication class.</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/PreUndeployInvocationStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/PreUndeployInvocationStep.java
Apache-2.0
protected List<ProcessEngineXml> getProcessEnginesXmls(DeploymentOperation operationContext) { final Map<URL, ProcessesXml> processesXmls = operationContext.getAttachment(PROCESSES_XML_RESOURCES); List<ProcessEngineXml> processEngines = new ArrayList<ProcessEngineXml>(); for (ProcessesXml processesXml : ...
<p> Retrieves the List of ProcessEngines from an attached {@link ProcessesXml}.</p> @see AbstractParseBpmPlatformXmlStep
getProcessEnginesXmls
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStartProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStartProcessEnginesStep.java
Apache-2.0
public String getName() { return "Stopping process engines"; }
<p>Deployment operation responsible for stopping all process engines started by the deployment.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStopProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStopProcessEnginesStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION); final JmxManagedProcessAp...
<p>Deployment operation responsible for stopping all process engines started by the deployment.</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStopProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStopProcessEnginesStep.java
Apache-2.0
protected void stopProcessEngines(List<ProcessEngineXml> processEngine, DeploymentOperation operationContext) { for (ProcessEngineXml parsedProcessEngine : processEngine) { stopProcessEngine(parsedProcessEngine.getName(), operationContext); } }
<p>Deployment operation responsible for stopping all process engines started by the deployment.</p> @author Daniel Meyer
stopProcessEngines
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStopProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStopProcessEnginesStep.java
Apache-2.0
protected void stopProcessEngine(String processEngineName, DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); try { serviceContainer.stopService(ServiceTypes.PROCESS_ENGINE, processEngineName); } catch(Exception e) { ...
<p>Deployment operation responsible for stopping all process engines started by the deployment.</p> @author Daniel Meyer
stopProcessEngine
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStopProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/ProcessesXmlStopProcessEnginesStep.java
Apache-2.0
public String getName() { return "Start Process Application Service"; }
<p>This deployment operation step starts an {@link MBeanService} for the process application.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessApplicationServiceStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessApplicationServiceStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final AbstractProcessApplication processApplication = operationContext.getAttachment(PROCESS_APPLICATION); final Map<URL, ProcessesXml> processesXmls = operationContext.getAttachment(PROCESSES_XML_RESOURCES); final Map<String, Deploye...
<p>This deployment operation step starts an {@link MBeanService} for the process application.</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessApplicationServiceStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessApplicationServiceStep.java
Apache-2.0
protected ProcessApplicationInfoImpl createProcessApplicationInfo(final AbstractProcessApplication processApplication, final Map<String, DeployedProcessArchive> processArchiveDeploymentMap) { // populate process application info ProcessApplicationInfoImpl processApplicationInfo = new ProcessApplicationInf...
<p>This deployment operation step starts an {@link MBeanService} for the process application.</p> @author Daniel Meyer
createProcessApplicationInfo
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessApplicationServiceStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessApplicationServiceStep.java
Apache-2.0
protected void notifyBpmPlatformPlugins(PlatformServiceContainer serviceContainer, AbstractProcessApplication processApplication) { JmxManagedBpmPlatformPlugins plugins = serviceContainer.getService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS); if (plugins != n...
<p>This deployment operation step starts an {@link MBeanService} for the process application.</p> @author Daniel Meyer
notifyBpmPlatformPlugins
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessApplicationServiceStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessApplicationServiceStep.java
Apache-2.0
public String getName() { return "Start process engine " + processEngineXml.getName(); }
the process engine Xml configuration passed in as a parameter to the operation step
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); final AbstractProcessApplication processApplication = operationContext.getAttachment(PROCESS_APPLICATION); ClassLoader classLoader = null; ...
the process engine Xml configuration passed in as a parameter to the operation step
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
protected void setJobExecutorActivate(ProcessEngineConfigurationImpl configuration, Map<String, String> properties) { // override job executor auto activate: set to true in shared engine scenario // if it is not specified (see #CAM-4817) configuration.setJobExecutorActivate(true); }
the process engine Xml configuration passed in as a parameter to the operation step
setJobExecutorActivate
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
protected JmxManagedProcessEngineController createProcessEngineControllerInstance(ProcessEngineConfigurationImpl configuration) { return new JmxManagedProcessEngineController(configuration); }
the process engine Xml configuration passed in as a parameter to the operation step
createProcessEngineControllerInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
protected void configurePlugins(ProcessEngineConfigurationImpl configuration, ProcessEngineXml processEngineXml, ClassLoader classLoader) { for (ProcessEnginePluginXml pluginXml : processEngineXml.getPlugins()) { // create plugin instance Class<? extends ProcessEnginePlugin> pluginClass = loadClass(plu...
<p>Instantiates and applies all {@link ProcessEnginePlugin}s defined in the processEngineXml
configurePlugins
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
protected JobExecutor getJobExecutorService(final PlatformServiceContainer serviceContainer) { // lookup container managed job executor String jobAcquisitionName = processEngineXml.getJobAcquisitionName(); JobExecutor jobExecutor = serviceContainer.getServiceValue(ServiceTypes.JOB_EXECUTOR, jobAcquisitionNa...
<p>Instantiates and applies all {@link ProcessEnginePlugin}s defined in the processEngineXml
getJobExecutorService
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
@SuppressWarnings("unchecked") protected <T> Class<? extends T> loadClass(String className, ClassLoader customClassloader, Class<T> clazz) { try { return ReflectUtil.loadClass(className, customClassloader, clazz); } catch (ClassNotFoundException e) { throw LOG.cannotLoadConfigurationClass(clas...
<p>Instantiates and applies all {@link ProcessEnginePlugin}s defined in the processEngineXml
loadClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
protected void addAdditionalPlugins(ProcessEngineConfigurationImpl configuration) { // do nothing }
Add additional plugins that are not declared in the process engine xml.
addAdditionalPlugins
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
protected void additionalConfiguration(ProcessEngineConfigurationImpl configuration) { // do nothing }
Add additional plugins that are not declared in the process engine xml.
additionalConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StartProcessEngineStep.java
Apache-2.0
public String getName() { return "Removing process application"; }
<p>Deployment operations step responsible for removing the {@link JmxManagedProcessApplication} service.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationServiceStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationServiceStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION); // remove the service ...
<p>Deployment operations step responsible for removing the {@link JmxManagedProcessApplication} service.</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationServiceStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationServiceStep.java
Apache-2.0
public String getName() { return "Stopping process applications"; }
<p>Deployment operation step that is responsible for stopping (undeploying) all process applications</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationsStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationsStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); List<JmxManagedProcessApplication> processApplicationsReferences = serviceContainer.getServiceValuesByType(ServiceTypes.PROCESS_APPLICATION); f...
<p>Deployment operation step that is responsible for stopping (undeploying) all process applications</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationsStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationsStep.java
Apache-2.0
protected void stopProcessApplication(ProcessApplicationReference processApplicationReference) { try { // unless the user has overridden the stop behavior, // this causes the process application to remove its services // (triggers nested undeployment operation) ProcessApplicationInterface p...
<p> Stops a process application. Exceptions are logged but not re-thrown). @param processApplicationReference
stopProcessApplication
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationsStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessApplicationsStep.java
Apache-2.0
public String getName() { return "Stopping process engines"; }
<p>Deployment operation step that stops ALL process engines registered inside the container.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessEnginesStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); Set<String> serviceNames = serviceContainer.getServiceNames(ServiceTypes.PROCESS_ENGINE); for (String serviceName : serviceNames) { stopP...
<p>Deployment operation step that stops ALL process engines registered inside the container.</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessEnginesStep.java
Apache-2.0
private void stopProcessEngine(String serviceName, PlatformServiceContainer serviceContainer) { try { serviceContainer.stopService(serviceName); } catch(Exception e) { LOG.exceptionWhileStopping("Process Engine", serviceName, e); } }
Stops a process engine, failures are logged but no exceptions are thrown.
stopProcessEngine
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessEnginesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/StopProcessEnginesStep.java
Apache-2.0
public String getName() { return "Stopping process engines"; }
<p>Deployment operation responsible for undeploying all process archives.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchivesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchivesStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION); final JmxManagedProcessAp...
<p>Deployment operation responsible for undeploying all process archives.</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchivesStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchivesStep.java
Apache-2.0
public String getName() { return "Undeploying process archvie "+processArchvieName; }
<p>Deployment operation step responsible for performing the undeployment of a process archive</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchiveStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); final Map<String, DeployedProcessArchive> processArchiveDeploymentMap = deployedProcessApplication.getProcessArchiveDeploymentMap(); final Depl...
<p>Deployment operation step responsible for performing the undeployment of a process archive</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchiveStep.java
Apache-2.0
protected void deleteDeployment(String deploymentId, RepositoryService repositoryService) { repositoryService.deleteDeployment(deploymentId, true, true); }
<p>Deployment operation step responsible for performing the undeployment of a process archive</p> @author Daniel Meyer
deleteDeployment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchiveStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/UndeployProcessArchiveStep.java
Apache-2.0
public String getName() { return "Start job acquisition '"+jobAcquisitionXml.getName()+"'"; }
<p>Deployment operation step responsible for starting a JobEexecutor</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobAcquisitionStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobAcquisitionStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); final AbstractProcessApplication processApplication = operationContext.getAttachment(PROCESS_APPLICATION); ClassLoader configurationClassloader...
<p>Deployment operation step responsible for starting a JobEexecutor</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobAcquisitionStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobAcquisitionStep.java
Apache-2.0
protected JobExecutor instantiateJobExecutor(Class<? extends JobExecutor> configurationClass) { try { return configurationClass.newInstance(); } catch (Exception e) { throw LOG.couldNotInstantiateJobExecutorClass(e); } }
<p>Deployment operation step responsible for starting a JobEexecutor</p> @author Daniel Meyer
instantiateJobExecutor
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobAcquisitionStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobAcquisitionStep.java
Apache-2.0
@SuppressWarnings("unchecked") protected Class<? extends JobExecutor> loadJobExecutorClass(ClassLoader processApplicationClassloader, String jobExecutorClassname) { try { return (Class<? extends JobExecutor>) processApplicationClassloader.loadClass(jobExecutorClassname); } catch (ClassNotFoundExcept...
<p>Deployment operation step responsible for starting a JobEexecutor</p> @author Daniel Meyer
loadJobExecutorClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobAcquisitionStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobAcquisitionStep.java
Apache-2.0
public String getName() { return "Starting the Managed Job Executor"; }
<p>Deployment operation step responsible for starting the JobExecutor</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobExecutorStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobExecutorStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final JobExecutorXml jobExecutorXml = getJobExecutorXml(operationContext); // add a deployment operation step for each job acquisition for (JobAcquisitionXml jobAcquisitionXml : jobExecutorXml.getJobAcquisitions()) { ...
<p>Deployment operation step responsible for starting the JobExecutor</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobExecutorStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobExecutorStep.java
Apache-2.0
private JobExecutorXml getJobExecutorXml(DeploymentOperation operationContext) { BpmPlatformXml bpmPlatformXml = operationContext.getAttachment(Attachments.BPM_PLATFORM_XML); JobExecutorXml jobExecutorXml = bpmPlatformXml.getJobExecutor(); return jobExecutorXml; }
<p>Deployment operation step responsible for starting the JobExecutor</p> @author Daniel Meyer
getJobExecutorXml
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobExecutorStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartJobExecutorStep.java
Apache-2.0
public String getName() { return "Deploy Job Executor Thread Pool"; }
<p> Deployment operation step responsible for deploying a thread pool for the JobExecutor </p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); JobExecutorXml jobExecutorXml = getJobExecutorXml(operationContext); int queueSize = getQueueSize(jobExecutorXml); int corePoolSize = getC...
<p> Deployment operation step responsible for deploying a thread pool for the JobExecutor </p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
Apache-2.0
private JobExecutorXml getJobExecutorXml(DeploymentOperation operationContext) { BpmPlatformXml bpmPlatformXml = operationContext.getAttachment(Attachments.BPM_PLATFORM_XML); JobExecutorXml jobExecutorXml = bpmPlatformXml.getJobExecutor(); return jobExecutorXml; }
<p> Deployment operation step responsible for deploying a thread pool for the JobExecutor </p> @author Daniel Meyer
getJobExecutorXml
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
Apache-2.0
private int getQueueSize(JobExecutorXml jobExecutorXml) { String queueSize = jobExecutorXml.getProperties().get(JobExecutorXml.QUEUE_SIZE); if (queueSize == null) { return DEFAULT_QUEUE_SIZE; } return Integer.parseInt(queueSize); }
<p> Deployment operation step responsible for deploying a thread pool for the JobExecutor </p> @author Daniel Meyer
getQueueSize
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
Apache-2.0
private long getKeepAliveTime(JobExecutorXml jobExecutorXml) { String keepAliveTime = jobExecutorXml.getProperties().get(JobExecutorXml.KEEP_ALIVE_TIME); if (keepAliveTime == null) { return DEFAULT_KEEP_ALIVE_TIME_MS; } return Long.parseLong(keepAliveTime); }
<p> Deployment operation step responsible for deploying a thread pool for the JobExecutor </p> @author Daniel Meyer
getKeepAliveTime
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
Apache-2.0
private int getMaxPoolSize(JobExecutorXml jobExecutorXml) { String maxPoolSize = jobExecutorXml.getProperties().get(JobExecutorXml.MAX_POOL_SIZE); if (maxPoolSize == null) { return DEFAULT_MAX_POOL_SIZE; } return Integer.parseInt(maxPoolSize); }
<p> Deployment operation step responsible for deploying a thread pool for the JobExecutor </p> @author Daniel Meyer
getMaxPoolSize
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
Apache-2.0
private int getCorePoolSize(JobExecutorXml jobExecutorXml) { String corePoolSize = jobExecutorXml.getProperties().get(JobExecutorXml.CORE_POOL_SIZE); if (corePoolSize == null) { return DEFAULT_CORE_POOL_SIZE; } return Integer.parseInt(corePoolSize); }
<p> Deployment operation step responsible for deploying a thread pool for the JobExecutor </p> @author Daniel Meyer
getCorePoolSize
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StartManagedThreadPoolStep.java
Apache-2.0
public String getName() { return "Stop managed job acquisitions"; }
<p>Deployment operation step responsible for stopping all job acquisitions</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StopJobExecutorStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StopJobExecutorStep.java
Apache-2.0
public void performOperationStep(DeploymentOperation operationContext) { final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer(); Set<String> jobExecutorServiceNames = serviceContainer.getServiceNames(ServiceTypes.JOB_EXECUTOR); for (String serviceName : jobExecutorServic...
<p>Deployment operation step responsible for stopping all job acquisitions</p> @author Daniel Meyer
performOperationStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StopJobExecutorStep.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/jobexecutor/StopJobExecutorStep.java
Apache-2.0
public Map<String, byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl) { return findResources(classLoader, paResourceRootPath, metaFileUrl, null); }
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
findResources
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
public Map<String, byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes) { final Map<String, byte[]> resourceMap = new HashMap<String, byte[]>(); // perform the scanning. (results are collected in 'resourceMap') scanPaResourceRootPa...
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
findResources
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
public void scanPaResourceRootPath(final ClassLoader classLoader, final URL metaFileUrl, final String paResourceRootPath, Map<String, byte[]> resourceMap) { scanPaResourceRootPath(classLoader, metaFileUrl, paResourceRootPath, null, resourceMap); }
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
scanPaResourceRootPath
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
public void scanPaResourceRootPath(final ClassLoader classLoader, final URL metaFileUrl, final String paResourceRootPath, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) { if(paResourceRootPath != null && !paResourceRootPath.startsWith("pa:")) { // 1. CASE: paResourceRootPath specifie...
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
scanPaResourceRootPath
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
protected void scanUrl(URL url, String paResourceRootPath, boolean isPaLocal, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) { String urlPath = url.toExternalForm(); if(isPaLocal) { if (urlPath.startsWith("file:") || urlPath.startsWith("jar:") || urlPath.startsWith("wsjar:") || u...
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
scanUrl
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
protected void scanPath(String urlPath, String paResourceRootPath, boolean isPaLocal, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) { if (urlPath.startsWith("file:")) { urlPath = urlPath.substring(5); } if (urlPath.indexOf('!') > 0) { urlPath = urlPath.substring(0, urlPat...
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
scanPath
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
protected void handleArchive(File file, String paResourceRootPath, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) { try { ZipFile zipFile = new ZipFile(file); Enumeration< ? extends ZipEntry> entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry z...
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
handleArchive
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
protected void handleDirectory(File directory, String rootPath, String localPath, String paResourceRootPath, boolean isPaLocal, String[] additionalResourceSuffixes, Map<String, byte[]> resourceMap) { File[] paths = directory.listFiles(); String currentPathSegment = localPath; if (localPath != null && local...
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
handleDirectory
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
protected void addResource(Object source, Map<String, byte[]> resourceMap, String resourceRootPath, String resourceName) { String resourcePath = (resourceRootPath == null ? "" : resourceRootPath).concat(resourceName); LOG.debugDiscoveredResource(resourcePath); InputStream inputStream = null; try { ...
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
addResource
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
protected Enumeration<URL> loadClasspathResourceRoots(final ClassLoader classLoader, String strippedPaResourceRootPath) { Enumeration<URL> resourceRoots; try { resourceRoots = classLoader.getResources(strippedPaResourceRootPath); } catch (IOException e) { throw LOG.couldNotGetResource(stripp...
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
loadClasspathResourceRoots
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
protected boolean isBelowPath(String processFileName, String paResourceRootPath) { if(paResourceRootPath == null || paResourceRootPath.length() ==0 ) { return true; } else { return processFileName.startsWith(paResourceRootPath); } }
<p>Scans for bpmn20.xml files in the classpath of the given classloader.</p> <p>Scans all branches of the classpath containing a META-INF/processes.xml file </p> @author Daniel Meyer @author Falko Menge
isBelowPath
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ClassPathProcessApplicationScanner.java
Apache-2.0
public static Map<String, byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl) { return findResources(classLoader, paResourceRootPath, metaFileUrl, null); }
@param classLoader the classloader to scan @param paResourceRootPath see {@link ProcessArchiveXml#PROP_RESOURCE_ROOT_PATH} @param metaFileUrl the URL to the META-INF/processes.xml file @return a Map of process definitions
findResources
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ProcessApplicationScanningUtil.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ProcessApplicationScanningUtil.java
Apache-2.0
public static Map<String, byte[]> findResources(ClassLoader classLoader, String paResourceRootPath, URL metaFileUrl, String[] additionalResourceSuffixes) { ProcessApplicationScanner scanner = null; try { // check if we must use JBoss VFS classLoader.loadClass("org.jboss.vfs.VFS"); scanner = n...
@param classLoader the classloader to scan @param paResourceRootPath see {@link ProcessArchiveXml#PROP_RESOURCE_ROOT_PATH} @param metaFileUrl the URL to the META-INF/processes.xml file @param additionalResourceSuffixes a list of additional suffixes for resources @return a Map of proc...
findResources
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ProcessApplicationScanningUtil.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ProcessApplicationScanningUtil.java
Apache-2.0
public static boolean isDeployable(String filename) { return hasSuffix(filename, BpmnDeployer.BPMN_RESOURCE_SUFFIXES) || hasSuffix(filename, CmmnDeployer.CMMN_RESOURCE_SUFFIXES) || hasSuffix(filename, DecisionDefinitionDeployer.DMN_RESOURCE_SUFFIXES); }
@param classLoader the classloader to scan @param paResourceRootPath see {@link ProcessArchiveXml#PROP_RESOURCE_ROOT_PATH} @param metaFileUrl the URL to the META-INF/processes.xml file @param additionalResourceSuffixes a list of additional suffixes for resources @return a Map of proc...
isDeployable
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ProcessApplicationScanningUtil.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ProcessApplicationScanningUtil.java
Apache-2.0
public static boolean isDeployable(String filename, String[] additionalResourceSuffixes) { return isDeployable(filename) || hasSuffix(filename, additionalResourceSuffixes); }
@param classLoader the classloader to scan @param paResourceRootPath see {@link ProcessArchiveXml#PROP_RESOURCE_ROOT_PATH} @param metaFileUrl the URL to the META-INF/processes.xml file @param additionalResourceSuffixes a list of additional suffixes for resources @return a Map of proc...
isDeployable
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ProcessApplicationScanningUtil.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/ProcessApplicationScanningUtil.java
Apache-2.0