"1. The only option within the Assign Task operation that lets you assign the user dynamically is by using an XPath expression."
"If I were to use this, should I be embedding the logic within the form itself and then use the XPath expression to find the user by dynamically updating the form after the first user completes the task?"
I depends. If you can get to it server side, it woulb probably better. If you need to make a change to something, you don't want to change the form.
"Is there another approach to achieve this other than having the logic for selecting the user defined in the form itself?"
I'm not sure where the logic for the next user is located, but you could make a database or web service call from the process to get the next user instead.
"I believe embedding the logic in the form might not be a good idea as it can have performance implications and also having user information in the form itself doesn't seem right."
"Is there an operation that I could use, which would contain the logic that I would need to determine the next user and then assign the task to the user based on the result of the operation?"
Again, I need a bit more info as to where the info (logic) is located.
Thanks a lot for your response and based on it lot of things made sense. I was still in the process of deciding what the best approach for storing the logic to retrieve the user and it looks like storing it in the database tables would make more sense in my case. I am currently trying to use the JDBC service to retrieve the user info and then use the Find User service to find the user that I need to assign for the task. Please do correct me if you see anything wrong with this approach.
Really appreciate your dedicated responses on this forum.