07-02-2019 03:48 AM
Hello,
In a folder (A), I have a rule that moves a document to another folder (B) after applying a custom type.
In that same folder (A), I have a rule which moves an XML file to a special folder (C) where this file is the base to the creation of another xml file.
The new xml file is then sent to the folder (B) where my first document was sent. Another rule in the folder (B) adds the metadata of the xml file to the document custom properties.
The problem is that my new xml file arrives in folder (B) before the document (probably due to size) and no transformation occurs!
I tried to use the javascript setTimeOut but Alfresco Javascript does not seem to recognize that function.
Is there a way to delay the triggering of that last rule to make sure the document is available?
Thanking you in advance,
Pablo
Alfresco 5.2.4
07-02-2019 08:38 AM
For this complex use case, i would suggest to use behaviors and control the order of move in the behavior.
https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html
Explore our Alfresco products with the links below. Use labels to filter content by product module.