Esempio n. 1
0
  @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 Collection<TaskDefSummary> getAllTasksDef(String processId) {
   return TaskDefHelper.adaptCollection(bpmn2Service.getAllTasksDef(processId));
 }