Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

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

Open
trichers opened this issue Sep 2, 2014 · 1 comment

Comments

@trichers
Copy link

trichers commented Sep 2, 2014

No description provided.

@PhilBau
Copy link
Contributor

PhilBau commented Oct 24, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants