hi 
i hava document object i.e dom4j object which i am passing into the drl file , 
now i have to execute the rule based on the Xpath value which i am specfying 
into the <java:extractor> \my question is how to define a variable whhich can 
hold the value of the Xpath at runtime and i can use the value in the variable 
to check the condition and fire the consequence.
i amtrying to do something like defined below

                <parameter identifier="doc">
                        <java:class>org.dom4j.Document</java:class>
                </parameter>
                
                <declaration identifier="xyz">
                        <java:class>java.lang.String</java:class>
                </declaration>
<extraction target="xyz">
                        <java:extractor>doc.valueOf("//*/test")
</java:extractor>
                </extraction>                           
                        <java:condition>
                                xyz.equals("Y")
                        </java:condition>
                <java:consequence>
                                System.out.println("hello world")+xyz);
                </java:consequence>
i have gone through the article on the net which says it is noy possible in 
2.0 release but is there any work around for the problem ,help needed urgently
regards
Rohit

Reply via email to