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 |
|---|---|---|---|---|---|---|---|
@Test
public void testParseSubsystemXmlWithAllOptionsWithExpressions() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ALL_OPTIONS_WITH_EXPRESSIONS);
List<ModelNode> operations = parse(subsystemXml);
assertEquals(4, operations.size());
// all elements with expression allow... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseSubsystemXmlWithAllOptionsWithExpressions | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemXmlWithAllOptionsWithExpressions() throws Exception {
System.getProperties().putAll(EXPRESSION_PROPERTIES);
try {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ALL_OPTIONS_WITH_EXPRESSIONS);
KernelServices services = createKernelServicesBuilder(null)... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemXmlWithAllOptionsWithExpressions | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
protected void parseAndMarshalSubsystemModelFromFile(String subsystemXmlFile) throws Exception {
String subsystemXml = FileUtils.readFile(subsystemXmlFile);
// Parse the subsystem xml and install into the first controller
KernelServices servicesA = createKernelServicesBuilder(null).setSubsystemXml(subsystem... | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | parseAndMarshalSubsystemModelFromFile | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
protected void commonSubsystemServicesAreInstalled(ServiceContainer container) {
assertNotNull("platform service should be installed", container.getService(PLATFORM_SERVICE_NAME));
assertNotNull("process engine service should be bound in JNDI", container.getService(PROCESS_ENGINE_SERVICE_BINDING_SERVICE_NAME));... | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | commonSubsystemServicesAreInstalled | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
protected static Comparator<PathAddress> getSubsystemRemoveOrderComparator() {
final List<PathAddress> REMOVE_ORDER_OF_SUBSYSTEM = Arrays.asList(
PathAddress.pathAddress(BpmPlatformExtension.SUBSYSTEM_PATH),
PathAddress.pathAddress(BpmPlatformExtension.JOB_EXECUTOR_PATH),
PathAddress.pathAdd... | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | getSubsystemRemoveOrderComparator | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
protected PathAddress normalizePathAddress(PathAddress pathAddress) {
if (pathAddress.size() == 1 && pathAddress.equals(REMOVE_ORDER_OF_SUBSYSTEM.get(0))) {
return pathAddress;
} else {
// strip subsystem parentAddress
return pathAddress.subAddress(1, pathAddress.size());
... | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | normalizePathAddress | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
protected int getOrder(PathAddress pathAddress) {
for (PathAddress orderedAddress : REMOVE_ORDER_OF_SUBSYSTEM) {
if (orderedAddress.getLastElement().getKey().equals(pathAddress.getLastElement().getKey())) {
return REMOVE_ORDER_OF_SUBSYSTEM.indexOf(orderedAddress);
}
}
... | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | getOrder | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Override
public int compare(PathAddress o1, PathAddress o2) {
int orderO1 = getOrder(normalizePathAddress(o1));
int orderO2 = getOrder(normalizePathAddress(o2));
if (orderO1 < orderO2) {
return -1;
} else if (orderO1 > orderO2) {
return 1;
} else {
... | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | compare | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
private void assertExpressionType(ModelNode operation, String... elements) {
assertModelType(ModelType.EXPRESSION, operation, elements);
} | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | assertExpressionType | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
private void assertStringType(ModelNode operation, String... elements) {
assertModelType(ModelType.STRING, operation, elements);
} | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | assertStringType | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
private void assertModelType(ModelType type, ModelNode operation, String... elements) {
for (String element : elements) {
assertEquals(type, operation.get(element).getType());
}
} | Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one.
Compares the models afterwards.
@param subsystemXmlFile the name of the subsystem xml file
@throws Exception | assertModelType | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void reflectionAccessOnFieldValueTypesWorks() {
// prepare test setup
ModelNode testModel = ModelNode.fromJSONString(
"{" +
"\"type\" : \"LIST\", " +
"\"description\" : \"Extend the process engine through various plugins.\"," +
"\"expressions-allowed\"... | This class must be in package 'org.camunda.bpm.container.impl.jboss.util' because of protected method test. | reflectionAccessOnFieldValueTypesWorks | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/util/ReflectionCompatibilityTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/util/ReflectionCompatibilityTest.java | Apache-2.0 |
public static ProcessEngineService getProcessEngineService() {
return RuntimeContainerDelegate.INSTANCE.get().getProcessEngineService();
} | <p>Provides access to the Camunda Platform services.</p>
@author Daniel Meyer | getProcessEngineService | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/BpmPlatform.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/BpmPlatform.java | Apache-2.0 |
public static ProcessApplicationService getProcessApplicationService() {
return RuntimeContainerDelegate.INSTANCE.get().getProcessApplicationService();
} | <p>Provides access to the Camunda Platform services.</p>
@author Daniel Meyer | getProcessApplicationService | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/BpmPlatform.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/BpmPlatform.java | Apache-2.0 |
public static ProcessEngine getDefaultProcessEngine() {
return getProcessEngineService().getDefaultProcessEngine();
} | <p>Provides access to the Camunda Platform services.</p>
@author Daniel Meyer | getDefaultProcessEngine | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/BpmPlatform.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/BpmPlatform.java | Apache-2.0 |
public <T> T execute(Callable<T> callable) throws ProcessApplicationExecutionException {
ClassLoader originalClassloader = ClassLoaderUtil.getContextClassloader();
ClassLoader processApplicationClassloader = getProcessApplicationClassloader();
try {
ClassLoaderUtil.setContextClassloader(processApplic... | Override this method to autodetect an application name in case the
{@link ProcessApplication} annotation was used but without parameter. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public <T> T execute(Callable<T> callable, InvocationContext invocationContext) throws ProcessApplicationExecutionException {
// allows to hook into the invocation
return execute(callable);
} | Override this method to autodetect an application name in case the
{@link ProcessApplication} annotation was used but without parameter. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public ClassLoader getProcessApplicationClassloader() {
// the default implementation uses the classloader that loaded
// the application-provided subclass of this class.
return ClassLoaderUtil.getClassloader(getClass());
} | Override this method to autodetect an application name in case the
{@link ProcessApplication} annotation was used but without parameter. | getProcessApplicationClassloader | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public ProcessApplicationInterface getRawObject() {
return this;
} | Override this method to autodetect an application name in case the
{@link ProcessApplication} annotation was used but without parameter. | getRawObject | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public Map<String, String> getProperties() {
return Collections.<String, String>emptyMap();
} | Override this method to autodetect an application name in case the
{@link ProcessApplication} annotation was used but without parameter. | getProperties | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public ELResolver getElResolver() {
if (processApplicationElResolver == null) {
synchronized (this) {
if (processApplicationElResolver == null) {
processApplicationElResolver = initProcessApplicationElResolver();
}
}
}
return processApplicationElResolver;
} | Override this method to autodetect an application name in case the
{@link ProcessApplication} annotation was used but without parameter. | getElResolver | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public BeanELResolver getBeanElResolver() {
if (processApplicationBeanElResolver == null) {
synchronized (this) {
if (processApplicationBeanElResolver == null) {
processApplicationBeanElResolver = new BeanELResolver();
}
}
}
return processApplicationBeanElResolver;
} | Override this method to autodetect an application name in case the
{@link ProcessApplication} annotation was used but without parameter. | getBeanElResolver | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
protected ELResolver initProcessApplicationElResolver() {
return DefaultElResolverLookup.lookupResolver(this);
} | <p>Initializes the process application provided ElResolver. This implementation uses the
Java SE {@link ServiceLoader} facilities for resolving implementations of {@link ProcessApplicationElResolver}.</p>
<p>
<p>If you want to provide a custom implementation in your application, place a file named
<code>META-INF/org.ca... | initProcessApplicationElResolver | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public ExecutionListener getExecutionListener() {
return null;
} | <p>Initializes the process application provided ElResolver. This implementation uses the
Java SE {@link ServiceLoader} facilities for resolving implementations of {@link ProcessApplicationElResolver}.</p>
<p>
<p>If you want to provide a custom implementation in your application, place a file named
<code>META-INF/org.ca... | getExecutionListener | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public TaskListener getTaskListener() {
return null;
} | <p>Initializes the process application provided ElResolver. This implementation uses the
Java SE {@link ServiceLoader} facilities for resolving implementations of {@link ProcessApplicationElResolver}.</p>
<p>
<p>If you want to provide a custom implementation in your application, place a file named
<code>META-INF/org.ca... | getTaskListener | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public ScriptEngine getScriptEngineForName(String name, boolean cache) {
return getProcessApplicationScriptEnvironment().getScriptEngineForName(name, cache);
} | see {@link ProcessApplicationScriptEnvironment#getScriptEngineForName(String, boolean)} | getScriptEngineForName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public String getDefaultDeployToEngineName() {
return defaultDeployToEngineName;
} | <p>Provides the default Process Engine name to deploy to, if no Process Engine
was defined in <code>processes.xml</code>.</p>
@return the default deploy-to Process Engine name.
The default value is "default". | getDefaultDeployToEngineName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
protected void setDefaultDeployToEngineName(String defaultDeployToEngineName) {
this.defaultDeployToEngineName = defaultDeployToEngineName;
} | <p>Programmatically set the name of the Process Engine to deploy to if no Process Engine
is defined in <code>processes.xml</code>. This allows to circumvent the "default" Process
Engine name and set a custom one.</p>
@param defaultDeployToEngineName | setDefaultDeployToEngineName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/AbstractProcessApplication.java | Apache-2.0 |
public static void setCurrentProcessApplication(String processApplicationName) {
ProcessApplicationContextImpl.set(new ProcessApplicationIdentifier(processApplicationName));
} | Declares the context process application for all subsequent engine API invocations
until {@link #clear()} is called. The context is bound to the current thread.
This method should always be used in a try-finally block to ensure that {@link #clear()}
is called under any circumstances.
@param processApplicationName the ... | setCurrentProcessApplication | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | Apache-2.0 |
public static void setCurrentProcessApplication(ProcessApplicationReference reference) {
ProcessApplicationContextImpl.set(new ProcessApplicationIdentifier(reference));
} | Declares the context process application for all subsequent engine API invocations
until {@link #clear()} is called. The context is bound to the current thread.
This method should always be used in a try-finally block to ensure that {@link #clear()}
is called under any circumstances.
@param reference a reference to th... | setCurrentProcessApplication | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | Apache-2.0 |
public static void setCurrentProcessApplication(ProcessApplicationInterface processApplication) {
ProcessApplicationContextImpl.set(new ProcessApplicationIdentifier(processApplication));
} | Declares the context process application for all subsequent engine API invocations
until {@link #clear()} is called. The context is bound to the current thread.
This method should always be used in a try-finally block to ensure that {@link #clear()}
is called under any circumstances.
@param processApplication the proc... | setCurrentProcessApplication | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | Apache-2.0 |
public static <T> T withProcessApplicationContext(Callable<T> callable, String processApplicationName) throws Exception {
try {
setCurrentProcessApplication(processApplicationName);
return callable.call();
}
finally {
clear();
}
} | <p>Takes a callable and executes all engine API invocations within that callable in the context
of the given process application
<p>Equivalent to
<pre>
try {
ProcessApplicationContext.setCurrentProcessApplication("someProcessApplication");
callable.call();
} finally {
ProcessApplicationContext.clear();... | withProcessApplicationContext | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | Apache-2.0 |
public static <T> T withProcessApplicationContext(Callable<T> callable, ProcessApplicationReference reference) throws Exception {
try {
setCurrentProcessApplication(reference);
return callable.call();
}
finally {
clear();
}
} | <p>Takes a callable and executes all engine API invocations within that callable in the context
of the given process application
<p>Equivalent to
<pre>
try {
ProcessApplicationContext.setCurrentProcessApplication("someProcessApplication");
callable.call();
} finally {
ProcessApplicationContext.clear();... | withProcessApplicationContext | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | Apache-2.0 |
public static <T> T withProcessApplicationContext(Callable<T> callable, ProcessApplicationInterface processApplication) throws Exception {
try {
setCurrentProcessApplication(processApplication);
return callable.call();
}
finally {
clear();
}
} | <p>Takes a callable and executes all engine API invocations within that callable in the context
of the given process application
<p>Equivalent to
<pre>
try {
ProcessApplicationContext.setCurrentProcessApplication("someProcessApplication");
callable.call();
} finally {
ProcessApplicationContext.clear();... | withProcessApplicationContext | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/ProcessApplicationContext.java | Apache-2.0 |
public int compare(ProcessApplicationElResolver o1, ProcessApplicationElResolver o2) {
return (-1) * o1.getPrecedence().compareTo(o2.getPrecedence());
} | Comparator used for sorting providers
@see ProcessApplicationElResolver#getPrecedence() | compare | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/ProcessApplicationElResolver.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/ProcessApplicationElResolver.java | Apache-2.0 |
protected Class<? extends ProcessApplicationInterface> getBusinessInterface() {
return ProcessApplicationInterface.class;
} | allows subclasses to provide a custom business interface | getBusinessInterface | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/AbstractEjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/AbstractEjbProcessApplication.java | Apache-2.0 |
@Override
public <T> T execute(Callable<T> callable) throws ProcessApplicationExecutionException {
ClassLoader originalClassloader = ClassLoaderUtil.getContextClassloader();
ClassLoader processApplicationClassloader = getProcessApplicationClassloader();
try {
if (originalClassloader != processAppli... | allows subclasses to provide a custom business interface | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/AbstractEjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/AbstractEjbProcessApplication.java | Apache-2.0 |
protected void ensureInitialized() {
if(selfReference == null) {
selfReference = lookupSelfReference();
}
ensureEjbProcessApplicationReferenceInitialized();
} | allows subclasses to provide a custom business interface | ensureInitialized | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/AbstractEjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/AbstractEjbProcessApplication.java | Apache-2.0 |
protected String lookupEeApplicationName() {
try {
InitialContext initialContext = new InitialContext();
String appName = (String) initialContext.lookup(JAVA_APP_APP_NAME_PATH);
String moduleName = (String) initialContext.lookup(MODULE_NAME_PATH);
// make sure that if an EAR carries multi... | determine the ee application name based on information obtained from JNDI. | lookupEeApplicationName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/AbstractEjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/AbstractEjbProcessApplication.java | Apache-2.0 |
protected void onStartUp(Set<Class<?>> c, String contextPath, Class<?> servletProcessApplicationClass, Consumer<String> processApplicationClassNameConsumer) throws Exception {
if (c == null || c.isEmpty()) {
// skip deployments that do not carry a PA
return;
}
if (c.contains(ProcessApplication.... | This base class provides a template method to handle servlet applications annotated
with the {@link ProcessApplication}.
@author Daniel Meyer | onStartUp | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/AbstractServletProcessApplicationDeployer.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/AbstractServletProcessApplicationDeployer.java | Apache-2.0 |
@Override
protected ProcessApplicationInterface lookupSelfReference() {
try {
InitialContext ic = new InitialContext();
SessionContext sctxLookup = (SessionContext) ic.lookup(EJB_CONTEXT_PATH);
return sctxLookup.getBusinessObject(getBusinessInterface());
} catch (NamingException e) {
t... | <p>Common base class for writing EJB process applications.</p>
<p>An EJB Process Application exposes itself as a Session Bean Component inside the EJB container.
This determines the invocation semantics when invoking code from the process application and the
nature of the {@link ProcessApplicationReference} held by th... | lookupSelfReference | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplication.java | Apache-2.0 |
@Override
protected void ensureEjbProcessApplicationReferenceInitialized() {
if (ejbProcessApplicationReference == null) {
ejbProcessApplicationReference = new EjbProcessApplicationReference(selfReference, getName());
}
} | <p>Common base class for writing EJB process applications.</p>
<p>An EJB Process Application exposes itself as a Session Bean Component inside the EJB container.
This determines the invocation semantics when invoking code from the process application and the
nature of the {@link ProcessApplicationReference} held by th... | ensureEjbProcessApplicationReferenceInitialized | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplication.java | Apache-2.0 |
@Override
protected ProcessApplicationReference getEjbProcessApplicationReference() {
return ejbProcessApplicationReference;
} | <p>Common base class for writing EJB process applications.</p>
<p>An EJB Process Application exposes itself as a Session Bean Component inside the EJB container.
This determines the invocation semantics when invoking code from the process application and the
nature of the {@link ProcessApplicationReference} held by th... | getEjbProcessApplicationReference | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplication.java | Apache-2.0 |
@Override
public String getName() {
return processApplicationName;
} | the name of the process application | getName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplicationReference.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplicationReference.java | Apache-2.0 |
@Override
public ProcessApplicationInterface getProcessApplication() throws ProcessApplicationUnavailableException {
try {
// check whether process application is still deployed
selfReference.getName();
} catch (EJBException e) {
throw LOG.processApplicationUnavailableException(processApplic... | the name of the process application | getProcessApplication | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplicationReference.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplicationReference.java | Apache-2.0 |
public void processEngineStopping(ProcessEngine processEngine) throws ProcessApplicationUnavailableException {
// do nothing.
} | the name of the process application | processEngineStopping | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplicationReference.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EjbProcessApplicationReference.java | Apache-2.0 |
protected String autodetectProcessApplicationName() {
return DEFAULT_NAME;
} | <p>An embedded process application is a ProcessApplication that uses an embedded
process engine. An embedded process engine is loaded by the same classloader as
the process application which usually means that the <code>camunda-engine.jar</code>
is deployed as a web application library (in case of WAR deployments) or a... | autodetectProcessApplicationName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplication.java | Apache-2.0 |
public ProcessApplicationReference getReference() {
return new EmbeddedProcessApplicationReferenceImpl(this);
} | <p>An embedded process application is a ProcessApplication that uses an embedded
process engine. An embedded process engine is loaded by the same classloader as
the process application which usually means that the <code>camunda-engine.jar</code>
is deployed as a web application library (in case of WAR deployments) or a... | getReference | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplication.java | Apache-2.0 |
public <T> T execute(Callable<T> callable) throws ProcessApplicationExecutionException {
try {
return callable.call();
}
catch (Exception e) {
throw LOG.processApplicationExecutionException(e);
}
} | Since the process engine is loaded by the same classloader
as the process application, nothing needs to be done. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplication.java | Apache-2.0 |
public String getName() {
return application.getName();
} | <p>The process engine holds a strong reference to the embedded process application.</p>
@author Daniel Meyer | getName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplicationReferenceImpl.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplicationReferenceImpl.java | Apache-2.0 |
public ProcessApplicationInterface getProcessApplication() throws ProcessApplicationUnavailableException {
return application;
} | <p>The process engine holds a strong reference to the embedded process application.</p>
@author Daniel Meyer | getProcessApplication | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplicationReferenceImpl.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/EmbeddedProcessApplicationReferenceImpl.java | Apache-2.0 |
@Override
protected ProcessApplicationInterface lookupSelfReference() {
try {
InitialContext ic = new InitialContext();
SessionContext sctxLookup = (SessionContext) ic.lookup(EJB_CONTEXT_PATH);
return sctxLookup.getBusinessObject(getBusinessInterface());
} catch (NamingException e) {
t... | <p>Common base class for writing Jakarta Enterprise Bean process applications.</p>
<p>An EJB Process Application exposes itself as a Session Bean Component inside the EJB container.
This determines the invocation semantics when invoking code from the process application and the
nature of the {@link ProcessApplicationR... | lookupSelfReference | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplication.java | Apache-2.0 |
@Override
protected void ensureEjbProcessApplicationReferenceInitialized() {
if (ejbProcessApplicationReference == null) {
ejbProcessApplicationReference = new JakartaEjbProcessApplicationReference(selfReference, getName());
}
} | <p>Common base class for writing Jakarta Enterprise Bean process applications.</p>
<p>An EJB Process Application exposes itself as a Session Bean Component inside the EJB container.
This determines the invocation semantics when invoking code from the process application and the
nature of the {@link ProcessApplicationR... | ensureEjbProcessApplicationReferenceInitialized | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplication.java | Apache-2.0 |
@Override
protected ProcessApplicationReference getEjbProcessApplicationReference() {
return ejbProcessApplicationReference;
} | <p>Common base class for writing Jakarta Enterprise Bean process applications.</p>
<p>An EJB Process Application exposes itself as a Session Bean Component inside the EJB container.
This determines the invocation semantics when invoking code from the process application and the
nature of the {@link ProcessApplicationR... | getEjbProcessApplicationReference | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplication.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplication.java | Apache-2.0 |
@Override
public String getName() {
return processApplicationName;
} | the name of the process application | getName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplicationReference.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplicationReference.java | Apache-2.0 |
@Override
public ProcessApplicationInterface getProcessApplication() throws ProcessApplicationUnavailableException {
try {
// check whether process application is still deployed
selfReference.getName();
} catch (EJBException e) {
throw LOG.processApplicationUnavailableException(processApplic... | the name of the process application | getProcessApplication | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplicationReference.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplicationReference.java | Apache-2.0 |
public void processEngineStopping(ProcessEngine processEngine) throws ProcessApplicationUnavailableException {
// do nothing.
} | the name of the process application | processEngineStopping | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplicationReference.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/JakartaEjbProcessApplicationReference.java | Apache-2.0 |
@Override
public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {
try {
onStartUp(c, ctx.getContextPath(), JakartaServletProcessApplication.class, ctx::addListener);
} catch (Exception e) {
if (e instanceof ServletException) {
throw (ServletException) e;
... | <p>This class is an implementation of {@link ServletContainerInitializer} and
is notified whenever a subclass of {@link ServletProcessApplication} annotated
with the {@link ProcessApplication} annotation is deployed. In such an event,
we automatically add the class as {@link ServletContextListener} to the
{@link Servle... | onStartup | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/JakartaServletProcessApplicationDeployer.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/JakartaServletProcessApplicationDeployer.java | Apache-2.0 |
@Override
protected Exception getServletException(String message) {
return new ServletException(message);
} | <p>This class is an implementation of {@link ServletContainerInitializer} and
is notified whenever a subclass of {@link ServletProcessApplication} annotated
with the {@link ProcessApplication} annotation is deployed. In such an event,
we automatically add the class as {@link ServletContextListener} to the
{@link Servle... | getServletException | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/JakartaServletProcessApplicationDeployer.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/JakartaServletProcessApplicationDeployer.java | Apache-2.0 |
public String getName() {
return name;
} | the weak reference to the process application | getName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationReferenceImpl.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationReferenceImpl.java | Apache-2.0 |
public AbstractProcessApplication getProcessApplication() throws ProcessApplicationUnavailableException {
AbstractProcessApplication application = processApplication.get();
if (application == null) {
throw LOG.processApplicationUnavailableException(name);
}
else {
return application;
}
... | the weak reference to the process application | getProcessApplication | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationReferenceImpl.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationReferenceImpl.java | Apache-2.0 |
public void processEngineStopping(ProcessEngine processEngine) throws ProcessApplicationUnavailableException {
// do nothing
} | the weak reference to the process application | processEngineStopping | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationReferenceImpl.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationReferenceImpl.java | Apache-2.0 |
public ScriptEngine getScriptEngineForName(String scriptEngineName, boolean cache) {
if(processApplicationScriptEngineResolver == null) {
synchronized (this) {
if(processApplicationScriptEngineResolver == null) {
processApplicationScriptEngineResolver = new DefaultScriptEngineResolver(new Sc... | <p>Returns an instance of {@link ScriptEngine} for the given <code>scriptEngineName</code>.</p>
<p>Iff the given parameter <code>cache</code> is set <code>true</code>,
then the instance {@link ScriptEngine} will be cached.</p>
@param scriptEngineName the name of the {@link ScriptEngine} to return
@param cache a boole... | getScriptEngineForName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationScriptEnvironment.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationScriptEnvironment.java | Apache-2.0 |
public Map<String, List<ExecutableScript>> getEnvironmentScripts() {
return environmentScripts;
} | Returns a map of cached environment scripts per script language. | getEnvironmentScripts | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationScriptEnvironment.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationScriptEnvironment.java | Apache-2.0 |
protected ClassLoader getProcessApplicationClassloader() {
return processApplication.getProcessApplicationClassloader();
} | Returns a map of cached environment scripts per script language. | getProcessApplicationClassloader | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationScriptEnvironment.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/ProcessApplicationScriptEnvironment.java | Apache-2.0 |
@Override
public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {
try {
onStartUp(c, ctx.getContextPath(), ServletProcessApplication.class, ctx::addListener);
} catch (Exception e) {
if (e instanceof ServletException) {
throw (ServletException) e;
}
}... | <p>This class is an implementation of {@link ServletContainerInitializer} and
is notified whenever a subclass of {@link ServletProcessApplication} annotated
with the {@link ProcessApplication} annotation is deployed. In such an event,
we automatically add the class as {@link ServletContextListener} to the
{@link Servle... | onStartup | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/ServletProcessApplicationDeployer.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/ServletProcessApplicationDeployer.java | Apache-2.0 |
@Override
protected Exception getServletException(String message) {
return new ServletException(message);
} | <p>This class is an implementation of {@link ServletContainerInitializer} and
is notified whenever a subclass of {@link ServletProcessApplication} annotated
with the {@link ProcessApplication} annotation is deployed. In such an event,
we automatically add the class as {@link ServletContextListener} to the
{@link Servle... | getServletException | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/ServletProcessApplicationDeployer.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/ServletProcessApplicationDeployer.java | Apache-2.0 |
public void notify(final DelegateExecution execution) throws Exception {
Callable<Void> notification = new Callable<Void>() {
public Void call() throws Exception {
notifyExecutionListener(execution);
return null;
}
};
performNotification(execution, notification);
} | <p>{@link ExecutionListener} and {@link TaskListener} implementation delegating to
the {@link ExecutionListener} and {@link TaskListener} provided by a
{@link ProcessApplicationInterface ProcessApplication}.</p>
<p>If the process application does not provide an execution listener (ie.
{@link ProcessApplicationInterfac... | notify | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | Apache-2.0 |
public Void call() throws Exception {
notifyExecutionListener(execution);
return null;
} | <p>{@link ExecutionListener} and {@link TaskListener} implementation delegating to
the {@link ExecutionListener} and {@link TaskListener} provided by a
{@link ProcessApplicationInterface ProcessApplication}.</p>
<p>If the process application does not provide an execution listener (ie.
{@link ProcessApplicationInterfac... | call | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | Apache-2.0 |
public void notify(final DelegateTask delegateTask){
if(delegateTask.getExecution() == null) {
LOG.taskNotRelatedToExecution(delegateTask);
} else {
final DelegateExecution execution = delegateTask.getExecution();
Callable<Void> notification = new Callable<Void>() {
public Void call() ... | <p>{@link ExecutionListener} and {@link TaskListener} implementation delegating to
the {@link ExecutionListener} and {@link TaskListener} provided by a
{@link ProcessApplicationInterface ProcessApplication}.</p>
<p>If the process application does not provide an execution listener (ie.
{@link ProcessApplicationInterfac... | notify | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | Apache-2.0 |
public Void call() throws Exception {
notifyTaskListener(delegateTask);
return null;
} | <p>{@link ExecutionListener} and {@link TaskListener} implementation delegating to
the {@link ExecutionListener} and {@link TaskListener} provided by a
{@link ProcessApplicationInterface ProcessApplication}.</p>
<p>If the process application does not provide an execution listener (ie.
{@link ProcessApplicationInterfac... | call | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | Apache-2.0 |
protected void performNotification(final DelegateExecution execution, Callable<Void> notification) throws Exception {
final ProcessApplicationReference processApp = ProcessApplicationContextUtil.getTargetProcessApplication((ExecutionEntity) execution);
if (processApp == null) {
// ignore silently
LO... | <p>{@link ExecutionListener} and {@link TaskListener} implementation delegating to
the {@link ExecutionListener} and {@link TaskListener} provided by a
{@link ProcessApplicationInterface ProcessApplication}.</p>
<p>If the process application does not provide an execution listener (ie.
{@link ProcessApplicationInterfac... | performNotification | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | Apache-2.0 |
protected void notifyExecutionListener(DelegateExecution execution) throws Exception {
ProcessApplicationReference processApp = Context.getCurrentProcessApplication();
try {
ProcessApplicationInterface processApplication = processApp.getProcessApplication();
ExecutionListener executionListener = pro... | <p>{@link ExecutionListener} and {@link TaskListener} implementation delegating to
the {@link ExecutionListener} and {@link TaskListener} provided by a
{@link ProcessApplicationInterface ProcessApplication}.</p>
<p>If the process application does not provide an execution listener (ie.
{@link ProcessApplicationInterfac... | notifyExecutionListener | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | Apache-2.0 |
protected void notifyTaskListener(DelegateTask task) throws Exception {
ProcessApplicationReference processApp = Context.getCurrentProcessApplication();
try {
ProcessApplicationInterface processApplication = processApp.getProcessApplication();
TaskListener taskListener = processApplication.getTaskLi... | <p>{@link ExecutionListener} and {@link TaskListener} implementation delegating to
the {@link ExecutionListener} and {@link TaskListener} provided by a
{@link ProcessApplicationInterface ProcessApplication}.</p>
<p>If the process application does not provide an execution listener (ie.
{@link ProcessApplicationInterfac... | notifyTaskListener | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerDelegate.java | Apache-2.0 |
public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
List<BpmnParseListener> preParseListeners = processEngineConfiguration.getCustomPreBPMNParseListeners();
if(preParseListeners == null) {
preParseListeners = new ArrayList<BpmnParseListener>();
processEngineConfiguration... | <p>{@link ProcessEnginePlugin} enabling the process application event listener support.</p>
@author Daniel Meyer | preInit | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerPlugin.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/event/ProcessApplicationEventListenerPlugin.java | Apache-2.0 |
@Override
protected void parseRootElement() {
List<ProcessEngineXml> processEngines = new ArrayList<ProcessEngineXml>();
List<ProcessArchiveXml> processArchives = new ArrayList<ProcessArchiveXml>();
for (Element element : rootElement.elements()) {
if(PROCESS_ENGINE.equals(element.getTagName())) {... | we know this is a <code><process-application ... /></code> structure. | parseRootElement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParse.java | Apache-2.0 |
protected void parseProcessArchive(Element element, List<ProcessArchiveXml> parsedProcessArchives) {
ProcessArchiveXmlImpl processArchive = new ProcessArchiveXmlImpl();
processArchive.setName(element.attribute(NAME));
processArchive.setTenantId(element.attribute(TENANT_ID));
List<String> processResou... | parse a <code><process-archive .../></code> element and add it to the list of parsed elements | parseProcessArchive | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParse.java | Apache-2.0 |
public ProcessesXml getProcessesXml() {
return processesXml;
} | parse a <code><process-archive .../></code> element and add it to the list of parsed elements | getProcessesXml | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParse.java | Apache-2.0 |
@Override
public ProcessesXmlParse sourceUrl(URL url) {
super.sourceUrl(url);
return this;
} | parse a <code><process-archive .../></code> element and add it to the list of parsed elements | sourceUrl | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParse.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParse.java | Apache-2.0 |
@Override
public ProcessesXmlParse createParse() {
ProcessesXmlParse processesXmlParse = new ProcessesXmlParse(this);
processesXmlParse.setSchemaResource(ReflectUtil.getResourceUrlAsString(PROCESS_APPLICATION_XSD));
return processesXmlParse;
} | create an configure the {@link ProcessesXmlParse} object. | createParse | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParser.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/metadata/ProcessesXmlParser.java | Apache-2.0 |
public List<ProcessEngineXml> getProcessEngines() {
return Collections.emptyList();
} | <p>Constant representing the empty processes.xml</p> | getProcessEngines | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/metadata/spi/ProcessesXml.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/metadata/spi/ProcessesXml.java | Apache-2.0 |
public List<ProcessArchiveXml> getProcessArchives() {
List<ProcessArchiveXml> processArchives = new ArrayList<ProcessArchiveXml>();
// add single PA
ProcessArchiveXmlImpl pa = new ProcessArchiveXmlImpl();
processArchives.add(pa);
pa.setProcessResourceNames(Collections.<String>emptyList()... | <p>Constant representing the empty processes.xml</p> | getProcessArchives | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/application/impl/metadata/spi/ProcessesXml.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/application/impl/metadata/spi/ProcessesXml.java | Apache-2.0 |
public RuntimeContainerDelegate get() {
return delegate;
} | Holder of the current {@link RuntimeContainerDelegate} instance. | get | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/container/RuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/RuntimeContainerDelegate.java | Apache-2.0 |
public void set(RuntimeContainerDelegate delegate) {
this.delegate = delegate;
} | Holder of the current {@link RuntimeContainerDelegate} instance. | set | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/container/RuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/container/RuntimeContainerDelegate.java | Apache-2.0 |
@Override
public void registerProcessEngine(ProcessEngine processEngine) {
ensureNotNull("Cannot register process engine in Jmx Runtime Container", "process engine", processEngine);
String processEngineName = processEngine.getName();
// build and start the service.
JmxManagedProcessEngine managedPro... | <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 | registerProcessEngine | 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 |
@Override
public void unregisterProcessEngine(ProcessEngine processEngine) {
ensureNotNull("Cannot unregister process engine in Jmx Runtime Container", "process engine", processEngine);
serviceContainer.stopService(ServiceTypes.PROCESS_ENGINE, processEngine.getName());
} | <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 | unregisterProcessEngine | 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 |
@Override
public void deployProcessApplication(AbstractProcessApplication processApplication) {
ensureNotNull("Process application", processApplication);
final String operationName = "Deployment of Process Application " + processApplication.getName();
serviceContainer.createDeploymentOperation(operation... | <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 | deployProcessApplication | 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 |
@Override
public void undeployProcessApplication(AbstractProcessApplication processApplication) {
ensureNotNull("Process application", processApplication);
final String processAppName = processApplication.getName();
// if the process application is not deployed, ignore the request.
if (serviceContai... | <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 | undeployProcessApplication | 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 |
protected List<DeploymentOperationStep> getDeploymentSteps() {
return Arrays.asList(
new ParseProcessesXmlStep(),
new ProcessesXmlStartProcessEnginesStep(),
new DeployProcessArchivesStep(),
new StartProcessApplicationServiceStep(),
new PostDeployInvocationStep());
} | <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 | getDeploymentSteps | 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 |
protected List<DeploymentOperationStep> getUndeploymentSteps() {
return Arrays.asList(
new PreUndeployInvocationStep(),
new UndeployProcessArchivesStep(),
new ProcessesXmlStopProcessEnginesStep(),
new StopProcessApplicationServiceStep(),
new NotifyPostProcessApplicationUndeployedStep()... | <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 | getUndeploymentSteps | 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 |
@Override
public ProcessEngineService getProcessEngineService() {
return this;
} | <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 | getProcessEngineService | 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 |
@Override
public ProcessApplicationService getProcessApplicationService() {
return this;
} | <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 | getProcessApplicationService | 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 |
@Override
public ExecutorService getExecutorService() {
return serviceContainer.getServiceValue(ServiceTypes.BPM_PLATFORM, SERVICE_NAME_EXECUTOR);
} | <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 | getExecutorService | 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 |
@Override
public ProcessEngine getDefaultProcessEngine() {
return serviceContainer.getServiceValue(ServiceTypes.PROCESS_ENGINE, "default");
} | <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 | getDefaultProcessEngine | 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 |
@Override
public ProcessEngine getProcessEngine(String name) {
return serviceContainer.getServiceValue(ServiceTypes.PROCESS_ENGINE, name);
} | <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 | getProcessEngine | 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 |
@Override
public List<ProcessEngine> getProcessEngines() {
return serviceContainer.getServiceValuesByType(ServiceTypes.PROCESS_ENGINE);
} | <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 | getProcessEngines | 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 |
@Override
public Set<String> getProcessEngineNames() {
Set<String> processEngineNames = new HashSet<String>();
List<ProcessEngine> processEngines = getProcessEngines();
for (ProcessEngine processEngine : processEngines) {
processEngineNames.add(processEngine.getName());
}
return processEngin... | <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 | getProcessEngineNames | 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 |
@Override
public Set<String> getProcessApplicationNames() {
List<JmxManagedProcessApplication> processApplications = serviceContainer.getServiceValuesByType(ServiceTypes.PROCESS_APPLICATION);
Set<String> processApplicationNames = new HashSet<String>();
for (JmxManagedProcessApplication jmxManagedProcessAp... | <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 | getProcessApplicationNames | 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 |
@Override
public ProcessApplicationInfo getProcessApplicationInfo(String processApplicationName) {
JmxManagedProcessApplication processApplicationService = serviceContainer.getServiceValue(ServiceTypes.PROCESS_APPLICATION, processApplicationName);
if (processApplicationService == null) {
return null;
... | <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 | getProcessApplicationInfo | 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 |
@Override
public ProcessApplicationReference getDeployedProcessApplication(String processApplicationName) {
JmxManagedProcessApplication processApplicationService = serviceContainer.getServiceValue(ServiceTypes.PROCESS_APPLICATION, processApplicationName);
if (processApplicationService == null) {
retur... | <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 | getDeployedProcessApplication | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.