This discussion is archived
1 Reply Latest reply: Jan 9, 2013 1:21 AM by ChaseVoid RSS

custome function

924724 Newbie
Currently Being Moderated
I have added the lib and Extension.xml and lib folder added but still am getting below error.

<extension>
<functions>
<function name="Capit" return-type="number">
<arg name="value1" type="number"/>
               <arg name="value2" type="number"/>
               <arg name="value3" type="number"/>
<handler platform="java"
class="com.opa.customefunction.examples.Capt"/>
</function>
</functions>
</extension>




Build     Error     A rule refers to the custom function 'Capit' which does not exist. (OPA-E00048)     Rules\rule.xgen
Model     Warning     Extension 'Lib' could not be loaded: Could not find file 'C:\projects\customefun\Development\Extensions\Lib\Extension.xml'. (OPA-W00001)
  • 1. Re: custome function
    ChaseVoid Newbie
    Currently Being Moderated
    Can you try with function name and class name with same values?

    eg:
    <extension>
    <functions>
    <function name="*Capit*" return-type="number">
    <arg name="value1" type="number"/>
    <arg name="value2" type="number"/>
    <arg name="value3" type="number"/>
    <handler platform="java"
    class="com.opa.customefunction.examples.*Capit*"/>
    </function>
    </functions>
    </extension>


    Ensure that the JAR file with the class com.opa.customefunction.examples.Capit is present in the lib folder

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points