org.camunda.bpm.application.impl
Class EmbeddedProcessApplication

java.lang.Object
  extended by org.camunda.bpm.application.AbstractProcessApplication
      extended by 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
static String DEFAULT_NAME
           
 
Fields inherited from class org.camunda.bpm.application.AbstractProcessApplication
isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers
 
Constructor Summary
EmbeddedProcessApplication()
           
 
Method Summary
protected  String autodetectProcessApplicationName()
          Override this method to autodetect an application name in case the ProcessApplication annotation was used but without parameter.
<T> T
execute(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, getElResolver, getEnvironmentScripts, getExecutionListener, getName, getProcessApplicationClassloader, getProcessApplicationScriptEnvironment, getProperties, getRawObject, getScriptEngineForName, getTaskListener, getVariableSerializers, initProcessApplicationElResolver, setVariableSerializers, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
See Also:
Constant Field Values
Constructor Detail

EmbeddedProcessApplication

public EmbeddedProcessApplication()
Method Detail

autodetectProcessApplicationName

protected String autodetectProcessApplicationName()
Description copied from class: AbstractProcessApplication
Override this method to autodetect an application name in case the ProcessApplication annotation was used but without parameter.

Specified by:
autodetectProcessApplicationName in class AbstractProcessApplication

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(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 interface ProcessApplicationInterface
Overrides:
execute in class AbstractProcessApplication
Parameters:
callable - to be executed "within" the context of this process application.
Returns:
the result of the callback
Throws:
ProcessApplicationExecutionException


Copyright © 2016 camunda services GmbH. All rights reserved.