@Test public void testFindReusableSubProcesses() { knolwedgeService.createDomain(); String theString = "ParentProcess"; assertNotNull(theString); Collection<String> reusableProcesses = bpmn2Service.getReusableSubProcesses(theString); assertNotNull(reusableProcesses); assertEquals(1, reusableProcesses.size()); assertEquals("signal", reusableProcesses.iterator().next()); }
@Test public void hello() throws IOException { knolwedgeService.createDomain(); String theString = "org.jbpm.writedocument"; Collection<TaskDef> processTasks = bpmn2Service.getAllTasksDef(theString); assertEquals(3, processTasks.size()); Map<String, String> processData = bpmn2Service.getProcessData(theString); assertEquals(3, processData.keySet().size()); Map<String, String> taskInputMappings = bpmn2Service.getTaskInputMappings(theString, "Write a Document"); assertEquals(3, taskInputMappings.keySet().size()); Map<String, String> taskOutputMappings = bpmn2Service.getTaskOutputMappings(theString, "Write a Document"); assertEquals(1, taskOutputMappings.keySet().size()); }
public void createDomain() { domainService.createDomain(); }