此内容没有您所选择的语言版本。
9.4.4. Task assignment
When a process reaches a task node, task instances are created. These must be assigned to users or user groups. We can either hard code our actor IDs, or delegate to a Seam component:
<task name="todo" description="#{todoList.description}"> <assignment actor-id="#{actor.id}"/> </task>
<task name="todo" description="#{todoList.description}">
<assignment actor-id="#{actor.id}"/>
</task>
In this case, we have simply assigned the task to the current user. We can also assign tasks to a pool:
<task name="todo" description="#{todoList.description}"> <assignment pooled-actors="employees"/> </task>
<task name="todo" description="#{todoList.description}">
<assignment pooled-actors="employees"/>
</task>