Hi Frederik,
Thanks very much for your reply.
#6, you mentioned that the process instance object variables can be used to obtain information about the current state of the process instance. Can you please elaborate what variables are set and what's their ID's?
For 7, 8, and 9 what I'm trying to do is to have a web application to allow a user to login and edit a form then perform actions that are represented by action buttons on the form. Those action buttons text should be populated from the workflow instance actions based on the current active activity the process is at. For example, let's take the loan request example that's is used in the user guide.
1. When the user logs in the web application and click on the loan request link, a process instance should be created but not start execution
2. The form loads for edit and the button text should be the next sequence flow that the process instance next operation is specified. In this case, it's 'Submit'
3. When the user submits the form, the workflow instance transition to the next state. Which in this case submitted
4. The workflow instance now automatically moves to the next set of candidate according to the process definition which is to advance the workflow intance to the candidates that will approve and reject.
5. When those candidate login to the web application should be able to see the buttons with text populated ('approve 'reject') which will be the possible directions on the process instance gateway.
6. Once a user clicks either on, the workflow instance advances to the execution path choosen by the user according to the process instance definition.
That's what I'm trying to achieve in my application. To do so, I'm writing a set of calls to interact with Activiti process engine that will either query the engine for information about where the process is at (current active activity), list of possible actions (destinations from the current active activity), signal a process instance execution (submit), perform a specified action by the user (approve or reject).
I think what I'm trying to do is achievable but requires more knowledge about how Activiti works!!
I appreciate if you can point me in the right direction to implement this in Activiti.
Thanks,
Hany Mesha