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).AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
activityInstanceId
LOG
bpmnActivityBehavior
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) |
performExecution
postExecution, preExecution
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signalCompensationDone
leave, leaveIgnoreConditions
public void setProcessEngine(ProcessEngine processEngine)
public void execute(ActivityExecution execution) throws Exception
FlowNodeActivityBehavior
execute
in interface CoreActivityBehavior<ActivityExecution>
execute
in interface ActivityBehavior
execute
in class TaskActivityBehavior
Exception
public void signal(ActivityExecution execution, String signalName, Object data) throws Exception
signal
in interface SignallableActivityBehavior
signal
in class ReceiveTaskActivityBehavior
Exception
public void registerActivitiStateHandler(ActivitiStateHandlerRegistration registration)
registration
- the org.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistration
public Collection<ActivitiStateHandlerRegistration> findRegistrationsForProcessAndState(String processName, String stateName)
org.camunda.bpm.engine.test.spring.components.registry.ActivitiStateHandlerRegistration
processName
- 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.BeanFactoryAware
org.springframework.beans.BeansException
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
Copyright © 2018. All rights reserved.