Sunday, 30 July 2017

OIM - Fetching OIM UDF data in SOA composite.


<assign>
    <copy>
        <from variable="getApproverDetails_OutputVariable"
                   part="UserData"
                   query="/ns20:UserData/ns20:CustomAttribute[@Name='YOUR_UDF']/ns18:Value"/>
        <to variable="YOUR_VAR"/>
    </copy>
</assign>


Example:

<assign>
    <copy>
        <from variable="getApproverDetails_OutputVariable"
                   part="UserData"
                   query="/ns20:UserData/ns20:CustomAttribute[@Name='Email']/ns18:Value"/>
        <to variable="approverEmailID"/>
    </copy>
</assign>

SOA Notification - How to specify XPATH in Recipient.

 

Go to source code of ApprovalTask.task and add below lines under <notification> tag:

<action name="COMPLETE"
    adhocRecipients="/task:task/task:payload/ns1:BeneficiaryDetails/ns1:Email"
    recipient="EMAILADDRESSESXPATH"> Request has been successfully completed.
</action>

SOA Notification - How to specify hardcoded email address in Recipient.

 

 Go to source code of ApprovalTask.task and add below lines under <notification> tag:

 

<action name="COMPLETE"
    adhocRecipients="anandrajbadal@gmail.com"
    recipient="EMAILADDRESSES"> Request has been successfully completed.
</action>