Universal XML Universal Activity Module Mapping Guide
Universal XML Universal Activity Module Mapping Guide
Contents
1. Terms of use ...................................................................................................................................................... 4
2. Introduction ...................................................................................................................................................... 4
2.1 DataSource/DataTarget Type .......................................................................................................................................... 4
3. Universal events .............................................................................................................................................. 5
3.1 Data export .................................................................................................................................................................................... 5
3.2 Data import .................................................................................................................................................................................... 5
3.2.1 Matching and special update logic ..............................................................................................................5
4. Universal Activity ............................................................................................................................................ 6
4.1 Data export .................................................................................................................................................................................... 6
4.1.1 Exporting related items ........................................................................................................................................6
4.1.2 Exporting Workflow items ...................................................................................................................................6
4.1.3 Exporting eConversation ..................................................................................................................................... 7
4.1.4 Exporting Job Costing data ............................................................................................................................... 7
4.1.5 Exporting Custom Fields ......................................................................................................................................8
4.2 Data import .................................................................................................................................................................................... 8
4.2.1 Matching and special update logic ..............................................................................................................8
4.2.2 Client matching...........................................................................................................................................................8
4.2.3 Importing related items ........................................................................................................................................9
4.3 Element mappings .................................................................................................................................................................... 9
4.3.1 Universal Activity .......................................................................................................................................................9
4.3.2 Task.................................................................................................................................................................................... 12
4.3.3 TaskSet............................................................................................................................................................................ 14
5. Universal Activity Request ........................................................................................................................ 16
5.1 UniversalActivityRequest ................................................................................................................................................... 16
Any person within your organization who accesses this Universal Activity Module Mapping Guide
(irrespective of how it is accessed) may only do so only for the Permitted Purpose. All intellectual
property rights in this Universal Activity Module Mapping Guide are owned by WTG and are the
sole and absolute property of WTG, throughout the world.
Neither you, nor any person within your organization who accesses this Universal Activity Module
Mapping Guide is permitted to copy or distribute, forward or publicly display the contents of this
Universal Activity Module Mapping Guide (or any part of it) to any third party without first
obtaining the written consent of WTG.
2. Introduction
CargoWise features a number of modules that facilitate the creation of jobs representing generic
work. These modules support Universal XML by adhering to the Universal Activity schema for
importing and exporting data. The following modules are currently supported:
• Customer Service Tickets
• Projects
• Work Items
Customer Service
CustomerServiceTicket Ticket Number
Ticket
When a Key element is included, if a matching job (with the same module and job number) is
found in the recipient system, this job will be updated. If no match is found, the message is
rejected. If no Key element is included, a new Job is created in the target module.
3. Universal events
3.1 Data export
When you export a Universal Event from a supporting job, only the module name and job number
will be extracted and included in DataSource element of the xml. The job number for any job can
be found in CargoWise in the title bar of the job’s form. The Universal Event also contains
information about the Event and Workflow configuration that caused the Universal Event to be
sent.
The Universal Event is designed to be a notification of an event occurring during the life of a job. If
you want the full details of the Job, you should send a Universal Activity instead.
• Combination Key Match: not currently available for UniversalActivity modules, as these
modules do not offer any reference number other than job numbers. Combination Key
matching may be implemented in the future as business cases arise.
4. Universal Activity
4.1 Data export
The data included in a Universal Activity export includes summary, description, client, selection
criteria, custom field values, notes, workflow items, eConversation, job costing data, and a
collection of related items.
In Universal Activity XML, these related items are exported and listed in the
RelatedActivityCollection element. Each related item of an activity is written as an activity itself
(with a root element of <RelatedActivity>). These related activities contain all the detail that a
top-level Universal Activity would, with one exception. The related activity’s own
RelatedActivityCollection is omitted in order to prevent the recursive listing of related activities,
and to ensure the dataset is kept at a reasonable size.
Workflow items are included so that third party systems can see a brief historical summary of
the progression of a job where they are not able to handle timely updates via Universal Events.
Tasks, task sets, and milestones from Universal Activity XML are never imported. Workflow is
For more information about the way workflow items are handled by Universal XML, refer to
the Milestones section of the eAdaptor Developer’s Guide.
Note: the internal messages will only be exported if Organization Proxy is the selected
recipient of the Universal Activity export.
For more information, please refer to the Job Costing (Billing) and Consol Costs section of
the eAdaptor Developer’s Guide.
For more information, please refer to the Customized Fields section of the eAdaptor
Developer’s Guide.
New business objects can be created and attached simply by omitting the DataTarget Key
element on the RelatedActivity. A new business object will be created and attached to the
imported top-level business object.
Any RelatedActivity that does not include a DataTarget with a valid type element specified will be
ignored.
Note: the RelatedActivityCollection cannot be used to update the data of a related job.
Additionally, related jobs cannot be detached from a job using a Universal Activity import.
Any listed RelatedActivity will only be used to attach a job to the top-level business object.
Customer service
Element name Project Work item Notes
ticket
these registry
items have
SelectionCriterion5 SelectionCriterion5 Priority been
customized.
Branch Branch
Company Company
Organization Client
Address (Type: Client Information >
Client) Client/Contact
Organization Technician
Address (Type: Information >
TechnicalClient) Client/Contact
Project
ProjectManager
Manager
eConversation eConversation
eConversation + + +
Conversation eConversation eConversation eConversation
Participants tab Participants Participants
tab tab
Custom fields
CustomizedField will appear on
Details tab Details tab Details tab the Details tab
Collection if they have
been defined
for the
selected
workflow
template.
Task Sets
appear in the
Workflows grid
on the
Management
tab for job
Workflow & Workflow & Workflow & types
TaskSetCollection
Tracking tab Tracking tab Tracking tab associated
with a Buffer
Management
System. All
Tasks can be
seen on the
Tasks tab.
Workflow &
Milestone Workflow & Workflow &
Tracking tab,
Tracking tab, Tracking tab,
Milestones
Collection Milestones grid Milestones grid
grid
4.3.2 Task
A Universal Activity job’s tasks can be found on the job’s form under Workflow & Tracking >
Tasks tab. If Buffer Management is enabled for the job type, tasks will also appear under
Workflow & Tracking > Management tab in the Tasks grid, along with information about their
associated task set. All fields included in a task export are found in these grids. Please see the
table below:
4.3.3 TaskSet
When Buffer Management is enabled for a particular job type, task sets can be found on the job’s
form under Workflow & Tracking > Management tab. Each job has one job-level task set and
zero or more regular task sets. Each regular task set can have zero or more tasks. Task sets are
more than simple containers for tasks—they govern how work moves through a Buffer
Management System and is released into buffers. All fields included in a Task Set export are
found in the Workflows grid on the Management tab.
Each task set has a TaskCollection and TaskSetCollection. The TaskCollection contains all of the
tasks directly associated with that task set. The TaskSetCollection contains any child task sets.
For example, the job-level task set will often have regular task sets in its TaskSetCollection.
Similarly, task sets that have a quality iteration task set will have a populated TaskSetCollection.
Tasks exported from jobs where Buffer Management is not enabled will appear in a default task
set element which will be included in the TaskSetCollection of a job-level task set in the Activity’s
TaskSetCollection.
Workflows grid,
Description
Description field
5.1 UniversalActivityRequest
The UniversalActivityRequest is designed to query for and return a single UniversalActivity
matching the parameters enclosed in the message. Every module that supports exporting
UniversalActivity XML works with the UniversalActivityRequest interface. Each ‘well formed’
UniversalActivityRequest sent (opening and closing tags matching / present and no mandatory
elements missing) will get a UniversalResponse XML back. Following is a sample query for a Work
<Company>
<Code>BEN</Code>
</Company>
<EnterpriseID>HYE</EnterpriseID>
<ServerID>BEN</ServerID>
</DataContext>
</ActivityRequest>
</UniversalActivityRequest>
Item:
5.3 UniversalResponse
Each ‘well formed’ UniversalActivityRequest sent with opening and closing tags matching /
present and no mandatory elements missing will get a UniversalResponse XML back. The
UniversalResponse contains:
A malformed request will return an HTTP ‘400-Bad Request’ response with nothing in the body.
6. Sample files
• UniversalActivity_CustomerServiceTicket_DataSource.xml: customer service ticket
exported data
• UniversalActivity_Project_DataTarget.xml: project with rich text in description element
• UniversalActivity_WorkItem_DataTarget.xml: work Item with related items
Refer to the eAdaptor Sample Interfaces Pack under My Account Technical Guides >
Integration Options > eAdaptor.
Support: Press the F1 key from anywhere within CargoWise to raise an eRequest.