public class SpringProcessApplication extends AbstractProcessApplication implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
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 String |
beanName |
protected Map<String,String> |
properties |
defaultDeployToEngineName, isDeployed, processApplicationBeanElResolver, processApplicationElResolver, processApplicationScriptEnvironment, variableSerializers| Constructor and Description |
|---|
SpringProcessApplication() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected String |
autodetectProcessApplicationName() |
void |
destroy() |
org.springframework.context.ApplicationContext |
getApplicationContext() |
Map<String,String> |
getProperties() |
ProcessApplicationReference |
getReference() |
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanName(String name) |
void |
setProperties(Map<String,String> properties) |
void |
start() |
void |
stop() |
createDeployment, deploy, execute, execute, getBeanElResolver, getDefaultDeployToEngineName, getElResolver, getEnvironmentScripts, getExecutionListener, getName, getProcessApplicationClassloader, getProcessApplicationScriptEnvironment, getRawObject, getScriptEngineForName, getTaskListener, getVariableSerializers, initProcessApplicationElResolver, setDefaultDeployToEngineName, setVariableSerializers, undeployprotected org.springframework.context.ApplicationContext applicationContext
protected String beanName
protected String autodetectProcessApplicationName()
autodetectProcessApplicationName in class AbstractProcessApplicationpublic ProcessApplicationReference getReference()
getReference in interface ProcessApplicationInterfacepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic Map<String,String> getProperties()
getProperties in interface ProcessApplicationInterfacegetProperties in class AbstractProcessApplicationpublic org.springframework.context.ApplicationContext getApplicationContext()
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>public void start()
public void stop()
Copyright © 2013–2020 camunda services GmbH. All rights reserved.