org.camunda.bpm.model.bpmn.instance.IntermediateThrowEvent Java Examples
The following examples show how to use
org.camunda.bpm.model.bpmn.instance.IntermediateThrowEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PathCoverageExecutionListener.java From camunda-bpm-process-test-coverage with Apache License 2.0 | 5 votes |
private void addEventToCoverage(ProcessDefinition processDefinition, FlowNode node) { if (node instanceof IntermediateThrowEvent) { final CoveredFlowNode coveredElement = new CoveredFlowNode(processDefinition.getKey(), node.getId()); // We consider entered throw elements as also ended coveredElement.setEnded(true); coverageTestRunState.addCoveredElement(coveredElement); } }
Example #2
Source File: IntermediateThrowEventImpl.java From camunda-bpmn-model with Apache License 2.0 | 5 votes |
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(IntermediateThrowEvent.class, BPMN_ELEMENT_INTERMEDIATE_THROW_EVENT) .namespaceUri(BpmnModelConstants.BPMN20_NS) .extendsType(ThrowEvent.class) .instanceProvider(new ModelTypeInstanceProvider<IntermediateThrowEvent>() { public IntermediateThrowEvent newInstance(ModelTypeInstanceContext instanceContext) { return new IntermediateThrowEventImpl(instanceContext); } }); typeBuilder.build(); }
Example #3
Source File: AbstractBpmnModelElementBuilder.java From camunda-bpmn-model with Apache License 2.0 | 5 votes |
public AbstractThrowEventBuilder throwEventDefinitionDone() { ModelElementInstance lastEvent = element.getDomElement().getParentElement().getModelElementInstance(); if (lastEvent != null && lastEvent instanceof IntermediateThrowEvent) { return new IntermediateThrowEventBuilder(modelInstance, (IntermediateThrowEvent) lastEvent); } else if (lastEvent != null && lastEvent instanceof EndEvent) { return new EndEventBuilder(modelInstance, (EndEvent) lastEvent); } else { throw new BpmnModelException("Unable to find a parent event."); } }
Example #4
Source File: IntermediateThrowEventImpl.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(IntermediateThrowEvent.class, BPMN_ELEMENT_INTERMEDIATE_THROW_EVENT) .namespaceUri(BpmnModelConstants.BPMN20_NS) .extendsType(ThrowEvent.class) .instanceProvider(new ModelTypeInstanceProvider<IntermediateThrowEvent>() { public IntermediateThrowEvent newInstance(ModelTypeInstanceContext instanceContext) { return new IntermediateThrowEventImpl(instanceContext); } }); typeBuilder.build(); }
Example #5
Source File: AbstractBpmnModelElementBuilder.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public AbstractThrowEventBuilder throwEventDefinitionDone() { ModelElementInstance lastEvent = element.getDomElement().getParentElement().getModelElementInstance(); if (lastEvent != null && lastEvent instanceof IntermediateThrowEvent) { return new IntermediateThrowEventBuilder(modelInstance, (IntermediateThrowEvent) lastEvent); } else if (lastEvent != null && lastEvent instanceof EndEvent) { return new EndEventBuilder(modelInstance, (EndEvent) lastEvent); } else { throw new BpmnModelException("Unable to find a parent event."); } }
Example #6
Source File: IntermediateThrowEventBuilder.java From camunda-bpmn-model with Apache License 2.0 | 4 votes |
public IntermediateThrowEventBuilder(BpmnModelInstance modelInstance, IntermediateThrowEvent element) { super(modelInstance, element, IntermediateThrowEventBuilder.class); }
Example #7
Source File: AbstractIntermediateThrowEventBuilder.java From camunda-bpmn-model with Apache License 2.0 | 4 votes |
protected AbstractIntermediateThrowEventBuilder(BpmnModelInstance modelInstance, IntermediateThrowEvent element, Class<?> selfType) { super(modelInstance, element, selfType); }
Example #8
Source File: IntermediateThrowEventBuilder.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public IntermediateThrowEventBuilder(BpmnModelInstance modelInstance, IntermediateThrowEvent element) { super(modelInstance, element, IntermediateThrowEventBuilder.class); }
Example #9
Source File: AbstractIntermediateThrowEventBuilder.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
protected AbstractIntermediateThrowEventBuilder(BpmnModelInstance modelInstance, IntermediateThrowEvent element, Class<?> selfType) { super(modelInstance, element, selfType); }