public class ActivitiStateHandlerRegistry extends ReceiveTaskActivityBehavior implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, ActivityBehavior, org.springframework.beans.factory.InitializingBean
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).multiInstanceActivityBehaviorbpmnActivityBehavior| Constructor and Description |
|---|
ActivitiStateHandlerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
execute(ActivityExecution execution)
Default behaviour: just leave the activity with no extra functionality.
|
ActivitiStateHandlerRegistration |
findRegistrationForProcessAndState(String processName,
String stateName)
this scours the registry looking for candidate registrations that match a given process name and/ or state nanme
|
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 the
org.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistration |
void |
registerActivitiStateHandler(ActivitiStateHandlerRegistration registration)
used at runtime to register state handlers as they are registered with the spring context
|
protected String |
registrationKey(String stateName,
String processName) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBeanName(String name) |
void |
setProcessEngine(ProcessEngine processEngine) |
void |
signal(ActivityExecution execution,
String signalName,
Object data) |
createCompensateEventSubscription, getMultiInstanceActivityBehavior, hasCompensationHandler, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior, signalCompensationDoneleaveIgnoreConditionspublic void setProcessEngine(ProcessEngine processEngine)
public void execute(ActivityExecution execution) throws Exception
FlowNodeActivityBehaviorexecute in interface ActivityBehaviorexecute in class ReceiveTaskActivityBehaviorExceptionpublic void signal(ActivityExecution execution, String signalName, Object data) throws Exception
signal in interface SignallableActivityBehaviorsignal in class ReceiveTaskActivityBehaviorExceptionpublic void registerActivitiStateHandler(ActivitiStateHandlerRegistration registration)
registration - the org.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistrationpublic Collection<ActivitiStateHandlerRegistration> findRegistrationsForProcessAndState(String processName, String stateName)
org.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistrationprocessName - the process name to look for (optional)stateName - the state name to look for (not optional)public ActivitiStateHandlerRegistration findRegistrationForProcessAndState(String processName, String stateName)
processName - the name of the processstateName - the name of the stateorg.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistry or nullpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwareCopyright © 2015. All rights reserved.