Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
friedman16 Trusted Contributor.
Trusted Contributor.
130 views

Copy/delete the reply document in the Output Transformation Policy

We are using a soap driver in listen mode to allow Workday to connect to our IDM.  This connection is used to update/create userIDs in our eDirectory.  We use the reply in this driver to send back additional information to workday than just the user ID.   which is where I am having a problem.  Is there a way to store the original reply document to an attribute, delete the reply document and create my own reply where I can put in the additional information required for a reply?  I am guessing that I would have to do this in the Output Transformation Policy in the Soap Driver.

Let me ask the question a different way:

  1. The native reply is R1 (to put it generically)
  2. I want to copy R1 to an local attribute called attr1
  3. I want to create a new reply, call it R2 which I will create based off information in attr1
  4. Finally, I want to delete the original document R1 and add my new reply R2

Can this be done?  If so, how?  All that I need to know is how to copy the original reply R1 to a local attribute, delete R1 and add R2.  (I am fairly confident I can create R2 based on the information in R1).

Thanks,
Frank

 

Labels (1)
0 Likes
5 Replies
Knowledge Partner
Knowledge Partner

Re: Copy/delete the reply document in the Output Transformation Policy

Can you show us an example of what you have for R1 and what you'd like R2 to be?
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
friedman16 Trusted Contributor.
Trusted Contributor.

Re: Copy/delete the reply document in the Output Transformation Policy

this is what I was able to find as part of the original document (R1):

<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.6.4.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<output>
<status event-id="0" level="success"><application>DirXML</application>
<module>wdStudio</module>
<object-dn>osu\vault\users\user123</object-dn>
<component>Publisher</component>
<operation-data op-employee_id="eid123456" op-error="successful" op-idm_id="user123"/>
</status>
<status event-id="0" level="success"><application>DirXML</application>
<module>wdStudio</module>
<object-dn>OSU\idmconfig\MatchMerge\WorkdayStaging</object-dn>
<component>Publisher</component>
<operation-data op-error="Successful" op-nameN="Successful: Update Successful."/>
</status>
</output>
</nds>

 

Here is what I want to do... basically, remove the second "status"

<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.6.4.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<output>
<status event-id="0" level="success"><application>DirXML</application>
<object-dn>osu\vault\users\user123</object-dn>
<operation-data op-employee_id="eid123456" op-error="successful" op-idm_id="user123"/>
</status>
</output>
</nds>

 

I should have been more clear... I created a new rule in the OTP.  I want this policy to remove unneeded data when replying to Workday.  

Thanks,
Frank

 

 

 

0 Likes
Knowledge Partner
Knowledge Partner

Re: Copy/delete the reply document in the Output Transformation Policy

Well, those two status messages will be processed separately and the policy can only access the one it's currently processing but not the other. So you'll need to identify the one to drop without being able to look at the other one (or even knowing it exists at all).

Looks like your operation data may be able to help you in this case.

______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
friedman16 Trusted Contributor.
Trusted Contributor.

Re: Copy/delete the reply document in the Output Transformation Policy

Far enough... Once I am able to identify the section I want to drop, what command do I issue in order to drop it?  Would this be the command:

<do-clear-op-property name="$current-node$"/>

 

thanks,
Frank

 

0 Likes
Knowledge Partner
Knowledge Partner

Re: Copy/delete the reply document in the Output Transformation Policy

If you want to drop the whole status document will do best. Something like

if-op-property op-nameN="Successful: Update Successful." do-veto()

could be what you're after.
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.