Skip to main content

Assign to Specified Group Trigger

Overview

This trigger is used to assign a workflow to a group. This trigger extends the existing group assignment functionality by allowing more control over when group assignments are made. For example, if a certain step is reachable by several other steps, and it is desired that different groups be assigned depending on which step they came from, this trigger should be used.

Declaration

XML
<trigger class="com.cms.workflow.function.AssignToSpecifiedGroup" name="AssignToSpecifiedGroup"/>

Usage

XML
<trigger name="AssignToSpecifiedGroup">  
  <parameter>  
     <name>group</name>  
     <value>groupname</value>  
  </parameter>  
</trigger>

Parameters

Group Assigned

XML
<parameter>  
  <name>group</name>  
  <value>groupname</value>  
</parameter>

This is a required parameter which specifies the group that the workflow should be assigned to.

The name parameter has to be the string "group" while the value parameter can be any group name. If a specified group doesn't exist, the workflow will still be assigned to a group with that name. If such a group is created in the future, the workflow will be available for the users in that group.