Search in sources :

Example 6 with WorkDefinitionImpl

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

the class GoogleCalendarWorkitemIntegrationTest 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(4, repoResults.size());
    assertTrue(repoResults.containsKey("GoogleAddCalendar"));
    assertTrue(repoResults.containsKey("GoogleAddEvent"));
    assertTrue(repoResults.containsKey("GoogleGetCalendars"));
    assertTrue(repoResults.containsKey("GoogleGetEvents"));
}
Also used : WorkDefinitionImpl(org.jbpm.process.workitem.WorkDefinitionImpl) WorkItemRepository(org.jbpm.process.workitem.WorkItemRepository) Test(org.junit.Test)

Example 7 with WorkDefinitionImpl

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

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

Example 8 with WorkDefinitionImpl

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

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

Example 9 with WorkDefinitionImpl

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

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

Example 10 with WorkDefinitionImpl

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

the class JabberWorkitemIntegrationTest 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("Jabber"));
}
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