Bulk Approval in BPM model


In BPM, Is it possible to multi select list of tasks and approve it in bulk?

I have a scenario where initiator create multiple line items and the same should get approved/rejected in bulk.

Velankanni J

you’ll have to get a list of tasks you want to complete. Use JPQL query for bpm$ProcTask entity (the data model is here). An example of JPQL query can be found in the proc-task-browse.xml screen. After you get a list of tasks you want to complete, just iterate through them and complete them using the ProcessRuntimeService.completeProcTask() method.