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 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 (a
ProcessInstance
).
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
void
postProcessBeanFactory
(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) void
registerDestructionCallback
(String name, Runnable callback) void
setProcessEngine
(ProcessEngine processEngine)
-
Field Details
-
PROCESS_SCOPE_PROCESS_VARIABLES_SINGLETON
Map of the processVariables. Supports correct, scoped access to process variables so that- See Also:
-
PROCESS_SCOPE_NAME
- See Also:
-
-
Constructor Details
-
ProcessScope
public ProcessScope()
-
-
Method Details
-
setProcessEngine
-
get
- Specified by:
get
in interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallback
in interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
remove
in interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObject
in interfaceorg.springframework.beans.factory.config.Scope
-
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
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-