Tuesday, September 29, 2015

Human Tasks : Assign both users and groups in a single people assignment

Usual method of people assignment in WS Human tasks is using a logical people group. But it is not possible to assign to both people groups and users in a single logical people group. So in order to achieve this, you need to use literals as defined in WS Human Task Spec.

Following is a sample of assigning both groups and individuals inside same people assignment to potential owners. I have used and tested this in latest WSO2 Business Process Server successfully.

<htd:potentialOwners>
<htd:from>
<htd:literal>
<htt:organizationalEntity>
<htt:user>Alan</htt:user>
<htt:user>Dieter</htt:user>
<htt:user>Frank</htt:user>
<htt:group>bpel4people_authors</htt:group>
<htt:group>bpel4people_editors</htt:group>
</htt:organizationalEntity>
</htd:literal>
</htd:from>
</htd:potentialOwners>