Introduction

iXPath uses the BPMN (Business Process Model and Notation) standard for the translation part.
BPMN is a business process modeling method to describe the business activities of an organization in a graphical representation.

Below an example of a flow traced by the iXPath BPMN module:

1615831422135-492.png

As we can see, there are 2 main types: Connectors and Gateways

Connectors

A connector is an algorithm that is executed via a trigger. In iXPath, the trigger is always an input file.

In this part, we go through each of the connectors and their particularities:

Listeners

A listening connector (or listener) is the entry point for a scenario. It allows the created event to be routed through a communication channel (FTP, SFTP, AS2, MAIL, FILE, Webservice). Communication's config is required to handle those connectors.

Note: iXPath detects incoming events in real-time.

Listener NameIconDescription
FTP Listener1615902036864-240.pngListen on an FTP/FTPS communication, on a specific user (created locally), and on a specific directory with a given file mask.
SFTP Listener1615903474893-102.pngListen on an SFTP communication, on a specific user (created locally), and on specific directory with a given file mask.
AS2 Listener1615903500591-246.pngListen on an AS2 communication, on specific AS2_ID (created locally), and on specific file mask.
FILE Listener1615903536880-750.pngReal-time listening on a specific directory with a given file mask.
WebService Listener1615903600906-895.pngListen on a Rest communication (HTTP/HTTPS), on a specific endpoint URI (GET/POST/PUT/DELETE) (created locally)
Mail Listener 1615903620708-998.pngListen on Mail communication (IMAP), on a specific mail, on a regex sender mask, on a regex mail subject, and on a given file mask.
App Event1615903682090-260.pngListen on a Rest communication (HTTP/HTTPS), on a specific endpoint URI (GET/POST/PUT/DELETE) (created locally). App event is used locally between iXPath's app.
Tracking Listener1615903640796-201.pngListen on a Tracking database event, on a specific tracking type (Order, OrderLine...), on the specific action (Create, Delete, Update), and on a specific tracking status.
Time Listener1615903655709-270.pngListen on a time with cron expression. it allows triggering event at a specific time periodically.

Scenario

A scenario connector deals directly with the input file, either translating it into some desired format or copying it, etc...

here's the list of all scenario connectors of iXPath :  

Scenario ConnectorIconDescription
FileToXML2021-04-21_12h19_50.pngTransforms a certain file to XML format with a given output file name.
XMLToFile  2021-04-21_12h27_09.pngConverts an XML file to a file format.
ExcelToXML  2021-04-21_12h31_41.pngTakes an Excel (XSL, XSLX) file and converts it to XML format.
XMLToExcel 2021-04-21_12h31_58.pngconverts an XML file to its convenient Excel format.
XMLToPdf 2021-04-21_12h34_23.pngConverts an XML file to PDF text format.
PdfToXML 2021-04-21_12h34_33.pngTransforms a PDF file input to XML format.
XMLToXML 2021-04-21_12h34_57.pngTransforms an XML File to another XML File.
TrkToXML2021-04-21_12h49_47.pngretrieve a tracking from the database and translate it to an XML file.
XMLToTrk2021-04-21_12h49_52.pngStores tracking in the database from the XML input file.
XMLToBDD2021-04-21_12h50_16.pngTranslates data from an XML file and store it in the database.
BDDToXML2021-04-21_12h49_57.pngExtracts data from the database and converts it into an XML file.
JsonToXML2021-04-21_12h50_33.pngTakes a JSON file and translates it to XML format.
XMLToJSON2021-04-21_12h50_38.pngConverts an XML file to JSON format.
XMLToBin2021-04-21_12h50_24.pngConverts an XML file to its Binary format.
CopyFile2021-04-21_12h50_50.pngCopy a group of files from some connectors to a certain directory. 
SplitXML2021-04-21_12h51_08.pngsplits an XML file in a certain node with a split number and output file name.
MergeXML2021-04-21_12h51_12.pngmerges XML files in a certain node with a given output file name.
Pile2021-04-21_12h51_17.pngPut data in a linear stack that is used to store the collection of objects.
GenerateFile2021-04-21_12h51_24.pngwrites and generates a file with a given output file name.
FiltreTracking2021-04-21_12h51_30.pngRetrieves Tracking data from the database using a filter, and puts it in a JSON file. 
LoadFile2021-04-21_12h51_33.pngLoads a group of files from a directory path and chooses to move it or not from the original folder.
ReturnWebService2021-04-21_12h50_45.png

