1 person found this helpful
You'll need to create a loop in your process to go through all the Task Result from the Task Result Collection object. Then create another list that will contain the users that have rejected the form.
Here the pseudo code:
1- i = 1
2- Task Result = Task Result Collection[i]
3- increment i
4- loop back to 1 if i < TaskCollection size.
I am also trying to extract information the TaskResultCollection and am not having any luck. I am using a Flex form.
For testing simplicity, I decided to use an AssignTask activity. I have ALL 3 output options set as:
Task Result - variable - result, data type Task Result
Output data - variable - out_data, data type document
Task Result Collection - variable - results, data type Task Result Collection
When I look at the completed process using a Recording, I see
- out_data (document) is correct and contains the XML that was edited by the user
- result (Task Result) has a lot of information, but does NOT contain a formDataXML and I don't see the XML data from my Flex form present.
- results (Task Result Collection) has a lot of information, but does NOT contain a formDataXML and I don't see the XML data from my Flex form present. Include captured data is checked.
Obviously the data was returned, just not in the Task Result where I would of expected it also to be. How am I supposed to extract the XML that is passed by the Flex form from a Task Result data type? I will need to do this because my next step is to try this with Assign Multiple Tasks.
What am I missing?
If you coerce the formDataDocument to a document, you can see the XML. The formDataXML is available, even if you don't see it in the TaskResult. I am guessing that when you access it, it gets computed on the fly?