Novell Home

Converting to Multi-valued Attributes

Novell Cool Solutions: Tip
By Alfredo Luiz Santos

Digg This - Slashdot This

Posted: 19 Jan 2006
 

The following code enables the conversion of a single attribute with delimited data to a structured data form. This is very useful in advanced SAP IDM Driver customization.

Example

<?xml version="1.0" encoding="UTF-8"?><policy>
    <rule>
        <description>Convert Parameter from string to structured attribute.</description>
        <conditions>
            <and>
                <if-op-attr name="PARAMETER" op="available"/>
            </and>
        </conditions>
        <actions>
            <do-reformat-op-attr name="PARAMETER">
                <arg-value type="structured">
                    <arg-component name="PARVA">
                        <token-xpath expression="substring-after($current-value,'|')"/>
                    </arg-component>
                    <arg-component name="PARID">
                        <token-xpath expression="substring-before($current-value,'|')"/>
                    </arg-component>
                </arg-value>
            </do-reformat-op-attr>
        </actions>
    </rule>
</policy> 


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell