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.jaris 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.StringDEFAULT_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.StringautodetectProcessApplicationName()Override this method to autodetect an application name in case theProcessApplicationannotation was used but without parameter.<T> Texecute(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.ProcessApplicationReferencegetReference()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:AbstractProcessApplicationOverride this method to autodetect an application name in case theProcessApplicationannotation was used but without parameter.- Specified by:
autodetectProcessApplicationNamein classAbstractProcessApplication
-
getReference
public ProcessApplicationReference getReference()
Description copied from interface:ProcessApplicationInterfaceReturns 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 ProcessApplicationExecutionExceptionSince the process engine is loaded by the same classloader as the process application, nothing needs to be done.- Specified by:
executein interfaceProcessApplicationInterface- Overrides:
executein classAbstractProcessApplication- Parameters:
callable- to be executed "within" the context of this process application.- Returns:
- the result of the callback
- Throws:
ProcessApplicationExecutionException
-
-