We have a java web application, wherein there is a user management and roles and permission modules. Now each user belongs to a particular domain. We have a list of pre-defined domains. And each user will also be linked to a particular role. All these information is currently being maintained in the application's RDBMS structure.
Now, we need to create a simple workflow, wherein the process is defined based on the roles. Example, first user belonging to Role-A will initiate the task and then it moves to user belonging to Role-B for approval and once approved the task ends. The level of approvals may be customizable. From what I have understood and done in Activiti, it uses information from its own database. So how do we flow our data into activiti or use both at same time??
Also, while creating a workflow, how do we ensure that when the process moves from Role-A to Role-B user, only the Role-B user belonging to the particular domain of Role-A user gets notified about the approval?
Please let me know your suggestions on the same, or if any other details are needed.