we have now stripped out all expression code ( ${this.value} etc  ) and 
our template now contains basic html format with the word 'test' between 
the body tags. 

i can now get the mail test facility to email us using the new template. 

the workflow still doesnt send any emails and we have no errors in the 
logs. 

i would imagine the workflow would email all people in the group publisher 
when the workflow code is as follows:

        <set field="mailTo" value="group-publisher"/>
        <set field="mailTemplate" value="simonsMail"/>
        <participant ref="command-sendMail"/>

i have myself down in the publisher group with a valid email address

this is our current workflow:

<process-definition name="activation" revision="j0.0.2">
  <sequence>
    <set field="activator" field-value="userName"/>

    <!--  go to publisher first -->
    <participant ref="group-publisher"/>

    <!-- will loop if rejected -->
    <if test="${field:action} == reject">
      <revision-round/>
    </if>

    <log message="activate: ${field:action}"/>

    <!-- if the last action was proceed: activate-->
    <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>
      <!-- assign back to the user who launched the activation -->
      <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>
      <!--  wait if scheduled -->
      <if>
        <defined field-value="startDate"/>

        <sleep until="${f:startDate}"/>
      </if>

      <!-- activate -->
      <participant ref="command-activate"/>

      <if>
        <defined field-value="exception"/>
        <!--  restart again -->
        <activation/>
        <break/>
      </if>

      <!-- deactivate (if scheduled)-->
      <if>
        <defined field-value="endDate"/>
        <sequence>
          <sleep until="${f:endDate}"/>
          <participant ref="command-deactivate"/>
        </sequence>
      </if>

    </sequence>
  </process-definition>

</process-definition>

apologies if im sounding stressed but obviously deadlines are getting 
shorter and we are new to the whole java scenario  :(

thanks again to all who are helping :) 

Liam Tipler
Designer 
Simons Group



"John Mettraux" <[email protected]> 
Sent by: <[email protected]>
10/12/2007 13:29
Please respond to
<[email protected]>


To
<[email protected]>
cc

Subject
Re: [magnolia-user] workflow emails not emailing,,,,






On Dec 10, 2007 10:25 PM, LIAM_TIPLER <[email protected]> wrote:
> ok, now im really confused...
>
> is there anything anywhere that can help me with this? documentation, a
> guide, something?
>
> we were given the impression at the demo that magnolia could do all this
> 'out the box'
>
> all we need is a simple worlflow that emails the people in the groups 
for
> approval or rejection but after a few days im still confused as to how 
to
> achieve this? its a standard element in the other CMS systems we looked
> at.... :(

Liam,

your issue has nothing to do with the workflow. It's your mail
template which is not digested by the mail template engine, please
read the error message carefully and please follow Harold's advice,
he's been very helpful.

Try with a very simple mail pattern and then iteratively add bells and
whistles to it. Read carefully the error message they do mean
something and they are meant to be read by human beings.


Best regards,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

----------------------------------------------------------------
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
----------------------------------------------------------------

Reply via email to