use of org.activiti.bpmn.model.BpmnModel in project Activiti by Activiti.
the class MapExceptionConverterTest method testMapExceptionWithNoExceptionClass.
@Test
public void testMapExceptionWithNoExceptionClass() throws Exception {
resourceName = "mapException/mapExceptionNoExceptionClass.bpmn";
BpmnModel bpmnModel = readXMLFile();
FlowElement flowElement = bpmnModel.getMainProcess().getFlowElement("servicetaskWithAndTrueAndChildren");
assertNotNull(flowElement);
assertTrue(flowElement instanceof ServiceTask);
assertEquals("servicetaskWithAndTrueAndChildren", flowElement.getId());
ServiceTask serviceTask = (ServiceTask) flowElement;
assertNotNull(serviceTask.getMapExceptions());
assertEquals(1, serviceTask.getMapExceptions().size());
assertNotNull(serviceTask.getMapExceptions().get(0).getClassName());
assertEquals(0, serviceTask.getMapExceptions().get(0).getClassName().length());
}
use of org.activiti.bpmn.model.BpmnModel in project Activiti by Activiti.
the class TimerDefinitionConverterTest method convertModelToXML.
@Test
public void convertModelToXML() throws Exception {
BpmnModel bpmnModel = readXMLFile();
BpmnModel parsedModel = exportAndReadXMLFile(bpmnModel);
validateModel(parsedModel);
deployProcess(parsedModel);
}
use of org.activiti.bpmn.model.BpmnModel in project Activiti by Activiti.
the class ValuedDataObjectConverterTest method convertModelToXML.
@Test
public void convertModelToXML() throws Exception {
BpmnModel bpmnModel = readXMLFile();
BpmnModel parsedModel = exportAndReadXMLFile(bpmnModel);
validateModel(parsedModel);
deployProcess(parsedModel);
}
use of org.activiti.bpmn.model.BpmnModel in project Activiti by Activiti.
the class ServiceTaskConverterTest method connvertXMLToModel.
@Test
public void connvertXMLToModel() throws Exception {
BpmnModel bpmnModel = readXMLFile();
validateModel(bpmnModel);
}
use of org.activiti.bpmn.model.BpmnModel in project Activiti by Activiti.
the class SimpleConverterTest method convertModelToXML.
@Test
public void convertModelToXML() throws Exception {
BpmnModel bpmnModel = readXMLFile();
BpmnModel parsedModel = exportAndReadXMLFile(bpmnModel);
validateModel(parsedModel);
deployProcess(parsedModel);
}
Aggregations