Class ActivitiStateHandlerRegistry
java.lang.Object
org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.ReceiveTaskActivityBehavior
org.camunda.bpm.engine.spring.components.registry.ActivitiStateHandlerRegistry
- All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>,ActivityBehavior,SignallableActivityBehavior,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class ActivitiStateHandlerRegistry
extends ReceiveTaskActivityBehavior
implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, ActivityBehavior, org.springframework.beans.factory.InitializingBean
this class records and manages all known
org.camunda.bpm.engine.annotations.State - responding
beans in the JVM. It should have metadata on all methods, and what
those methods expect from a given invocation (ie: which process, which process variables).- Since:
- 1.0
- Author:
- Josh Long
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior
activityInstanceIdFields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
LOGFields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidexecute(ActivityExecution execution) Default behaviour: just leave the activity with no extra functionality.findRegistrationForProcessAndState(String processName, String stateName) this scours the registry looking for candidate registrations that match a given process name and/ or state nanmefindRegistrationsForProcessAndState(String processName, String stateName) this is responsible for looking up components in the registry and returning the appropriate handler based on specificity of theorg.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistrationvoidregisterActivitiStateHandler(ActivitiStateHandlerRegistration registration) used at runtime to register state handlers as they are registered with the spring contextprotected StringregistrationKey(String stateName, String processName) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetBeanName(String name) voidsetProcessEngine(ProcessEngine processEngine) voidsignal(ActivityExecution execution, String signalName, Object data) Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.ReceiveTaskActivityBehavior
performExecutionMethods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior
postExecution, preExecutionMethods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, signalCompensationDoneMethods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
-
Constructor Details
-
ActivitiStateHandlerRegistry
public ActivitiStateHandlerRegistry()
-
-
Method Details
-
setProcessEngine
-
execute
Description copied from class:FlowNodeActivityBehaviorDefault behaviour: just leave the activity with no extra functionality.- Specified by:
executein interfaceActivityBehavior- Specified by:
executein interfaceCoreActivityBehavior<ActivityExecution>- Overrides:
executein classTaskActivityBehavior- Throws:
Exception
-
signal
- Specified by:
signalin interfaceSignallableActivityBehavior- Overrides:
signalin classReceiveTaskActivityBehavior- Throws:
Exception
-
registrationKey
-
registerActivitiStateHandler
used at runtime to register state handlers as they are registered with the spring context- Parameters:
registration- theorg.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistration
-
findRegistrationsForProcessAndState
public Collection<ActivitiStateHandlerRegistration> findRegistrationsForProcessAndState(String processName, String stateName) this is responsible for looking up components in the registry and returning the appropriate handler based on specificity of theorg.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistration- Parameters:
processName- the process name to look for (optional)stateName- the state name to look for (not optional)- Returns:
- all matching options
-
findRegistrationForProcessAndState
public ActivitiStateHandlerRegistration findRegistrationForProcessAndState(String processName, String stateName) this scours the registry looking for candidate registrations that match a given process name and/ or state nanme- Parameters:
processName- the name of the processstateName- the name of the state- Returns:
- an unambiguous
org.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistryor null
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-