Logix Settings
To configure the integration of Fluig with Logix, the profile file must be modified, and the following parameters added:
#Key to enable the integration of LOGIX with ECM, where: #true = enabled #false = disabled logix.ecm.enabled=true #URL to find ECM logix.ecm.url=http://localhost:8080/webdesk/ #Integrating user, this user must exist both in LOGIX and in ECM logix.ecm.user=admlogix #Password of integrating user logix.ecm.userPassword=******** #Code of ECM company that will be used in LOGIX logix.ecm.company=1 #IP or DNS of FTP server of ECM logix.ecm.ftpHost=localhost #Port of FTP server of ECM logix.ecm.ftpPort=21 #Number of days for expiration of documents posted by LOGIX (default 4015) logix.ecm.docExpiration=365 #Indicates whether the XMLs sent through the WF will be saved in the LOGIX server logix.ecm.wsSaveXml=true #Indicates whether the tool being used is Fluig or ECM logix.ecm.isFluig=true
Settings in Fluig
In Fluig, two custom Datasets are needed to activate integration with the ERP Logix.
WSECMSERVICELOGIX Service
The WSECMSERVICELOGIX service that allows the execution of Logix routines through Web Service from Fluig will need to be created in Fluig. This service is created through Fluig Studio, as shown in the image below.
The path of the service will be similar to: http://[SERVIDOR-HTTP-LOGIX]:[PORTA-HTTP-LOGGIX]/WSECMSERVICELOGIX.apw?WSDL.
Dataset LogixServerDS
This Dataset must be created with information from the HTTP TOTVS Tec execution server of Logix. This Dataset must contain the server path (IP or DNS), port, integrating user and the integrating user password in Base64 (the online service http://www.base64encode.org/ may be used to codify the password in Base64).
The content, in JavaScript, can be found below:
function createDataset(fields, constraints, sortFields) { var newDataset = DatasetBuilder.newDataset(); //Create the DATASET columns. newDataset.addColumn("host"); newDataset.addColumn("port"); newDataset.addColumn("user"); newDataset.addColumn("pswd"); //Creates the records of the DATASET columns. newDataset.addRow(new Array("localhost","8080","admlog","MTIzNDU2Nzg=")); return newDataset; }
Dataset LogixExecServiceDS
This other Dataset is responsible for executing the ERP Logix routines from Fluig. The JavaScript file to be imported to Fluig can be found through this link: LogixExecServiceDS.js.