Search in sources :

Example 26 with SignalEventDefinition

use of org.activiti.bpmn.model.SignalEventDefinition in project Activiti by Activiti.

the class FeedbackStepDefinitionConverter method createSignalThrow.

protected ThrowEvent createSignalThrow(WorkflowDefinitionConversion conversion, Signal signal) {
    ThrowEvent signalThrowEvent = new ThrowEvent();
    signalThrowEvent.setId(conversion.getUniqueNumberedId(ConversionConstants.EVENT_ID_PREFIX));
    SignalEventDefinition signalThrowEventDefinition = new SignalEventDefinition();
    signalThrowEventDefinition.setSignalRef(signal.getId());
    signalThrowEvent.addEventDefinition(signalThrowEventDefinition);
    addFlowElement(conversion, signalThrowEvent);
    return signalThrowEvent;
}
Also used : ThrowEvent(org.activiti.bpmn.model.ThrowEvent) SignalEventDefinition(org.activiti.bpmn.model.SignalEventDefinition)

Aggregations

SignalEventDefinition (org.activiti.bpmn.model.SignalEventDefinition)26 EventDefinition (org.activiti.bpmn.model.EventDefinition)15 MessageEventDefinition (org.activiti.bpmn.model.MessageEventDefinition)14 TimerEventDefinition (org.activiti.bpmn.model.TimerEventDefinition)9 FlowElement (org.activiti.bpmn.model.FlowElement)8 BoundaryEvent (org.activiti.bpmn.model.BoundaryEvent)6 ErrorEventDefinition (org.activiti.bpmn.model.ErrorEventDefinition)4 Event (org.activiti.bpmn.model.Event)4 Signal (org.activiti.bpmn.model.Signal)4 CancelEventDefinition (org.activiti.bpmn.model.CancelEventDefinition)3 CompensateEventDefinition (org.activiti.bpmn.model.CompensateEventDefinition)3 IntermediateCatchEvent (org.activiti.bpmn.model.IntermediateCatchEvent)3 Message (org.activiti.bpmn.model.Message)3 SubProcess (org.activiti.bpmn.model.SubProcess)3 ThrowEvent (org.activiti.bpmn.model.ThrowEvent)3 BpmnModel (org.activiti.bpmn.model.BpmnModel)2 FlowNode (org.activiti.bpmn.model.FlowNode)2 StartEvent (org.activiti.bpmn.model.StartEvent)2 ActivityImpl (org.activiti.engine.impl.pvm.process.ActivityImpl)2 ScopeImpl (org.activiti.engine.impl.pvm.process.ScopeImpl)2