Publish Containing Publish Set Trigger

Overview

This trigger is used to publish out publish sets that the asset in workflow is a member of. The trigger can be used in two ways:

  • Publish out all publish sets in a specified container that contains the asset attached to the workflow.
  • Publish out one particular publish set if it contains the asset in workflow. The trigger will look for the publish set container or publish set by path inside of the same Site to which the asset in the workflow belongs.
Note - When adding the Version Trigger, Merge Trigger, and any publish trigger, they must execute in this order to properly perform all these actions in the database.

Declaration


                <trigger class="com.cms.workflow.function.PublishContainingPublishSetTrigger" name="PublishContainingPublishSet"/>
                

Parameters


                <parameter>  
  <name>container-path</name>  
  <value>/site</value>  
</parameter>
                
Publish Set Container Path Parameter
This parameter is used to identify a publish set container by its path. Note: the name parameter must be the string 'container-path'.

                <parameter>  
  <name>container-id</name>  
  <value> c3e953120a00018200437b9a9e69f612 </value>  
</parameter>
                
Publish Set Container Id Parameter
This parameter is used to identify a publish set container by its id. Note: the name parameter must be the string 'container-id'.

                <parameter>  
  <name>path</name>  
  <value>/site/publishset</value>  
</parameter>
                
Publish Set Path Parameter
This parameter is used to identify a specific publish set by its path. Note: the name parameter must be the string 'path'.

                <parameter>  
  <name>id</name>
  <value>e7b599550a000182012f15b045877174</value>  
</parameter>
                
Publish Set Id Parameter
This parameter is used to identify a specific publish set by its id. Note: the name parameter must be the string 'id'.

                <parameter>  
      <name>authorizing-type</name>  
      <value>user</value>  
   </parameter>
                

Authorizing-Type Parameter
The authorizing-type parameter is set when calling the trigger on an action. The authorizing-type parameter is used in any trigger that executes to a publish and is used to specify which user is "authorizing" the publish in this step. This will affect permissions/roles checks performed during publish and also to whom the publish report is delivered to. The "system" user is basically a way to bypass any permissions/roles checks but results in the publish report not being sent to anyone.

Authorizing-type can take the following values:

  • current-step-owner - the user assigned to the step that calls the trigger
  • system - the reserved "system" user
  • user - a specified user

                <parameter>  
      <name>authorizing-user</name>  
      <value>johndoe</value>  
   </parameter>
                

Authorizing-User Parameter
This parameter is used if 'user' is selected as the value for the authorizing-type parameter. This parameter's value can be any valid user name.