Create task to a return collection of read element

Hello community! 

I need create a  process to generate a task to any record returned from a read element. How need configure the element to make a "for each"?

Example:

http://prntscr.com/jx7y7s

 

 

Like 0

Like

4 comments

I solved part with the case https://community.bpmonline.com/questions/business-process-loop-read-data-element but have problem with create the not exist in the filter. http://prntscr.com/jx9b3r How can do that?

Dear Federico,

It's possible to process multiple records, however, it's wrong architecture. It will decrease the performance of the system very much. If you need to run a process for multiple records, then you probably need to optimize your request in order to avoid such a task. 



If possible, I'd recommend you to create a process that starts on adding new record. The process will insert a new task and it will run for every new record. If that doesn't suit the business logic, you can add the gateway after Read Data and create a conditional flow that will check how many records were found. If there are more then 0 records, the process would go to Read Data again. If there are 0 records found in Read Data, the process finishes. 

Lisa

Lisa Brown,

Thanks can you give a sample of that? I need add the activity to contact when not exist yet in the system. Just need check the "exists" condition in the add record.

Dear Federico,

In this case you can even use only one business process element  - Add Data with the following settings:

Lisa

Show all comments