06-07-2022 10:28 PM
When i click on run rule this rule run perfectly on my file.
but I want this rule run automatically when i create the file or upload in this folder someone can help me?
Alfresco Communities v.7.2
06-09-2022 03:29 AM
That is working as expected.
The condition you're setting is fired everytime a content of type ID_index_test is created on the folder.
However, you're uploading a file that is set automatically to cm:content type. After that, once the file has been created, you set the type to ID_index_test. This is why the rule is not fired. When you click on "apply the rule", the type is set and the rule is fired.
06-08-2022 03:18 AM
How are you setting the type to "ID Index test"? Every content upload to Alfresco Share (by default) is using default type (like cm:content).
06-08-2022 06:08 AM
@angelborroy wrote:How are you setting the type to "ID Index test"? Every content upload to Alfresco Share (by default) is using default type (like cm:content).
Hi, angelborroy
here is my type configuration ID_index_test has parent CM:CONTENT.
06-08-2022 08:02 AM
And when/how you set this type to the nodes in the folder?
You need to set that type explicitelly.
06-09-2022 12:26 AM
@angelborroy wrote:And when/how you set this type to the nodes in the folder?
You need to set that type explicitelly.
Hi, When i upload file to this and setup type (ID_index_test) to node(file) the property does not update automatically but when i go to manage rule of this folder I clicked on run rules for this folder my property was updated by my action.
so i think the rule is correct setting. but the background job not run in automatically ? Do you have any idea to check it?
06-09-2022 03:29 AM
That is working as expected.
The condition you're setting is fired everytime a content of type ID_index_test is created on the folder.
However, you're uploading a file that is set automatically to cm:content type. After that, once the file has been created, you set the type to ID_index_test. This is why the rule is not fired. When you click on "apply the rule", the type is set and the rule is fired.
06-09-2022 12:55 PM
@angelborroy wrote:That is working as expected.
The condition you're setting is fired everytime a content of type ID_index_test is created on the folder.
However, you're uploading a file that is set automatically to cm:content type. After that, once the file has been created, you set the type to ID_index_test. This is why the rule is not fired. When you click on "apply the rule", the type is set and the rule is fired.
I got the solution!!
I try change content of type or sub-type to content instead of ID_index_test
Then when upload file to this folder I change the type to ID_index_test the value of test:num already assigned to 999888 in automatically
Thanks angelborroy
Explore our Alfresco products with the links below. Use labels to filter content by product module.