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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) voidregisterDestructionCallback(String name, Runnable callback) voidsetProcessEngine(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:
getin interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-