Hi everyone,
I have a multi step form with 3 steps which a user should fill out each step sequentially and in each step some validation rest Apis should be called. like the following image :
What is the the pros and cons of using one user task with one form which inside it some Apis are being called instead of using 3 user tasks (for 3 steps of the form) with 3 service tasks between them for calling apis?
Each user task is a stopping point in your process, and each stopping point is a save point, that is, a transaction point in your camunda database, where it will save the current state.
So having 3 sequential user tasks will consequently generate 3 transactions to save the current state of Camunda in your Camunda database, and this entered data must also be saved in your business database, so you have transactions occurring in your business database too.
So, knowing this, everything is a matter of thinking about resource consumption, is it really necessary to divide it into 3 user tasks? What are the advantages of this for your process? The validations that are done by your API are blocking (that is, depending on the answer to the previous questionnaire, does anything change or is blocked?), couldn’t the validations be done all in a single step for a single questionnaire?
Anyway, just an incentive to think about what makes the most sense for your business process and the performance of your application.