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 static boolean hasSuffix(String filename, String[] suffixes) { if (suffixes == null || suffixes.length == 0) { return false; } else { for (String suffix : suffixes) { if (filename.endsWith(suffix)) { return true; } } return false; } }
@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...
hasSuffix
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 isDiagram(String fileName, String modelFileName) { // process resources boolean isBpmnDiagram = checkDiagram(fileName, modelFileName, BpmnDeployer.DIAGRAM_SUFFIXES, BpmnDeployer.BPMN_RESOURCE_SUFFIXES); // case resources boolean isCmmnDiagram = checkDiagram(fileName, modelFileName,...
@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...
isDiagram
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
protected static boolean checkDiagram(String fileName, String modelFileName, String[] diagramSuffixes, String[] modelSuffixes) { for (String modelSuffix : modelSuffixes) { if (modelFileName.endsWith(modelSuffix)) { String caseFilePrefix = modelFileName.substring(0, modelFileName.length() - modelSuffix...
Checks, whether a filename is a diagram for the given modelFileName. @param fileName filename to check. @param modelFileName model file name. @param diagramSuffixes suffixes of the diagram files. @param modelSuffixes suffixes of model files. @return true, if a file is a diagram for the model.
checkDiagram
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 Map<String, byte[]> findResources(ClassLoader classLoader, String resourceRootPath, URL processesXml) { return findResources(classLoader, resourceRootPath, processesXml, null); }
<p>A {@link ProcessArchiveScanner} which uses Jboss VFS for scanning the process archive for processes.</p> <p>This implementation should be used on WildFly</p> @author Daniel Meyer @author Falko Menge
findResources
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
Apache-2.0
public Map<String, byte[]> findResources(ClassLoader classLoader, String resourceRootPath, URL processesXml, String[] additionalResourceSuffixes) { // the map in which we collect the resources final Map<String, byte[]> resources = new HashMap<String, byte[]>(); if(resourceRootPath != null && !resourceRoot...
<p>A {@link ProcessArchiveScanner} which uses Jboss VFS for scanning the process archive for processes.</p> <p>This implementation should be used on WildFly</p> @author Daniel Meyer @author Falko Menge
findResources
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
Apache-2.0
protected VirtualFile getVirtualFileForUrl(final URL url) { try { return VFS.getChild(url.toURI()); } catch (URISyntaxException e) { throw LOG.exceptionWhileGettingVirtualFolder(url, e); } }
<p>A {@link ProcessArchiveScanner} which uses Jboss VFS for scanning the process archive for processes.</p> <p>This implementation should be used on WildFly</p> @author Daniel Meyer @author Falko Menge
getVirtualFileForUrl
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
Apache-2.0
protected void scanRoot(VirtualFile processArchiveRoot, final String[] additionalResourceSuffixes, Map<String, byte[]> resources) { try { List<VirtualFile> processes = processArchiveRoot.getChildrenRecursively(new VirtualFileFilter() { public boolean accepts(VirtualFile file) { return file.i...
<p>A {@link ProcessArchiveScanner} which uses Jboss VFS for scanning the process archive for processes.</p> <p>This implementation should be used on WildFly</p> @author Daniel Meyer @author Falko Menge
scanRoot
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
Apache-2.0
public boolean accepts(VirtualFile file) { return file.isFile() && ProcessApplicationScanningUtil.isDeployable(file.getName(), additionalResourceSuffixes); }
<p>A {@link ProcessArchiveScanner} which uses Jboss VFS for scanning the process archive for processes.</p> <p>This implementation should be used on WildFly</p> @author Daniel Meyer @author Falko Menge
accepts
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
Apache-2.0
public boolean accepts(VirtualFile file) { return ProcessApplicationScanningUtil.isDiagram(file.getName(), process.getName()); }
<p>A {@link ProcessArchiveScanner} which uses Jboss VFS for scanning the process archive for processes.</p> <p>This implementation should be used on WildFly</p> @author Daniel Meyer @author Falko Menge
accepts
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
Apache-2.0
private void addResource(VirtualFile virtualFile, VirtualFile processArchiveRoot, Map<String, byte[]> resources) { String resourceName = virtualFile.getPathNameRelativeTo(processArchiveRoot); try { InputStream inputStream = virtualFile.openStream(); byte[] bytes = IoUtil.readInputStream(inputStream,...
<p>A {@link ProcessArchiveScanner} which uses Jboss VFS for scanning the process archive for processes.</p> <p>This implementation should be used on WildFly</p> @author Daniel Meyer @author Falko Menge
addResource
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
Apache-2.0
protected Enumeration<URL> loadClasspathResourceRoots(final ClassLoader classLoader, String strippedPaResourceRootPath) { try { return classLoader.getResources(strippedPaResourceRootPath); } catch (IOException e) { throw LOG.exceptionWhileLoadingCpRoots(strippedPaResourceRootPath, classLoader, e...
<p>A {@link ProcessArchiveScanner} which uses Jboss VFS for scanning the process archive for processes.</p> <p>This implementation should be used on WildFly</p> @author Daniel Meyer @author Falko Menge
loadClasspathResourceRoots
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/deployment/scanning/VfsProcessApplicationScanner.java
Apache-2.0
public synchronized <S> void startService(ServiceType serviceType, String localName, PlatformService<S> service) { String serviceName = composeLocalName(serviceType, localName); startService(serviceName, service); }
set if the current thread is performing a composite deployment operation
startService
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public synchronized <S> void startService(String name, PlatformService<S> service) { ObjectName serviceName = getObjectName(name); if (getService(serviceName) != null) { throw new ProcessEngineException("Cannot register service " + serviceName + " with MBeans Container, service with same name already re...
set if the current thread is performing a composite deployment operation
startService
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public static ObjectName getObjectName(String serviceName) { try { return new ObjectName(serviceName); } catch(Exception e) { throw LOG.cannotComposeNameFor(serviceName, e); } }
set if the current thread is performing a composite deployment operation
getObjectName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public static String composeLocalName(ServiceType type, String localName) { return type.getTypeName() + ":type=" + localName; }
set if the current thread is performing a composite deployment operation
composeLocalName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public synchronized void stopService(ServiceType serviceType, String localName) { String globalName = composeLocalName(serviceType, localName); stopService(globalName); }
set if the current thread is performing a composite deployment operation
stopService
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public synchronized void stopService(String name) { final MBeanServer mBeanServer = getmBeanServer(); ObjectName serviceName = getObjectName(name); final PlatformService<Object> service = getService(serviceName); ensureNotNull("Cannot stop service " + serviceName + ": no such service registered", "s...
set if the current thread is performing a composite deployment operation
stopService
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public DeploymentOperationBuilder createDeploymentOperation(String name) { return new DeploymentOperation.DeploymentOperationBuilder(this, name); }
set if the current thread is performing a composite deployment operation
createDeploymentOperation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public DeploymentOperationBuilder createUndeploymentOperation(String name) { DeploymentOperationBuilder builder = new DeploymentOperation.DeploymentOperationBuilder(this, name); builder.setUndeploymentOperation(); return builder; }
set if the current thread is performing a composite deployment operation
createUndeploymentOperation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public void executeDeploymentOperation(DeploymentOperation operation) { Stack<DeploymentOperation> currentOperationContext = activeDeploymentOperations.get(); if(currentOperationContext == null) { currentOperationContext = new Stack<DeploymentOperation>(); activeDeploymentOperations.set(currentOper...
set if the current thread is performing a composite deployment operation
executeDeploymentOperation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public <S> S getService(ServiceType type, String localName) { String globalName = composeLocalName(type, localName); ObjectName serviceName = getObjectName(globalName); return getService(serviceName); }
get a specific service by name or null if no such Service exists.
getService
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
@SuppressWarnings("unchecked") public <S> S getService(ObjectName name) { return (S) servicesByName.get(name); }
get a specific service by name or null if no such Service exists.
getService
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public <S> S getServiceValue(ObjectName name) { PlatformService<S> service = getService(name); if(service != null) { return service.getValue(); } else { return null; } }
get the service value for a specific service by name or null if no such Service exists.
getServiceValue
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public <S> S getServiceValue(ServiceType type, String localName) { String globalName = composeLocalName(type, localName); ObjectName serviceName = getObjectName(globalName); return getServiceValue(serviceName); }
get the service value for a specific service by name or null if no such Service exists.
getServiceValue
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
@SuppressWarnings("unchecked") public <S> List<PlatformService<S>> getServicesByType(ServiceType type) { // query the MBeanServer for all services of the given type Set<String> serviceNames = getServiceNames(type); List<PlatformService<S>> res = new ArrayList<PlatformService<S>>(); for (String servi...
@return all services for a specific {@link ServiceType}
getServicesByType
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public Set<String> getServiceNames(ServiceType type) { String typeName = composeLocalName(type, "*"); ObjectName typeObjectName = getObjectName(typeName); Set<ObjectName> resultNames = getmBeanServer().queryNames(typeObjectName, null); Set<String> result= new HashSet<String>(); for (ObjectName objec...
@return the service names ( {@link ObjectName} ) for all services for a given type
getServiceNames
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
@SuppressWarnings("unchecked") public <S> List<S> getServiceValuesByType(ServiceType type) { // query the MBeanServer for all services of the given type Set<String> serviceNames = getServiceNames(type); List<S> res = new ArrayList<S>(); for (String serviceName : serviceNames) { PlatformService...
@return the values of all services for a specific {@link ServiceType}
getServiceValuesByType
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public MBeanServer getmBeanServer() { if (mBeanServer == null) { synchronized (this) { if (mBeanServer == null) { mBeanServer = createOrLookupMbeanServer(); } } } return mBeanServer; }
@return the values of all services for a specific {@link ServiceType}
getmBeanServer
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public void setmBeanServer(MBeanServer mBeanServer) { this.mBeanServer = mBeanServer; }
@return the values of all services for a specific {@link ServiceType}
setmBeanServer
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
protected MBeanServer createOrLookupMbeanServer() { return ManagementFactory.getPlatformMBeanServer(); }
@return the values of all services for a specific {@link ServiceType}
createOrLookupMbeanServer
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/MBeanServiceContainer.java
Apache-2.0
public void start(PlatformServiceContainer contanier) { // this one has no lifecycle support }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
start
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public void stop(PlatformServiceContainer container) { // this one has no lifecycle support }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
stop
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public String getName() { return processEngine.getName(); }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public ProcessEngine getProcessEngine() { return processEngine; }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
getProcessEngine
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public ProcessEngine getValue() { return processEngine; }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
getValue
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public Set<String> getRegisteredDeployments() { ManagementService managementService = processEngine.getManagementService(); return managementService.getRegisteredDeployments(); }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
getRegisteredDeployments
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public void registerDeployment(String deploymentId) { ManagementService managementService = processEngine.getManagementService(); managementService.registerDeploymentForJobExecutor(deploymentId); }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
registerDeployment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public void unregisterDeployment(String deploymentId) { ManagementService managementService = processEngine.getManagementService(); managementService.unregisterDeploymentForJobExecutor(deploymentId); }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
unregisterDeployment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public void reportDbMetrics() { ManagementService managementService = processEngine.getManagementService(); managementService.reportDbMetricsNow(); }
<p>Represents a process engine managed by the {@link MBeanServiceContainer}</p> @author Daniel Meyer
reportDbMetrics
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngine.java
Apache-2.0
public void start(PlatformServiceContainer contanier) { processEngine = processEngineConfiguration.buildProcessEngine(); }
<p>Represents a managed process engine that is started / stopped inside the {@link MBeanServiceContainer}</p> @author Daniel Meyer
start
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngineController.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jmx/services/JmxManagedProcessEngineController.java
Apache-2.0
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { return BpmPlatform.getProcessApplicationService(); }
<p>{@link ObjectFactory} that can be used for binding the {@link ProcessApplicationService} into JNDI</p> @author Roman Smirnov @author Daniel Meyer
getObjectInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jndi/ProcessApplicationServiceObjectFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jndi/ProcessApplicationServiceObjectFactory.java
Apache-2.0
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { return BpmPlatform.getProcessEngineService(); }
<p>{@link ObjectFactory} that can be used for binding the {@link ProcessEngineService} into JNDI</p> @author Roman Smirnov @author Daniel Meyer
getObjectInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/jndi/ProcessEngineServiceObjectFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/jndi/ProcessEngineServiceObjectFactory.java
Apache-2.0
public List<ProcessEngineXml> getProcessEngines() { return processEngines; }
<p>Implementation of the BpmPlatformXml SPI</p> @author Daniel Meyer
getProcessEngines
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlImpl.java
Apache-2.0
public void setProcessEngines(List<ProcessEngineXml> processEngines) { this.processEngines = processEngines; }
<p>Implementation of the BpmPlatformXml SPI</p> @author Daniel Meyer
setProcessEngines
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlImpl.java
Apache-2.0
public JobExecutorXml getJobExecutor() { return jobExecutor; }
<p>Implementation of the BpmPlatformXml SPI</p> @author Daniel Meyer
getJobExecutor
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlImpl.java
Apache-2.0
public void setJobExecutor(JobExecutorXml jobExecutor) { this.jobExecutor = jobExecutor; }
<p>Implementation of the BpmPlatformXml SPI</p> @author Daniel Meyer
setJobExecutor
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlImpl.java
Apache-2.0
protected void parseRootElement() { JobExecutorXmlImpl jobExecutor = new JobExecutorXmlImpl(); List<ProcessEngineXml> processEngines = new ArrayList<ProcessEngineXml>(); for (Element element : rootElement.elements()) { if(JOB_EXECUTOR.equals(element.getTagName())) { parseJobExecutor(element...
We know this is a <code>&lt;bpm-platform ../&gt;</code> element
parseRootElement
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
Apache-2.0
protected void parseJobExecutor(Element element, JobExecutorXmlImpl jobExecutorXml) { List<JobAcquisitionXml> jobAcquisitions = new ArrayList<JobAcquisitionXml>(); Map<String, String> properties = new HashMap<String, String>(); for (Element childElement : element.elements()) { if(JOB_ACQUISITION.eq...
parse a <code>&lt;job-executor .../&gt;</code> element and add it to the list of parsed elements
parseJobExecutor
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
Apache-2.0
protected void parseJobAcquisition(Element element, List<JobAcquisitionXml> jobAcquisitions) { JobAcquisitionXmlImpl jobAcquisition = new JobAcquisitionXmlImpl(); // set name jobAcquisition.setName(element.attribute(NAME)); Map<String, String> properties = new HashMap<String, String>(); for (Ele...
parse a <code>&lt;job-acquisition .../&gt;</code> element and add it to the list of parsed elements
parseJobAcquisition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
Apache-2.0
public BpmPlatformXml getBpmPlatformXml() { return bpmPlatformXml; }
parse a <code>&lt;job-acquisition .../&gt;</code> element and add it to the list of parsed elements
getBpmPlatformXml
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
Apache-2.0
public BpmPlatformXmlParse sourceUrl(URL url) { super.sourceUrl(url); return this; }
parse a <code>&lt;job-acquisition .../&gt;</code> element and add it to the list of parsed elements
sourceUrl
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParse.java
Apache-2.0
@Override public BpmPlatformXmlParse createParse() { BpmPlatformXmlParse parse = new BpmPlatformXmlParse(this); parse.setSchemaResource(ReflectUtil.getResourceUrlAsString(BPM_PLATFORM_XSD)); return parse; }
create an configure the {@link ProcessesXmlParse} object.
createParse
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParser.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/BpmPlatformXmlParser.java
Apache-2.0
public Parse execute() { super.execute(); try { parseRootElement(); } catch (Exception e) { throw LOG.unknownExceptionWhileParsingDeploymentDescriptor(e); } finally { if (hasWarnings()) { logWarnings(); } if (hasErrors()) { throwExceptionForErrors()...
<p>{@link Parse} implementation for Deployment Metadata.</p> <p>This class is NOT Threadsafe</p> @author Daniel Meyer
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
Apache-2.0
protected void parseProcessEngine(Element element, List<ProcessEngineXml> parsedProcessEngines) { ProcessEngineXmlImpl processEngine = new ProcessEngineXmlImpl(); // set name processEngine.setName(element.attribute(NAME)); // set default String defaultValue = element.attribute(DEFAULT); if(de...
parse a <code>&lt;process-engine .../&gt;</code> element and add it to the list of parsed elements
parseProcessEngine
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
Apache-2.0
protected void parseProcessEnginePlugins(Element element, List<ProcessEnginePluginXml> plugins) { for (Element chidElement : element.elements()) { if(PLUGIN.equals(chidElement.getTagName())) { parseProcessEnginePlugin(chidElement, plugins); } } }
Transform a <code>&lt;plugins ... /&gt;</code> structure.
parseProcessEnginePlugins
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
Apache-2.0
protected void parseProcessEnginePlugin(Element element, List<ProcessEnginePluginXml> plugins) { ProcessEnginePluginXmlImpl plugin = new ProcessEnginePluginXmlImpl(); Map<String, String> properties = new HashMap<String, String>(); for (Element childElement : element.elements()) { if(PLUGIN_CLASS.eq...
Transform a <code>&lt;plugin ... /&gt;</code> structure.
parseProcessEnginePlugin
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
Apache-2.0
protected void parseProperties(Element element, Map<String, String> properties) { for (Element childElement : element.elements()) { if(PROPERTY.equals(childElement.getTagName())) { String resolved = PropertyHelper.resolveProperty(System.getProperties(), childElement.getText()); properties.put...
Transform a <pre> &lt;properties&gt; &lt;property name="name"&gt;value&lt;/property&gt; &lt;/properties&gt; </pre> structure into a properties {@link Map} Supports resolution of Ant-style placeholders against system properties.
parseProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/DeploymentMetadataParse.java
Apache-2.0
public String getName() { return name; }
<p>Implementation of the {@link JobAcquisitionXml} SPI interface</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
Apache-2.0
public void setName(String name) { this.name = name; }
<p>Implementation of the {@link JobAcquisitionXml} SPI interface</p> @author Daniel Meyer
setName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
Apache-2.0
public Map<String, String> getProperties() { return properties; }
<p>Implementation of the {@link JobAcquisitionXml} SPI interface</p> @author Daniel Meyer
getProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
Apache-2.0
public void setProperties(Map<String, String> properties) { this.properties = properties; }
<p>Implementation of the {@link JobAcquisitionXml} SPI interface</p> @author Daniel Meyer
setProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
Apache-2.0
public String getJobExecutorClassName() { return jobExecutorClassName; }
<p>Implementation of the {@link JobAcquisitionXml} SPI interface</p> @author Daniel Meyer
getJobExecutorClassName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
Apache-2.0
public void setJobExecutorClassName(String jobExecutorClassName) { this.jobExecutorClassName = jobExecutorClassName; }
<p>Implementation of the {@link JobAcquisitionXml} SPI interface</p> @author Daniel Meyer
setJobExecutorClassName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobAcquisitionXmlImpl.java
Apache-2.0
public List<JobAcquisitionXml> getJobAcquisitions() { return jobAcquisitions; }
<p>Implementation of the {@link JobExecutorXml}</p> @author Daniel Meyer
getJobAcquisitions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
Apache-2.0
public void setJobAcquisitions(List<JobAcquisitionXml> jobAcquisitions) { this.jobAcquisitions = jobAcquisitions; }
<p>Implementation of the {@link JobExecutorXml}</p> @author Daniel Meyer
setJobAcquisitions
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
Apache-2.0
public String getJobExecutorClass() { return jobExecutorClass; }
<p>Implementation of the {@link JobExecutorXml}</p> @author Daniel Meyer
getJobExecutorClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
Apache-2.0
public void setJobExecutorClass(String jobExecutorClass) { this.jobExecutorClass = jobExecutorClass; }
<p>Implementation of the {@link JobExecutorXml}</p> @author Daniel Meyer
setJobExecutorClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
Apache-2.0
public void setProperties(Map<String, String> properties){ this.properties = properties; }
<p>Implementation of the {@link JobExecutorXml}</p> @author Daniel Meyer
setProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
Apache-2.0
public Map<String, String> getProperties() { return properties; }
<p>Implementation of the {@link JobExecutorXml}</p> @author Daniel Meyer
getProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/JobExecutorXmlImpl.java
Apache-2.0
public String getPluginClass() { return pluginClass; }
<p>Implementation of the {@link ProcessEnginePluginXml} descriptor</p> @author Daniel Meyer
getPluginClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEnginePluginXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEnginePluginXmlImpl.java
Apache-2.0
public void setPluginClass(String pluginClass) { this.pluginClass = pluginClass; }
<p>Implementation of the {@link ProcessEnginePluginXml} descriptor</p> @author Daniel Meyer
setPluginClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEnginePluginXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEnginePluginXmlImpl.java
Apache-2.0
public Map<String, String> getProperties() { return properties; }
<p>Implementation of the {@link ProcessEnginePluginXml} descriptor</p> @author Daniel Meyer
getProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEnginePluginXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEnginePluginXmlImpl.java
Apache-2.0
public void setProperties(Map<String, String> properties) { this.properties = properties; }
<p>Implementation of the {@link ProcessEnginePluginXml} descriptor</p> @author Daniel Meyer
setProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEnginePluginXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEnginePluginXmlImpl.java
Apache-2.0
public String getName() { return name; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
getName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public void setName(String name) { this.name = name; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
setName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public boolean isDefault() { return isDefault; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
isDefault
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public void setDefault(boolean isDefault) { this.isDefault = isDefault; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
setDefault
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public String getConfigurationClass() { return configurationClass; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
getConfigurationClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public void setConfigurationClass(String configurationClass) { this.configurationClass = configurationClass; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
setConfigurationClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public Map<String, String> getProperties() { return properties; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
getProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public void setProperties(Map<String, String> properties) { this.properties = properties; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
setProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public String getDatasource() { return datasource; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
getDatasource
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public void setDatasource(String datasource) { this.datasource = datasource; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
setDatasource
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public String getJobAcquisitionName() { return jobAcquisitionName; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
getJobAcquisitionName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public void setJobAcquisitionName(String jobAcquisitionName) { this.jobAcquisitionName = jobAcquisitionName; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
setJobAcquisitionName
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public List<ProcessEnginePluginXml> getPlugins() { return plugins; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
getPlugins
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public void setPlugins(List<ProcessEnginePluginXml> plugins) { this.plugins = plugins; }
<p>Implementation of the {@link ProcessEngineXml} descriptor.</p> @author Daniel Meyer
setPlugins
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/ProcessEngineXmlImpl.java
Apache-2.0
public static boolean getBooleanProperty(Map<String, String> properties, String name, boolean defaultValue) { String value = properties.get(name); if(value == null) { return defaultValue; } else { return Boolean.parseBoolean(value); } }
Regex for Ant-style property placeholders
getBooleanProperty
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
Apache-2.0
public static Object convertToClass(String value, Class<?> clazz) { Object propertyValue; if (clazz.isAssignableFrom(int.class)) { propertyValue = Integer.parseInt(value); } else if (clazz.isAssignableFrom(long.class)) { propertyValue = Long.parseLong(value); } else if (clazz.isAssig...
Converts a value to the type of the given field. @param value @param field @return
convertToClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
Apache-2.0
public static void applyProperty(Object configuration, String key, String stringValue) { Class<?> configurationClass = configuration.getClass(); Method setter = ReflectUtil.getSingleSetter(key, configurationClass); if(setter != null) { try { Class<?> parameterClass = setter.getParameterTypes...
Converts a value to the type of the given field. @param value @param field @return
applyProperty
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
Apache-2.0
public static void applyProperties(Object configuration, Map<String, String> properties, String namingStrategy) { for (Map.Entry<String, String> property : properties.entrySet()) { String key = property.getKey(); if (!CAMEL_CASE.equals(namingStrategy)) { key = convertToCamelCase(key, namingStrat...
Sets an objects fields via reflection from String values. Depending on the field's type the respective values are converted to int or boolean. This method allows to specify a property naming strategy, i.e., if a property is written in <code>camelCase</code>, <code>kebab-case</code>, or <code>snake_case</code>. @param ...
applyProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
Apache-2.0
public static void applyProperties(Object configuration, Map<String, String> properties) { applyProperties(configuration, properties, CAMEL_CASE); }
Sets an objects fields via reflection from String values. Depending on the field's type the respective values are converted to int or boolean. @param configuration @param properties @throws ProcessEngineException if a property is supplied that matches no field or if the field's type is not String, nor int, nor boolean...
applyProperties
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
Apache-2.0
public static String resolveProperty(Properties props, String original) { Matcher matcher = PROPERTY_TEMPLATE.matcher(original); StringBuilder buffer = new StringBuilder(); boolean found = false; while(matcher.find()) { found = true; String propertyName = matcher.group(2).trim(); buffe...
Replaces Ant-style property references if the corresponding keys exist in the provided {@link Properties}. @param props contains possible replacements @param original may contain Ant-style templates @return the original string with replaced properties or the unchanged original string if no placeholder found.
resolveProperty
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
Apache-2.0
protected static String convertToCamelCase(String value, String token) { while(value.contains(token)) { value = value .replaceFirst(token + "[a-z]", String.valueOf(Character.toUpperCase(value.charAt(value.indexOf(token) + 1)))); } return value; }
Replaces Ant-style property references if the corresponding keys exist in the provided {@link Properties}. @param props contains possible replacements @param original may contain Ant-style templates @return the original string with replaced properties or the unchanged original string if no placeholder found.
convertToCamelCase
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/metadata/PropertyHelper.java
Apache-2.0
@SuppressWarnings("unchecked") public <S> S getAttachment(String name) { return (S) attachments.get(name); }
a list of attachments allows to pass state from one operation to another
getAttachment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
Apache-2.0
public void addAttachment(String name, Object value) { attachments.put(name, value); }
a list of attachments allows to pass state from one operation to another
addAttachment
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
Apache-2.0
public void addStep(DeploymentOperationStep step) { if(currentStep != null) { steps.add(steps.indexOf(currentStep)+1, step); } else { steps.add(step); } }
Add a new atomic step to the composite operation. If the operation is currently executing a step, the step is added after the current step.
addStep
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
Apache-2.0
public PlatformServiceContainer getServiceContainer() { return serviceContainer; }
Add a new atomic step to the composite operation. If the operation is currently executing a step, the step is added after the current step.
getServiceContainer
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
Apache-2.0
public void execute() { while (!steps.isEmpty()) { currentStep = steps.remove(0); try { LOG.debugPerformOperationStep(currentStep.getName()); currentStep.performOperationStep(this); successfulSteps.add(currentStep); LOG.debugSuccessfullyPerformedOperationStep(currentS...
Add a new atomic step to the composite operation. If the operation is currently executing a step, the step is added after the current step.
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
Apache-2.0
protected void rollbackOperation() { // first, rollback all successful steps for (DeploymentOperationStep step : successfulSteps) { try { step.cancelOperationStep(this); } catch(Exception e) { LOG.exceptionWhileRollingBackOperation(e); } } // second, remove serv...
Add a new atomic step to the composite operation. If the operation is currently executing a step, the step is added after the current step.
rollbackOperation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/impl/spi/DeploymentOperation.java
Apache-2.0