WebServices After and Before Operation Rule (connectorStateMap)

I am working with WebService Before and After Operation Rule. I used the following source code to update the connectorStateMap.

Map updatedInfoMap = new HashMap();
Map connectorStateMap = new HashMap();
connectorStateMap.put("accessToken", “xyz” );
return updatedInfoMap;

I do see in the logs that i was successful in updating the ConnectorStateMap

   "IdentityIQ":"8.0 Build c2de0cea2a-20211110-022835",
   "message":"Updated info map before operation rule post-processing: {connectorStateMap={accessToken=xyz}}",
   "AppType":"Web Services",
   "Application":"Beacon-WS [source]",
   "SCIM Common":"8.0 Build 00b1f252d1b-20200225-190809"

My question is how do I retrieve the value “xyz” back from the connectorStateMap using another Rule… for example WebServiceBeforeOperationRule. Is the connectorStateMap accessible from the UI? i am pretty confused as to how to get this value back programmatically after populating it.


I had the same problem, I tried a bunch of different methods but am still unsure how to read from the connectorStateMap and couldn’t find it in any documentation.

I found a workaround for my case: you can set/get arbitrary attributes on the Endpoint object that’s available to both the WebServicesBeforeOperation & AfterOperation rules.

So in the BeforeOperation rule you can store something in an attribute:

requestEndPoint.setAttribute("someAttributeWeNeed", someValueWeCalculated);

…and as long as you return requestEndPoint at the end of your BeforeOperation rule (either by itself or in the map with the ‘updatedEndPoint’ key), you can retrieve them in the AfterOperation rule with this:


It’s not clear to me if that attribute is still on the Endpoint after the operation completes (i.e. is it available for future operations), but I don’t need it for any longer so this method works for me.

Hello Segun,

I was able to find the answer. The attributes you push to the application using the ConnectorStateMap could be collected later using application.getAttributeValue(“attributeName”).

Hope this helps!

1 Like