NetIQ REST Driver

I have sucessfully deployed NetIQ REST driver to a third party REST
webservice. I am synchronizing groups from IDM to 3rd party webservice.
There are couple of HTTP command needs to be fired from subscriber after
a group is created sucessfully in 3rd party webservice.

I can see the result of sucessfully add event on the publisher channel
and see the status 201 being generated by 3rd party webservice.

<nds dtdversion="3.0">
<source>
<product build="20161216_0543" version="1.0.0.1">Identity Manager
REST Driver</product>
<contact>NetIQ Corporation.</contact>
</source>
<output>
<status event-id="REMOVED_INENTIONALLY_#20161228195421#2#1:*"
level="success" type="driver-general">
<driver-operation-data class-name="groups" command="add"
dest-dn="REMOVED_INENTIONALLY_"
event-id="REMOVED_INENTIONALLY_#20161228195421#2#1:*"
src-dn="REMOVED_INENTIONALLY_">
<response method="put" url="">
<url-token custom_associaiton="*" guid="*"/>
<header accept="application/json"
content-type="application/json"/>
<value message="Created"
status="201">{"@odata.context":"https://dev.$$$$.com/v1.0/$metadata#groups/$entity","id":"REMOVED_INENTIONALLY_","classificat ion":null,"createdDateTime":"2016-12-28T19:54:23Z"}</value>
</response>
</driver-operation-data>
<operation-data prop.pub.itp.matached="false"
prop.sub.ctp.description="*" prop.sub.ctp.Guid="*" prop.sub.ctp.name="*"
prop.sub.ctp.owner="*"/>
</status>
</output>
</nds>


Based on the above result document, I have dixml policy on publisher Itp
which generates association for the object on Adds.

<rule>
<description>Check for association -ADD</description>
<conditions>
<and>
<if-operation mode="regex" op="equal">status</if-operation>
<if-xpath
op="true">./driver-operation-data[@command="add"]</if-xpath>
<if-xpath op="true">self::status[@level = 'success']</if-xpath>
<if-local-variable mode="nocase" name="responseStatus"
op="equal">201</if-local-variable>
</and>
</conditions>
<actions>
<do-set-local-variable name="responseValue" scope="policy">
<arg-string>
<token-xpath expression="./driver-operation-data/response/value"/>
</arg-string>
</do-set-local-variable>
<do-trace-message>
<arg-string>
<token-text xml:space="preserve">responseValue => </token-text>
<token-local-variable name="responseValue"/>
</arg-string>
</do-trace-message>
<!-- groupid -->
<do-set-local-variable name="getId" scope="policy">
<arg-string>
<token-xpath
expression="substring-after($responseValue,&apos;&quot;id&quot;:&apos"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="getId" scope="policy">
<arg-string>
<token-xpath expression="substring-before($getId,',')"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="getId" scope="policy">
<arg-string>
<token-replace-all regex='"' replace-with="">
<token-local-variable name="getId"/>
</token-replace-all>
</arg-string>
</do-set-local-variable>
<do-trace-message>
<arg-string>
<token-text xml:space="preserve">GROUP ID => </token-text>
<token-local-variable name="getId"/>
</arg-string>
</do-trace-message>
<do-add-association>
<arg-dn>
<token-local-variable name="getDN"/>
</arg-dn>
<arg-association>
<token-local-variable name="getId"/>
</arg-association>
</do-add-association>
</actions>
</rule>


How would I initiate an extra "<sync>" event on the subscriber channel
after sucessfully association created, so that I can fire extra HTTP
commands from subscriber channel to a group which already exist in the
API?

Regards,

Maqsood.


--
maqsood
------------------------------------------------------------------------
maqsood's Profile: https://forums.netiq.com/member.php?userid=2617
View this thread: https://forums.netiq.com/showthread.php?t=57117