cancel
Showing results for 
Search instead for 
Did you mean: 

Check property value as condition for a rule

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


I was wondering if there is any condition for a rule that meets the following requirement:

if property X has value Y then run action.

I'm using v1.3 for the moment  Smiley Surprisedops: , though I'm moving to v2.0 soon…
Is this feature available in v2.0??

Thanks in advance,
Enrique
3 REPLIES 3

peterh_nl
Champ in-the-making
Champ in-the-making
Hi Doblek,

It's not too difficult if you grasp this one: check forums and wiki for the javascript-api. That's the route to follow. If you're familiar with it there's a lot of possibilities to achieve what you might want. If not.. steep learningcurve ahead..
The other path is via the workflow-engine. More difficult than javascript.

Cheers,
Peter

doblek
Champ in-the-making
Champ in-the-making
Hi Peter,

Thanks for your quick reply 😃

I've been taking a look to the JavaScript API and it seems quite interesting to me…

I can create a script that checks the node properties, but I could only execute this code as an action (consequence) in the rule, not as a condition (requisite)… And my intention was to check the property as a condition for the rule… =(
Am I wrong?? Could I implement a new condition that test the property with the script??

Anyway, thanks for the help…

Regards,
Enrique

peterh_nl
Champ in-the-making
Champ in-the-making
Ola Enrique :0)

Don't know if i understand you correctly but..: If you simply run the script ALLWAYS you can check your conditions within the script?
So the triggers the script, the script checks and acts upon your conditions.
Doesn't sound way off to me?  :?

Maybe this helps..