Class ProcessScope
- java.lang.Object
-
- org.camunda.bpm.engine.spring.components.scope.ProcessScope
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
,org.springframework.beans.factory.config.Scope
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class ProcessScope extends java.lang.Object implements org.springframework.beans.factory.config.Scope, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.beans.factory.DisposableBean
binds variables to a currently executing Activiti business process (aProcessInstance
). Parts of this code are lifted wholesale from Dave Syer's work on the Spring 3.1 RefreshScope.- Since:
- 5.3
- Author:
- Josh Long
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROCESS_SCOPE_NAME
static java.lang.String
PROCESS_SCOPE_PROCESS_VARIABLES_SINGLETON
Map of the processVariables.
-
Constructor Summary
Constructors Constructor Description ProcessScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
java.lang.Object
get(java.lang.String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
java.lang.String
getConversationId()
void
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
void
registerDestructionCallback(java.lang.String name, java.lang.Runnable callback)
java.lang.Object
remove(java.lang.String name)
java.lang.Object
resolveContextualObject(java.lang.String key)
void
setProcessEngine(ProcessEngine processEngine)
-
-
-
Field Detail
-
PROCESS_SCOPE_PROCESS_VARIABLES_SINGLETON
public static final java.lang.String PROCESS_SCOPE_PROCESS_VARIABLES_SINGLETON
Map of the processVariables. Supports correct, scoped access to process variables so that- See Also:
- Constant Field Values
-
PROCESS_SCOPE_NAME
public static final java.lang.String PROCESS_SCOPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setProcessEngine
public void setProcessEngine(ProcessEngine processEngine)
-
get
public java.lang.Object get(java.lang.String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
- Specified by:
get
in interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
public void registerDestructionCallback(java.lang.String name, java.lang.Runnable callback)
- Specified by:
registerDestructionCallback
in interfaceorg.springframework.beans.factory.config.Scope
-
remove
public java.lang.Object remove(java.lang.String name)
- Specified by:
remove
in interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
public java.lang.Object resolveContextualObject(java.lang.String key)
- Specified by:
resolveContextualObject
in interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
public java.lang.String getConversationId()
- Specified by:
getConversationId
in interfaceorg.springframework.beans.factory.config.Scope
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
- Specified by:
postProcessBeanFactory
in interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor
- Throws:
org.springframework.beans.BeansException
-
destroy
public void destroy() throws java.lang.Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
-