cancel
Showing results for 
Search instead for 
Did you mean: 

Access NodeService in custom constraint

oliviers
Champ in-the-making
Champ in-the-making
Hi,

I'm writing a custom constraint and I need access NodeService. Is there a way to set a reference to a bean in a model declaration?

Here's how my constraint is defined in my model:
<constraint name="so:myConstraint" type="CollectValues">
<!– I wish, I could do that –>
    <parameter name="nodeService">
       <value>NodeService</value>
     </parameter>
</constraint>


Another question, when checking the value in a constraint, is it possible to get the NodeRef of the evaluated node?
1 REPLY 1

derek
Star Contributor
Star Contributor
Hi,
There isn't a way to pass any of that in at the moment.
Regards