How to get action executed on rule?

cancel
Showing results for 
Search instead for 
Did you mean: 
darkredd
Active Member II

How to get action executed on rule?

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
kalpesh_c2
Senior Member

Re: How to get action executed on rule?

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

darkredd
Active Member II

Re: How to get action executed on rule?

Hi Kalpesh,

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

Thanks

~Vusani