Package org.camunda.bpm.application.impl
Class EmbeddedProcessApplication
- java.lang.Object
-
- org.camunda.bpm.application.AbstractProcessApplication
-
- org.camunda.bpm.application.impl.EmbeddedProcessApplication
-
- All Implemented Interfaces:
ProcessApplicationInterface
public class EmbeddedProcessApplication extends AbstractProcessApplication
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
camunda-engine.jar
is deployed as a web application library (in case of WAR deployments) or as an application library (in case of EAR deployments).- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_NAME
-
Fields inherited from class org.camunda.bpm.application.AbstractProcessApplication
defaultDeployToEngineName, isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers
-
-
Constructor Summary
Constructors Constructor Description EmbeddedProcessApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
autodetectProcessApplicationName()
Override this method to autodetect an application name in case theProcessApplication
annotation was used but without parameter.<T> T
execute(java.util.concurrent.Callable<T> callable)
Since the process engine is loaded by the same classloader as the process application, nothing needs to be done.ProcessApplicationReference
getReference()
Returns a globally sharable reference to this process application.-
Methods inherited from class org.camunda.bpm.application.AbstractProcessApplication
createDeployment, deploy, execute, getBeanElResolver, getDefaultDeployToEngineName, getElResolver, getEnvironmentScripts, getExecutionListener, getName, getProcessApplicationClassloader, getProcessApplicationScriptEnvironment, getProperties, getRawObject, getScriptEngineForName, getTaskListener, getVariableSerializers, initProcessApplicationElResolver, setDefaultDeployToEngineName, setVariableSerializers, undeploy
-
-
-
-
Field Detail
-
DEFAULT_NAME
public static final java.lang.String DEFAULT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
autodetectProcessApplicationName
protected java.lang.String autodetectProcessApplicationName()
Description copied from class:AbstractProcessApplication
Override this method to autodetect an application name in case theProcessApplication
annotation was used but without parameter.- Specified by:
autodetectProcessApplicationName
in classAbstractProcessApplication
-
getReference
public ProcessApplicationReference getReference()
Description copied from interface:ProcessApplicationInterface
Returns a globally sharable reference to this process application. This reference may be safely passed to the process engine. And other applications.
- Returns:
- a globally sharable reference to this process application.
-
execute
public <T> T execute(java.util.concurrent.Callable<T> callable) throws ProcessApplicationExecutionException
Since the process engine is loaded by the same classloader as the process application, nothing needs to be done.- Specified by:
execute
in interfaceProcessApplicationInterface
- Overrides:
execute
in classAbstractProcessApplication
- Parameters:
callable
- to be executed "within" the context of this process application.- Returns:
- the result of the callback
- Throws:
ProcessApplicationExecutionException
-
-