Service Virtualization

Expand all | Collapse all

SharedModelMap.get is resulting in 'Property removed' event

  • 1.  SharedModelMap.get is resulting in 'Property removed' event

    Posted 05-09-2019 06:07 AM

    Hello Everyone,
    In one of the VSMs, I am setting a value in the shared model map as com.itko.lisa.vse.SharedModelMap.put(sKey, sCrdAccount_num);

    When I try to retrieve the value in another service as below:

    String sOrgTxId = testExec.getStateValue("OrgnlTxId");
    String sKey = sOrgTxId.substring(sOrgTxId.length() - 10);
    testExec.setStateValue("AccountTemp", com.itko.lisa.vse.SharedModelMap.get(sKey));

    I am receiving the event 'Property Removed'. I have verified the right value is getting populated in the string sKey.

     

    But, if I hardcode the value as below, the property is getting created with the right value. Any pointers to make the above work please ??
    testExec.setStateValue("AccountTemp", com.itko.lisa.vse.SharedModelMap.get("1237894560"));



  • 2.  Re: SharedModelMap.get is resulting in 'Property removed' event

    Posted 05-13-2019 07:17 AM

    The above could be achieved using PersistentModelMap. Obviously looks like a bug in SharedModelMap.