Examples of findActiveActivityIds()


Examples of org.activiti.engine.impl.persistence.entity.ExecutionEntity.findActiveActivityIds()

   
    if (execution==null) {
      throw new ActivitiException("execution "+executionId+" doesn't exist");
    }
   
    return execution.findActiveActivityIds();
  }
}
View Full Code Here

Examples of org.activiti.engine.impl.persistence.entity.ExecutionEntity.findActiveActivityIds()

   
    if (execution==null) {
      throw new ActivitiObjectNotFoundException("execution "+executionId+" doesn't exist", Execution.class);
    }
   
    return execution.findActiveActivityIds();
  }
}
View Full Code Here

Examples of org.activiti.engine.impl.pvm.PvmProcessInstance.findActiveActivityIds()

    .buildProcessDefinition();
   
    PvmProcessInstance processInstance = processDefinition.createProcessInstance();
    processInstance.start();
   
    List<String> activeActivityIds = processInstance.findActiveActivityIds();
    List<String> expectedActiveActivityIds = new ArrayList<String>();
    expectedActiveActivityIds.add("c3");
    expectedActiveActivityIds.add("c1");
    expectedActiveActivityIds.add("c2");
   
View Full Code Here

Examples of org.activiti.engine.impl.pvm.PvmProcessInstance.findActiveActivityIds()

    .buildProcessDefinition();
   
    PvmProcessInstance processInstance = processDefinition.createProcessInstance();
    processInstance.start();
   
    List<String> activeActivityIds = processInstance.findActiveActivityIds();
    List<String> expectedActiveActivityIds = new ArrayList<String>();
    expectedActiveActivityIds.add("inside");
    expectedActiveActivityIds.add("inside");
    expectedActiveActivityIds.add("inside");
   
View Full Code Here

Examples of org.activiti.engine.impl.pvm.PvmProcessInstance.findActiveActivityIds()

    assertNotNull(activityInstanceC2);
   
    activityInstanceC1.signal(null, null);
    activityInstanceC2.signal(null, null);
   
    List<String> activityNames = processInstance.findActiveActivityIds();
    List<String> expectedActivityNames = new ArrayList<String>();
    expectedActivityNames.add("end");
   
    assertEquals(expectedActivityNames, activityNames);
  }
View Full Code Here

Examples of org.activiti.engine.impl.pvm.PvmProcessInstance.findActiveActivityIds()

    PvmProcessInstance processInstance = processDefinition.createProcessInstance();
    processInstance.start();
   
    List<String> expectedActiveActivityIds = new ArrayList<String>();
    expectedActiveActivityIds.add("wait");
    assertEquals(expectedActiveActivityIds, processInstance.findActiveActivityIds());
   

    PvmExecution execution = processInstance.findExecution("wait");
    execution.signal(null, null);
   
View Full Code Here

Examples of org.activiti.engine.impl.pvm.PvmProcessInstance.findActiveActivityIds()

    processInstance.start();
   
    List<String> expectedActiveActivityIds = new ArrayList<String>();
    expectedActiveActivityIds.add("end");
     
    assertEquals(expectedActiveActivityIds, processInstance.findActiveActivityIds());
  }

  /**
   *           +----------------------------------------+
   *           | embeddedsubprocess        +----------+ |
View Full Code Here

Examples of org.activiti.engine.impl.pvm.PvmProcessInstance.findActiveActivityIds()

    processInstance.start();
   
    List<String> expectedActiveActivityIds = new ArrayList<String>();
    expectedActiveActivityIds.add("end");
     
    assertEquals(expectedActiveActivityIds, processInstance.findActiveActivityIds());
  }
 
  /**
   *           +------------------------------+
   *           | embedded subprocess          |
View Full Code Here

Examples of org.activiti.engine.impl.pvm.PvmProcessInstance.findActiveActivityIds()

    .buildProcessDefinition();
   
    PvmProcessInstance processInstance = processDefinition.createProcessInstance();
    processInstance.start();
   
    assertEquals(new ArrayList<String>(), processInstance.findActiveActivityIds());
    assertTrue(processInstance.isEnded());
  }

  /**
   * +-----+   +-----+   +-------+
View Full Code Here

Examples of org.activiti.engine.impl.pvm.PvmProcessInstance.findActiveActivityIds()

    .buildProcessDefinition();
   
    PvmProcessInstance processInstance = processDefinition.createProcessInstance();
    processInstance.start();
   
    assertEquals(new ArrayList<String>(), processInstance.findActiveActivityIds());
    assertTrue(processInstance.isEnded());
  }

  /**
   * +-----+   +-----+   +-------+
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.