JBoss Community

Re: jBPM 5.3 - Human Task Service and administrator user

created by jena74 in jBPM - View the full discussion

Hi,

 

I use jBPM5.3.

I did some new tests and in fact I found that the problem comes from the client side.

When the client creates the task, it as to set up the people assignements of the task, including both recipients and businessAdministrators.

If I add the Administrator user in the server, and if I use the following code on the client side, it works well:

 

// Set task recipients.
List<OrganizationalEntity> recipients = new ArrayList<OrganizationalEntity>();
recipients.add(new Group("The team"));
peopleAssignements.setRecipients(recipients);
List<OrganizationalEntity> businessAdministrators = new ArrayList<OrganizationalEntity>();
businessAdministrators.add(new User("Administrator"));
peopleAssignements.setBusinessAdministrators(businessAdministrators);
task.setPeopleAssignments(peopleAssignements);

Reply to this message by going to Community

Start a new discussion in jBPM at Community