cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to delay the triggering of a rule

nimbus1958
Confirmed Champ
Confirmed Champ

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

1 REPLY 1

abhinavmishra14
World-Class Innovator
World-Class Innovator

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

~Abhinav
(ACSCE, AWS SAA, Azure Admin)