AnsweredAssumed Answered

retrieving values from properties file in processdefinition.

Question asked by darklord on Jun 21, 2009
Latest reply on Jun 21, 2009 by mrogers
hi folks,

           how can i retrieve messages from properties file in processdefinition.xml. actually i have written some code that sends email to approvers. i want to load the content of email from a properties file i have created at my own "" . i tried many things but no success yet.

<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                        var mail = actions.create("mail");
                        mail.parameters.subject = "Content Approved";
                        comment = "";
         if (token.comments.size() > 0)
         comment = token.comments.get(0).message;
                        mail.parameters.text = "User has Approved the Content.!" + "\n" + "Comments : \"" +    token.comments.get(0).message + "\"" + "\n" + "Description : \"" +    bpm_workflowDescription + "\"";

"User has Approved the Content" message should be retreived from a property file as mentioned rather than hard coding it in processdefinition.xml
Just to show you my xmlns entry, if required
<process-definition xmlns="" name="scwf:MyCom">