Hi Manuranga, What you have suggested is also possible. On the other hand, I have another suggestion.
When we assign user1 and user2 to the same role and then we define only candidateGroups attribute to user task element, the tasks become available to both users and who ever available can claim them and continue. Also, we can have a timer boundary event to define a deadline and if the first user fails to complete it on time then we could trigger a Java service task that reassigns the task to next available user in the group. The above suggestion was given based on the details given in the thread, not sure whether it best suits to all requirements. We can revisit the scenario when there are more additional details. :) Best regards, Amal. On Thu, Apr 21, 2016 at 7:16 PM, Manuranga Perera <[email protected]> wrote: > I have the following requirement: > > * By default the given process's instance is claimable by user1 > * But when user1 is on vacation (we have this data in a DB) we want > user2 to be able to claim it > > I can think of two ways: > > 1. Create a temporary role and keep switching user1 and user2 in and > out that role > 2. Keep monitoring all claimable tasks and make it claimable to user2 > if user1 is not there > > Is there a better way (eg: specify this requirement directly in BPMN). If > not which is the better option? > > -- > With regards, > *Manu*ranga Perera. > > phone : 071 7 70 20 50 > mail : [email protected] > -- *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
