Trying to invoke an expression rule with input parameter from my java plugin.

Trying to invoke an expression rule with input parameter from my java plugin.

Tried using evaluateExpression(java.lang.String expression, NamedTypedValue[] variableValues) method in ProcessDesignService Interface.But not able to construct variableValues of type NamedTypedValue[].

Do we have any sample code to pass a parameter to an expression rule from java ?

Thanks in Advance.

OriginalPostID-197077

OriginalPostID-197077

  Discussion posts and replies are publicly visible

Parents
  • @Abhi, Hi, I am doing the same syntax as above, but I am getting this error when I try to use evaluateExpression:
    17:20:02,296 INFO [stdout] (http-/0.0.0.0:8080-33) 2016-03-30 17:20:02,294 [http-/0.0.0.0:8080-33] ERROR com.appiancorp.suiteapi.common.TypedValueParameterConverter - Cannot convert TypedValue
    17:20:02,323 INFO [stdout] (http-/0.0.0.0:8080-33) java.lang.IllegalArgumentException: Argument is not an array

    Do you know what could be the problem?

    Thanks
Reply
  • @Abhi, Hi, I am doing the same syntax as above, but I am getting this error when I try to use evaluateExpression:
    17:20:02,296 INFO [stdout] (http-/0.0.0.0:8080-33) 2016-03-30 17:20:02,294 [http-/0.0.0.0:8080-33] ERROR com.appiancorp.suiteapi.common.TypedValueParameterConverter - Cannot convert TypedValue
    17:20:02,323 INFO [stdout] (http-/0.0.0.0:8080-33) java.lang.IllegalArgumentException: Argument is not an array

    Do you know what could be the problem?

    Thanks
Children
No Data