use of org.camunda.bpm.model.cmmn.instance.UserEvent in project camunda-cmmn-model by camunda.
the class UserEventImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(UserEvent.class, CMMN_ELEMENT_USER_EVENT).namespaceUri(CMMN10_NS).extendsType(Event.class).instanceProvider(new ModelTypeInstanceProvider<UserEvent>() {
public UserEvent newInstance(ModelTypeInstanceContext instanceContext) {
return new UserEventImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.cmmn.instance.UserEvent in project camunda-cmmn-model by camunda.
the class Cmmn10Test method shouldGetEvents.
@Test
public void shouldGetEvents() {
CmmnModelInstance modelInstance = getCmmnModelInstance();
Event event = modelInstance.getModelElementsByType(Event.class).iterator().next();
assertThat(event).isNotNull();
UserEvent userEvent = modelInstance.getModelElementsByType(UserEvent.class).iterator().next();
assertThat(userEvent).isNotNull();
TimerEvent timerEvent = modelInstance.getModelElementsByType(TimerEvent.class).iterator().next();
assertThat(timerEvent).isNotNull();
}
Aggregations