<?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 Update properties using Rule in background in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/update-properties-using-rule-in-background/m-p/134859#M36272</link>
    <description>&lt;P&gt;Hello:&lt;BR /&gt;We have a problem, let's comment on it in a basic way:&lt;BR /&gt;&lt;BR /&gt;Folder A:&lt;BR /&gt;Rule: Runs in the foreground&lt;BR /&gt;Items are updated&lt;BR /&gt;Here, when the user updates the document properties, he launches a script that modifies document properties and at the end moves it to folder B.&lt;BR /&gt;&lt;BR /&gt;Folder B:&lt;BR /&gt;Rule: In the background.&lt;BR /&gt;Items are created or entered in this folder&lt;BR /&gt;Here a script is launched that executes a Java action. If the action fails, it modifies a property. If it is OK, it does nothing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is when the action returns the error, the writing of the error in the property is not executed, if I write the property in JAva&lt;BR /&gt;It gives me a node update error, and if I do it in java script it does nothing.&lt;BR /&gt;&lt;BR /&gt;But it works fine if the Folder B rule works in the foreground.&lt;BR /&gt;How can I make the property modify when the execution is in the background?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 09:21:55 GMT</pubDate>
    <dc:creator>jdeviceb</dc:creator>
    <dc:date>2023-12-05T09:21:55Z</dc:date>
    <item>
      <title>Update properties using Rule in background</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-properties-using-rule-in-background/m-p/134859#M36272</link>
      <description>&lt;P&gt;Hello:&lt;BR /&gt;We have a problem, let's comment on it in a basic way:&lt;BR /&gt;&lt;BR /&gt;Folder A:&lt;BR /&gt;Rule: Runs in the foreground&lt;BR /&gt;Items are updated&lt;BR /&gt;Here, when the user updates the document properties, he launches a script that modifies document properties and at the end moves it to folder B.&lt;BR /&gt;&lt;BR /&gt;Folder B:&lt;BR /&gt;Rule: In the background.&lt;BR /&gt;Items are created or entered in this folder&lt;BR /&gt;Here a script is launched that executes a Java action. If the action fails, it modifies a property. If it is OK, it does nothing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is when the action returns the error, the writing of the error in the property is not executed, if I write the property in JAva&lt;BR /&gt;It gives me a node update error, and if I do it in java script it does nothing.&lt;BR /&gt;&lt;BR /&gt;But it works fine if the Folder B rule works in the foreground.&lt;BR /&gt;How can I make the property modify when the execution is in the background?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 09:21:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-properties-using-rule-in-background/m-p/134859#M36272</guid>
      <dc:creator>jdeviceb</dc:creator>
      <dc:date>2023-12-05T09:21:55Z</dc:date>
    </item>
  </channel>
</rss>

