AnsweredAssumed Answered

Message and Date in Workflow

Question asked by thomasberment on Apr 21, 2010
Latest reply on Apr 21, 2010 by thomasberment
Hi, I have two little questions. I don't find anything in the Wiki and here …

1/ I want display a little message, like an error message to show initiator his initial error (eg. The custom property isn't right, you don't start this workflow.).

<decision name="condition">
      <transition name="conditionOK" to="sendMail">
            #{statutDoc == "Travail"}
      <transition name="conditionKO"  to="end">
            #{statutDoc != "Travail"}
                         DISPLAY A MESSAGE !

2/ I want return in my custom property, the date of workflow's end (bpm:completionDate).

<end-state name="end" >   
      <event type="process-end">
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
               <variable name="bpm_package" access="read" />
               <variable name="bpm_completionDate" access="read" />
                      bpm_package.children[0].properties["custom:daterelecture"] = bpm_completionDate;

Can you help me please ?