cancel
Showing results for 
Search instead for 
Did you mean: 

Behaviour binding

konda
Champ in-the-making
Champ in-the-making
Hi all,

I want to define a behaviour (in javascript) that has to trigger just when one (or more), specific property has been updated (e.g. only cm:name or xx:yyyy property). I've seen that this is possible in Java with bindPropertyBehaviour method of PolicyComponent class. Is there a similar way in javascript (or -context.xml configuration)?
7 REPLIES 7

kaynezhang
World-Class Innovator
World-Class Innovator
Behavior should be implemented in java ,You can use rule and action to implement your function

msj4u
Champ in-the-making
Champ in-the-making
can you share an example from scratch ?

kaynezhang
World-Class Innovator
World-Class Innovator
example for what ? rule/action or policy/behaviour.

msj4u
Champ in-the-making
Champ in-the-making
for policy/behavior

actually i want to call my application when a node is being deleted or deleted

kaynezhang
World-Class Innovator
World-Class Innovator
You can refer to the Aspect SDK example(SDK CustomAspect project) in Alfresco SDK.
It is a good example of how to implement policy/behavior.

msj4u
Champ in-the-making
Champ in-the-making
thanks that helped

kaynezhang
World-Class Innovator
World-Class Innovator
You are welcome ,good luck.