Search in sources :

Example 1 with ThrowMessageDelegate

use of org.activiti.engine.impl.delegate.ThrowMessageDelegate in project Activiti by Activiti.

the class DefaultActivityBehaviorFactory method createThrowMessageEndEventActivityBehavior.

@Override
public ThrowMessageEndEventActivityBehavior createThrowMessageEndEventActivityBehavior(EndEvent endEvent, MessageEventDefinition messageEventDefinition, Message message) {
    ThrowMessageDelegate throwMessageDelegate = createThrowMessageDelegate(messageEventDefinition);
    MessageExecutionContext messageExecutionContext = createMessageExecutionContext(endEvent, messageEventDefinition);
    return new ThrowMessageEndEventActivityBehavior(endEvent, messageEventDefinition, throwMessageDelegate, messageExecutionContext);
}
Also used : ThrowMessageEndEventActivityBehavior(org.activiti.engine.impl.bpmn.behavior.ThrowMessageEndEventActivityBehavior) ThrowMessageDelegate(org.activiti.engine.impl.delegate.ThrowMessageDelegate)

Example 2 with ThrowMessageDelegate

use of org.activiti.engine.impl.delegate.ThrowMessageDelegate in project Activiti by Activiti.

the class DefaultActivityBehaviorFactory method createThrowMessageEventActivityBehavior.

@Override
public IntermediateThrowMessageEventActivityBehavior createThrowMessageEventActivityBehavior(ThrowEvent throwEvent, MessageEventDefinition messageEventDefinition, Message message) {
    ThrowMessageDelegate throwMessageDelegate = createThrowMessageDelegate(messageEventDefinition);
    MessageExecutionContext messageExecutionContext = createMessageExecutionContext(throwEvent, messageEventDefinition);
    return new IntermediateThrowMessageEventActivityBehavior(throwEvent, messageEventDefinition, throwMessageDelegate, messageExecutionContext);
}
Also used : IntermediateThrowMessageEventActivityBehavior(org.activiti.engine.impl.bpmn.behavior.IntermediateThrowMessageEventActivityBehavior) ThrowMessageDelegate(org.activiti.engine.impl.delegate.ThrowMessageDelegate)

Aggregations

ThrowMessageDelegate (org.activiti.engine.impl.delegate.ThrowMessageDelegate)2 IntermediateThrowMessageEventActivityBehavior (org.activiti.engine.impl.bpmn.behavior.IntermediateThrowMessageEventActivityBehavior)1 ThrowMessageEndEventActivityBehavior (org.activiti.engine.impl.bpmn.behavior.ThrowMessageEndEventActivityBehavior)1