Skip to Content
author's profile photo Former Member
Former Member

Looping in Human Activity, issue in capturing individual response

Hello,

In a process, a human acitivity step has been looped for parallel execution.

The problem here is that the response of subsequent task overwrites the response of first task since the output mapping is same for all the tasks

When all the tasks have been acted upon I get the response of the last task performed.

How to get the response of individual tasks?

Kind Regards,

Suresh

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 15, 2011 at 08:57 AM

    You may also consider having a sub-process into which you can move the human activity into and can trigger the sub-process parallely instead of the task. This way each sub-process would have the data collected from the human task individually.

    BR,

    Bala

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you Christian and Bala,

      I thought about using EJB and sub-process, using sub-process was making the design little complex , using EJB provided a hint .

      The issue was resolved by creating an external function using EJB. Instead of using out of box looping functionality i have implemented it manually.

      I used two decision box, one for controlling the loop and other for deciding the process flow. In each iteration the EJB function is called(using a Mapping object) to get an element of the list.

      Kind Regards,

      Suresh Yadav

  • Posted on Apr 15, 2011 at 08:34 AM

    Hi Suresh,

    You need to map the task output to a list, where in each loop you append a new object. Not sure if there is an append function out-of-the box, you might have to write an ejb function for that.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.