ActiveVOS Designer BPEL for People User’s Guide

Using a Logical People Group in an Assign Activity

For dynamic assignment of a Logical People Group, you can create Copy Operations in an Assign activity. A Logical People Group can be copied as follows:

XML Syntax

<wsht:from logicalPeopleGroup="NCName">
  <wsht:argument name="NCName" expressionLanguage="anyURI"?>*
    value
  </wsht:argument>
</wsht:from>
<wsht: to logicalPeopleGroup="NCName"/>

Examples

From a Logical People Group including a parameter to a process variable:

<bpel:assign name="getVoters">
   <bpel:copy>
     <wsht:from logicalPeopleGroup="voters">
       <wsht:argument name="region">
         $electionRequest/region
       </wsht: argument>
     </bpel:from>
     <bpel:to variable="voters" />
   </bpel:copy>
</bpel:assign>

From a literal to a Logical People Group:

<bpel:assign>
   <bpel:copy>
    <bpel:from>
      <bpel:literal>
       <myns:entity xsi:type="htd:tOrganizationalEntity">
        <htd:users>
         <htd:user>Elaine Smith</htd:user>
         <htd:user>Julie Delgado</htd:user>
        </htd:users>
       </myns:entity>
      </bpel:literal>
     </bpel:from>
    <wsht:to logicalPeopleGroup="Directors" />
   </bpel:copy>
</bpel:assign>