use of org.camunda.bpm.model.bpmn.instance.camunda.CamundaProperties in project camunda-bpmn-model by camunda.
the class CamundaExtensionsTest method testCamundaModelerProperties.
@Test
public void testCamundaModelerProperties() {
CamundaProperties camundaProperties = endEvent.getExtensionElements().getElementsQuery().filterByType(CamundaProperties.class).singleResult();
assertThat(camundaProperties).isNotNull();
assertThat(camundaProperties.getCamundaProperties()).hasSize(2);
for (CamundaProperty camundaProperty : camundaProperties.getCamundaProperties()) {
assertThat(camundaProperty.getCamundaId()).isNull();
assertThat(camundaProperty.getCamundaName()).startsWith("name");
assertThat(camundaProperty.getCamundaValue()).startsWith("value");
}
}
use of org.camunda.bpm.model.bpmn.instance.camunda.CamundaProperties in project camunda-bpmn-model by camunda.
the class CamundaPropertiesImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CamundaProperties.class, CAMUNDA_ELEMENT_PROPERTIES).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProvider<CamundaProperties>() {
public CamundaProperties newInstance(ModelTypeInstanceContext instanceContext) {
return new CamundaPropertiesImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
camundaPropertyCollection = sequenceBuilder.elementCollection(CamundaProperty.class).build();
typeBuilder.build();
}
Aggregations