Search in sources :

Example 16 with WorkItemRepository

use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.

the class EthereumWorkitemIntegrationTest method testWorkitemValidity.

@Test
public void testWorkitemValidity() {
    String repoPath = "file://" + System.getProperty("builddir") + "/" + System.getProperty("artifactId") + "-" + System.getProperty("version") + "/repository";
    Map<String, WorkDefinitionImpl> repoResults = new WorkItemRepository().getWorkDefinitions(repoPath, null, System.getProperty("artifactId"));
    assertNotNull(repoResults);
    assertEquals(6, repoResults.size());
    assertTrue(repoResults.containsKey("EthereumGetBalance"));
    assertTrue(repoResults.containsKey("EthereumSendEther"));
    assertTrue(repoResults.containsKey("EthereumQueryExistingContract"));
    assertTrue(repoResults.containsKey("EthereumTransactExistingContract"));
    assertTrue(repoResults.containsKey("EthereumDeployContract"));
    assertTrue(repoResults.containsKey("EthereumObserveContractEvent"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 17 with WorkItemRepository

use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.

the class ExecWorkitemIntegrationTest method testWorkitemValidity.

@Test
public void testWorkitemValidity() {
    String repoPath = "file://" + System.getProperty("builddir") + "/" + System.getProperty("artifactId") + "-" + System.getProperty("version") + "/repository";
    Map<String, WorkDefinitionImpl> repoResults = new WorkItemRepository().getWorkDefinitions(repoPath, null, System.getProperty("artifactId"));
    assertNotNull(repoResults);
    assertEquals(1, repoResults.size());
    assertTrue(repoResults.containsKey("Exec"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 18 with WorkItemRepository

use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.

the class ArchiveWorkitemIntegrationTest method testWorkitemValidity.

@Test
public void testWorkitemValidity() {
    String repoPath = "file://" + System.getProperty("builddir") + "/" + System.getProperty("artifactId") + "-" + System.getProperty("version") + "/repository";
    System.out.println(System.getProperty("builddir"));
    System.out.println(System.getProperty("artifactId"));
    System.out.println(System.getProperty("version"));
    Map<String, WorkDefinitionImpl> repoResults = new WorkItemRepository().getWorkDefinitions(repoPath, null, System.getProperty("artifactId"));
    assertNotNull(repoResults);
    assertEquals(1, repoResults.size());
    assertTrue(repoResults.containsKey("Archive"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 19 with WorkItemRepository

use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.

the class DropboxWorkitemIntegrationTest method testWorkitemValidity.

@Test
public void testWorkitemValidity() {
    String repoPath = "file://" + System.getProperty("builddir") + "/" + System.getProperty("artifactId") + "-" + System.getProperty("version") + "/repository";
    Map<String, WorkDefinitionImpl> repoResults = new WorkItemRepository().getWorkDefinitions(repoPath, null, System.getProperty("artifactId"));
    assertNotNull(repoResults);
    assertEquals(2, repoResults.size());
    assertTrue(repoResults.containsKey("DropboxDownloadFile"));
    assertTrue(repoResults.containsKey("DropboxUploadFile"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 20 with WorkItemRepository

use of org.jbpm.process.workitem.WorkItemRepository in project jbpm-work-items by kiegroup.

the class FTPUploadWorkitemIntegrationTest method testWorkitemValidity.

@Test
public void testWorkitemValidity() {
    String repoPath = "file://" + System.getProperty("builddir") + "/" + System.getProperty("artifactId") + "-" + System.getProperty("version") + "/repository";
    Map<String, WorkDefinitionImpl> repoResults = new WorkItemRepository().getWorkDefinitions(repoPath, null, System.getProperty("artifactId"));
    assertNotNull(repoResults);
    assertEquals(1, repoResults.size());
    assertTrue(repoResults.containsKey("FTP"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Aggregations

WorkDefinitionImpl (org.jbpm.process.workitem.WorkDefinitionImpl)21 WorkItemRepository (org.jbpm.process.workitem.WorkItemRepository)21 Test (org.junit.Test)21