Exemplo n.º 1
0
 @Test
 @Ignore
 public void testGetProcessInstances() {
   List<ProcessInstanceRef> userTaskInstances = processManager.getProcessInstances("UserTask");
   List<ProcessInstanceRef> minimalInstances = processManager.getProcessInstances("Minimal");
   assertEquals(2, userTaskInstances.size());
   assertEquals(0, minimalInstances.size());
 }
Exemplo n.º 2
0
 @Test
 @Ignore
 public void testNewProcessInstanceWithVariables() {
   HashMap<String, Object> variables = new HashMap<String, Object>();
   variables.put("key2", "variable2");
   ProcessInstanceRef instanceRef = processManager.newInstance("UserTask", variables);
   assertEquals("UserTask", instanceRef.getDefinitionId());
   assertEquals(3, processManager.getProcessInstances("UserTask").size());
   assertEquals("variable2", processManager.getInstanceData(instanceRef.getId()).get("key2"));
 }
Exemplo n.º 3
0
 @Test
 @Ignore
 public void testNewProcessInstance() {
   assertEquals("UserTask", processManager.newInstance("UserTask").getDefinitionId());
   assertEquals(3, processManager.getProcessInstances("UserTask").size());
 }