I am new to plug-in development , I have developed expression function which h

I am new to plug-in development , I have developed expression function which has one required and three optional parameter. When i re-order or remove any of the optional parameter in between, it still passes the value in default order and it assumes wrong value. So do i need to map anything specific for the name in java function

OriginalPostID-224442

OriginalPostID-224442

  Discussion posts and replies are publicly visible

Parents
  • nope, I am just using @Parameter(required=false) . no other annotation for that variable. my code sample looks like:
              @Function
              public TypedValue xyz(ServiceContext sc, @Parameter(required=true) Long a,@Parameter(required=false) String b,@Parameter(required=false) Long c,@Parameter(required=false) TypedValue[] d) {
    ...
    ...
    }
Reply
  • nope, I am just using @Parameter(required=false) . no other annotation for that variable. my code sample looks like:
              @Function
              public TypedValue xyz(ServiceContext sc, @Parameter(required=true) Long a,@Parameter(required=false) String b,@Parameter(required=false) Long c,@Parameter(required=false) TypedValue[] d) {
    ...
    ...
    }
Children
No Data