deleting an item with workflow

ssuh's Avatar

ssuh

18 Mar, 2011 03:09 PM

We have a workflow in place for deleting and unpublishing. However our approver gets the following error when she tries to approve of the delete.

: An error occurred: A fatal error occurred while executing trigger com.cms.workflow.function.DeleteAndUnpublish: Error occurred while deleting and unpublishing entity: Roles do not allow you to publish this asset.


<trigger name="email" class="com.cms.workflow.function.EmailProvider" />
<trigger name="DeleteAndUnpublish" class="com.cms.workflow.function.DeleteAndUnpublish" />
<step type="system" identifier="initialize" label="Initialization" >
  <actions>
    <action identifier="initialize" label="n-a" type="auto" move="forward" >
      <trigger name="email" />
    </action>
  </actions>
</step>
<step type="transition" identifier="final-review" label="Final Review" allow-user-group-change="true" default-group="WSDM Publishers" >
  <actions>
    <action identifier="reject-to-edit" label="Cancel" next-id="cancelled" >
      <trigger name="email" />
    </action>
    <action identifier="approve" label="Approve" move="forward" >
      <trigger name="email" />
    </action>
  </actions>
</step>
<step type="system" identifier="finalize-delete" label="Deleting" >
  <actions>
    <action identifier="finalize" label="n-a" type="auto" move="forward" >
      <trigger name="DeleteAndUnpublish">
         <parameter>
            <name>authorizing-type</name>
            <value>system</value>
         </parameter>
      </trigger>
      <trigger name="email" />
    </action>
  </actions>
</step>
<step type="system" identifier="deleted" label="Deleted" />
<step type="system" identifier="cancelled" label="Cancelled" />
  1. 2 Posted by fred.welden on 22 Mar, 2011 05:36 PM

    fred.welden's Avatar

    I was seeing the exact same problem. I then changed authorizing-type to "user", and set authorizing-user to the username of a user with the publisher role. Now the workflow goes happily to completion, but does not unpublish the asset. It does delete the asset from the asset tree, just doesn't unpublish it from the server.

    Note that changing the trigger to "publish" DOES publish the asset, so the role and permissions seem to be working, just not for an UNpublish.

    This is v6.7.5, in case it matters.

  2. 3 Posted by fred.welden on 22 Mar, 2011 07:48 PM

    fred.welden's Avatar

    Nevermind. It was a delay on the server side, not a problem with the workflow. As a note to the original poster, you can probably make your workflow work if you change the authorizing-type to "user" and add an authorizing-user parameter set to the username of someone with the publisher role.

  3. 4 Posted by ssuh on 23 Mar, 2011 06:51 PM

    ssuh's Avatar

    is it possible to setup with a group? We have a group of people who handle the edits.

  4. 5 Posted by fred.welden on 28 Mar, 2011 05:22 PM

    fred.welden's Avatar

    As far as I know, there's no "authorizing-group" option--but I'm not Hannon Hill support, nor do I play them on TV.

  5. Support Staff 6 Posted by Tim on 22 Mar, 2012 07:54 PM

    Tim's Avatar

    Hi guys,

    I'm going through some older posts and noticed this one. While you probably no longer need help, I did want to point out that there is no authorizing group option at the current time (as Fred mentioned above). The available options can be found in our Unpublish and Delete documentation.

    If you would like to see more options available for the trigger, feel free to submit an idea to our Idea Exchange.

    Thanks

  6. Tim closed this discussion on 22 Mar, 2012 07:54 PM.

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