Examples of completeTask()


Examples of net.sourceforge.align.progress.ProgressMeter.completeTask()

      int y = forwardIterator.getY();
      float data = createForwardData(x, y, sourceSegmentList,
          targetSegmentList, forwardMatrix);
      forwardMatrix.set(x, y, data);

      progress.completeTask();
    }
   
    Matrix<Float> backwardMatrix = matrixFactory.createMatrix(
        sourceSegmentList.size() + 1, targetSegmentList.size() + 1);
    MatrixIterator<Float> backwardIterator = backwardMatrix.getIterator();
View Full Code Here

Examples of net.sourceforge.align.progress.ProgressMeter.completeTask()

      int y = backwardIterator.getY();
      float data = createBackwardData(x, y, sourceSegmentList,
          targetSegmentList, backwardMatrix);
      backwardMatrix.set(x, y, data);
     
      progress.completeTask();
    }

    List<Alignment> alignmentList = new ArrayList<Alignment>();
   
    float totalScore = forwardMatrix.get(sourceSegmentList.size(),
View Full Code Here

Examples of net.sourceforge.align.progress.ProgressMeter.completeTask()

      int y = iterator.getY();
      ViterbiData data = createData(x, y,  sourceSegmentList,
          targetSegmentList, matrix);
      matrix.set(x, y, data);
     
      progress.completeTask();
    }
   
    List<Alignment> alignmentList = backtrace(sourceSegmentList,
        targetSegmentList, matrix);
   
View Full Code Here

Examples of org.activiti.cdi.BusinessProcess.completeTask()

    businessProcess.setVariable("key", value);
    assertEquals(value, businessProcess.getVariable("key"));

    // complete the task
    assertEquals(task.getId(), businessProcess.startTask(task.getId()).getId());
    businessProcess.completeTask();

    // assert the task is completed
    assertNull(processEngine.getTaskService().createTaskQuery().singleResult());

    // assert that the process is ended:
View Full Code Here

Examples of org.activiti.cdi.BusinessProcess.completeTask()

    businessProcess.setVariable("key", value);
    assertEquals(value, businessProcess.getVariable("key"));

    // complete the task
    assertEquals(task.getId(), businessProcess.startTask(task.getId()).getId());
    businessProcess.completeTask();

    // assert the task is completed
    assertNull(processEngine.getTaskService().createTaskQuery().singleResult());

    // assert that the process is ended:
View Full Code Here

Examples of org.activiti.cdi.BusinessProcess.completeTask()

    assertNotNull(runtimeService.createProcessInstanceQuery().singleResult());

    assertEquals("Activiti", businessProcess.getVariable("name"));
   
    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId());
    businessProcess.completeTask();
  }

  @Test
  @Deployment(resources = "org/activiti/cdi/test/api/annotation/StartProcessTest.bpmn20.xml")
  public void testStartProcessByName() {
View Full Code Here

Examples of org.activiti.cdi.BusinessProcess.completeTask()

    assertNotNull(runtimeService.createProcessInstanceQuery().singleResult());

    assertEquals("Activiti", businessProcess.getVariable("name"));

    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId())
    businessProcess.completeTask();
  }

}
View Full Code Here

Examples of org.activiti.cdi.BusinessProcess.completeTask()

    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId());  
   
    // assert that now the 'taskId'-bean can be looked up
    assertNotNull(getBeanInstance("taskId"));
   
    businessProcess.completeTask();
  }
 
}
View Full Code Here

Examples of org.activiti.cdi.BusinessProcess.completeTask()

    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId());
   
    InjectProcessVariable injectProcessVariables = getBeanInstance(InjectProcessVariable.class);
    assertEquals("testValue", injectProcessVariables.testKeyString);

    businessProcess.completeTask();
  }

}
View Full Code Here

Examples of org.camunda.bpm.engine.cdi.BusinessProcess.completeTask()

    assertNotNull(runtimeService.createProcessInstanceQuery().singleResult());

    assertEquals("Activiti", businessProcess.getVariable("name"));
   
    businessProcess.startTask(taskService.createTaskQuery().singleResult().getId());
    businessProcess.completeTask();
  }


}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.