Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1482

FEEL: external java function references not working for functions with variable number of parameters

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 7.0.0.Final
    • 7.0.0.Beta7
    • dmn engine
    • None
    • NEW
    • NEW

    Description

      External Java functions with variable number of parameters not working. E.g.:

      { 
          string format : function( mask, value ) external {
                            java : {
                                class : "java.lang.String",
                                method signature : "format( java.lang.String, [Ljava.lang.Object; )"
                            }
                        },
          format currency : function( amount ) 
                       string format( "$%,4.2f", amount ),
         result : format currency( 76499.3456 )
      }
      

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            etirelli@redhat.com Edson Tirelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: