I have a script that gets triggered when something is updated or inserted or deleted in alfresco . And only the Node ID of the changed node is passed to my application's backend. Here, since only the Node ID is passed, I am not able to distinguish which action(updated/entered/deleted) has been done. How do I pass something in the script that would tell us what kind of action is performed in alfresco? Hoping a reply soon
Asked
Active
Viewed 40 times
1
-
How are you triggering the script? Behaviour? Rule? Other? – Gagravarr Nov 30 '17 at 12:20
-
@Gagravarr I am triggering the script via rules – Nilanjana Nov 30 '17 at 12:37
-
1Why not setup a different rule for each of Added / Updated / Deleted, and have those rules call different scripts? – Gagravarr Nov 30 '17 at 15:35
-
@Gagravarr: Actually our constraint is each of these is calling same script. And that script is passing a node ID of the changed node to the REST endpoint(backend). Hence along with the node id I need another parameter in the script to specify what kind of action has been performed – Nilanjana Dec 01 '17 at 07:56