Hi there, i’m using Flowable 6.8.0 and am faced with a requirement of completing multiple tasks in bulk in a single transaction. I know TaskService does not provide a bulk complete api however, is it possible to achieve it by customizing the source code to implement a bulkComplete method that manually starts then commits the transaction after completing multiple tasks? If yes, could you please give some pointers on how to do it? If not, could you please elaborate on the reason and suggest an alternative way to satisfy this requirement?
you can technically implement a bulkComplete method by customizing Flowable’s source code, but it’s usually easier (and safer) to write a custom Command
that completes multiple tasks in one go.
You can implement anything, but bulk complete action points to the problem in the design.
bulk complete = you should summarize all requirements and complete them in one task.
e.g. → To sign order task with 1t items in, does not mean to complete sign task on 1t approvals process instances. To sign order task is only one task. BTW: can you imagine so huge transaction and consequences?
Martin