Invalid index: Cannot index property 'result' of type Text into type HttpResponse

I am using trying to pass httpResponse.result in one of the expression rule .. in script task 

rule!OIT_getTransactionDetails(

httpResponse:ri!httpResponse.result,

activeStatus:ri!status

)

But it returns Error like Invalid index: Cannot index property 'result' of type Text into type HttpResponse.

I know its casting issue , tried with index function also but it returns null then .. not the  values which  i want to retrieve

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    If this is the code going into your script task, you would not write "ri!httpResponse" in the first place.  If your httpResponse has been stored in a PV by a previous node, then you'd write "pv!httpResponse" here.  If your httpResponse is coming in via some other method you haven't specified, then we need more information before being able to suggest much.  But the "ri!" prefix is only for use inside a rule or expression, and will not be valid if called directly from a process model expression editor box in any context.

Reply
  • 0
    Certified Lead Developer

    If this is the code going into your script task, you would not write "ri!httpResponse" in the first place.  If your httpResponse has been stored in a PV by a previous node, then you'd write "pv!httpResponse" here.  If your httpResponse is coming in via some other method you haven't specified, then we need more information before being able to suggest much.  But the "ri!" prefix is only for use inside a rule or expression, and will not be valid if called directly from a process model expression editor box in any context.

Children