public Collection<VariableSummary> getVariablesCurrentState(
     long processInstanceId, String processId) {
   Map<String, String> properties =
       new HashMap<String, String>(bpmn2Service.getProcessData(processId));
   return VariableHelper.adaptCollection(
       dataService.getVariablesCurrentState(processInstanceId), properties, processInstanceId);
 }
Пример #2
0
  @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());
  }
Пример #3
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());
  }
  @Override
  public Collection<String> getReusableSubProcesses(String processId) {

    return bpmn2Service.getReusableSubProcesses(processId);
  }
 public Map<String, String> getTaskOutputMappings(String processId, String taskName) {
   return bpmn2Service.getTaskOutputMappings(processId, taskName);
 }
 public ProcessSummary getProcessDesc(String processId) {
   return ProcessHelper.adapt(bpmn2Service.getProcessDesc(processId));
 }
 public Map<String, String> getAssociatedEntities(String processId) {
   return bpmn2Service.getAssociatedEntities(processId);
 }
 public Collection<TaskDefSummary> getAllTasksDef(String processId) {
   return TaskDefHelper.adaptCollection(bpmn2Service.getAllTasksDef(processId));
 }
 public List<String> getAssociatedForms(String processId) {
   return bpmn2Service.getAssociatedForms(processId);
 }
 public Map<String, String> getRequiredInputData(String processId) {
   return bpmn2Service.getProcessData(processId);
 }
 public List<String> getAssociatedDomainObjects(String processId) {
   return bpmn2Service.getAssociatedDomainObjects(processId);
 }