EasyLog Nuclet – nuclet: easylog (dhl) (not yet available).

globe with meridians Language: Deutsch · English

light bulb Nuclet: EasyLog (DHL) (not yet available)

Data sheet and documentation entry point for the EasyLog Nuclet (connection to the DHL EasyLog shipping software).

On this page

This page was machine-translated from German as a first draft and is currently under review. The authoritative source remains the German original (see the language switch above).

Nuclet for connecting to the EasyLog interface (DHL shipping software).

Name:EasyLog
Package:org.nuclet.easylog
Version:1.4.0
Date:13.09.2017
Nuclos compatibility:

from Nuclos 4.19.3

Overview

Short description

The EasyLog Nuclet implements the interface to the third-party shipping software "EasyLog" by DHL as a connection to Nuclos. The EasyLog software assists with capturing, processing and tracking transport orders, shipment preparation and shipment handling. This includes, for example, the fee calculation for captured shipments and the printing of orders for parcel delivery and common labels. Data is exchanged via CSV files in defined directories that Nuclos and EasyLog access.

Informationen zur Drittanbieter Versandsoftware "EasyLog" von DHL Link: http://www.dhl.de/de/paket/geschaeftskunden/verpackung-versand/versandsoftware.html

Nuclet components

The EasyLog Nuclet comprises

    • Java-Package "org.nuclet.easylog" mit 4 Java-Klassen

    • 3 business objects/forms

Java package structure

Java package

Java class

Description

org.nuclet.easylog.parameter

SystemParameter

Configuration of the import/export directories

org.nuclet.easylog.process

EasyLogExport

Creates the interface file for the data to be transferred to EasyLog

EasyLogImport

Reads and processes the interface file from EasyLog

org.nuclet.easylog.test

TestEasyLogExport

Example implementation of the export function

TestEasyLogImport

Example implementation of the import function

Business object

Name

Description

LieferbedingungDHL

New business object in the master data. Definition of the parameters for the EasyLog export (product/procedure/participation).
Required in addition to the sender data for shipping (e.g. national/international)

EasyLog Sendungen

EasyLogImport – captures all shipment data …

Test EasyLog 1

Example form with 2 buttons for triggering the EasyLog export/import function (user action).

Integration

Necessary integration steps

  1. Download

  2. Nuclet import

  3. Configuration of the system parameters (constants in Java class)

  4. Source code adjustments in the Java rules

All integration steps are explained in detail below.

Step 1: Download
Download the .nuclet file „EasyLog-v1.2.0-4.13.0.nuclet“ from the Nuclos web page under „Nuclos Services“ > „Download“ > „Nuclet Download“.

Step 2: Nuclet import
Import the EasyLog Nuclet under „Configuration“ > „Nuclet Management“ > „Import“ into your existing Nuclos instance, selecting the file „EasyLog-v1.2.0-4.13.0.nuclet“

Step 3: Configuration of the system parameters

Parameter

Short description

DIR_EXPORT

Directory for the CSV files of the EasyLog export

Example: "nuclos/data/easylog/export"

DIR_IMPORT_NEU

DIR_IMPORT_FEHLER

DIR_IMPORT_ERLEDIGT

Directory for the CSV files of the EasyLog import

Storage for incorrect processing of a CSV file

Storage for correct processing of a CSV file

Step 4: Source code adjustments

Nuclos export:

Extend the class „AbstractAdresse“ and override the methods of „AbstractAdresse“ with your own class „Adresse“ (example)

public class Adresse extends AbstractAdresse {

	@Override
	public String getAnschrift1() {
		// Businessobject
		return Kundenadresse.getAnschrift1();
		...
	}
	...

Call the export method in a server rule (can be a user action, object generation, job, etc.).
Passing the parameter (objects). See also class
 TestEasyLogExport.

...
Adresse adresse = … // Angabe der Emfängeradresse
LieferbedingungDHL dhlNational = … // Query auf Stammdaten
String gewicht = … // Angabe des Paketgewichtes


 // Adresse, Lieferbedingung DHL, Gewicht
EasyLogExport export = EasyLogExport.getInstance(context);
export.exportEasylog(adresse, dhlNational, gewicht);
 ...

Nuclos import:

Call the import method in a server rule (can be a user action, object generation, job, etc.).
See also class
 TestEasyLogImport. 

...
context.log("Import der EasyLog-Datei");

easyLogImport importEL = EasyLogImport.getInstance(context);
importEL.importEasylog();
...

Process flow

Nuclos export:
The interface file for the data to be transferred to EasyLog must be present in a defined source directory (SystemParameter.DIR_EXPORT) and in CSV format (SystemParameter.ENDING).
A polling function of EasyLog reads in the CSV files at defined intervals and processes the data. The CSV file contains recipient (address), product code, procedure, participation, country, weight.

Nuclos import:
The import function for shipments makes it possible to import complete shipment data from EASYLOG. The interface file from EasyLog is present in a source directory (SystemParameter.DIR_IMPORT) in CSV format.
EasyLog supplies the generated order and tracking number for this shipping order. Each line in the CSV file creates a record in the Nuclos business object „EasyLog Sendungen“ (form).
Further processing steps can be started after the import. As an example, a posting of the parcel (shipping order) with the customer order can take place.

Implementation example:

Under the menu item „Versand/Test EasyLog“, a test environment is created by generating a new record. On the form, the interfaces to EasyLog can be called via the buttons „EasyLog Export“ and „EasyLog Import“. The configuration of the SystemParameter is required beforehand. The buttons „EasyLog Export“ and „EasyLog Import“ call the server rules (user action):

org.nuclet.easylog.test.TestEasyLogExport
org.nuclet.easylog.test.TestEasyLogImport

with an implementation of example data. The form can also be removed from the menu path again via the business object.

Version history

Version
Date
Type
Changes
1.0.028.06.2013initial version-
1.1.013.12.2013Migration to Nuclos 4.0

Migration to Nuclos 4.0

1.2.024.03.2017Migration to Nuclos 4.13Migration to Nuclos 4.13
1.3.021.08.2017Migration to Nuclos 4.18Migration to Nuclos 4.18
1.4.013.09.2017Migration to Nuclos 4.19Migration to Nuclos 4.19

Related pages

open book Interfaces


Back to Interfaces

Open →

open book Nuclet Wiki


Nuclet Wiki home

Open →