thanks again Harold,
i cannot still get this to email out though :(
:: i have copied and pasted the code supplied in the previous email into a
template and then created a new page using this template,
:: i then created a new mail template (called simonsMail) and pointed the
body to the URI of the newly created page.
:: i have tried 'freemaker' and 'magnolia' as template types with no
success
:: i have created myself as a user and included the group 'publisher' and
entered my email address
the flow xml code is below:
<process-definition name="activation" revision="j0.0.2">
<sequence>
<set field="activator" field-value="userName"/>
<participant ref="group-publisher"/>
<if test="${field:action} == reject">
<revision-round/>
</if>
<log message="activate: ${field:action}"/>
<if test="${field:action} == proceed">
<activate/>
</if>
</sequence>
<process-definition name="revision-round">
<loop>
<while test="${field:action} == reject"/>
<to-editor/>
<if test="${field:action} != proceed">
<break/>
</if>
<to-publisher/>
</loop>
</process-definition>
<process-definition name="to-publisher">
<sequence>
<set field="mailTo" value="group-publisher"/>
<set field="mailTemplate" value="simonsMail"/>
<participant ref="command-sendMail"/>
<participant ref="group-publisher"/>
</sequence>
</process-definition>
<process-definition name="to-editor">
<sequence>
<set field="assignTo" field-value="activator"/>
<set field="mailTo" value="group-editor"/>
<set field="mailTemplate" value="simonsMail"/>
<participant ref="command-sendMail"/>
<participant ref="group-editor"/>
</sequence>
</process-definition>
<process-definition name="activate">
<sequence>
<if>
<defined field-value="startDate"/>
<sleep until="${f:startDate}"/>
</if>
<participant ref="command-activate"/>
<if>
<defined field-value="exception"/>
<activation/>
<break/>
</if>
<if>
<defined field-value="endDate"/>
<sequence>
<sleep until="${f:endDate}"/>
<participant ref="command-deactivate"/>
</sequence>
</if>
</sequence>
</process-definition>
</process-definition>
any help greatly appreciated as we are getting closer to release now.
Liam
Liam Tipler
Designer
Simons Group
"CAPITAINE Harold" <[email protected]>
Sent by: <[email protected]>
07/12/2007 10:27
Please respond to
<[email protected]>
To
<[email protected]>
cc
Subject
Re: [magnolia-user] workflow emails not emailing,,,,
No problem, here is the source code of the email,
You have received an activation request from user :
<b>${this.userName}</b><br /><br />
Click on View Content to see a preview of document/page subscribed:<br />
Click on bellow to Proceed or Reject the publication of the
document/page subscribed<br />
and send the generated email.<br /><br />
<table border="0">
<tr>
<td><a href="${this.previewLink}">View Content</a></td>
<td><a
href="mailto:${this.mailFrom}?subject=test:activation:reject
${this.serverName} [workflowId:${this.workflowId}]&body=You're about to
reject the workflow.">Reject</a></td>
<td><a
href="mailto:${this.mailFrom}?subject=test:activation:proceed
${this.serverName} [workflowId:${this.workflowId}]&body=You're about to
proceed the workflow.">Proceed</a></td>
</tr>
</table>
<br />
else, if you are connected, click on the following link to open your
Inbox:<br />
<a href="${this.pathLink}">Inbox</a>
You can do what you want in HTML for the content. This email is pretty
basic but it allows me to validate some workflow tickets thanks to email
parsers.
All the code parts that are made like that:
${this.variable}
are freemarker parts. They are replaced by a value find in the context.
For your information and if you're interested, you can develop a command
that will send email by instanciating a class to set the differents
variables of the freemarker email code.
Regards,
CAPITAINE Harold
LIAM_TIPLER a écrit :
> ahhh - this is what we are missing then.
>
> can you maybe include a copy of the freemarker template as ive never
used
> it
>
> many thanks for your help!
>
> Liam Tipler
> Designer
> Simons Group
>
>
>
>
> "CAPITAINE Harold" <[email protected]>
> Sent by: <[email protected]>
> 07/12/2007 09:45
> Please respond to
> <[email protected]>
>
>
> To
> <[email protected]>
> cc
>
> Subject
> Re: [magnolia-user] workflow emails not emailing,,,,
>
>
>
>
>
>
> Hi list and magnolians,
>
> I don't know on which version you're working but for my parts I'm
> curtrently working with rc1 and I manage to send emails.
> To do so, put the parameter "mailTemplate" in the workflow context. This
> parameter reference a mail template under this path:
> /modules/mail/config/templates/YourTemplate.
> In this template you can define different parameter as the body path for
> freemarker email, from parameter...
>
> If you have some more specific questions don't hesitate.
>
> CAPITAINE Harold
>
> LIAM_TIPLER a écrit :
>
>> i am currently in conversation with support to try and resolve this. i
>> think its mainly due to lack of documentation on what you actually put
>>
> in
>
>> there
>>
>> i will report back if i get a resolution :)
>>
>> also - if you find out please respond back to us :)
>>
>> have a good weekend everyone!
>>
>> Liam Tipler
>> Designer
>> Simons Group
>>
>>
>>
>>
>> "Allan, CJ (Chris)" <[email protected]>
>> Sent by: <[email protected]>
>> 07/12/2007 09:20
>> Please respond to
>> <[email protected]>
>>
>>
>> To
>> <[email protected]>
>> cc
>>
>> Subject
>> Re: [magnolia-user] workflow emails not emailing,,,,
>>
>>
>>
>>
>>
>>
>> Hi,
>>
>> I would also like the activation workflow to include sending emails to
>> people of a certain role/group.
>>
>> If anyone has this working I would really like to hear how you went
>> about it.
>>
>> Cheers,
>>
>> Chris
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[EMAIL PROTECTED]
>> Sent: 28 November 2007 12:31
>> To: [email protected]
>> Subject: [magnolia-user] workflow emails not emailing,,,,
>>
>> Hello all,
>>
>> apologies for harassing you all recently but the project is nearing
>> completion so we are trying to resolve all the little issues we have at
>> present
>>
>> we are trying to set up workflow emailing but none of the emails ever
>> seem to get sent. we see no errors in the logs relating to openwfe
>>
>> we have slightly altered the basic workflow, basically just
uncommenting
>> the email section so it reads:
>>
>> <process-definition name="to-publisher">
>> <sequence>
>> <set field="mailTo" value="group-publisher"/>
>> <set field="mailTemplate" value="simonsWorkflowTemplate"/>
>> <participant ref="command-sendMail"/>
>> <participant ref="group-publisher"/>
>> </sequence>
>> </process-definition>
>>
>> i have created a node under modules > mail > config > templates called
>> 'simonsWorkflowTemplate' with the values:
>>
>> body > url + withparams.html
>> from > my email address
>> subject > some subject
>> type > text
>>
>> but we are unsure as to what we really need to do here.
>>
>> any help greatly appreciated
>>
>> regards
>>
>> Liam Tipler
>> Designer
>> Simons Group
>>
>> _____________________________________________________________________
>> Simons Construction - Building Magazine Contractor of the Year 2007 -
>> For more information go to www.building.co.uk View our latest Team
>> Builder here - http://www.simonsgroup.com/teambuilder.pdf
>> View our latest news release here -
http://www.simonsgroup.com/news.pdf
>> _____________________________________________________________________
>> Simons Developments - 2007 Property Company of the Year in the North
>> East & Yorkshire Click here to read the full article.
>> http://www.estatesgazetteawards.co.uk/index.shtml
>> _____________________________________________________________________
>> Simons Group Limited, including Simons Construction, Simons Design and
>> Simons Developments, Registered Office 991 Doddington Road, Lincoln,
LN6
>> 3AA. Tel: 0808 2023 991, Fax: 0845 0721 800. registered number 2147887,
>> registered in England and Wales.
>>
>> The information contained in this e-mail message and any files
>> transmitted with it is confidential and may be legally privileged. It
is
>> intended only for the addressee and others authorised to receive it. If
>> you are not the intended recipient or the person responsible for
>> delivering the message to the intended recipient you are advised that
>> you have received the e-mail in error and that any disclosure, copying,
>> distribution or action taken in reliance on the contents of the e-mail
>> and its attachments is strictly prohibited and may be unlawful. Please
>> advise the sender immediately if you are not the intended recipient.
>>
>> This message has been checked for all known viruses through the
>> MessageLabs Virus Scanning Service.
>>
>> Web site http://www.simonsgroup.com
>> _____________________________________________________________________
>>
>> ----------------------------------------------------------------
>> for list details see
>> http://documentation.magnolia.info/docs/en/editor/stayupdated.html
>> ----------------------------------------------------------------
>> <DIV><FONT size="1" color="gray">This e-mail and any attachments may
>> contain confidential, copyright and or privileged material, and are for
>> the use of the intended addressee only. If you are not the intended
>> addressee or an authorised recipient of the addressee please notify us
>>
> of
>
>> receipt by returning the e-mail and do not use, copy, retain,
distribute
>>
>
>
>> or disclose the information in or attached to the e-mail.
>> Any opinions expressed within this e-mail are those of the individual
>>
> and
>
>> not necessarily of Diamond Light Source Ltd.
>> Diamond Light Source Ltd. cannot guarantee that this e-mail or any
>> attachments are free from viruses and we cannot accept liability for
any
>>
>
>
>> damage which you may sustain as a result of software viruses which may
>>
> be
>
>> transmitted in or with the message.
>> Diamond Light Source Limited (company no. 4375679). Registered in
>>
> England
>
>> and Wales with its registered office at Diamond House, Harwell Science
>>
> and
>
>> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
>> </FONT></DIV>
>>
>> ----------------------------------------------------------------
>> for list details see
>> http://documentation.magnolia.info/docs/en/editor/stayupdated.html
>> ----------------------------------------------------------------
>>
>> ______________________________________________________________________
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> ______________________________________________________________________
>>
>>
>>
>> _____________________________________________________________________
>> Simons Construction - Building Magazine Contractor of the Year 2007 -
>>
> For more information go to www.building.co.uk
>
>> View our latest Team Builder here -
>>
> http://www.simonsgroup.com/teambuilder.pdf
>
>> View our latest news release here -
http://www.simonsgroup.com/news.pdf
>> _____________________________________________________________________
>> Simons Developments - 2007 Property Company of the Year in the North
>>
> East & Yorkshire
>
>> Click here to read the full article.
>>
> http://www.estatesgazetteawards.co.uk/index.shtml
>
>> _____________________________________________________________________
>> Simons Group Limited, including Simons Construction, Simons Design and
>>
> Simons Developments, Registered Office 991 Doddington Road, Lincoln, LN6
> 3AA. Tel: 0808 2023 991, Fax: 0845 0721 800. registered number 2147887,
> registered in England and Wales.
>
>> The information contained in this e-mail message and any files
>>
> transmitted with it is confidential and may be legally privileged. It is
> intended only for the addressee and others authorised to receive it. If
> you are not the intended recipient or the person responsible for
> delivering the message to the intended recipient you are advised that
you
> have received the e-mail in error and that any disclosure, copying,
> distribution or action taken in reliance on the contents of the e-mail
and
> its attachments is strictly prohibited and may be unlawful. Please
advise
> the sender immediately if you are not the intended recipient.
>
>> This message has been checked for all known viruses through the
>>
> MessageLabs Virus Scanning Service.
>
>> Web site http://www.simonsgroup.com
>> _____________________________________________________________________
>>
>> ----------------------------------------------------------------
>> for list details see
>> http://documentation.magnolia.info/docs/en/editor/stayupdated.html
>> ----------------------------------------------------------------
>>
>>
>
>
>
> ----------------------------------------------------------------
> for list details see
> http://documentation.magnolia.info/docs/en/editor/stayupdated.html
> ----------------------------------------------------------------
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
>
>
> _____________________________________________________________________
> Simons Construction - Building Magazine Contractor of the Year 2007 -
For more information go to www.building.co.uk
> View our latest Team Builder here -
http://www.simonsgroup.com/teambuilder.pdf
> View our latest news release here - http://www.simonsgroup.com/news.pdf
> _____________________________________________________________________
> Simons Developments - 2007 Property Company of the Year in the North
East & Yorkshire
> Click here to read the full article.
http://www.estatesgazetteawards.co.uk/index.shtml
> _____________________________________________________________________
> Simons Group Limited, including Simons Construction, Simons Design and
Simons Developments, Registered Office 991 Doddington Road, Lincoln, LN6
3AA. Tel: 0808 2023 991, Fax: 0845 0721 800. registered number 2147887,
registered in England and Wales.
>
> The information contained in this e-mail message and any files
transmitted with it is confidential and may be legally privileged. It is
intended only for the addressee and others authorised to receive it. If
you are not the intended recipient or the person responsible for
delivering the message to the intended recipient you are advised that you
have received the e-mail in error and that any disclosure, copying,
distribution or action taken in reliance on the contents of the e-mail and
its attachments is strictly prohibited and may be unlawful. Please advise
the sender immediately if you are not the intended recipient.
>
> This message has been checked for all known viruses through the
MessageLabs Virus Scanning Service.
>
> Web site http://www.simonsgroup.com
> _____________________________________________________________________
>
> ----------------------------------------------------------------
> for list details see
> http://documentation.magnolia.info/docs/en/editor/stayupdated.html
> ----------------------------------------------------------------
>
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_____________________________________________________________________
Simons Construction - Building Magazine Contractor of the Year 2007 - For more
information go to www.building.co.uk
View our latest Team Builder here - http://www.simonsgroup.com/teambuilder.pdf
View our latest news release here - http://www.simonsgroup.com/news.pdf
_____________________________________________________________________
Simons Developments - 2007 Property Company of the Year in the North East &
Yorkshire
Click here to read the full article.
http://www.estatesgazetteawards.co.uk/index.shtml
_____________________________________________________________________
Simons Group Limited, including Simons Construction, Simons Design and Simons
Developments, Registered Office 991 Doddington Road, Lincoln, LN6 3AA. Tel:
0808 2023 991, Fax: 0845 0721 800. registered number 2147887, registered in
England and Wales.
The information contained in this e-mail message and any files transmitted with
it is confidential and may be legally privileged. It is intended only for the
addressee and others authorised to receive it. If you are not the intended
recipient or the person responsible for delivering the message to the intended
recipient you are advised that you have received the e-mail in error and that
any disclosure, copying, distribution or action taken in reliance on the
contents of the e-mail and its attachments is strictly prohibited and may be
unlawful. Please advise the sender immediately if you are not the intended
recipient.
This message has been checked for all known viruses through the MessageLabs
Virus Scanning Service.
Web site http://www.simonsgroup.com
_____________________________________________________________________
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------