Search in sources :

Example 6 with MyType

use of org.jboss.qa.bpms.remote.ejb.domain.MyType in project jbpm by kiegroup.

the class ETaskParametersTest method testCompleteTaskWithListType.

@Test
public void testCompleteTaskWithListType() {
    MyType myObject1 = new MyType("my object 1");
    MyType myObject2 = new MyType("my object 2");
    List<MyType> myObjects = new ArrayList<>();
    myObjects.add(myObject1);
    myObjects.add(myObject2);
    ListType listObject = new ListType(myObjects);
    startProcessAndCompleteTask(ProcessDefinitions.HUMAN_TASK_WITH_DIFFERENT_TYPES, "outListObject", listObject, "listObject");
}
Also used : MyType(org.jboss.qa.bpms.remote.ejb.domain.MyType) ListType(org.jboss.qa.bpms.remote.ejb.domain.ListType) ArrayList(java.util.ArrayList) RemoteEjbTest(org.jbpm.remote.ejb.test.RemoteEjbTest) Test(org.junit.Test)

Example 7 with MyType

use of org.jboss.qa.bpms.remote.ejb.domain.MyType in project jbpm by kiegroup.

the class ETaskParametersTest method testSetVariable.

@Test
public void testSetVariable() {
    MyType myObject = new MyType("my object");
    Set<MyType> setVariable = new LinkedHashSet<>();
    setVariable.add(myObject);
    startProcessAndCompleteTask(ProcessDefinitions.HUMAN_TASK_WITH_DIFFERENT_TYPES, "outSetVariable", setVariable, "setVariable");
}
Also used : MyType(org.jboss.qa.bpms.remote.ejb.domain.MyType) LinkedHashSet(java.util.LinkedHashSet) RemoteEjbTest(org.jbpm.remote.ejb.test.RemoteEjbTest) Test(org.junit.Test)

Aggregations

MyType (org.jboss.qa.bpms.remote.ejb.domain.MyType)7 RemoteEjbTest (org.jbpm.remote.ejb.test.RemoteEjbTest)7 Test (org.junit.Test)7 HashMap (java.util.HashMap)2 ArrayList (java.util.ArrayList)1 LinkedHashMap (java.util.LinkedHashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 ListType (org.jboss.qa.bpms.remote.ejb.domain.ListType)1 NestedType (org.jboss.qa.bpms.remote.ejb.domain.NestedType)1 VariableDesc (org.jbpm.services.api.model.VariableDesc)1 ProcessInstance (org.kie.api.runtime.process.ProcessInstance)1