Skip to main content

getting error for below expression component with variable ?

 

While on setting some name to variable and expression component iam getting the below error:

 

Execution of the expression "flowVars.Institution_Nbr = PartnerID" failed. (org.mule.api.expression.ExpressionRuntimeException).

 

org.mule.expression.DefaultExpressionManager: Expression string is not an expression. Use isExpression(String) to validate first

 

<expression-component doc:name="Expression"><![CDATA[flowVars.Institution_Nbr = # [message.payload.partnerID]] ]></expression-component>

답변 3개
  1. 2017년 6월 6일 오후 1:47

    In the expression component you need to consider that you are alread inside the # [] and each line needs to be ended with ;

    So the content of the expression box should be `flowVars.Institution_Nbr=message.payload.partnerID;`

     

    The xml will then look like;

     

    <expression-component doc:name="Expression"><![CDATA[flowVars.Institution_Nbr=message.payload.partnerID;] ]></expression-component>

0/9000