Skip to main content
Version: 4

Using XSLT Rule editor (Beta)

Adeptia Connect offers an integrated XSLT Rule editor (Beta) within the Data Mapper, allowing you to define XSL rules directly for mapping the elements. This enables you to define complex rules with greater precision and minimal effort.

Prerequisites​

 To use the XSLT Rule editor you need to:

  • Enable the rule editor by setting the value for abpm.services.aimap.xsltRuleSuggestions property to true. Refer to the AIMap section in this page for instructions on how to configure this property.

Steps to use a XSLT Rule editor​

Follow the steps below to use a XSLT Rule editor:

  1. Click on the target element (e.g. name) on which you want to apply transformation logic.

  2. Click Mapping Expression to expand the Mapping Functional Panel. 

  3. Select XSLT Rule.

  4. In the editor, define the XSL rule for mapping based on your requirement. 
    For example: If you want to map firstname and lastname elements from the source layout into a single name element in the destination layout, you can use the concat function as follows:

    <xsl:value-of select="concat(<sourceField1XPath>, ' ', <sourceField2XPath>)"/>

  5. Click Save.  

    Information

    If any XSLT rules contain incorrect logic or unsupported expressions that could potentially cause errors in the Data Mapping, you can remove them using the steps below:

    1. On the destination panel, click More on the top-right corner. 
    2. Click Remove Invalid Mappings.

    3. Click Yes when prompted to confirm.

      NOTE-
    • The Remove Invalid Mappings feature only removes those erroneous mappings for which a valid xpath is available. 
    • Additionally, invalid mappings applied to cloned elements cannot be removed using this feature and must be corrected manually.