Search in sources :

Example 16 with WorkDefinitionImpl

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

the class WatsonWorkitemIntegrationTest 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("IBMWatsonClassifyImage"));
    assertTrue(repoResults.containsKey("IBMWatsonDetectFaces"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 17 with WorkDefinitionImpl

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

the class IFTTTWorkitemIntegrationTest 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("IFTTTCall"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 18 with WorkDefinitionImpl

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

the class GoogleSheetsWorkitemIntegrationTest 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("GoogleReadSheetValues"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 19 with WorkDefinitionImpl

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

the class HostedRepositoryIntegrationTest method testRepositoryValidity.

@Test
public void testRepositoryValidity() throws Exception {
    URI uri = toServerURI(connector);
    Map<String, WorkDefinitionImpl> repoResults = WorkItemRepository.getWorkDefinitions(uri.toString());
    assertNotNull(repoResults);
    // update this when new workitems are added
    assertEquals(41, repoResults.size());
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) URI(java.net.URI) Test(org.junit.Test)

Example 20 with WorkDefinitionImpl

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

the class RSSWorkitemIntegrationTest 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("RSS"));
}
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)27 Test (org.junit.Test)23 WorkItemRepository (org.jbpm.process.workitem.WorkItemRepository)21 HashMap (java.util.HashMap)4 Map (java.util.Map)4 WorkDefinition (org.jbpm.process.core.WorkDefinition)3 HashSet (java.util.HashSet)2 List (java.util.List)2 URI (java.net.URI)1 ArrayList (java.util.ArrayList)1 Matcher (java.util.regex.Matcher)1 PortableWorkDefinition (org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition)1 ParameterDefinition (org.jbpm.process.core.ParameterDefinition)1 DataType (org.jbpm.process.core.datatype.DataType)1 ParameterDefinitionImpl (org.jbpm.process.core.impl.ParameterDefinitionImpl)1 ParserContext (org.mvel2.ParserContext)1 Path (org.uberfire.backend.vfs.Path)1 FileAlreadyExistsException (org.uberfire.java.nio.file.FileAlreadyExistsException)1