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
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 inherited from class org.camunda.bpm.application.AbstractProcessApplication
defaultDeployToEngineName, isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Override this method to autodetect an application name in case theProcessApplication
annotation was used but without parameter.<T> T
Since the process engine is loaded by the same classloader as the process application, nothing needs to be done.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 Details
-
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
EmbeddedProcessApplication
public EmbeddedProcessApplication()
-
-
Method Details
-
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
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
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
-