XML Workflow Tasks in MachShip provide powerful mapping capabilities for importing XML-formatted consignment data. This feature allows you to create custom mappings between your XML structure and MachShip's fields, supporting complex hierarchical data and transformations.
Key Features:
Access Workflow Tasks
Create New Task
Enable Configuration
Define XML to MachShip field mappings:
Consignment.Sender.Company
Consignment.Sender.AddressLine[0]
Single Value
<Consignment>
<Reference>12345</Reference>
</Consignment>
Path: Consignment.Reference
Nested Value
<Consignment>
<Sender>
<Company>ACME</Company>
</Sender>
</Consignment>
Path: Consignment.Sender.Company
Array Elements
<Consignment>
<Sender>
<AddressLine>Line 1</AddressLine>
<AddressLine>Line 2</AddressLine>
</Sender>
</Consignment>
Paths:
Consignment.Sender.AddressLine[0]
Consignment.Sender.AddressLine[1]
Essential fields for consignment creation:
Location Information (one set required):
Item Details (one set required):
Optional but Recommended:
Date Formatting
<DespatchDate>30/12/2023</DespatchDate>
Constant Values
Pattern Replacement
<?xml version="1.0" encoding="utf-8"?>
<Consignment>
<Sender>
<Company>ACME</Company>
<AddressLine>Main office</AddressLine>
<AddressLine>123 Business St</AddressLine>
<Suburb>Melbourne</Suburb>
<Postcode>3000</Postcode>
<Contact>John Smith</Contact>
<Phone>0412345678</Phone>
<Email>john@acme.com</Email>
</Sender>
<DespatchDate>30/12/2023</DespatchDate>
<Reference>123456789</Reference>
<Package>
<Reference>SKU1234</Reference>
<Length>100</Length>
<Width>60</Width>
<Height>10</Height>
<Weight>10</Weight>
<Quantity>1</Quantity>
</Package>
</Consignment>
Company Mapping
Target: From Company
Location: Body
Map From: Consignment.Sender.Company
Address Mapping
Target: From Address Line 1
Location: Body
Map From: Consignment.Sender.AddressLine[0]
Package Mapping
Target: Item Length
Location: Body
Map From: Consignment.Package.Length
XML Structure
Node References
Data Validation
Error Handling
Performance