<?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 execute rule after parallel review in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/execute-rule-after-parallel-review/m-p/264182#M217312</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 am currently writing my bachelor thesis on alfresco (working with alfresco 4.0.d) and I have to get some things working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I ran into a problem regarding rules and advanced workflows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My professor demands an internal publishing function (moving a document from one site to another after a successful parallel review and approval). Everything should be manageable for the user from the share page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to design a simple rule on the directory checking the values of bpm&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utcome, bpm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ercentComplete, bpm:status, wf:actualPercent and even wf:reviewOutcome, that should get activated when the document gets approved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I implement this function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Needles to say I do not know my way around in alfresco that well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My second problem is defining a scheduled revision of published documents after one year. Currently I do not have any questions on this topic, but I know this function would be included in the RM-Module of alfresco which is not jet released for 4.0.d.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nibot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 09:32:46 GMT</pubDate>
    <dc:creator>nibot</dc:creator>
    <dc:date>2012-02-16T09:32:46Z</dc:date>
    <item>
      <title>execute rule after parallel review</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-rule-after-parallel-review/m-p/264182#M217312</link>
      <description>Hi,I am currently writing my bachelor thesis on alfresco (working with alfresco 4.0.d) and I have to get some things working.Now I ran into a problem regarding rules and advanced workflows.My professor demands an internal publishing function (moving a document from one site to another after a succes</description>
      <pubDate>Thu, 16 Feb 2012 09:32:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-rule-after-parallel-review/m-p/264182#M217312</guid>
      <dc:creator>nibot</dc:creator>
      <dc:date>2012-02-16T09:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: execute rule after parallel review</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execute-rule-after-parallel-review/m-p/264183#M217313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It was good to think of rules–those are frequently used to automate operations on documents. The problem is that rules don't have access to BPM variables like bpm_outcome and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you have two options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. If you want to use a rule, you need a value to trigger the rule on. That value needs to be set at the end of the successful workflow. You can add some JavaScript to your workflow that will set a property. Maybe it is a custom property or maybe it is an out-of-the-box property, it doesn't really matter. Let's say you use cm:author (bad choice, but just an example). Assuming you will only ever have one document in your workflow package, your workflow can set cm:author like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;bpm_package.children[0].properties['cm:author'] = "MOVE ME";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, your folder rule can look for documents where the cm:author property equals "MOVE ME" and carry out the move.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Option 2 would be to skip rules altogether and just do the move from within the JavaScript inside the workflow. So instead of just setting a property like you did in Option 1, you invoke the Move action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are trade-offs for each of these options. But it's your thesis so I'll let you think about those. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need examples showing how to use JavaScript within a workflow, check out this tutorial: &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-workflow/advanced-workflow-article.pdf" rel="nofollow noopener noreferrer"&gt;The first edition&lt;/A&gt;&lt;SPAN&gt; covers pre-4 using jBPM and &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-workflow/advanced-workflow-article-2ed.pdf" rel="nofollow noopener noreferrer"&gt;the second edition&lt;/A&gt;&lt;SPAN&gt; covers Alfresco 4 with Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 00:51:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execute-rule-after-parallel-review/m-p/264183#M217313</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-03-07T00:51:50Z</dc:date>
    </item>
  </channel>
</rss>

