use of org.camunda.bpm.model.bpmn.instance.EndEvent in project camunda-bpmn-model by camunda.
the class EndEventImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(EndEvent.class, BPMN_ELEMENT_END_EVENT).namespaceUri(BPMN20_NS).extendsType(ThrowEvent.class).instanceProvider(new ModelTypeInstanceProvider<EndEvent>() {
public EndEvent newInstance(ModelTypeInstanceContext instanceContext) {
return new EndEventImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.bpmn.instance.EndEvent in project vertx-zero by silentbalanceyh.
the class KitEvent method endSet.
Future<Set<EndEvent>> endSet(final String definitionId) {
final RepositoryService service = WfPin.camundaRepository();
final BpmnModelInstance instance = service.getBpmnModelInstance(definitionId);
final Collection<EndEvent> starts = instance.getModelElementsByType(EndEvent.class);
return Ux.future(new HashSet<>(starts));
}
use of org.camunda.bpm.model.bpmn.instance.EndEvent in project camunda-bpm-platform by camunda.
the class SelfCancellationTest method initEndEvent.
public static void initEndEvent(BpmnModelInstance modelInstance, String endEventId) {
EndEvent endEvent = modelInstance.getModelElementById(endEventId);
TerminateEventDefinition terminateDefinition = modelInstance.newInstance(TerminateEventDefinition.class);
endEvent.addChildElement(terminateDefinition);
}
use of org.camunda.bpm.model.bpmn.instance.EndEvent in project camunda-bpm-platform by camunda.
the class EndEventImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(EndEvent.class, BPMN_ELEMENT_END_EVENT).namespaceUri(BPMN20_NS).extendsType(ThrowEvent.class).instanceProvider(new ModelTypeInstanceProvider<EndEvent>() {
public EndEvent newInstance(ModelTypeInstanceContext instanceContext) {
return new EndEventImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.bpmn.instance.EndEvent in project camunda-bpm-platform by camunda.
the class HistoricProcessInstanceStateTest method initEndEvent.
protected static void initEndEvent(BpmnModelInstance modelInstance, String endEventId) {
EndEvent endEvent = modelInstance.getModelElementById(endEventId);
TerminateEventDefinition terminateDefinition = modelInstance.newInstance(TerminateEventDefinition.class);
endEvent.addChildElement(terminateDefinition);
}
Aggregations