returns a web service with an HTTP code response to a flow.


Routing

Routing connectors help route received files to the appropriate destination, and launch a route inside each environment.

Routing connectorIconDescription
File Detection2021-04-21_16h28_15.png

Detects the input file type and makes a filter by pattern and type.

File Fix2021-04-21_16h28_22.pngFixes a file by giving: its identifier column, size, and value and sets the value needed to be fixed.   
File Variable2021-04-21_16h28_33.pngSets a bunch of variables in the input file.
XML Detection2021-04-21_16h28_38.pngDetects XML file by a checked XPath expression.
Call Scenario2021-04-21_16h28_46.pngLoad a saved scenario and insert it in the current scenario.

Exploitation

Exploitation Connectors are often available only for root users in iXPath, their main mission is to fix and prevent all database and memory problems.

here's an updated list of exploitation connectors : 

Exploitation connectorsIconDescription 
PurgeJob2021-04-22_14h22_15.pngDeletes jobs older than a given date.
BackupBDD2021-04-22_14h24_03.pngDumps database for a backup.
PurgeTrackings2021-04-22_14h22_22.pngDeletes trackings older than a certain date.
PurgeFiles2021-04-22_14h22_30.pngDeletes files or directories older than a certain date.
Zip ZipConnectors.pngCreate a zip format for input files.
UnZip  UNZipConnectors.pngUnzip the input zip file in a directory. 

Timers

As its name says, Timers connectors set a timer to execute the next connector or launch a scenario ...

Timers connectors are listed as below : 

Timers connectorsIconDescription
Wait2021-04-22_14h40_14.pngWaits for a given time.
Wait Until2021-04-22_14h40_19.pngWaits Until a certain date. 

Gateways

Gateways is a BPMN notation used to control how a process flows. Connected by sequence flows, a gateway acts as a decision point that decides which (outgoing) sequence flow to take based on the result of the evaluation of condition(s) specified.

Inclusive gateway

2021-04-22_14h55_44.png

The inclusive gateway (or "OR gateway")is used to create alternatives routes, but also parallel ones inside a process flow. Contrary to the exclusive gateway, all condition expressions are evaluated. Whilst the Inclusive Gateway can be used to show that all paths must be taken, it should be used in such a way that at least one of the paths is taken.

Exclusive gateway

2021-04-22_14h55_30.png

The exclusive gateway accepts multiple inputs and outputs. We abbreviate “exclusive gateway” as XOR. It also evaluates the process state and divides the flow into multiple paths mutually exclusive. The flow takes the first input that satisfies all calculated conditions.

parallel gateway

2021-04-22_14h55_22.png

The parallel gateway (or the "AND gateway" ) is mainly used to synchronize parallel flows and create other parallel ones. These gateways create parallel paths without verifying conditions. each output sequential flow is passed through this gateway. About input flows, the parallel gateway waits for all other input flows before triggering the sequence of output flows.  

Variables

It means the variables that are used to describe some system or local values in iXPath App. 

There are 2 types of variables:

  • System Variables.
  • Local Variables.

To call a certain variable named "var", we use ${} as ${var}.

System variables

System variables define some default values in the system, and they can be often called by users.

Here is the list of all known system variables:

  1. At the declaration of the scenario:
    • iXSession: it returns the ID of the current session.
    • iXSessionPath : gets the Path of the session folder. 
    • env : name of the environment.
    • inputFile : this variable collect all input files in one list.
    • iXEnvPath : Env's path. 
  2. For a mail listener : 
    • iXFrom : refers to the sender of the mail.
    • iXSubject : refers to the mail subject.
  3. For an AS2 listener 
    • iXFrom : return the value of the AS2 sender.
  4. All connectors declare a system variable of type BpmnFile, it will be explained by details in the "variables" rubric.

Local variables

For a need to make the concept of variables more extensible, local variables come to offer the possibility of creating and calling new variables.

In order to set a new variable, the user may go through this line of code : 

<xsl:value-of select=" ixf:SetVar('Var', 'var Number 1')"></xsl:value-of>

 here, we created a local variable named 'Var' with value of "var number 1".

To get this variable 'Var' from XSL file :

<xsl:value-of select="ixf:getVar('Var')"></xsl:value-of>

Conditions

iXPath supports the usual logical conditions from mathematics like : a<b , a = b ...

Conditions hold the decision to execute a connector or not.

Eg of condition : 

Var == "My real variable" 

In the "Conditions" rubric, we will give you the entire details about conditions and how to use them perfectly. 

 

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