use of org.jbpm.remote.ejb.test.client.EJBClient in project jbpm by kiegroup.
the class RemoteEjbTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
MavenProject kjar = TestKjars.INTEGRATION;
ejb = new EJBClient(kjar.getGav());
if (!ejb.isDeployed(kjar.getGav())) {
deployKjar(kjar);
}
}
use of org.jbpm.remote.ejb.test.client.EJBClient in project jbpm by kiegroup.
the class EGetProcessInstanceTest method getProcessInstancesByDeploymentId.
@Test()
public void getProcessInstancesByDeploymentId() throws NamingException {
EJBClient ejbClient2 = new EJBClient(TestKjars.BPMN_BUILD_TEST.getGav());
startProcess("org.jboss.qa.bpms.HumanTask", new HashMap<>(), 3);
startProcess("org.jboss.qa.bpms.HumanTaskWithOwnType", new HashMap<>(), 5);
ejbClient2.startProcess("bpmnBuildTest.myProcess");
List<Integer> states = new ArrayList<>();
states.add(ProcessInstance.STATE_ACTIVE);
List<ProcessInstanceDesc> foundList = ejb.getProcessInstancesByDeploymentId(TestKjars.INTEGRATION.getGav(), states, new QueryContext());
Assertions.assertThat(foundList).hasSize(8);
for (ProcessInstanceDesc pid : foundList) {
Assertions.assertThat(pid.getProcessName()).isIn("HumanTask", "HumanTaskWithOwnType");
}
}
Aggregations