Search in sources :

Example 1 with ListType

use of org.jboss.qa.bpms.remote.ejb.domain.ListType 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)

Aggregations

ArrayList (java.util.ArrayList)1 ListType (org.jboss.qa.bpms.remote.ejb.domain.ListType)1 MyType (org.jboss.qa.bpms.remote.ejb.domain.MyType)1 RemoteEjbTest (org.jbpm.remote.ejb.test.RemoteEjbTest)1 Test (org.junit.Test)1