cancel
Showing results for 
Search instead for 
Did you mean: 

Updating DB table after completing the user task

nirvana
Champ in-the-making
Champ in-the-making

Hi All,


I have a web form for creating users, which will be inserted in user_info_tbl ( MySql database) with default status to pending.
All these users will be approved through activiti.

Can anyone help me how to update user_info_tbl —> user_info_status to Approved/Rejected, after completing the user task.

Also is there a way for getting the pending user's list from user_info_tbl and displaying them in activiti-explorer(Using v5.13) as Pending Users list to approve or reject.

Thanks in advance.

Regards,
Nirvana.
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Add a service task after the user task that executes some jdbc code.

Regarding the second question: you will need a custom form type, see http://www.jorambarrez.be/blog/2013/03/13/creating-a-new-form-property-in-activiti/

heba
Champ in-the-making
Champ in-the-making
i made java class and create web services -> task type ->  java class  and when i deploy it in explorer and there is error  couldn't instantiate class

vasile_dirla
Star Contributor
Star Contributor
@heba, can you show us some details about that error ? (there could be so many reasons…)
btw: I guess you added your message to this old discussion for a reason, I guess you are trying to do the same, am I right ?