Workflow simple email notification

nathan.tanner's Avatar

nathan.tanner

08 Sep, 2010 06:52 PM

I have a workflow that is setup to trigger an email notification when any page under a site is edited. I have specified the users who it should email but it is also emailing the user that made the change. How do I only have it email the specified users and not email the one who made the change?

<?xml version="1.0" encoding="utf-8"?>
<system-workflow-definition initial-step="first-step"
name="No Approval">
  <!--triggers that will be available to actions in the workflow-->
  <triggers>
    <trigger class="com.cms.workflow.function.EmailProvider"
    name="email" />
    <trigger class="com.cms.workflow.function.Publisher"
    name="publish" />
    <trigger class="com.cms.workflow.function.Merge"
    name="merge" />
    <trigger class="com.cms.workflow.function.Version"
    name="version" />
    <trigger class="com.cms.workflow.function.PreserveCurrentUser"
    name="preserveCurrentUser" />
    <trigger class="com.cms.workflow.function.AssignToWorkflowOwner"
    name="assignToWorkflowOwner" />
    <trigger class="com.cms.workflow.function.PublishSetTrigger"
    name="publishSet" />
  </triggers>
  <!--steps that should happen in order-->
  <steps>
    <!--system step to start things up-->
    <step identifier="first-step" label="Initializing"
    type="system">
      <actions>
        <action identifier="initialize" move="forward" type="auto">
          <!--notify the user they are the owner of the current workflow step-->
          <trigger name="email">
            <parameter>
              <name>mode</name>
              <value>notify</value>
            </parameter>
            <parameter>
              <name>recipient-users</name>
              <value>u0014538,u0115320</value>
            </parameter>
          </trigger>
        </action>
      </actions>
    </step>
    <!--system steps to merge and publish content-->
    <step identifier="finalize-edit" label="Merging and Publishing"
    type="system">
      <actions>
        <action identifier="finalize" move="forward" type="auto">
          <trigger name="merge" />
          <trigger name="version" />
          <!-- <trigger name="publish" /> -->
        </action>
      </actions>
    </step>
    <!--we need this step to have the actions from the previous step executed-->
    <step identifier="Finished" label="Finished" type="system" />
  </steps>
</system-workflow-definition>
  1. Support Staff 1 Posted by Tim on 08 Sep, 2010 08:47 PM

    Tim's Avatar

    Hi Nathan,

    The workflow step owner will always be notified if the next step is a system step.

    Let me know if you have any further questions.

  2. 2 Posted by nathan.tanner on 08 Sep, 2010 09:01 PM

    nathan.tanner's Avatar

    So how would I notify just the two users I specified and not the person who made the edit? Can you suggest a change to my workflow xml? I want the workflow simply to quick off an email notification without any kind of interaction so I have everything set to a system step. Is this possible or am I always stuck with a notification going to the person that started the workflow (edited the page)?

  3. Support Staff 3 Posted by Tim on 10 Sep, 2010 01:03 PM

    Tim's Avatar

    Hey Nathan,

    Unfortunately, the current functionality will always send an email either to the workflow originator or the owner of the current step. There isn't really any way that I know of to change this behavior in your workflow configuration. Instead, it would involve a modification to the email trigger in the application itself.

    If you would like to see a change like this made, don't hesitate to log a new idea in our Idea Exchange.

    Thanks

  4. Tim closed this discussion on 13 Sep, 2010 05:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac