<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Simple Work Flow - Email notification to documents owner in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/simple-work-flow-email-notification-to-documents-owner/m-p/225118#M178248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i had try the simple work flow from the manual.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it did a great job and i able to make it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i want to have a features to be implemented in that flow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;currently is that, the content rule can be set in a particular space to send email to notify some users about the changes happen in the space. which is constantly notify the same person whenever a document come into the space. like what had been show in the simple work flow example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what i mean here is, i want a email notification to the document owner. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example, A1 had submitted a document to space A, an email had been sent to notify B1 about new document come into space A, then B1 approve the document. start from here, i cannot find a way to notify A1 about his document been approved. i cannot apply the email rules into the space because there will be C1, D1 etc to submit the document to be approved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i found a similiar post&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=34&amp;amp;t=18466&amp;amp;p=60719&amp;amp;hilit=email#p60719" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=34&amp;amp;t=18466&amp;amp;p=60719&amp;amp;hilit=email#p60719&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any idea to implement this currently ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lawrence&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2009 13:28:22 GMT</pubDate>
    <dc:creator>lordlaw</dc:creator>
    <dc:date>2009-06-02T13:28:22Z</dc:date>
    <item>
      <title>Simple Work Flow - Email notification to documents owner</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-work-flow-email-notification-to-documents-owner/m-p/225118#M178248</link>
      <description>Hi,i had try the simple work flow from the manual.it did a great job and i able to make it works.but i want to have a features to be implemented in that flow.currently is that, the content rule can be set in a particular space to send email to notify some users about the changes happen in the space.</description>
      <pubDate>Tue, 02 Jun 2009 13:28:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-work-flow-email-notification-to-documents-owner/m-p/225118#M178248</guid>
      <dc:creator>lordlaw</dc:creator>
      <dc:date>2009-06-02T13:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Work Flow - Email notification to documents owner</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-work-flow-email-notification-to-documents-owner/m-p/225119#M178249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can not find any "simple workflow" being called as such a one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i think something like following should help to guide you along the problem: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your problem is to fetch the document owner of a document?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly you must get the documents being added to the workflow. This could work like following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;workflowInstance = workflowService.getWorkflowById("xyz");&lt;BR /&gt;&lt;BR /&gt;NodeRef pathToAllAddedDocuments = workflowInstance.workflowPackage;&lt;BR /&gt;&lt;BR /&gt;for(ChildAssociationRef ref : nodeService.getChildAssocs(pathToAllAddedDocuments )){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef child = ref.getChildRef();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String owner=nodeService.getProperty(child, ContentModel.PROP_OWNER);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //TODO: ADD your code here&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Now you can get the email from this user via PersonService or what you want to do with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you have to add some logic to your workflow. As decsriped above i do not know about this workflow so i write down some helpfuly code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;task-node name="task-B1"&amp;gt;&lt;BR /&gt;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp; &amp;lt;task&amp;gt;&lt;BR /&gt;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/task&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transition name="approve" to="approve" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transition name="reject" to="reject"&amp;gt;&lt;BR /&gt;&amp;lt;/task-node&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;task-node name="approve"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;event type="node-enter"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this class has the logic of the above descriped code.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action class="de.dmc.NotifyDocumentOwnerAction"/&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/event&amp;gt;&lt;BR /&gt;&amp;lt;/task-node&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 06:10:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-work-flow-email-notification-to-documents-owner/m-p/225119#M178249</guid>
      <dc:creator>cheffilet</dc:creator>
      <dc:date>2009-06-03T06:10:47Z</dc:date>
    </item>
  </channel>
</rss>

