cancel
Showing results for 
Search instead for 
Did you mean: 

How to get action executed on rule?

darkredd
Star Contributor
Star Contributor

Hi,

I have a script that has to execute certain functions based on the action (on Add, On Update and on Delete) that occurs on the node when the rule runs. Example case : The script needs to find which of those 3 actions occurred for it to perform a function.

Right now I have the 3 scripts and 3 Rules on one folder, which is a bit unclean.

Is there a way I can get to know which action (Add, Update or Delete) occurred on rule execution?

Many thanks

~Vusani

2 REPLIES 2

kalpesh_c2
Star Collaborator
Star Collaborator

Hi,

It seems that you don't want 3 scripts and 3 rules to be applied on a folder.

If that is the case then, you can get it done by creating custom behaviour/policy.

You can identify what action is being performed on the node, for example: whether users attempt delete, update or add actions on a node.

For more information you can refer Behaviours / Policies | Alfresco Documentation 

Let me know if you have further query.

Thanks,

Kalpesh

ContCentric

Hi Kalpesh,

This is indeed along the lines of what I am looking for. I will write feedback soon on the update.

Thanks

~Vusani