public class SpringProcessApplication extends AbstractProcessApplication implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.BeanNameAware
Process Application implementation to be used in a Spring Application.
This implementation is meant to be bootstrapped by a Spring Application Context. You can either reference the bean in a Spring application-context XML file or use spring annotation-based bootstrapping from a subclass.
HINT: If your application is a Web Application, consider using the
SpringServletProcessApplication
The SpringProcessApplication will use the Bean Name assigned to the bean in the spring
application context (see BeanNameAware
). You should always assign a unique bean name
to a process application bean. That is, the bean name must be unique accross all applications
deployed to the camunda BPM platform.
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected Map<String,String> |
properties |
isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers
Constructor and Description |
---|
SpringProcessApplication() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected String |
autodetectProcessApplicationName()
Override this method to autodetect an application name in case the
ProcessApplication annotation was used but without parameter. |
void |
destroy() |
org.springframework.context.ApplicationContext |
getApplicationContext() |
Map<String,String> |
getProperties()
override this method in order to provide a map of properties.
|
ProcessApplicationReference |
getReference()
Returns a globally sharable reference to this process application.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanName(String name) |
void |
setProperties(Map<String,String> properties) |
createDeployment, deploy, execute, execute, getBeanElResolver, getElResolver, getEnvironmentScripts, getExecutionListener, getName, getProcessApplicationClassloader, getProcessApplicationScriptEnvironment, getRawObject, getScriptEngineForName, getTaskListener, getVariableSerializers, initProcessApplicationElResolver, setVariableSerializers, undeploy
protected org.springframework.context.ApplicationContext applicationContext
protected String autodetectProcessApplicationName()
AbstractProcessApplication
ProcessApplication
annotation was used but without parameter.autodetectProcessApplicationName
in class AbstractProcessApplication
public ProcessApplicationReference getReference()
ProcessApplicationInterface
Returns a globally sharable reference to this process application. This reference may be safely passed to the process engine. And other applications.
getReference
in interface ProcessApplicationInterface
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public Map<String,String> getProperties()
ProcessApplicationInterface
override this method in order to provide a map of properties.
The properties are made available globally through the ProcessApplicationService
getProperties
in interface ProcessApplicationInterface
getProperties
in class AbstractProcessApplication
ProcessApplicationService
,
ProcessApplicationInfo.getProperties()
public org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2018. All rights reserved.