Hi,
JacksonXmlModule xmlModule = new JacksonXmlModule();
xmlModule.setDefaultUseWrapper(false);
ObjectMapper objectMapper = new XmlMapper(xmlModule);
objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
pojo = objectMapper.readValue(getXmlString(), definitions.class);
Example objects
@NoArgsConstructor
@AllArgsConstructor
@Data
public final class process
{
public String id;
public startEvent startEvent;
public List<exclusiveGateway> exclusiveGateway;
public List<sequenceFlow> sequenceFlow;
public List<userTask> userTask;
public endEvent endEvent;
public boolean isExecutable;
}
I was able to parse the xml file, but There is only one element in the sequenceFlow, exclusiveGateway list. Has anyone parsed the xml that bpmn.io generates?`