Introduction

In this section, we will go throw TRKToXml connector  to get trackings by trkID and tracking type or using keys.

Icon:

trkToXml.png

The connector exists in the scenario panel:

connectors.png

Configuration:

configuration.png

  • Name : To give a name to the processing step (connector). It is very useful to give meaningful names
  • Output FileName : The name of your output file.
  • Condition : This field allows you to add a condition to execute the processing step only if the condition is met.

Example :

                  scenarioTrackingToXml.png

You will find in this part an example of an input file with the correct format and an output file.

input File:

<iXDoc>

    <TrackingType >IXEnvironment</TrackingType>

    <TrkIDs>62ec9e0928e4773780f37762</TrkIDs>

    <Keys>parent</Keys>

    <Values>iXPath</Values>

    <Limit>1</Limit>

    <Order>TrkID</Order>

    <Status>Available</Status>

</iXDoc>

  1. trackingType: it refers to type of tracking wanted. (eg : order , IXEnvironment, baseArticle ...).it's mandatory.
  2. TrKIDs :it refers to the trkIDs of trackings wanted separated by spaces .
  3. keys: it can handle 2 values, "trkID" or keys separated by ';' (eg: 'orderNumber;City;Phone')  if the key contains '_' at the first character, it means we look for metadata (_statusTracking, _creationDate ...).In order for the input file to be valid, it must contain either a TrkIDs tag or a keys tag, or both.
  4. limit: it defines the max number of tracking to retrieve. it's optional.
  5. order: whether you want to order the list of trackings in a descending way or not by a certain key order. The default value is 'trkID' and it's optional as long as you fill the limit value. 

output File:

<?xml version="1.0" encoding="UTF-8"?>

<iXDoc>

   <IXEnvironment creationDate="2022-08-05 16:47:08"  envID="iXPath" modificationDate="2022-08-05 16:47:08" statusTracking="Available">

      <parent/>

      <gitRepository/>

      <timezone>GMT</timezone>

      <alias>iXPath</alias>

      <active>true</active>

      <logo/>

      <id>62ec9e0928e4773780f37762</id>

   </IXEnvironment>

</iXDoc>

The tracking data and metadata are included in the output file.

Tags:
    
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian