zikula-modules/Clip

How can I use the workflow to notify a user/group if a publication initial made

Opened this issue · 1 comments

How can I use the workflow to notify a user/group if a publication initial made

Hi, don't know if you have already received an answer on that one.
Here is an extract of the workflow .xml file, provided by matheo:

config/workflow/Clip/WORKFLOW.xml:
...

    <action id="authorsubmit">
        <title>Submit for Review</title>
        <description>Submit this training to be reviewed by a tutor or a pair.</description>
        <state>toupload</state>
        <nextState>toreview</nextState>
        <permission>moderator</permission>

        <operation silent="1" goto="pending" online="1">update</operation>
        <operation group="tutors" action="submit">notify</operation>

        <parameter mode="form">action</parameter>
        <parameter class="z-bt-ok">button</parameter>
    </action>

...

This example provides a way to notify the tutors group when a new training session is submitted for review.

Then the file "config/templates/PUB_NAME/notify_tutors_submit.tpl" is used as an email template.
Hope it helps, Philippe