1 Reply Latest reply: Jan 23, 2013 5:32 AM by duncan_db RSS

    OIM 11g Request and Resource relation

    rviegas
      Hi gurus,

      I am using OIM 11g for provisioning accounts into a specific system. Users can make requests in Self Service TAB (for themselves and for other) for creating/updating/disabling/enabling/revoking these resources.
      Upon successful approval of the requests, OIM must communicate with the target system through a webservice and within the message it must send the name of the person responsible for the request.
      I saw that in the first request (create request) of a resource, the REQUEST_KEY field of the resource form is filled with the key of the request from which we can extract the info about the requester. This part is great!
      However, for every subsequent request, the REQUEST_KEY field of the resource is not updated with the key of the newer request and so we have not been able to find the info of the requester.
      We also checked the OIU table (filtering ORC_KEY = to the process key of the resource) but the newer request IDs are not present there.

      Is there a way to relate Resources with every Request made upon them?

      Thank you very much for your time!

      Best Regards!
        • 1. Re: OIM 11g Request and Resource relation
          duncan_db
          What you could do is create a new form field in your resource to hold the information you require (and add it to your request data set). You can then update the request data in dataset validator plugin code so that this attribute is populated with the data you require from the request. This data will then be available in the resource for use as you require.

          In the data set validator you can get the name of the requester from ContextManager.getOIMUser().

          You can then add this to the request by creating a new RequestBeneficiaryEntityAttribute with your dataset attribute name and value and add this into your target attributes, (List <RequestBeneficiaryEntityAttribute> obtained from the getEntityData() method of your RequestBeneficiaryEntity).