org.camunda.bpm.engine.spring.components.scope
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROCESS_SCOPE_PROCESS_VARIABLES_SINGLETON
public static final 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 String PROCESS_SCOPE_NAME
- See Also:
- Constant Field Values
ProcessScope
public ProcessScope()
setProcessEngine
public void setProcessEngine(ProcessEngine processEngine)
get
public Object get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory)
- Specified by:
get in interface org.springframework.beans.factory.config.Scope
registerDestructionCallback
public void registerDestructionCallback(String name,
Runnable callback)
- Specified by:
registerDestructionCallback in interface org.springframework.beans.factory.config.Scope
remove
public Object remove(String name)
- Specified by:
remove in interface org.springframework.beans.factory.config.Scope
resolveContextualObject
public Object resolveContextualObject(String key)
- Specified by:
resolveContextualObject in interface org.springframework.beans.factory.config.Scope
getConversationId
public String getConversationId()
- Specified by:
getConversationId in interface org.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 interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
- Throws:
org.springframework.beans.BeansException
destroy
public void destroy()
throws Exception
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2017 camunda services GmbH. All rights reserved.