Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = unmarshaller.unmarshall(getTestJsonFile("businessRuleTask.json"));
assertTrue(definitions.getRootElements().size() == 1);
GlobalBusinessRuleTask task = (GlobalBusinessRuleTask) definitions.getRootElements().get(0);
assertEquals("call business rule", task.getName());
definitions.eResource().save(System.out, Collections.emptyMap());
}
@Test
public void testManualTaskUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();