this.fieldSpecs = new ArrayList<FieldSpec>();
}
public void addListenerToElement(CmmnModelInstance modelInstance, CmmnModelElementInstance modelElement) {
ExtensionElements extensionElements = SpecUtil.createElement(modelInstance, modelElement, null, ExtensionElements.class);
CamundaCaseExecutionListener caseExecutionListener = SpecUtil.createElement(modelInstance, extensionElements, null, CamundaCaseExecutionListener.class);
if (!ANY_EVENT.equals(eventNameToRegisterOn)) {
caseExecutionListener.setCamundaEvent(eventNameToRegisterOn);
}
configureCaseExecutionListener(modelInstance, caseExecutionListener);
for (FieldSpec fieldSpec : fieldSpecs) {