Search in sources :

Example 11 with Event

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

the class AbstractConverterTest method extractEventDefinition.

protected EventDefinition extractEventDefinition(FlowElement flowElement) {
    assertNotNull(flowElement);
    assertTrue(flowElement instanceof Event);
    Event event = (Event) flowElement;
    assertFalse(event.getEventDefinitions().isEmpty());
    return event.getEventDefinitions().get(0);
}
Also used : Event(org.activiti.bpmn.model.Event)

Aggregations

Event (org.activiti.bpmn.model.Event)11 FlowElement (org.activiti.bpmn.model.FlowElement)4 BoundaryEvent (org.activiti.bpmn.model.BoundaryEvent)3 MessageEventDefinition (org.activiti.bpmn.model.MessageEventDefinition)3 SequenceFlow (org.activiti.bpmn.model.SequenceFlow)3 SignalEventDefinition (org.activiti.bpmn.model.SignalEventDefinition)3 EventDefinition (org.activiti.bpmn.model.EventDefinition)2 Gateway (org.activiti.bpmn.model.Gateway)2 Message (org.activiti.bpmn.model.Message)2 Signal (org.activiti.bpmn.model.Signal)2 SubProcess (org.activiti.bpmn.model.SubProcess)2 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 com.mxgraph.view.mxGraph (com.mxgraph.view.mxGraph)1 ArrayList (java.util.ArrayList)1 Activity (org.activiti.bpmn.model.Activity)1 Artifact (org.activiti.bpmn.model.Artifact)1 Association (org.activiti.bpmn.model.Association)1 CallActivity (org.activiti.bpmn.model.CallActivity)1 CancelEventDefinition (org.activiti.bpmn.model.CancelEventDefinition)1 CompensateEventDefinition (org.activiti.bpmn.model.CompensateEventDefinition)1