use of org.camunda.bpm.model.bpmn.instance.CancelEventDefinition in project camunda-bpmn-model by camunda.
the class CancelEventDefinitionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CancelEventDefinition.class, BPMN_ELEMENT_CANCEL_EVENT_DEFINITION).namespaceUri(BPMN20_NS).extendsType(EventDefinition.class).instanceProvider(new ModelTypeInstanceProvider<CancelEventDefinition>() {
public CancelEventDefinition newInstance(ModelTypeInstanceContext instanceContext) {
return new CancelEventDefinitionImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.bpmn.instance.CancelEventDefinition in project camunda-bpm-platform by camunda.
the class TransactionModels method makeCancelEvent.
protected static void makeCancelEvent(BpmnModelInstance model, String eventId) {
ModelElementInstance element = model.getModelElementById(eventId);
CancelEventDefinition eventDefinition = model.newInstance(CancelEventDefinition.class);
element.addChildElement(eventDefinition);
}
Aggregations