Expand my Community achievements bar.

What is Corresponding Java API Object for Task Result Collection?

Avatar

Level 1

Hello,

I have been creating junit test cases for adobe livecycle services, for both short and long lived processes. (Yes, I have automated an entire complex workflow from start to finish).


There seems to be an object in the adobe livecycle java api that corresponds to the data type in the workflows (e.g. document -> java Document, User -> java User)

Is there a corresponding object available in the adobe livecycle java api for the Task Result Collection datatype?

Thanks,

4 Replies

Avatar

Employee Advisor

We can create a collection of TaskInfo objects as we have multiple tasks in case of "Assign Multiple Task".

References :

http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/index.html

http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=000429.html#1555789

Thanks,

Wasil

Avatar

Level 1

So if I were to invoke a service expecting an input of Task Result Collection with variable name taskResultsCollection for example.  All I would need to do is send in a java Collection Object? e.g.

[CODE]

List l = new LinkedList();

l.add(taskInfo0);

l.add(taskInfo1);

Map.put("taskResultsCollection", l);

[/CODE]

Will this work?  I will try and update the post as answered if this will work!

Avatar

Employee Advisor

Which service you are trying to invoke which requires Task Result Collection ?

Avatar

Level 1

We have support services that we have written that are called from asychnronous services.  There are a bunch of services that we have written that take in a Task Result Collection, e.g. getTaskResultApprovers (Get the users who approved from the task result collection), getTaskResultData (Get the form xml data of a task result collection) etc.

We are writing JUnit tests that are testing these services, and making sure they are functioning as supposed to.