9-8 Trading Networks Administrators Guide
9-8 Trading Networks Administrators Guide
9-8 Trading Networks Administrators Guide
Version 9.8
April 2015
This document applies to webMethods Trading Networks Version 9.8 and to all subsequent releases.
Specifications contained herein are subject to change and these changes will be reported in subsequent release notes or new editions.
Copyright © 2007-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or
its affiliates and/or their licensors.
The name Software AG and all Software AG product names are either trademarks or registered trademarks of Software AG and/or
Software AG USA Inc. and/or its subsidiaries and/or its affiliates and/or their licensors. Other company and product names mentioned
herein may be trademarks of their respective owners.
Detailed information on trademarks and patents owned by Software AG and/or its subsidiaries is located at
hp://softwareag.com/licenses.
This software may include portions of third-party products. For third-party copyright notices, license terms, additional rights or
restrictions, please refer to "License Texts, Copyright Notices and Disclaimers of Third Party Products". For certain specific third-party
license restrictions, please refer to section E of the Legal Notices available under "License Terms and Conditions for Use of Software AG
Products / Copyright and Trademark Notices of Software AG Products". These documents are part of the product documentation, located
at hp://softwareag.com/licenses and/or in the root installation directory of the licensed product(s).
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with
Software AG.
Table of Contents
Getting Started............................................................................................................................... 59
Starting the Host Integration Server.........................................................................................60
Starting Integration Server on Microsoft Windows............................................................60
Starting Integration Server on UNIX................................................................................. 60
Starting Integration Server from the Command Line........................................................ 60
Shutting Down Integration Server............................................................................................ 60
Planning Your Trading Network................................................................................................61
Creating Services and Viewing Specifications......................................................................... 62
Additional Documentation.........................................................................................................62
Sending Documents to Trading Networks................................................................................62
Sending Documents to Your Trading Networks from Another System..............................63
Sending Documents from One Trading Networks to Another........................................... 64
Sending a Document Back to Your Trading Networks......................................................64
Configuration Properties.............................................................................................................265
Introduction............................................................................................................................. 266
Activity Log Properties............................................................................................................266
tn.docType.EnableLogDocumentType............................................................................. 266
tn.partnerOnboarding.EnableLog.....................................................................................266
tn.procRule.EnableLogProcessingRule........................................................................... 266
tn.profile.EnableLogProfileChanges................................................................................ 267
tn.queue.EnableLogQueueStartStop............................................................................... 267
tn.tpa.EnableLogTPA....................................................................................................... 267
Cluster Properties................................................................................................................... 267
tn.cluster.notifyCacheChange.......................................................................................... 267
tn.cluster.notifyProfileAddUser.........................................................................................267
tn.cluster.notifyPropertyChange.......................................................................................267
tn.cluster.sync.remoteAliases.......................................................................................... 268
Database Properties............................................................................................................... 268
tn.db.log.level...................................................................................................................268
tn.db.readonly.................................................................................................................. 268
tn.store.encoding............................................................................................................. 268
tn.db.TNLocalDateFormat................................................................................................269
Database Query Properties.................................................................................................... 269
tn.query.maxrows.............................................................................................................269
tn.query.threshold.............................................................................................................269
Data Level Security Properties...............................................................................................270
tn.dls.EnableLogDataSetChanges...................................................................................270
Debugging Properties............................................................................................................. 270
tn.store.logsql...................................................................................................................270
Document Archiving Properties.............................................................................................. 270
tn.archive.archiveAfterDays............................................................................................. 270
tn.archive.batchSize.........................................................................................................270
tn.archive.batchBackoffTime............................................................................................271
tn.archive.deleteAfterDays...............................................................................................271
tn.archive.maxRows.........................................................................................................271
Document Validation Property................................................................................................ 271
tn.doc.validate.max_errs..................................................................................................271
Document Delivery Properties................................................................................................271
tn.delivery.ftpTransferType...............................................................................................271
tn.mail.from...................................................................................................................... 271
tn.mail.subject.................................................................................................................. 272
Event Properties..................................................................................................................... 272
tn.eda.events.transactions............................................................................................... 272
tn.eda.events.completedTransactions............................................................................. 272
tn.eda.events.deliveryTasks.............................................................................................272
tn.eda.events.serviceExecutionTasks.............................................................................. 273
tn.eda.events.userInitiatedTasks......................................................................................273
Flat File Property.................................................................................................................... 273
tn.ff.contenttypes..............................................................................................................273
Large Document Handling Properties.................................................................................... 274
tn.BigDocThreshold......................................................................................................... 274
tn.xml.xqlThreshold..........................................................................................................274
Localization Properties........................................................................................................... 274
tn.locale.language............................................................................................................275
tn.locale.country...............................................................................................................275
tn.locale.variant................................................................................................................275
Performance Properties..........................................................................................................275
tn.clean.routePipeline...................................................................................................... 275
tn.db.fetchMaxRows........................................................................................................ 275
tn.db.sortDocTimestamp.................................................................................................. 276
tn.doc.saveAsDone..........................................................................................................276
tn.receive.clearTNObjects................................................................................................276
tn.receive.clearKeys.........................................................................................................277
tn.store.pool.stmt............................................................................................................. 277
tn.resubmit.return.bizdocs................................................................................................277
tn.tpa.cacheSize.............................................................................................................. 277
tn.xml.cacheXQLQueryResults........................................................................................278
Profile Properties.................................................................................................................... 278
tn.default.idType...............................................................................................................278
tn.export.deleted.profiles..................................................................................................278
Task Properties....................................................................................................................... 278
tn.task.attempt.notPersisted............................................................................................ 278
tn.task.dbupdate.enableNotifications............................................................................... 278
tn.task.dbupdate.retryEnabled......................................................................................... 279
tn.task.dbupdate.retrySweepTime................................................................................... 279
tn.task.init.groupSize........................................................................................................279
tn.task.init.pauseLength................................................................................................... 279
tn.task.maxRetries........................................................................................................... 280
tn.task.ttw.........................................................................................................................280
tn.task.retryFactor............................................................................................................ 280
tn.task.notifyFailure..........................................................................................................280
tn.task.pauseOnMaxThreads...........................................................................................280
tn.task.sweepTime........................................................................................................... 280
tn.task.threadpool.pct.......................................................................................................281
tn.task.orderingMethod.................................................................................................... 281
tn.transport.user...............................................................................................................282
Miscellaneous Properties........................................................................................................282
tn.chart.fetchMaxRows.................................................................................................... 282
tn.check.ambiguous.docs................................................................................................ 282
tn.checkUser.ignoreCase.................................................................................................283
tn.decimalFormatPattern..................................................................................................283
tn.eda.events.emittableDocumentAttributeNameFilter.....................................................283
tn.ism.stats.saveFrequency............................................................................................. 284
tn.mail.onuserfail..............................................................................................................284
tn.portal.savetodisk.chunksize......................................................................................... 284
tn.recursion.max.............................................................................................................. 284
tn.server.seq.................................................................................................................... 284
This guide explains how to configure webMethods Trading Networks. It explains how
to plan, build, and manage a trading network, including how to define and update the
information to collect about trading partners and how to add and maintain partners
to your trading network. It also explains how to define the manner in which you want
Trading Networks to process business documents that are sent to your trading network.
This guide assumes you are familiar with webMethods Integration Server.
Note: The webMethods for Partners product provides the same functionality as
Trading Networks. For simplicity, this guide refers only to Trading Networks,
but the information applies to both products. The difference between the
products is that Trading Networks allows you to have an unlimited number
of partners, while webMethods for Partners allows you to have only one
partner.
Document Conventions
Convention Description
Italic Identifies variables for which you must supply values specific to
your own situation or environment. Identifies new terms the first
time they occur in the text.
{} Indicates a set of choices from which you must choose one. Type
only the information inside the curly braces. Do not type the { }
symbols.
Convention Description
... Indicates that you can type multiple options of the same type.
Type only the information. Do not type the ellipsis (...).
Online Information
Software AG Documentation Website
You can find documentation on the Software AG Documentation website at hp://
documentation.softwareag.com. The site requires Empower credentials. If you do not
have Empower credentials, you must use the TECHcommunity website.
Software AG TECHcommunity
You can find documentation and other technical information on the Software AG
TECHcommunity website at hp://techcommunity.softwareag.com. You can:
Access product documentation, if you have TECHcommunity credentials. If you do
not, you will need to register and specify "Documentation" as an area of interest.
Access articles, code samples, demos, and tutorials.
Use the online discussion forums, moderated by Software AG professionals, to
ask questions, discuss best practices, and learn how other customers are using
Software AG technology.
Link to external websites that discuss open standards and web technology.
Architecture
webMethods Integration Server hosts packages that contain services and related files,
and provides an environment for the orderly, efficient, and secure execution of services.
By way of the WmTN package, Trading Networks Server manages the partners on your
network and the exchange of documents.
My webMethods is a Web-based user interface framework that supports administration
and monitoring user interfaces for webMethods products. The Trading Networks
user interface in My webMethods lets you perform all Trading Networks tasks. My
webMethods Server is the run-time container for functions that webMethods products
make available. For example, when a user searches for a Trading Networks asset, My
webMethods Server interacts with Trading Networks to perform the search and return
the asset to the user.
The Trading Networks database stores all information about the trading network, such
as partner information, types of documents to process, processing actions, and log
activity.
In this network, one partner system is an Integration Server that is not using Trading
Networks. The application server and marketplace partner systems are not using any
Software AG software. The partner in the center is referred to as the hub of the network.
The other partners are referred to as spokes. The hub hosts the network and the spokes
participate by interacting with the hub.
A Trading Networks partner does not have to be exclusively a hub or a spoke; it can be
both, as shown in the following diagram. It can be a hub of its own network and a spoke
in another partner's network.
Asset Definition
When Trading Networks receives a document, it performs run-time processing. You
define this processing by designing Trading Networks assets, as follows:
Assets Description
Assets Description
Document Define document types for documents you and your trading
types partners will exchange. Document types are definitions that
represent particular categories of documents (for example,
XML or flat file). The document type can represent an industry
standard, such as a cXML Purchase Order, FIXML Quote
Request, or Biztalk Envelope, or a custom standard, such as a
purchase order format that you and a partner have agreed on.
Document types can also specify actions to perform for
documents, such as saving documents to the Trading Networks
database.
Note: You define assets differently for large documents. For details, see "Large
Document Handling" on page 297.
Document Attributes
Trading Networks supports two types of document aributes: system aributes and
custom aributes. Trading Networks defines the system aributes as follows:
System Description
Attribute
System Description
Attribute
SignedBody For XML documents, data that was digitally signed to create the
digital signature for the document.
You define custom document aributes. For example, if you are interested in PO numbers
and total order mounts, you might define PO_Number and Total_Order_Amount
custom aributes.
You tell Trading Networks to extract document aributes from documents you receive
for these reasons:
To use extracted aributes as a criterion for using a particular processing rule.
For example, if you want to use one processing rule if the sender is Partner A
and another processing rule if the sender is Partner B, you would extract the
system aribute SenderID. Or if you want to use a particular processing rule
when the receiver is Partner C and the total order amount is greater than $10,000,
you would extract the system aribute ReceiverID and the custom aribute
Total_Order_Amount.
To perform certain processing actions that require extracted aributes. For example,
if you want to deliver a document to the receiver partner, you would extract the
system aribute ReceiverID. If you want to verify the digital signature of an XML
document, you would extract the system aributes SignedBody and Signature.
To search for documents in My webMethods based on extracted aributes. For
example, if you want to be able to find documents that were sent by Partner A for
which the total order amount is greater than $10,000, you would extract the system
aribute SenderID and the custom aribute Total_Order_Amount.
If you BAM-enable Trading Networks and you want to pass extracted aributes to
Optimize for B2B for analysis and monitoring. For example, if you want to generate
a report on the purchase order quantity for a particular sender from a particular
receiver, you would extract the custom aribute PO_Quantity and the system
aributes SenderID and ReceiverID.
Document Types
You can define document types for XML and flat file documents. For example, you
might define document types for documents that represent purchase orders or
acknowledgements. For XML documents, you define document types for variations of
documents; for example, you might define purchase orders in cXML, OAG, and CBL.
A document type specifies criteria that an inbound document must meet to match
the document type, document aributes to extract from documents that match, and
processing to perform for those documents. You define exactly one document type for
each document you expect to receive or send.
If webMethods Module for EDI is installed on the same Integration Server that hosts
Trading Networks, you can also define document types for EDI documents. For
instructions, see webMethods Module for EDI Installation and User’s Guide.
The explanation of document types in this section mentions the pipeline. The pipeline
is an Integration Server data structure in which input and output values from services
are maintained. The pipeline starts with the input to a service and collects inputs and
outputs from subsequent services. When a service executes, it has access to all data in
the pipeline.
Definition Description
Definition Description
Aribute System and custom aributes to extract from the document. You
extraction define XQL queries that Trading Networks executes to extract
the aributes. You can also specify transformations for extracted
aributes; for example, you might want to transform an extracted
string value into all uppercase characters.
externalized as a set of records (list of records containing fields and composites) without
any structural information. Since the records are not structured in the document, the
application receiving the flat file must know the structure of the flat file to read its
content.
Since Trading Networks does not know the structure of a flat file document, it cannot
extract values for aributes directly from documents. The entry points for flat files into
Trading Networks, therefore, are document gateway services; that is, your trading partners
send their flat files to document gateway services rather than directly to Trading
Networks. A document gateway service does the following:
Reads an inbound flat file document
Places output variables such as the flat file document type for the document; the
processing rule for the document; system document aributes such as SenderID,
ReceiverID, and UserStatus; and custom aributes in the pipeline
Passes control to Trading Networks
A flat file document type defines the following:
Definition Description
Document Content that an inbound flat file document must have to be a match
recognition for the document type. You can specify any of the variables the
criteria document gateway service placed in the pipeline, such as the name
of the flat file document type to use; the SenderID, ReceiverID, or
UserStatus system aributes; or custom aributes.
Processing Rules
A processing rule specifies criteria that a document must meet to match the rule, and
processing to perform for documents that match, as follows:
Definition Description
Matching Content that a document must have to match the processing rule.
criteria You can specify the following as criteria:
Definition Description
Pre- The pre-processing actions you can define in a processing rule are
processing the same as those you can define for document types (see "XML
actions Document Types" on page 24). The difference is that you must
specify what to do for each action. A processing rule can specify to:
Perform the action that is defined in the document type.
Perform the action that you define in the rule.
Never perform the action at all.
Definition Description
status is NeedsApproval. The user status is assigned to the User
Status system aribute.
Deliver Document By action, to deliver the document to the
receiving partner using a specified delivery method.
Respond action, to send a message back to the document sender
(for example, an acknowledgement for a purchase order). You
can include data from the pipeline in the message. For example,
you could have the Execute a Service action asynchronously
invoke a service that performs the appropriate processing for the
purchase order, then return confirmation that the purchase order
was received and processed. You could then have the Respond
With action return an acknowledgement that indicates that the
purchase order was received.
Profiles
You add partners to your trading network by defining profiles. A profile contains
information about a corporation that is a trading partner in your network. You define
a profile for your corporation (called the Enterprise profile), and for each of the other
corporations that are trading partners in your network.
For example, you could define the external ID type DUNS, and then in profiles, you
could specify external IDs that contain the actual values of the D-U-N-S numbers in
documents. Trading Networks uses external IDs to identify the sending and receiving
partners within a document. For example, Trading Networks compares the value of
the D-U-N-S number in a document to the external IDs in profiles. If it finds a profile
with an external ID that matches the D-U-N-S number, it determines that the sender of
the document is the partner with that profile. You can specify an unlimited number of
external ID types. Each profile must include at least one external ID.
If you want to maintain additional information about your partners, you can define
custom fields, called extended fields . For example, you might want to define extended
fields for preferred shipping method, cost centers, or customer codes.
By default, many standard profile fields are required. When a profile field is required, all
profiles on your system must have a value for it. You can make standard fields required
or not required, and you can make extended profile fields required or not required.
You can associate profiles with partner groups . For example, you can create a partner
group named Buyers to associate all of your partners who are buyers in your trading
network. A partner can belong to more than one partner group. You can use partner
groups in the sender or receiver criterion when matching processing rules to documents.
Note: If the partner does not complete the questionnaire within a configured
time limit, Trading Networks sets the partner’s status to Expired. The
administrator can restart the onboarding process for that partner by re-
inviting the partner.
6. The administrator checks the details that the partner has submied. If they are
complete and in order, the administrator approves the partner. If the details are not
in order, the administrator resends the questionnaire for the partner to enter again.
7. If the partner enters the questionnaire correctly this time, the administrator approves
the partner. If not, the administrator rejects the partner and Trading Networks sets
the partner’s status to Rejected.
8. If the partner is approved, Trading Networks adds the information from the
questionnaire to the partner’s profile and TPA. The profile is changed from Pending
to Approved.
For procedures related to the partner onboarding process, see "Onboarding New
Partners" on page 157.
TPAs
You can define trading partner agreements (TPAs) for pairs of partners. Each TPA
contains specific information about how documents should be exchanged between two
trading partners, as follows:
The partner that represents the sender of the documents.
The partner that represents the receiver of the documents.
An agreement ID that identifies the type of TPA (for example, TPAs for the
webMethods Module for EDI use the agreement ID EDITPA).
The TPA data that contains the application-specific variables to use to tailor the
processing of documents exchanged between the sender and receiver. You specify
this data by defining an IS document type. An IS document type is an element in the
Integration Server namespace that contains a set of fields that define the structure
and type of data in an IS document, or IData object. For example, the webMethods
Document Delivery
To deliver a document to a receiving partner, you create a processing rule for the
document type, and you define the Deliver Document By processing action in the
processing rule. On the action, you identify the type of delivery to use, as follows:
Scheduled Places the document in a queue you define and delivers the
delivery document to the receiving partner at scheduled times. You
use scheduled delivery when it is more efficient to deliver
a batch of documents than to deliver each document as it
arrives. For example, if you want to deliver documents via
FTP, you might use scheduled delivery so you can open
a connection, deliver the batch of documents, and then
Immediate Delivery
Immediate delivery uses immediate delivery methods, immediate delivery services, and, if
you use reliable delivery, delivery tasks. An immediate delivery method invokes an
immediate delivery service that delivers a single document to the receiving partner. A
delivery task is a task Trading Networks creates to keep track of its aempts to redeliver
a document when you are using reliable delivery. The options for immediate delivery
are as follows:
Trading Networks provides standard FTP, FTPS, HTTP, HTTPS, SMTP, and Web
service delivery methods. You can create custom immediate delivery methods from
these methods; you create the custom method in one profile, and then you can select
the method in other profiles. When you create a custom method from a standard
method, Trading Networks automatically creates the corresponding immediate
delivery service. If that service does not meet your needs, you can create a custom
service to replace it.
Trading Networks provides built-in immediate delivery methods for primary and
secondary email, FTP, FTPS, HTTP, and HTTPS, and provides the corresponding
built-in delivery services. If the services do not meet your needs, you can create
custom services to replace them.
You can create custom immediate delivery services. For example, you might want to
create a custom service that delivers a message into a message queuing system. After
you create a custom service, you register it with Trading Networks, and Trading
Networks automatically creates the corresponding immediate delivery method.
To use immediate delivery for a partner, you define one or more immediate delivery
methods in the partner’s profile. You can then specify the method to use for a document
on the Deliver Document By action.
You can designate one immediate delivery method as the partner’s preferred
protocol, and specify using the partner’s preferred protocol for a document on the
Deliver Document By action. The preferred protocol option is primarily for use with
webMethods eStandards Modules.
To use reliable delivery, you specify the Save Document to Database pre-processing
action on the processing rule. In the receiving partner's profile, you specify the number
of times to try to deliver a document to the partner and the amount of time to wait
between aempts. If Trading Networks retries the maximum number of times and
delivery is unsuccessful, it changes the delivery task status to FAILED. If you correct the
problem, you can restart the task and Trading Networks will start trying to deliver the
document again.
Scheduled Delivery
Scheduled delivery for a partner uses a scheduled delivery queue, a scheduled delivery
service, a delivery schedule, and delivery tasks.
There are two types of scheduled delivery queues:
Private queues, each with a delivery schedule and delivery service you define. Each
private queue delivers documents to only one partner.
Public queues, each with its own delivery schedule and delivery service you define.
Each public queue can deliver documents to multiple partners.
To use scheduled delivery for a partner, you indicate which queue to use in the partner’s
profile; that is, you specify the partner’s private queue or one of the public queues. You
then specify the queue to use for a document on the Deliver Document By processing
action.
Trading Networks automatically uses reliable delivery with scheduled delivery.Trading
Networks creates a delivery task that invokes the scheduled delivery service and places
the task in the specified queue, and that keeps track of Trading Networks’s aempts to
redeliver the document.
A scheduled delivery service delivers a batch of documents to the receiving partner. You
can associate the same scheduled delivery service with multiple queues. The options for
scheduled delivery services are as follows:
Trading Networks provides one built-in scheduled delivery service that uses FTP to
deliver documents to a single destination. The service opens a connection, delivers
all documents, and then closes the connection.
You can create scheduled delivery services and register them with Trading
Networks.
At the times the queue schedule indicates, Trading Networks invokes the scheduled
delivery service to deliver the documents in the queue. The service acts on all delivery
tasks in the queue whose status is QUEUED. These QUEUED delivery tasks include
all delivery tasks that are in the queue when the service is invoked and any new tasks
that are added to the queue before the delivery service ends. The scheduled delivery
service tries to deliver the document to the receiving partner and indicates whether the
delivery was successful or not. The status of the delivery task is updated accordingly.
If a document cannot be delivered, Trading Networks leaves the delivery task with the
QUEUED status so the scheduled delivery service will to try to deliver the document
again at the next scheduled time.
Trading Networks automatically uses reliable delivery with scheduled delivery, but you
must specify the Save Document to Database pre-processing action on the processing
rule. In the receiving partner's profile, you specify the number of times to try to redeliver
a document to the partner. If Trading Networks retries the maximum number of times
and delivery is unsuccessful, it changes the task status to FAILED.
Document Processing
1. A partner sends a document, as follows:
The partner sends an XML document to the Trading Networkswm.tn:receive
service. The service reads the document into the pipeline. If coded to do so, the
service places the name of the document type and processing rule to use for the
document on variables in the pipeline.
The partner sends a flat file document to a document gateway service. The
gateway service reads the document and places variables you specify (for
example, SenderID, ReceiverID, DocumentID, and ConversationID) in the
pipeline. If coded to do so, the gateway service places the name of the document
type and processing rule to use for the document on variables in the pipeline,
and places specified custom document aributes and their values in the pipeline.
The gateway service then invokes the wm.tn:receive service.
2. If Trading Networks does not find a document type name in the pipeline, it performs
document recognition; that is, it compares the XML document to the criteria specified
in enabled XML document types, or the flat file document to the criteria specified
in enabled flat file document types. When it finds a match, Trading Networks
creates a BizDocEnvelope from the document and places the BizDocEnvelope
in the bizdoc variable in the pipeline. It then extracts the document aributes
that are specified in the matching document type from the pipeline and adds
them to the BizDocEnvelope, along with additional information required to route
and process the document. The BizDocEnvelope represents a routeable Trading
Networks transaction and conforms to the wm.tn.rec:BizDocEnvelope. The bizdoc
variable adheres to the wm.tn.rec:BizDocEnvelope IS document type and is an instance of
com.wm.app.tn.doc.BizDocEnvelope.
Trading Networks also places the sender and receiver variables in the pipeline.
These variables contain the partners identified as the sender and receiver,
respectively, in the document. The variables adhere to the wm.tn.rec:ProfileSummary
IS document type and are instances of com.wm.app.tn.profile.ProfileSummary. To view
the IS document type, open Software AG Designer and look in the WmTN package
wm.tn.rec folder.
3. The next action depends on whether the pipeline contains a processing rule name
and what the document type specifies, as follows:
If the document type specifies the use of a processing rule, Trading Networks
continues with step 4.
If the pipeline specifies a processing rule name, Trading Networks skips to step
5.
If the pipeline does not contain a processing rule name, and the document type
specifies to not use a processing rule, Trading Networks performs any pre-
processing actions that are specified in the document type in the order they are
listed in "Document Types" on page 24. Trading Networks then skips to step
7.
4. Trading Networks compares the document to the criteria specified in all enabled
processing rules, as follows:
Change User Assigns the specified user status to the document. For an
Status example of using user status criteria during processing, see
"Example of User Status in Document Processing" on page
305.
Respond Returns the specified message to the caller that sent the
with document to be processed.
7. If you extracted the ConversationID system aribute from the document, Trading
Networks passes the document to the Process Engine for processing by a business
process. If the Process Engine finds a running business process that uses the
document’s conversation ID, it passes the document to the running process. If
Process Engine does not find such a running business process, it searches for a
process model whose first step waits for the document and starts a new instance of
the process model. The Process Engine logs the status of business processes so you
can view and monitor their progress.
Error Logging
Document Recognition Errors
To determine the document type to use for an XML document, Trading Networks
looks at all enabled XML document types. To determine the document type to use
for a flat file document, Trading Networks looks at all enabled flat file document
types. Each document that passes through your system should match exactly one
document type. If a document does not match any document type, or matches more
than one document type, Trading Networks considers it an unknown document type.
When Trading Networks encounters an unknown document type, it:
Cannot extract any aribute information from the document, since document
types identify the aribute information to extract.
Tries to process the document using a processing rule that acts on unknown
document types, if you define one.
For documents that match more than one document type, Trading Networks logs
a message that identifies those document types to the Trading Networksactivity
log.
Trading Networks flags the following during document recognition:
A sender or receiver error if the external ID of the sender or receiver in the
document does not match the value of the external ID in any partner profile.
An aribute error if Trading Networks cannot extract an aribute that is marked
as required in the document type.
For an XML document, a sender or receiver error if the XQL query in the
document type cannot find the SenderID or ReceiverID system aribute in the
document.
For an XML document, a general error if an XQL query in the document type
fails. For example, a general error occurs when the document is identified as an
XML document but contains invalid XML or is actually another format, such as
plain text or EDI.
For a flat file, the document gateway service did not place the DocumentID,
SenderID, and ReceiverID system aributes in the pipeline.
If you used the Deliver Document By processing action, Trading Networks might
require additional information from the receiving partner's profile before it can
deliver the document. For example, for immediately delivery methods, Trading
Networks must look in the profile for the host name and port for the receiving
partner’s system. If Trading Networks cannot determine the required delivery
information (for example, because the receiving partner’s profile is disabled), it logs
the error to the activity and queues the document for polling.
If a document was sent by one of your partners but Trading Networks cannot
determine the sender, Trading Networks considers the sender an unknown partner.
If you have a processing rule that processes documents that are sent by the partner,
Trading Networks will not select the rule. Trading Networks cannot determine the
sender in these cases:
The document type is unknown, so Trading Networks cannot extract any
document aributes, including the sender or receiver.
The document type does not indicate to extract the SenderID and ReceiverID
system aributes, so Trading Networks cannot determine the document sender
or receiver.
The value of the SenderID and ReceiverID system aributes do not match the
value of the external ID type of any partner defined in aTrading Networks
profile.
In an XML document type, the XQL query cannot find the SenderID and
ReceiverID system aributes in the document.
Security
When you need to display or update an existing profile, Trading Networks reads
the appropriate handle in its database and asks the Password Manager to return the
password. The Password Manager obtains the password from the Integration Server
repository, decrypts it, and returns it to Trading Networks. If the password is already
cached in the Trading Networks database, this process is not necessary.
Note: Passwords used in scheduled delivery queues (public and private) are stored
in the Trading Networks database in binary-encoded form (not in plain text).
Trading Networks cannot encrypt passwords used in scheduled delivery
queues; because trading partners are allowed to create custom scheduled
delivery services, Trading Networks cannot anticipate which user-defined
input variable might be a password.
to look up the sender's profile and makes sure that the profile is associated with the My
webMethods or Integration Server user account that was used to send the document. If
the user account is not associated with the sender's profile, Trading Networks does not
process the document.
Certificates associated with partner profiles are stored in separate files in the Trading
Networks database. Certificates associated with Enterprise profiles are stored in keystore
files on Integration Server.
Keystores consist of one or more pairs of private keys and signed certificates for their
corresponding public keys. Each key pair is identified by a unique key alias. Keystores
are identified by a unique keystore alias.
You create and edit keystore aliases for certificates associated with Enterprise profiles
from the Security > Keystore panel in Integration Server Administrator. You create
key aliases to identify specific keys within a keystore using a third-party certificate
management tool.
For more information about keystores and certificates, see webMethods Integration Server
Administrator’s Guide.
Overlapping of Certificates
You can upload up to two active certificate sets each (referred to as the primary and
secondary certificate sets) for sign/verify, encrypt/decrypt, and SSL certificate types,
so that when one certificate set expires, Trading Networks can switch to the other one
without interrupting the processing of documents. The certificate set that you add first
is the primary certificate set. Trading Networks automatically switches from the primary
certificate set to the secondary one when any of the following occurs:
The primary certificate has expired and the secondary certificate has not expired.
The receiver's sign/verify or SSL primary certificate set does not match the sender's
sign/verify or SSL certificate set.
Trading Networks does not switch encryption/decryption certificates at the
receiver’s end. The receiver of the document must write a flow service that
first obtains the certificate ID of the appropriate decrypt certificate, using the
wm.tn.security:getAllCertificateData service, and then set that certificate as the primary one
for that partner, using the wm.tn.security:setPrimaryCertificate service. Doing so ensures
that the correct decryption certificate is retrieved for future transactions with that
partner.
The following diagrams illustrate the sign/verify, encryption/decryption, and SSL
scenarios:
Step Description
2 Trading Networks on the enterprise side retrieves the certificate C1 for the
trading partner from Trading Networks.
3 Trading Networks on the enterprise side verifies the document with C1.
Verification is successful.
Step Description
3 Trading Networkson the enterprise side verifies the document with C2.
Verification is successful.
Step Description
Step Description
Step Description
Step Description
5 The decryption module requests for the secondary certificate C2 using the
wm.tn.security:getAllCertificateData service.
Step Description
1 The enterprise sends a document to the trading partner over HTTPS using
the private key from certificate C1.
2 The trading partner's server authenticates the document using the SSL
certificate C1 configured on the server. Authentication is successful and
the transaction is complete.
Step Description
2 The trading partner's server authenticates the document using the SSL
certificate C2 configured on the server. Authentication fails.
5 The server on the trading partner authenticates the document using the
SSL certificate C2 configured on the server. Authentication is successful.
The transaction is complete.
Note: If you include the private key in the certificate information, Trading
Networks can also use this information to digitally sign documents
on behalf of the partner. You might have the private key if the profile
describes an internal group (for example, a department within your
corporation).
For XML documents, set up the document type to extract the SignedBody and
Signature system aributes. The SignedBody aribute identifies the portion of the
document that was digitally signed. The Signature aribute identifies the portion
of the document that contains the digital signature. The signature must be a base64
encoded PKCS#7 detached digital signature and can contain information for one or
more signers.
Specify the Verify Digital Signature pre-processing action in the document type or
processing rule.
When a partner sends a document to you, Trading Networks looks at the partner’s
profile to see if it contains the specific public certificate to use to verify the document. If
Trading Networks finds a set of certificates to use for that specific receiver, it uses the
appropriate certificate in that set. If Trading Networks does not find a set of certificates
to use for that specific receiver, it uses the default set of certificates specified in the
partner’s profile.
To verify that the document arrived unchanged from the partner to you, Trading
Networks invokes the Integration Serverpub.security.pkcs7:verify built-in service. Trading
Networks passes this service the value of the SignedBody and Signature system
aributes that it extracted from the document.
Trading Networks can only verify information on itself because it does not have the
certification/verification for the partner. Trading Networks makes sure that the CA that
signed the certificate is included in the list of trusted CA certificates that the Integration
Server maintains.
To ensure that the signed body has not changed, Trading Networks verifies the digital
signature, which is the value of the Signature system aribute. To verify that the
sender is who it claims to be, Trading Networks matches the certificate from the digital
signature to the Verify certificate that Trading Networks has on file for the partner.
Note: Trading Networks does not check to see if the CA that signed the Encrypt
certificate is in the list of trusted CAs that the Integration Server maintains.
If you include the private key in this certificate information, this certificate
information can also be used to decrypt documents that were encrypted
with the partner’s public key. You might have the private key if the
profile describes an internal group, for example a department within your
corporation.
When you encrypt a document to send to a partner, Trading Networks looks at the
partner’s profile to see if it contains the specific public certificate to use to encrypt the
document. If Trading Networks finds a set of certificates to use for that specific receiver,
it uses the appropriate certificate in that set. If Trading Networks does not find a set of
certificates to use for that specific receiver, it uses the default set of certificates specified
in the partner’s profile.
If you are using another webMethods product that requires Decrypt certificates, save
your Decrypt certificate in the owner’s profile. Because you can store Decrypt certificates
in the owner’s profile, you can set up alternate Decrypt certificates for different partners.
You can also specify a default Decrypt certificate by providing the certificate information
in the owner’s profile. If a default Decrypt certificate is defined, then Trading Networks
will use this default Decrypt certificate when a partner-specific Decrypt certificate is not
available.
Note: Trading Networks does not check to see if the CA that signed the Decrypt
certificate is in the list of trusted CAs that the Integration Server maintains.
When a partner sends an encrypted document to you, Trading Networks looks at your
profile to see if it contains the specific private key to use to decrypt the document. If
Trading Networks finds a set of certificates to use for that specific receiver, it uses the
appropriate private key in that set. If Trading Networks does not find a set of certificates
to use for that specific receiver, it uses the default set of private keys defined in the
Default profile for partners.
Finds a set of certificates to use The private key from that certificate set.
for that specific receiver
Does not find a set of The default private key specified in the
certificates to use for that sender’s profile.
specific receiver
Does not find a default private The default certificates specified in the
key specified in the sender’s Integration Server.
profile
notification through Software AG NERV (Network for Event Routing and Variation).
NERV is the framework for routing and transformation of events within an event-
enabled environment.
Trading Networks publishes two types of run-time events:
Transaction events. Occur when Trading Networks processes a document.
Task events. Occur when Trading Networks performs a post-processing task on a
document (for example, send document).
To enable Trading Networks to publish run-time events, be sure to:
Install and configure Software AG NERV. For more information about configuring
NERV, see Implementing Event-Driven Architecture with Software AG Products.
Enable the event groups by seing the event properties for the corresponding event
groups to true. For more information on event groups and event properties, see
"Event Groups" on page 254.
Software AG Intelligent Business Operations (IBO) platform-based applications can use
these run-time events to generate static or real-time reports.
Caching
A cache is a small fast memory holding recently accessed data, designed to speed up
subsequent access to the same data.
Ehcache is a standards-based caching API that enables applications to fetch frequently
used data from an in-memory cache rather than having to retrieve it from a database or
other back-end system.
Trading Networks uses the caching capabilities of Ehcache to provide:
Asset caching.Trading Networks uses Ehcache to cache assets. While the assets are in
cache, Trading Networks can quickly retrieve them for similar requests, rather than
geing the details from Trading Networks database. For more information about
asset caching, see "Asset Caching" on page 232.
Query results caching.Trading Networks uses Ehcache to store the results of a database
query. It stores the number of rows you specify in a session object on the host
Integration Server and stores the remaining rows in Ehcache. For more information
about query results caching, see "Query Results Caching" on page 232.
For an introduction to Ehcache and information for sizing Trading Networks system
caches, see Geing Started with the webMethods Product Suite and Terracoa.
view the transaction volume summary, the transaction volume and total value trend for
an aribute, successful and failed transactions, late FA count by partners and so on.
For more information on dashboards and charts, see "Working with Dashboards and
Charts" on page 257.
2 Getting Started
■ Starting the Host Integration Server ............................................................................................ 60
■ Shutting Down Integration Server ................................................................................................ 60
■ Planning Your Trading Network ................................................................................................... 61
■ Creating Services and Viewing Specifications ............................................................................. 62
■ Additional Documentation ............................................................................................................ 62
■ Sending Documents to Trading Networks ................................................................................... 62
Important: Running the startup script as root might reduce the security of your
system.
2. Execute the server.sh script. The script is located in the Integration Server_directory /
instances/instance_name /bin directory.
3. Make sure the Integration Server package WmPublic is enabled. For instructions, see
webMethods Integration Server Administrator’s Guide .
Additional Documentation
For information about... See...
Method Client
Post an XML or flat file document to the Integration Server Any type except
via HTTP, HTTPS, FTP, FTPS, or SMTP. browser based
Send an XML or flat file document by invoking a Web service Any type
you publish.
You can create a Web service using any Integration Server service. The service you use to
create the Web service must internally invoke the wm.tn:receive service.
Processing Description
Action
Note: Trading Networks does not check the identity of the sender in this
case against the IS user account that invokes the wm.tn.doc.xml:routeXml or
wm.tn.doc.ff:routeFlatFile service. That is, Trading Networks does not verify that
the user invoking these services has Trading Networks partner authority or
that the sender identified in the document is associated with the partner that
sent the document.
Overview
To see a list of the Trading Networks configuration properties and a description of each,
see "Configuration Properties" on page 265.
If required, user name and password for Trading Networks to connect to the
database.
Any additional database properties for Trading Networks to supply when
connecting to its database.
You can change these database connection parameters or others, such as minimum and
maximum connections. For instructions, see Installing webMethods and Intelligent Business
Operations Products.
Note: You can use a load balancer to “cluster” Trading Networks instances if
your application code is stateless and you are not using stateful processes
(for example, long-running conversations).
Important: When you save the properties you edit in this procedure, Trading
Networks will update all properties, including those that you did not
edit. In a clustered environment, this will cause Trading Networks to
synchronize all properties. If you want the Trading Networks instances
in the cluster to maintain different values for some properties, set the
tn.cluster.notifyPropertyChange property to false, and maintain the
properties for each server individually.
Important: If you have already created a remote server alias so the Integration
Server is part of a cluster without Trading Networks, you must create an
additional remote server alias for the Integration Server that is specifically
for the Trading Networks cluster.
2. To update the Trading Networks properties.cnf file for each Trading Networks
instance in the cluster, do the following:
a. In My webMethods: Administration > Integration > B2B Settings > Configure Properties.
b. Add or edit these properties:
Property Setting
Set this property to true... To notify all servers in the cluster about...
d. Click Save.
3. Trading Networks data cached in memory, user accounts, and properties are
automatically synchronized on all Integration Servers in the cluster. To turn one of
these synchronizations off for a Trading Networks instance, modify the appropriate
property in the Trading Networks properties.cnf file. For example, if you want to
manually control user account creation, turn off the tn.cluster.notifyProfileAddUser
property.
3. Add or edit the tn.mail.subject property to the subject line to use. For example, to use
the subject line “Document from IFC.” specify tn.mail.subject=Document from
IFC.
4. Click Save.
Delivery The Wait between retries value in the receiving partner's profile.
Property Setting
Note: You can create an Integration Server trigger that subscribes to documents
of this IS document type. For instructions, see the Publish-Subscribe
Developer’s Guide.
The value you provide in the MWS SAML Resolver URL field is assigned to the
watt.server.auth.samlResolver wa property.
3. Repeat these steps for every Integration Server instance that will communicate with
My webMethods Server.
Field Specify
Field Specify
Field Specify
Overview
You grant access to Trading Networks functionality and data in My webMethods based
on the role membership of My webMethods users. By default, My webMethods users
have no access to Trading Networks data. To grant access, you create My webMethods
user accounts for Trading Networks users, define roles, make users member of those
roles, and then grant permissions to roles.
The My webMethods roles that relate to Trading Networks are as follows:
Role Description
TN These users can view all Trading Networks data and perform all
Administrators Trading Networks actions. You manually add My webMethods
users to this role.
When you first start Integration Server and Trading Networks Server after configuring
central user management, Trading Networks automatically adds the My webMethods
TN Administrators, TN MWS Users, and TN Partners roles to the Allowed list of the
TNAdministrators, TNMWSUsers, and TNPartners ACLs, respectively.
Note: If you later want to force Trading Networks to add the roles to the ACLs
again, remove the wa.WmTN.mwsMap property from the Integration Server
server.cnf file and restart Trading Networks.
Defining Roles
Create My webMethods user accounts for Trading Networks users. Define the roles to
which to grant Trading Networks access and add My webMethods users to the roles. For
instructions, see Administering My webMethods Server.
2. Click EDIT in the row for a general functional permission. Permissions are as
follows:
Manage Extended Profile Add, edit, and delete extended fields in profiles.
Fields
Show SQL View the SQL that Trading Networks uses to search
the database for data.
Manage TN Archiving Add, edit, and delete the criteria and schedules for
archiving and deleting documents.
3. In the Select Roles dialog box, type a string that exists in the names of the roles you
want and click Search.
4. Move the roles to which to grant permission from the Available list to the Selected list.
5. Click Apply.
When you grant data permissions to act on more than one data set to a role, the users
belonging to that role get the data permissions granted in all those data sets. Be careful
when assigning multiple data sets to a role, especially if one of the data sets contains
the Exclude option for the partners, document types, or the processing rules. Trading
Networks limits the partner profiles, TPAs, processing rules, transactions, document
types, document aributes, tasks, and activity log entries in the data set based on the
partners, document types, and processing rules you specify, as follows:
For partner profiles and TPAs in the data set, access is based on and limited to
the partners specified in the data set definition. For document types in the data
set, access is based on and limited to the document types specified in the data set
definition. For processing rules in the data set, access is based on and limited to the
processing rules specified in the data set definition.
For transactions in the data set, access is based on partners and document types
specified in the data set definition, and is limited to transactions where both of the
following are true:
The sender or receiver of the transactions is associated with a partner specified in
the data set.
The transactions use a document type specified in the data set.
For tasks (delivery and/or service execution) in the data set, access is based on the
partners and document types specified in the data set definition, and is limited to
tasks where both of the following are true:
The receiver of the transaction is associated with a partner specified in the data
set.
The transaction uses a document type specified in the data set.
For activity log entries, access is based on partners, document types, and processing
rules specified in the data set definition, and is limited to activity log entries
associated with the following:
Events of transactions where the sender or receiver is associated with a partner
specified in the data sets, and these transactions use a document type specified in
the data set.
Profile administration audit trails of partners specified in the data set.
Document type audit trails of document types specified in the data set.
Processing rule audit trails of processing rules specified in the dataset.
Activity logs that are not associated with any of the transactions, document type
administration audit trails, processing rule administration audit trails, or profile
administration audit trails.
Create Profile Edit Profile Summary and Edit External IDs are granted
automatically after you save and re-open the data set.
View Activity View Profile and View Document Type data are granted
Log automatically.
Manage Lets you view, create, edit, enable, and disable document
Aributes aributes.
Note: Even if a user does not have the Create Document Types data
permission to a particular document type, Trading Networks might list
that document type in search results or as related documents in some
My webMethods pages. However, the user will not be able to view or
edit the details of the documents without those data permission.
Trading Networks lists only those data sets that have the role in the data set that has the
Create Profile permission and has the Custom Selection option selected. It does not list
the data sets if the role has the All Partners option selected even if the role has the Create
Profile permission.
Administrators can edit the data sets using the Dataset tab.
Creating IS Schemas
Create an XML schema for each variation of XML document type you want to validate.
For instructions, see webMethods Service Development Help.
Trading Networks expects you to return the transformed values in the newValues output
variable:
Return... For...
If the input variable isArray is false, your service should transform the single item and
save just a single item in the output variable newValues .
If the input variable isArray is true, your service should loop through the items in the
values variable and transform each one. It should store each as an item in the output
variable newValues . For example, if you are transforming string data, newValues is a Date
List of the transformed Strings .
Note: Custom duplicate checking services can affect performance, depending on the
service logic.
Specify at least one of the criterion below. For a document to match a document type,
it must match all the identification criteria you specify. If you specify the Root tag and
DOCTYPE criteria, Trading Networks matches inbound XML documents to those
criteria first. If these match, Trading Networks also checks the identifying XQL queries
and values, and the pipeline matching. Matching on XQL queries and its values is case-
sensitive.
The identifying query below specifies that the Identity tag within the Credential tag that
is within the Sender tag must be present, and the Identity tag must evaluate to XYZ Steel
Company:
/cXML[0]/Header[0]/Sender[0]/Credential[0]/XYZ Steel Company
For complete information about identifying queries, see "XQL Reference" on page
289.
If you are using a sample document, select in the left panel the node for which to
define an identifying query, click More Actions next to the Query field, and select
Add Query. In the Add Identifying Query dialog box, Trading Networks fills in the
XQL query and value for the node.
Note: The node is applicable for DATETIME, STRING, or NUMBER data types.
If you want to use DATETIME LIST, STRING LIST, NUMBER (with
Average, Minimum, Maximum, and Sum), or NUMBERLIST data types,
update the query so that it identifies an array of values.
If you are not using a sample document, click Add in the Identifying Queries
panel on the right. In the Add Identifying Query dialog box, type the query and,
optionally, the value.
Note: This node is applicable for DATETIME, STRING, or NUMBER data types.
If you want to use DATETIME LIST, STRING LIST, NUMBER (with
Average, Minimum, Maximum, and Sum), or NUMBERLIST data types,
update the query so that it identifies an array of values.
If you are not using a sample document, click Add in the right panel. In the Add
Extracted Aribute dialog box, type the XQL query. Also provide the information in
the sections below in the dialog box.
The XQL query points to the <DUNS> tag. Trading Networks stores the value 123456789
for the ReceiverID aribute and associates it with the external ID type DUNS.
Be sure to select an external ID type that your partners specify in their profiles. You
can choose from a list of external ID types. If the external ID type you need is not in the
list or if you have agreed on a non-standard format with a trading partner, select the
external ID type Mutually Defined and add an appropriate ID value.
DocumentID
Extract this system aribute if you want to use the document ID to determine whether
a document is a duplicate (Check for Duplicate Document pre-processing action), and if
you want to search for documents of this document type in My webMethods based on
document ID.
UserStatus
Extract this system aribute if you want to specify user status as a criterion for
determining the processing rule to use for the document, and if you want to search for
documents of this document type in My webMethods based on user status.
GroupID
Extract this system aribute if you want to search for documents of this document type
in My webMethods based on group ID.
ConversationID
Extract this aribute if you want to pass the document to a business process.
If you do not want to pass the document to a business process, add a variable to the
pipeline called prtIgnoreDocument with the value true. If ConversationID is extracted
and prtIgnoreDocument is set to true, it will not be passed to the process model.
Custom Attributes
Extract any custom aribute you want to use later.
Built-In Transformations for DATETIME and DATETIME LIST Data Type Attributes
If you extract an aribute that has the data type DATETIME or DATETIME LIST, you
must identify the date format. You can choose a built-in common date/time format or
you can type the format you need using a paern string based on the "Time Format
Syntax" described for the java.text.SimpleDateFormat class. Trading Networks extracts
the value of the date and uses it and the paern you specify to decode the value
and convert it to the format that Trading Networks requires to store the date in the
BizDocEnvelope.
Format Description
Format Description
Format Description
Average Calculates the average value of all the numbers in the array.
No format Stores the first value of the array as the value of the aribute.
Suppose your gateway service extracts the quantity of each item of a purchase order,
and you want to sum the quantities of all items. Suppose you defined the following
aributes in TN_parms and in the document type:
totalQuantity NUMBER
/TN_parms/totalQuantity summedValue NUMBER LIST
If you select the Sum built-in transformation for totalQuantity , it will sum its values and
produce a single number. For example, if the value of totalQuantity is this array:
/TN_parms/totalQuantity = {2, 3, 4, 5}
Click and select the custom transformation service to use. To locate a service,
specify the Package Name or NSName and click Search or browse the services in the listed
packages. Specify the inputs for the selected service.
Note: If you need to replace existing namespace mappings, use Set Namespace
Mapping.
Note: If you do not want to process documents using a processing rule, disabling
routing can improve performance by avoiding the search for processing rules.
If you know the folder that contains the IS schema to use, click and select the IS
schema. To locate a schema, specify the Package Name or NSName and click Search or
browse the schemas in the listed packages.
Important: If the structure of a document is not valid, the validation service can return
many error messages. To limit the number of error messages, set the
tn.doc.validate.max_errs property.
Note: Custom duplicate checking services can affect performance, depending on the
service logic.
Option Description
Option Description
to use the first document type that matches an inbound document by seing the
tn.chart.fetchMaxRows property to false.
Note: Trading Networks does not test documents against disabled document types.
Note: Trading Networks does not actually process the document you are testing.
That is, Trading Networks does not perform any pre-processing or processing
actions on the document.
Trading Networks expects you to return the transformed values in the newValues output
variable:
Return... For...
If the input variable isArray is false, your service should transform the single item and
save just a single item in the output variable newValues .
If the input variable isArray is true, your service should loop through the items in the
values variable and transform each one. It should store each as an item in the output
variable newValues . For example, if you are transforming string data, newValues is a Date
List of the transformed Strings .
Note: Custom duplicate checking services can affect performance, depending on the
service logic.
The input variable ffdata is the document sent by the partner through the gateway
service in the form of an input stream.
The output variables are ffdata (an object) and TN_parms (an IS document).
Note: You must provide your partners with the names of the document gateway
service or services for their document types.
Important: Remember to use InputStream's mark and reset methods so that Trading
Networks will be able to read from the beginning of the stream. If InputStream
does not support marking, make sure you transform InputStream to support
marking. Otherwise, Trading Networks will lose the bytes read by
the gateway service when it tries to save the document content to the
BizDocEnvelope.
If the document gateway service is a flow service, use the services in the pub.io folder in
the Integration Server WmPublic package. The WmPublic package must be enabled.
You can parse the input stream and convert it into an IS document from which you can
map data to the TN_parms pipeline variable. In the document gateway service, invoke
the pub.flatfile:convertToValues service in the WmFlatFile package. This service invokes the
flat file parser to validate the document's structure and content, based on the flat file
schema you identify as input to the service. Trading Networks can save or throw away
the parsed contents. For information about the pub.flatfile:convertToValues service, see the
Flat File Schema Developer’s Guide.
Note: Alternatively, you can convert the document using the Validate Structure pre-
processing action. Do not convert a document in both the document gateway
service and using the Validate Structure action. If you convert a document in
the gateway service, it will remain in the pipeline.
Important: Parse the document only if absolutely necessary. Parsing can be time-
consuming and return very large outputs that consume much memory.
DoctypeID or DoctypeName
This variable is a string, and is optional. It is the Trading Networks-generated internal
identifier or name of the flat file document type to use for the document. Specify the
document type if you want to avoid the overhead of searching for a document type. For
example, you would specify:
/TN_parms/DoctypeID = "5066kt00tttva37r00000009"
/TN_parms/DoctypeName = "xCBL_PO"
To view the names and IDs of your document types, open Software AG Designer and
invoke the wm.tn.doctype:list service.
Note: Because document type IDs cannot be changed, your gateway service will be
more stable and efficient if you use DoctypeID rather than DoctypeName . If
you specify both variables, DoctypeID is used.
DocumentID
This variable is a string, and is optional. It is the identifier of the flat file document.
Specify this variable if you want to use the document ID to determine whether a
document is a duplicate (Check for Duplicate Document pre-processing action), or if you
want to search for documents in My webMethods based on document ID.
GroupID
This variable is a string, and is optional. If you expect to receive more documents in
the same group, make sure the value you specify for GroupID is reproducible for those
documents. The same GroupID is being used in all the transactions.
Specify this variable if you want to search for documents of this document type in My
webMethods based on group ID.
ConversationID
This variable is a string, and is optional. Specify this variable if you want to pass the
document to a business process. If you expect to receive more documents in the same
conversation, make sure the value you specify for ConversationID is reproducible for
those documents. The same ConversationID is being used in all the transactions.
If you do not want to pass the document to a business process, add a variable to the
pipeline called prtIgnoreDocument with the value true.
UserStatus
This variable is a string, and is optional. Specify this variable if you want to specify user
status as a criterion for determining the processing rule to use for the document, and if
you want to search for documents of this document type in My webMethods based on
user status.
processingRuleID or processingRuleName
This variable is a string, and is optional. It is the Trading Networks-generated internal
identifier or name of the processing rule to use for the document. Specify the rule if you
want to avoid the overhead of searching for a document type.
To view the names and IDs of your processing rules, open Software AG Designer and
invoke the wm.tn.route:list built-in service.
Note: Because process rule IDs cannot be changed, your gateway service will
be more stable and efficient if you use processingRuleID rather than
processingRuleName . If you specify both variables, processingRuleID is used.
$receiveSvc
This variable is a string, and is optional. It is the fully qualified name of the document
gateway service you are creating. Save the name of the gateway service if you want to be
able to resubmit the flat file document.
Custom Attributes
Specify all custom document aributes to extract. Make sure the name and case you use
for the TN_parms pipeline variable exactly match the aribute name as it is defined in
the document type.
document type if TN_parms has a variable that matches the specified key, regardless of
the variable’s value. If you specify a value, the variable must have the specified value.
Note: You must specify at least one key or Trading Networks will not use the
document type.
Click the Configure tab. In the Pipeline Matching panel, click Add to specify the key and,
optionally, the value for each TN_parms variable to use to match inbound documents to
the document type.
TN_parms\SenderID for the value to use, Trading Networks uses the connected user.
That means that when the client sent the document to Trading Networks, it had to
present credentials (an Integration Server user name and password). That user name/
password pair directly correlates to a Trading Networks partner. Recall that when you
create a profile, there is a required external ID type (for example, DUNS). When you
create a profile, Trading Networks creates a user account on the Integration Server
for that partner. The user name is equal to the required external ID. So, if the required
external ID is DUNS and a profile is added for a partner whose D-U-N-S number is
123456789, that partner will have an Integration Server user account with the user name
123456789. So, when that partner's client wants to send a flat file document to Trading
Networks, it must present credentials; that is, it supplies user name 123456789 along
with its password. So, if Retrieve SenderID from session is set to true in a document type,
Trading Networks determines the sender of the document based on the user account
123456789, finds the profile (and therefore the internal ID), and puts that value in the
BizDocEnvelope.
Important: When you resubmit a flat file document with the Retrieve SenderID from
session option selected, the resubmit might fail. If you set up Sender
criteria in a processing rule, the first time the document arrives, the criteria
matches a processing rule based on the SenderID value 123456789 because
that is the value determined via the Retrieve SenderID from session option.
However, if you resubmit the document, that same processing rule will not
be selected based on the Retrieve SenderID from session option. This is because
when you resubmit the document from My webMethods, the user is the
IS user account that you used to log in to My webMethods (for example,
Administrator), which will not match sender 123456789 in the Sender criteria
of the processing rule. It could end up matching another processing rule and
then go through completely different processing.
DocumentID
Extract this system aribute if you want to use the document ID to determine whether
a document is a duplicate (Check for Duplicate Document pre-processing action), and if
you want to search for documents of this document type in My webMethods based on
document ID.
UserStatus
Extract this system aribute if you want to specify user status as a criterion for
determining the processing rule to use for the document, and if you want to search for
documents of this document type in My webMethods based on user status.
GroupID
Extract this system aribute if you want to search for documents of this document type
in My webMethods based on group ID.
ConversationID
Extract this aribute if you want to pass the document to a business process. If you
do not want to pass the document to BPM, add a variable to the pipeline called
prtIgnoreDocument with the value of true. If ConversationID is extracted and
prtIgnoreDocument variable is set to true, then it will not be passed to the process model.
Custom Atttributes
Extract any custom aribute you want to use later.
Built-In Transformations for DATETIME and DATETIME LIST Data Type Attributes
If you extract an aribute that has the data type DATETIME or DATETIME LIST, you
must identify the date format. You can choose a built-in common date/time format or
you can type the format you need using a paern string based on the "Time Format
Syntax" described for the java.text.SimpleDateFormat class. Trading Networks extracts
the value of the date and uses it and the paern you specify to decode the value
and convert it to the format that Trading Networks requires to store the date in the
BizDocEnvelope.
Format Description
Format Description
Average Calculates the average value of all the numbers in the array.
Format Description
No format Stores the first value of the array as the value of the aribute.
Suppose your gateway service extracts the quantity of each item of a purchase order,
and you want to sum the quantities of all items. Suppose you defined the following
aributes in TN_parms and in the document type:
totalQuantity NUMBER
/TN_parms/totalQuantity summedValue NUMBER LIST
If you select the Sum built-in transformation for totalQuantity , it will sum its values and
produce a single number. For example, if the value of totalQuantity is this array:
/TN_parms/totalQuantity = {2, 3, 4, 5}
To select a custom transformation service, click and select the service to use. To
locate a service, specify the Package Name and click Search or browse the services in the
listed packages. Specify the inputs for the selected service.
Note: If you do not want to process documents using a processing rule, disabling
routing can improve performance by avoiding the search for processing rules.
Note: Alternatively, you can perform the same validation and conversion in your
document gateway service. Do not convert a document in both the document
gateway service and using the Validate Structure action. If you convert a
document in the gateway service, it will remain in the pipeline.
Important: Parse the document only if absolutely necessary. Parsing can be time-
consuming and return very large outputs that consume much memory.
If you know the fully qualified name of the flat file (parsing) schema to use, type it in the
Parsing schema field. Otherwise, to locate the flat file schema, click . In the Input for
Flat File Validation dialog box, select the parsing seings. If you want to save the parsed
contents, select the keepResults option.
This action invokes pub.flatfile:convertToValues service in the WmFlatFile package, which
in turn invokes the flat file parser. For information about the service, see the Flat File
Schema Developer’s Guide.
Note: Custom duplicate checking services can affect performance, depending on the
service logic.
Option Description
Overview
Before you specify document deliver in processing rules or partner profiles, you might
need to perform the tasks in this chapter.
Note: Trading Networks cannot handle large documents that are delivered using
the Web service delivery method.
Parameter Entry
serviceName Unique name to assign to the delivery service and therefore the
delivery method (for example, Message Queue).
host Host name of the Integration Server that hosts Trading Networks.
If the delivery service resides on the local machine, specify
localhost or leave host blank; do not specify the host name for
the local machine.
To invoke a delivery service on a remote server, Trading
Networks opens an HTTP connection and posts the document to
be delivered.
port Port for the Integration Server that hosts Trading Networks. If you
leave host blank, do not specify a value for port.
Parameter Entry
user User name of a user account that has the authority to execute the
wm.tn.delivery:registerService service. If host is localhost or blank,
Trading Networks ignores user.
4. Click OK.
Create a Web service connector for every Web service you want to invoke. Using
Software AG Designer, create a consumer Web service descriptor from the remote
Web service. For instructions, see the Web Services Developer’s Guide. Integration Server
automatically creates the Web service connector from the descriptor.
Create a mapping service that describes how to pass the data from Trading Networks
to the Web service connector. Create a Java service or a flow service whose output has
the same document structure as the Web service connector's input document. Map the
pipeline variables with the required input values of the Web service connector. In most
cases, you might want to map the bizdoc aributes with the relevant input parameters
of the Web service connector. In such cases, the input for the mapping service is the
BizDocEnvelope.
You will create the Web service delivery method by providing the Web service connector
and mapping service details in the receiving partner’s profile (see "Adding a Custom
Immediate Delivery Method to a Profile" on page 173). You can add the Web service
response to the bizdoc, or you can create a document out of the response. If you want to
create a document, define a document type for the document so that Trading Networks
recognizes the document, and define a processing rule for that document type.
queue String Name of the queue that contains the delivery tasks
on which the service is to act. Your service will use
this value as input to the wm.tn.queuing:getQueuedTask
built-in service to retrieve a delivery task. For more
information, see "Required Logic to Include in the
Scheduled Delivery Service" on page 128.
Note: Trading Networks cannot handle large documents that are delivered using
the Web service delivery method.
Deliver the One of the built-in services in the pub.client folder, or one of
document your own custom transport services.
After your scheduled delivery service retrieves a delivery
task, it should deliver the document that is returned with the
task information.
The actions in italics are items that all scheduled delivery services should perform.
The above shows only one way to create the service. You might have different
requirements for your service. For example, you might want to combine several
documents and transmit them as one large document or might want to limit the number
of documents sent to a destination in a single invocation of your service.
As shown above, the scheduled delivery service might need to make a connection
to a remote server. The typical approach is to open the connection after you have
determined that the queue has delivery tasks in it (that is, the queue is not empty). You
can determine whether the queue is empty by invoking the wm.tn.queuing:getQueuedTask
built-in service. If this service returns null, the queue is empty. After your scheduled
delivery service has acted on the delivery tasks in the queue, your service can close the
connection to the remote server.
Some transport protocols require additional actions after opening a connection and
before you begin delivering documents. For example, for the FTP protocol, after
performing the LOGIN to connect to the remote server, a cd (change directory) is
performed to navigate to the appropriate directory.
Handling Exceptions
When the queue schedule dictates, the wm.tn.queuing:deliverBatch service is invoked.
The wm.tn.queuing:deliverBatch built-in service, in turn, invokes your scheduled delivery
service and passes your service information about the queue.
This wm.tn.queuing:deliverBatch service catches any exceptions thrown by your scheduled
delivery service or the underlying transport service that your services uses to deliver the
document. In response to an exception, the wm.tn.queuing:deliverBatch service increments
the retry count for the current delivery task and logs the exception to the activity log.
If your scheduled delivery service needs to take action in response to an exception, use
the pub.flow:getLastError service to detect whether an exception was thrown.
If you are creating your scheduled delivery service using the flow language, and you
want to exit your scheduled delivery service due to a failure, use the following flow
operation:
EXIT $flow and signal FAILURE
Flow Description
Operations
2 If the variable, task , is null, the queue is empty. In this case, map text
to the output variable, logMsg , and exit the service.
Flow Description
Operations
6 The REPEAT flow operation causes the service to loop over the
delivery tasks in the queue.
10 If the return code from the pub.string:concat service is 226, the file was
transmied successfully. In this case, the MAP flow operation sets the
value of the status variable in Pipeline Out to “success.”
For any other return code the other MAP flow operation sets the value
of the status variable in Pipeline Out to “fail.”.
Flow Description
Operations
13 After looping through all delivery tasks, log out of the remote FTP
server.
The wm.tn.transport:batchFtp service does not do any exception handling. All transport-
level exceptions cause the current invocation of the wm.tn.transport:batchFtp service to
terminate, and the exception will be handled by its caller, the wm.tn.queuing:deliverBatch
built-in service. The wm.tn.transport:batchFtp service will be invoked again for the delivery
queue, according to the queue’s schedule.
Parameter Entry
serviceName Unique name to assign to the delivery service and therefore the
delivery method (for example, Message Queue).
host Host name of the Integration Server that hosts Trading Networks.
If the delivery service resides on the local machine, specify
localhost or leave host blank; do not specify the host name for
the local machine.
To invoke a delivery service on a remote server, Trading
Networks opens an HTTP connection and posts the document to
be delivered.
port Port for the Integration Server that hosts Trading Networks. If you
leave host blank, do not specify a value for port.
Parameter Entry
user User name of a user account that has the authority to execute the
wm.tn.delivery:registerService service. If host is localhost or blank,
Trading Networks ignores user.
4. Click OK.
State Meaning
Disable Do not place new delivery tasks in the queue and do not
deliver documents. All delivery tasks that are already
in the queue remain in the queue. You might disable the
queue if you need to fix the scheduled delivery service,
or if a processing rule has been placed on the wrong
queue and you need to change the rule or reassign tasks to
another queue. If the partner profile is disabled, the private
queue is disabled.
Drain Do not place new delivery tasks in the queue but deliver
documents in the queue. You might drain a queue if you
want to delete it, or perform maintenance changes (for
example, change queue seings, update delivery services).
Suspend Place new delivery tasks in the queue but do not deliver
Delivery documents. You might suspend a queue if a trading
partner is temporarily unable to accept documents.
You can also change the status on the Public Queues page. For this, select the
checkbox beside the queue, and select a status from Change Status. You can do
this to change the status of multiple queues at once.
Note: When the state of a queue is Disable or Drain, delivery fails because
Trading Networks cannot place the delivery task in the queue. Trading
Networks sets the delivery task status to FAILED and logs a message to
the activity log.
c. Click the Schedule tab. In the Process Queue list, select how often to invoke the
scheduled delivery service to deliver the documents in the queue, then fill in the
fields below.
Important: Only use My webMethods to change the delivery schedule and other
queue seings for a scheduled delivery service. Do not try to use
Integration Server Administrator to change the schedule, or the data
passed to the service will be lost and the service will not be able to
deliver documents.
Selection Action
Run Once Invokes the scheduled delivery service one time only, at
the date and time you specify. This option is typically used
in a development environment.
Note: If the scheduled date and time occurs when the host
Integration Server is not running, Integration Server
throws an exception when you next start Integration
Server.
Fixed Interval Invokes the scheduled delivery service at the fixed interval
you specify (for example, every 3 hours). The scheduled
delivery service executes for the first time immediately
after Trading Networks adds the delivery task.
If you want to wait for the scheduled delivery service
to finish running before starting the next scheduled
invocation of the service, select the Do not overlap task check
box.
Overview
If you are working in a clustered environment, all Trading Networks servers must be set
up for cluster synchronization. For instructions, see "Configuring Trading Networks for
a Clustered Environment" on page 68.
The order in which you list your processing rules on the Processing Rules page is
important. If a document type enables processing rule routing, and does not identify
a specific rule to use to process documents, Trading Networks matches each inbound
document against processing rules in the order the rules are listed on that page, and
uses the first processing rule that matches the document. Order rules so that rules
with specific criteria are above rules with more general criteria. Also, set up a default
processing rule for Trading Networks to use when a document does not match any of
the other processing rules.
Note: Custom duplicate checking services can affect performance, depending on the
service logic.
If the service requires input values in addition to those in the specification, you might
want to hardcode some of the values when you set up the processing rule. For example,
you might create a service that can add, update, or delete an entry for a partner in your
back-end system. Input to the service is a flag that indicates the action to take. You could
create three separate processing rules that all execute this service, but set the input
values for the flag differently for each rule. For the rule that adds an entry, set the input
value to indicate that the service should add an entry. For the rule that updates an entry,
set the input value to indicate the service should update an entry, and so on.
Note: Trading Networks adds the new rule to the full, unfiltered list that
shows all processing rules. If you are working with a filtered list of
processing rules, adding a new processing rule might affect the rules
that are not displayed on your query results table. Ask a Trading
Networks administrator to check the order in the full, unfiltered list, or
test the rule order to make sure it is working as you intend (see "Testing
the Order of Processing Rules" on page 155).
To create the rule by copying an existing rule and modifying it, click in the
row for the rule to copy.
3. On the Processing Rule Details page, provide a name and description for the rule,
and indicate whether to enable or disable the rule. When a rule is disabled, Trading
Networks does not match documents to it or use it to process documents. Do not
enable the rule until you are done creating it.
For Receiver, select from the same options, but for receiver.
Specified That have specified user statuses. To add a user status to the
table, click and type the user status. To remove a user status,
click .
Attribute Field
Specify the name of a custom aribute to match on.
Operator Field
Indicate how to match the Value (below) against the value extracted from the documents.
For example, you can match string values that contain specified characters, match
number values that are greater than a specified value, or match date values to a specified
date. The operator you can specify depends on the data type of the aribute.
Value Field
Value specifies the value to match against the value extracted from the documents. You
can also specify null. Trading Networks might have a null value for an aribute for these
reasons:
For XML documents, the XQL query in the document type did not find the specified
aribute in the document.
The document type of the document is unknown, so Trading Networks did not
extract aributes.
If you use the Is Null operator, you do not need to specify a value in this field.
You can specify the following:
To specify... Do this...
A date and Click to select the date from a calendar or type the date and
time time using the format yyyy-mm-dd hh:mm:ss and a 24-hour clock
for hh .
Select... To...
Select... To...
Select... To...
Do not check Never check the uniqueness of documents processed with this
for duplicate rule.
document
Send a document back to the beginning as a “new” document (for example, because
the document did not match any defined document type). This is called resubmiing
the document.
Send a document back through processing rules (for example, because the document
was processed by the wrong rule). This is called reprocessing the document.
Select... To...
Save Always save the document content, aributes, and activity log.
Indicate whether to save information for all documents or only
for documents that are unique. To only save documents that are
unique, you must also check for uniqueness using the Check for
Duplicate Documents action.
Do not save Never save the document content, aributes, or activity log.
Click Select Service and select the service to invoke for the action. Specify how to
invoke the service, as follows:
Selection Description
To set inputs for the service, click Set Inputs and type values for the parameters for which
to hardcode an input value.
Email To Field
A sender contact Sender, and then select the contact type from the list. The
contact type must be defined in the sender’s profile.
A receiver contact Receiver, and then select the contact type from the list. The
contact type must be defined in the receiver’s profile.
Subject Field
Type a character string for the subject of your email.
If the document type is Purchase Order, the sender’s corporation name is XYZ Steel
Company, and the organizational unit is Alloys Division, the above sample message
body would be rendered as follows:
Trading Networks received a Purchase Order document from XYZ Steel Company--
Alloys Division.
You can view the document at
http://wMTN:5555/invoke/wm.tn.doc/view?docId=000233AB907ED1234
For information about output template tags, see the Dynamic Server Pages and Output
Templates Developer’s Guide.
Note: You can also change user status using the Java methods
com.wm.app.tn.doc.BizDocEnvelope.setUserStatus(String) and
com.wm.app.tn.db.BizDocStore.changeStatus(BizDocEnvelope,String,String) in the Trading
Networks Java API. For information, see the webMethods Trading Networks
Built-In Services Reference or the built-in service wm.tn.doc:changeStatus. These
APIs are given for creating custom solutions.
Note: If you have not already done so, perform the instructions in "Preparing for
Document Delivery" on page 121.
Important: If you use the Execute a Service action and the executed service updates the
receiver identified in the document, Trading Networks does not deliver the
document to the partner that the service specifies as the receiver unless that
service updates the receiver in the bizdoc in the pipeline. If the service does
not update the receiver, Trading Networks delivers the document to the
receiver identified when it initially received the document for processing.
Queue for polling Place the document in the queue for polling.
Respond Action
Field Entry
Content Type Indicate the content type of the message. For example, if the
message is an XML document, specify the content type, text/
xml. If the message is in plain text, specify the content type
text/plain.
Setting Description
Note: Trading Networks saves the new rule at the top of the list of processing
rules. If you want to move the rule to another position in the list, see
"Reordering Processing Rules" on page 154.
3. Move the rule up or down, or select a location for the rule. For example, if you
want to move rule 4 to position 8, select the rule and specify position 8 in the Select
Location dialog box.
Overview
The partner onboarding process can help you automate the creation of partner profiles
and trading partner agreements (TPAs) using the partner details provided in a comma-
separated values (.csv) file or by way of questionnaire responses received from the
partner. For more information about this process, see "Overview of the Partner
Onboarding Process" on page 29.
You can also create partner profiles manually by entering partner details on various
My webMethods pages. For information about creating profiles in this way, or editing
profiles created using either method, see "Creating Profiles" on page 169.
Note: If the partner does not complete the questionnaire within a configured
time limit, Trading Networks sets the partner’s status to Expired. The
administrator can restart the onboarding process for that partner by re-
inviting the partner.
6. The administrator checks the details that the partner has submied. If they are
complete and in order, the administrator approves the partner. If the details are not
in order, the administrator resends the questionnaire for the partner to enter again.
7. If the partner enters the questionnaire correctly this time, the administrator approves
the partner. If not, the administrator rejects the partner and Trading Networks sets
the partner’s status to Rejected. For more information, see "Approving or Rejecting a
Partner" on page 167.
8. If the partner is approved, Trading Networks adds the information from the
questionnaire to the partner’s profile and TPA. The status of the partner is changed
from Pending to Approved and the status of the TPA from Proposed to Agreed.
Note: You can also download the sample template provided on the Import
Information page, enter and save the information, and upload the file.
Note: The spreadsheet must comply with the header information provided
in the import template of Import Information page. It must contain, at
a minimum, the partner name and email address. If other information
about the partner is supplied in the spreadsheet, the spreadsheet must also
contain the partner's external ID.
5. Click the down arrow next to Upload Errors and Successful Uploads to view the results
in the Upload Results area. Correct any errors that may have occurred.
Note: You can click the Status icon to view messages related to the upload in the
Messages tab. Messages include upload confirmation and error messages.
If an error message appears, you can click the StackTraces tab to see the
stack trace report for the error.
Tip: You can reorder the groups in any template by clicking the arrow buon
and selecting Move Up, Move Down, or Select Location.
5. Add the groups that you want to add to the template by selecting the check box(es)
and clicking OK.
6. Click Save & Close.
Note: If you added a group name and description in the Add New Group section,
the fields are added to this new group.
4. In the Group list, select the group to which this new field should belong.
5. If you want the new field to be a mandatory field, select the Required check box.
6. Specify whether the data type is String or Binary.
Note: If you select the data type as Binary, you will not be able to set any default
or valid values.
Note: Ensure that the default value, if specified, is one of the valid values, if valid
values are specified.
9. To add valid values for the field, click the + buon in Valid Values and enter the value
in the text box.
Tip: You can add as many valid values as needed by clicking the + buon and
entering the value.
3. Click in the header of the group whose fields you want to manage.
4. On the Manage Fields dialog box, select whether to display One field per line or Two
fields per line.
5. To add a field to the group, click Add Field and specify the field’s details. For more
information, see "Adding New Fields to an Existing Group" on page 162.
6. To reorder fields in the group, click and change the order.
7. Select whether to show or hide a field for the group on the Manage Template page
by selecting or clearing the check box next to the field.
8. Click OK to save the seings.
Note: If you create a new mapping service, you need to enter the mapping service
name in the Mapping Service box on the Manage Templates page.
Note: Template is a fixed variable name, whereas Group Name and Field Name
should reflect the values you defined in the template.
d. Click the Questionnaire text box and select the questionnaire template you
would like to include with the invitation email. When a partner responds to the
invitation email by logging in, this template determines the questions that the
partner will see when prompted for additional profile details.
e. Click Save.
To search for an invitation email by name, click the Keyword tab, type the name of
the invitation, and click Search.
To specify detailed search criteria based on invitation expiration, start, or end
date, invitation name, partners identified as recipients, invitation email status, or
questionnaire template associated with the invitation, click the Advanced tab. Add
the desired filters and click Search.
3. To delete an invitation email that has not already been sent or has not yet expired,
select the email in the Invitations panel, click Delete, and then click OK to confirm.
4. To edit an invitation email, click the Edit icon in the Actions column next to the email.
Edit the email’s seings as described in "Configuring Invitation Emails" on page
164.
5. To set the status of an invitation email, do one of the following:
Double click on the invitation and choose Active or Inactive from Status.
Select the checkbox beside the invite in the Invitations panel and seing the status
to Active or Inactive. You can do this to set the status of multiple invitations at
once.
If the invitation is Active and you change it to Inactive, the entire schedule will be
suspended till the invitation is made active again.
Note: In Active mode, you cannot change any of the field values other than
reminders and expiration date.
Note: Trading Networks automatically adds My webMethods users who receive the
questionnaire as a part of the onboarding process to the TN Onboarding Users
role.
Status Description
Expired The partner did not complete the partner questionnaire within
the specified time limit.
ReInvited The partner was reinvited because he did not respond to the
invitation before it expired or the administrator re-sent the
invitation to partner.
Approved The administrator approved the partner and the partner can
now start transactions with Trading Networks. The partner is
shown in Partner Profiles page.
11 Creating Profiles
■ Overview ..................................................................................................................................... 170
■ Before You Begin ....................................................................................................................... 170
■ Creating a Profile ....................................................................................................................... 171
■ Adding Extended Fields to a Profile .......................................................................................... 187
■ Associating Partners with Partner Groups ................................................................................. 188
■ Working with TPAs ..................................................................................................................... 189
■ Deleting a Partner Profile ........................................................................................................... 193
■ Finding Partner Certificates that Are Expired or Expiring Soon ................................................. 193
Overview
If you are using Trading Networks, you can add as many partner profiles as you want. If
you are using webMethods for Partners, you can add one partner profile.
Profiles might take awhile to create. Software AG recommends that you save your
updates frequently.
The procedures described in this chapter create a partner profile from scratch. You can
automate some of this process by uploading partner details from a comma-separated
values (.csv) file or by way of questionnaire responses received from the partner. For
details, see "Onboarding New Partners" on page 157.
Service Description
Service Description
Validation Validates the data added to the IS document for the TPA. The
validation service must adhere to the service specification
wm.tn.rec:TPAValidationService.
Creating a Profile
Field Entry
Field Entry
Field Entry
Host In your profile, the host name of your system (for example,
XYZSteel.com). In a partner profile, the host name of the
partner’s system.
Port Port on which the specified host listens for incoming requests.
Field Entry
User Name In a partner profile, the user name Trading Networks should
supply to connect to the partner’s system.
The user name can be for an Integration Server or My
webMethods user account that has partner authority (that is, is
a member of the Integration Server ACL named TNPartners.
Field Entry
Field Entry
Web Service Fully qualified name of the Web service connector to use to
Connector deliver the document.
Click Select. In the Select Web Service Connector dialog box,
search for the Web service connector by providing the name
of the Integration Server package that contains the Web
service connector and the name of the Web service connector
namespace. You can provide a string or the entire namespace
name. You can use wildcard characters. Then click Search and
select the Web service connector from the list.
Mapping Fully qualified name of the mapping service that provides the
Service input to the Web service connector.
Click Select. In the Select Mapping IS Service dialog box, follow
the instructions for Web Service Connector, above.
State Meaning
Disable Do not place new delivery tasks in the queue and do not
deliver documents. All delivery tasks that are already
in the queue remain in the queue. You might disable the
queue if you need to fix the scheduled delivery service,
or if a processing rule has been placed on the wrong
queue and you need to change the rule or reassign tasks to
State Meaning
another queue. If the partner profile is disabled, the private
queue is disabled.
Drain Do not place new delivery tasks in the queue but deliver
documents in the queue. You might drain a queue if you
want to delete it, or perform maintenance changes (for
example, change queue seings, update delivery services).
Suspend Place new delivery tasks in the queue but do not deliver
Delivery documents. You might suspend a queue if a trading
partner is temporarily unable to accept documents.
You can also change the status on the Public Queues page. For this, select the
checkbox beside the queue, and select a status from Change Status. You can do
this to change the status of multiple queues at once.
Note: When the state of a queue is Disable or Drain, delivery fails because
Trading Networks cannot place the delivery task in the queue. Trading
Networks sets the delivery task status to FAILED and logs a message to
the activity log.
c. Click the Schedule tab. In the Process Queue list, select how often to invoke the
scheduled delivery service to deliver the documents in the queue, then fill in the
fields below.
Important: Only use My webMethods to change the delivery schedule and other
queue seings for a scheduled delivery service. Do not try to use
Integration Server Administrator to change the schedule, or the data
passed to the service will be lost and the service will not be able to
deliver documents.
Selection Action
Run Once Invokes the scheduled delivery service one time only, at
the date and time you specify. This option is typically used
in a development environment.
Note: If the scheduled date and time occurs when the host
Integration Server is not running, Integration Server
throws an exception when you next start Integration
Server.
Fixed Interval Invokes the scheduled delivery service at the fixed interval
you specify (for example, every 3 hours). The scheduled
Selection Action
delivery service executes for the first time immediately
after Trading Networks adds the delivery task.
If you want to wait for the scheduled delivery service
to finish running before starting the next scheduled
invocation of the service, select the Do not overlap task check
box.
Field Entry
Field Entry
Retry Factor For immediate delivery, the factor to use when determining
how long to wait before making subsequent aempts to
redeliver the document. Trading Networks calculates the
time to wait by multiplying the last wait time by Retry Factor.
Specify an integer greater than zero.
For example, the following shows sample values for the
reliable delivery seings and how they affect the wait times
between aempts to redeliver a document.
Delivery Maximum Retries = 3
Wait Between Retries = 10000 ms
Retry Factor = 2
Wait until next aempt:
Retry 1: 10000 ms
Retry 2: 20000 ms
Retry 3: 40000 ms
Note: You do not set the Wait Between Retries and Retry Factor fields for scheduled
delivery because Trading Networks retries the delivery based on the
delivery schedule.
Field Entry
Immediate delivery Delivery tasks for the partner are assigned HELD status
method that uses and Trading Networks does not try to deliver documents.
reliable delivery When delivery is resumed for the partner, Trading
Networks changes the status to PENDING and resumes
trying to deliver documents.
Scheduled delivery Delivery tasks for the partner are assigned HELD status
method that uses and Trading Networks does not try to deliver documents.
reliable delivery When delivery is resumed for the partner, Trading
Networks changes the status to QUEUED and resumes
trying to deliver documents.
Delivery tasks are also affected when deliveries are suspended. When delivery is
suspended for a partner, Trading Networks assigns the delivery tasks HELD status
and does not try to execute the services. When delivery is resumed, Trading Networks
updates the task statuses to PENDING and resumes trying to execute the services.
Field Entry
Field Entry
Oracle or SQL Server database, consider seing the
tn.checkUser.ignoreCase property.
Note: If you are adding this information to your Enterprise profile, you would
specify the private key alias and the keystore alias associated with the
certificate.
The following table lists the types of certificate sets you can add to a profile.
Type Description
Type Description
document that was digitally signed by the sender (Verify
Digital Signature pre-processing action).
Note: The certificate set that you add first is the primary certificate set. This is
indicated by a in the Status column.
4. If you are working with a partner profile, add the private key associated with the
certificate as follows:
a. Click Browse next to Set Private Key and select the file containing the private key.
b. To add a certificate, click Add Certificate, click Browse, and then upload the
certificate file.
c. Click OK.
5. If you are working with your Enterprise profile, add the private key associated with
the certificate as follows:
a. From the Keystore Alias list, select the alias of the keystore containing the
certificate.
b. From the Key Alias list, select the alias of the private key used to access the
certificate.
Note: If the desired keystore alias is not listed, you can create one by clicking
Create Keystore Alias. For details, see the section on creating keystore
aliases in webMethods Integration Server Administrator’s Guide.
c. Click OK.
6. Optionally, add a second certificate set as follows:
a. Click in the Edit column for the second certificate.
b. Click Browse next to Set Private Key and select the file containing the private key.
c. To add the certificate pair, click Add Certificate, click Browse, and then upload the
certificate files.
d. Click OK.
7. Save the profile.
Note: The certificate set that you add first is the primary certificate set. This is
indicated by a in the Status column.
c. Add the private key associated with the certificate by doing one of the following:
For a partner profile: Browse to and select the private key file, and then upload
the certificate file.
For your Enterprise profile: From the respective lists, select the keystore alias of
the keystore containing the certificate and the alias of the private key used to
access the certificate.
6. Optionally, add a second certificate set as follows:
a. Click in the Edit column for the second certificate.
b. Click Browse next to Set Private Key and select the file containing the private key.
c. To add the certificate pair, click Add Certificate, click Browse, and then upload the
certificate files.
d. Click OK.
7. Save the profile.
To remove the mapping between a keystore and the profile, select a blank entry
from the Keystore Alias list, and then click OK.
4. To remove a certificate set from the profile, select the check box to the left of the
certificate set on the Certificates tab, and then click Delete.
Field Entry
Field Entry
field required, therefore, you must add it to existing profiles
manually.
Group Profile field group to which to assign the extended field. If you
need to add a new group, type the name of the new group
in the Add New Group section of the dialog box and click Add
Group.
Data Type Data type of the extended field. For String, you can specify the
following:
Maximum Length: Maximum number of characters to allow in
the field. The default is no limit.
Default: Default value for the field.
Valid Values: Acceptable values for the extended field. Click
, type a valid value, and repeat as necessary. To remove a
value, click .
Defining a TPA
You can define a TPA between any two partners that have partner profiles.
To define a TPA
1. In My webMethods: Administration > Integration > B2B > Trading Partner Agreements.
2. Do one of the following:
To create a TPA by providing new information, click Add TPA.
To create a TPA by copying an existing TPA and modifying it, click in the
row for the TPA to copy.
3. Complete these fields:
Note: The Sender, Receiver, and Agreement ID fields together uniquely identify a
TPA. After you create a TPA, you cannot change or update these fields.
Field Entry
Sender Name of the trading partner that has the sender role in the
transaction the TPA will govern. Type the name of the sender
or click Edit to select the sender from the Select Partner dialog
box.
For EDI, to create a template that you will duplicate to create
other TPAs, you can use the default value Unknown.
Receiver Name of the trading partner that has the receiver role in the
transaction the TPA will govern. Type the name of the receiver
or click Edit to select the receiver from the Select Partner dialog
box.
For EDI, to create a template that you will duplicate to create
other TPAs, you can use the default value Unknown.
Control Number Value that the application using the TPA expects. For example,
the webMethods Module for EDI uses the control number
to make sure documents are processed in order and no
Field Entry
documents have been lost or unprocessed. This value is only
required if the application using the TPA uses the Control
Number field.
The value for this field must be an integer. The default value is
0.
Data Status When the TPA’s agreement status is Agreed (see "Changing
a TPA’s Agreement Status" on page 192), whether the
values for the TPA data defined in the IS document type can
be modified.
Field Entry
Editing a TPA
Editing a TPA’s Fields
To edit a TPA’s field
1. Select Agreements > Edit.
2. Update the TPA fields. You cannot modify or update the Sender, Receiver, or
Agreement ID field.
3. Update the TPA data input in the IS document type fields using one of these
methods:
To change the values in the IS document type, browse to locate the file that has
data for the IS document type and click Load Inputs.
If an initialization service is specified and you want to invoke it to reset the TPA
data inputs of the IS document type to their default values, click Reset Inputs.
4. If a validation service is specified and you want to validate the TPA data, click
Validate Data.
5. Click Save & Close.
Proposed TPA is in draft status. Use this status when you are creating
the TPA so you can modify the TPA fields, data values in the
IS document type, and agreement status.
Deleting a TPA
You can delete any TPA whose agreement status is Proposed or Disabled. When you
delete a TPA, Trading Networks deletes all of the TPA data from the its database.
TPAs The TPA agreement IDs, sender name, and receiver name. The
keyword or a string you type must be either an agreement ID,
sender name, or the receiver name.
Note: You can specify multiple criteria for a single field, and select AND or OR to
search for assets.
6. In a processing rule search, you can specify the criteria order for Trading Networks
to follow when searching. Click the Options tab. In the Search Order panel, click
and to move search criteria up or down, respectively, and click Save.
7. In a custom aribute, document type, processing rules, or TPA search, you can
narrow the results to only those assets that were modified within a specified date
range. Use the fields in the Last Modified or Date Range panel to identify the date
range.
8. Click Go.
Tag Value
<lowUnits> Number of search result rows in the cache that will trigger
deletion. Use the format:
<lowUnits>number_of_rows </lowUnits>
Property Value
6. Click Save.
Tag Value
13 Migrating Assets
■ Overview ..................................................................................................................................... 202
■ Trading Networks Assets You Can Export ................................................................................. 202
■ Migration Methods ...................................................................................................................... 203
■ Trading Networks Asset Dependencies ..................................................................................... 203
■ How Trading Networks Detects Assets in the Target System Before Importing Them ............... 206
■ Migrating Assets Using webMethods Deployer ......................................................................... 207
■ Migrating Using My webMethods ............................................................................................... 209
■ Migrating Assets Using the tnexport and tnimport Utilities ........................................................ 212
Overview
You can migrate Trading Networks assets such as document aributes, document types,
and partner profiles from one Trading Networks database to another. Migrate assets
when:
You want to deploy assets from a development environment to a production
environment.
You have multiple Trading Networks instances, each with its own database, and you
want each database to have identical assets. You can create the assets on one Trading
Networks instance and then migrate the assets to the other instances.
You want to change the type of database you use for Trading Networks. For
example, you were using an Oracle database and now want to use a SQL Server
database.
Important: Only use the procedures in this chapter to migrate Trading Networks assets
between Trading Networks instances of the same release. If you need to
migrate assets from one release of Trading Networks to another, follow the
instructions in the Upgrading webMethods and Intelligent Business Operations
Products. You cannot share your Enterprise profile with a partner.
Migration Methods
You can migrate all assets, all assets of a certain type, or selected assets within an asset
type. Below are the methods you can use to migrate assets. Unless otherwise noted,
procedures for each method are provided in this chapter.
Export assets to file using the export feature in My webMethods, then deploy assets
using webMethods Deployer. Software AG recommends using this method.
Note: You can use this method to deploy the assets of allwebMethods products
on one Integration Server to another Integration Server using a single
script. For complete information, see webMethods Deployer User’s Guide.
Migrate Trading Networks assets using the export and import features in My
webMethods.
Migrate Trading Networks assets using the tnexport and tnimport command line
utilities.
Migrate Trading Networks assets using the wm.tn.admin:exportData,
wm.tn.admin:extendedExportData, wm.tn.admin:importData, and wm.tn.admin:extendedImportData
built-in services.
export. When you select an asset for import, however, My webMethods shows some, but
not all, of the dependencies.
If you use the command line utilities or the built-in services to migrate, you must
manage asset dependencies yourself.
The table below lists all possible dependencies an asset might have. When the table
instructs you to migrate an asset, see below for instructions. When the table instructs
you to create an asset, see the appropriate chapter in this guide for instructions. You
must use the exact same name on the target system as the source system, with the same
upper and lower casing.
Extended Migrate any custom profile field groups. The standard groups are
field Corporation, Address, Contact, Delivery, External ID, Custom, and
definition EDINT (if this is installed). All groups other than these are custom
groups. To know the custom groups, execute the getFieldGroups
service in the wm.tn.dictionary package. Standard groups need not
be migrated because they would be available in the target system.
Processing Move any custom services for the Check for Duplicate Document
rule pre-processing action and the Execute a Service processing action.
For the Deliver Document By action:
Create any custom immediate delivery method.
Migrate any services for the custom immediate delivery method
and then use the wm.tn.delivery:registerService service to register
the corresponding immediate delivery service using the same
immediate delivery method name.
TPA Migrate partner profiles for the sender and receiver associated with
the TPA.
Move any initialization, validation, and export services.
Migrate the IS document type that defines the application-specific
TPA data.
Data Migrate partner profiles, document types, and processing rules that
permissions are part of data set definitions.
Migrate My webMethods roles that have permission to act on data
sets.
Archive Migrate any partner profiles for the sender and receiver used as
schedule selection criteria for archive or deletion.
Migrate any document type used as selection criteria for archive or
deletion.
If you do not export the required partner profiles and document types for data
permissions, Trading Networks throws a warning when you import that says the
required assets do not exist in the target system. It then continues to import the other
assets.
If the export file contains the required/dependent assets for any asset, tnimport will
ensure that the required assets get migrated first so that no error is thrown.
When importing document types, Trading Networks determines whether the required
document aributes exist on the target system with the same name. If they do not,
Trading Networks throws an error and does not import the document type.
When importing processing rules, Trading Networks determines whether the required
senders, receivers, and document types exist on the target system with the same name. If
they do not, Trading Networks throws an error and does not import the processing rule.
When importing partner profiles, if any of the required assets are not defined, Trading
Networks throws an error and does not import the profile. For example, if the contact
type is not already defined in the target system before you import a contact of that type,
Trading Networks throws an error and does not import that profile.
When importing TPAs, if the associated senders and receivers do not exist in the target
system with the same name, Trading Networks throws an error and does not import the
TPA.
Note: The Partner Profile tab lists each partner, including your corporation, by
corporation name.
Add an asset Select the asset’s check box and click Add to Export.
Remove all Click Clear. Clear is a global command, which clears all
assets the assets selected for export. Remove From Import removes
the selected assets from only the selected asset type. It
does not remove all the selected assets from the other asset
types.
If you want to also export the dependent assets of the selected assets because
they do not exist on the target machine, click Add Dependencies.
If you want to navigate to another page after selecting assets for export, the state
of the selected assets is maintained when you return to the Export page.
6. Click Continue. In the Export Summary panel, you can click for each asset type to
see the list of assets on the export list. If you want to remove an asset, click .
7. Click Asset Extraction, type the name to use for the export file, and click OK. Trading
Networks generates the file and names it SolutionName .zip. The file contains the
XML files for the assets. Click Save to save the file.
Multiple Assign the parent directory of all the project directories to the
projects build.source.dir property.
The build Ant target builds the .acdl files using all the source files available
in the subdirectories of the build.source.dir directory. If the build.source.dir
property is not specified, the build Ant target uses the source file specified by the
build.source.project.dir property to build the .acdl files.
3. Set the enable.build.TN property to true.
4. Make sure you have assigned the correct values to the sag.install.dir,
build.output.dir, and build.version properties.
The build Ant target uses the properties in the build.properties file, validates the
exported assets and the dependencies, and generates these files:
File Contents
SolutionName .acdl Metadata for the exported assets; that is, a list of the
exported assets and the dependencies. This metadata
schema is defined by Deployer and is common across the
webMethods product suite.
Note: The Partner Profile tab lists each partner, including your corporation, by
corporation name.
Add an asset Select the asset’s check box and click Add to Export.
Remove all Click Clear. Clear is a global command, which clears all
assets the assets selected for export. Remove From Import removes
the selected assets from only the selected asset type. It
does not remove all the selected assets from the other asset
types.
If you want to also export the dependent assets of the selected assets because
they do not exist on the target machine, click Add Dependencies.
If you want to navigate to another page after selecting assets for export, the state
of the selected assets is maintained when you return to the Export page.
6. Click Continue. In the Export Summary panel, you can click for each asset type to
see the list of assets on the export list. If you want to remove an asset, click .
7. Click Export and type the name to use for the export file. For Type, choose whether to
create an XML or binary-encoded file type. You can read XML files and edit assets if
necessary before import (for example, the name of a property), but they are a lile
slower to import than binary files. Binary files cannot be edited, but they offer beer
performance during the import. Click OK. Trading Networks generates the file with
the name you specified and the extension .zip. Click Save to save the file to the file
system.
4. If you want to import all Trading Networks assets, select the Select all assets check
box.
5. To select assets by asset type, click the tab whose name corresponds to the asset type
and do the following in each tab:
a. If you want to import all assets of this type, select the Select all check box.
b. If you want to import only certain assets, type a string in the Keywords field to
find those assets and click Search. Trading Networks searches the same fields it
searches when you search for assets (see "Searching Using Keywords (Simple
Search)" on page 196). In the search results, do the following to create the list of
assets to import:
Add an asset Select the asset’s check box and click Add to Import.
If you want to also import the dependent assets of the selected assets because
they do not exist on the target machine, click Add Dependencies.
If you want to navigate to another page after selecting assets for import, the state
of the selected assets is maintained when you return to the Import page.
6. Click Continue. In the Import Summary panel, you can click for each asset type to
see the list of assets on the import list. If you want to remove an asset, click .
7. Click Import. In the Import Assets dialog box, do the following:
a. An asset with the same internal ID or name as an asset in the export file might
exist on the target system. If you are importing document types, document
aributes, partner profiles, field groups, contact types, or queues, and you want
to overwrite such assets, select the Force Import check box.
b. If you are importing processing rules and you want the rules you are importing
to replace all existing processing rules in the target system, select the Replace Rule
List check box. If you want to replace only matching processing rules and append
non-matching processing rules without changing the rule order on the target
system, clear the check box. In the case of appending non-matching processing
rules, they are added to the end of the existing list on the target.
c. Click OK.
8. Click the Results tab to see the assets that were imported successfully and any
warnings or errors that occurred during the import.
tnexport Utility
Use the tnexport utility to export all or specific assets of the selected types. For example,
you can export all Trading Networks processing rules or only specific processing rules.
To export... Specify...
Binary file Creates a zip file containing the binary export file. When
extracted, you can use the contents of this zip file to import using
My webMethods or a custom service. You can import using My
webMethods, custom service, or the tnimport utility. Notes about
binary files:
Binary output is much smaller than XML output, and can be
imported more quickly than XML output.
You can export certificates to a binary file.
Binary files cannot be read by humans.
If you have special characters in asset names, you might see
corrupted file errors when the asset is imported. You can
prevent these errors by using a binary file.
XML file Trading Networks creates a zip file containing an XML export
file. When extracted, you can use the contents of this zip file
to import using My webMethods or a custom service, or the
tnimport utility. Notes about SML files:
XML output is a lile slower to import than binary output.
Solutions Go to Asset mgmt > export > select asset > Asset Extraction,
package which has the solution package details.
Trading Networks creates a zip file that contains the binary or XML file in the
user temp directory. For solution deployment, you need to extract assets to create
the ACDL file. This ACDL file is used to deploy the assets by using webMethods
Deployer. You can use zipdir to specify a different directory. The directory must
already exist. If you want to use a directory relative to the one from which you are
running the tnexport utility, specify a relative path.
options is one or more of the following:
Option Exports...
Note: If you want to use the -acdl option, list this option
first, followed by the other options.
Option Exports...
-flddefs All definitions for field groups and all profile fields in
those groups.
You can specify the options below in the XML file. To see a sample file, go to
Integration Server_directory\instances\instance_name \packages\WmTN\bin and open
the TNExport.xml file.
Option Value
assettypeall ids If you specified false on the all option, the assets to
export. This element contains these aributes and child
elements:
type. This aribute specifies the asset types
to export. Valid values are documenttype,
documentattribute, processingrule, partner,
fieldgroup, fielddefinition, externalidtype,
contacttype, binarytype, profilegroup, queue, tpa,
dls, functionalpermission, extendedfield, and
archiveschedule.
Examples
You want to export all partner profiles, all extended field values in the profiles, and
all the extended field definitions to the XML file ExportedData.xml. You want the
utility to create the zip file containing the XML data file in \TradingNetworks\. Use
this command:
tnexport -xml ExportedData.xml -zipdir \TradingNetworks\ -profiles
-extflds -flddefs
You want to export all Trading Networks assets to the binary file ExportedData.bin,
and you want the utility to create the zip file containing the ExportedData.bin file in
the user temp folder. Use this command:
tnexport -bin ExportedData.bin -all
You want to export Trading Networks assets based on the options specified in the
XML file ExportOptions.xml. Use this command:
tnexport -file ExportOptions.xml
tnimport Utility
Use the tnimport utility to import all assets in a specified file. The file you specify
must contain assets you previously exported using either the tnexport utility or My
webMethods.
Note: After using the tnimport utility, you must reload the WmTN package to be
able to use the imported data. You must also update each partner’s delivery
seings password.
To import... Specify...
Parameter Value
-bin binfile Full path to the binary file that contains the assets to
import.
-xml xmlfile Full path to the XML file that contains the assets to import.
-zip zipfile Full path to the zip file that contains the assets to import.
If you specify a relative path, Trading Networks looks for the directory relative to the
directory from which you are running the tnimport utility.
options is one or more of the following:
You can specify the options below in the XML file. To see a sample file, go to
Integration Server_directory\instances\instance_name \packages\WmTN\bin and open
the TNImport.xml file.
Option Value
importType Type of file to import. Valid values are bin, xml, or zip.
assettypeall ids If you specified false on the all option, the assets to
export. This element contains these aributes and child
elements:
type. This aribute specifies the asset types
to import. Valid values are documenttype,
documentattribute, processingrule, partner,
fieldgroup, fielddefinition, externalidtype,
contacttype, binarytype, profilegroup, queue, tpa,
dls, functionalpermission, extendedfield, and
archiveschedule.
Option Value
Examples
You want to import the assets in the XML file \TradingNetworks
\ExportedData.xml, and you want to overwrite assets on the target system that have
the same ID or name as assets you are importing. Use this command:
tnimport -xml \TradingNetworks\ExportedData.xml -db -force
You want to view information about the assets in the ExportedData.bin file that
resides in the same directory as the tnimport utility. You do not want to import the
assets into your database. Use this command:
tnimport -bin ExportedData.bin
You want to import all assets in the ExportedData.bin file that resides in the
same directory as the tnimport utility, and you want to replace the existing list of
processing rules in the target system with the processing rules you are importing.
Use this command:
tnimport -bin ExportedData.bin -db -replaceRuleList
You want to import assets into the target system based on the options specified in
the XML file ExportOptions.xml that resides in the same directory as the tnimport
utility. Use this command:
tnimport -file ExportOptions.xml
Note that this command does not overwrite the assets on the target system that
have the same ID or name as the assets you are importing. The remaining assets are
imported.
Type Description
The archive tables mirror the production tables, as shown below. Data in the archive
tables is identical to the data in the production tables. You can access archived
documents from My webMethods; for example, you can view archived documents on
the Transactions, Tasks, or Activity Log pages. You can work with archived data just like
you do with production data (for example, you can resubmit or reprocess transactions,
and stop and restart tasks).
BizDoc ARCHIVE_BizDoc
BizDocContent ARCHIVE_BizDocContent
BizDocAribute ARCHIVE_BizDocAribute
BizDocArrayAribute ARCHIVE_BizDocArrayAribute
BizDocRelationship ARCHIVE_BizDocRelationship
DeliveryJob ARCHIVE_DeliveryJob
ActivityLog ARCHIVE_ActivityLog
BizDocUniqueKeys ARCHIVE_BizDocUniqueKeys
EDITracking ARCHIVE_EDITracking
Note: If Trading Networks repeatedly deletes data from an Oracle database, the
database tables might become skewed. To resolve this issue, regenerate the
statistics of the table.
Property Value
3. Click Save.
Parameter Action
5. In the Schedule Type and Details section of the screen, do one of the following:
To run the service at specified intervals, click Repeating. In the Interval field,
specify the number of seconds to wait between executions. For example, if you
want the service to run once every 24 hours, specify 86400. In the Repeating field,
select the Repeat from end of invocation check box. This seing tells Integration
Server to wait for the scheduled task to complete before starting the next,
regardless of the Interval seing.
Note: The service executes for the first time immediately after you schedule
the user task.
To run the service on specified dates and times, click Complex Repeating. In the
Start Date and Start Time fields, specify the date and time for the first execution. In
the Run Mask parameters, specify the schedule for subsequent executions. If you
want the service to run indefinitely, do not specify End Date or End Time.
6. Click Save Tasks.
5. In the Criteria panel, specify the archive or deletion criteria in the fields below. All
of the fields are option; if you do not want to limit archive or deletion based on a
criterion, leave that field blank.
6. In the Data to Archive or Delete panel, select the document data to archive or delete.
If you want to archive or delete all document data (that is, the transactions data),
select Transaction Details (BizDoc).
If you do not want to archive or delete all document data, select one or more of
these options:
EDI Tracking Details Details available in the EDITracking table (see the
webMethods Module for EDI Installation and User’s
Guide).
7. Click Save.
Select... To...
Run Once Run the archive or deletion only once, on the date and time
you specify.
Fixed Interval Run the archive or deletion using a fixed interval (for example,
every 5 hours).
Select... To...
Hourly Run the archive or deletion hourly, at the time you specify.
Daily Run the archive or deletion daily, at the time you specify.
Weekly Run the archive or deletion weekly, on the day and time you
specify.
Monthly Run the archive or deletion monthly, on the date, day and time
you specify.
Yearly Run the archive or deletion yearly, on the month, date, day,
and time you specify.
Do not overlap Whether to wait for one archive or deletion to complete before
task starting the next, regardless of the schedule.
5. Click Save.
6. Set the status of the schedule by selecting Active or Suspend from Status at the top of
the page.
You can also set the status on the Archive Schedules page by selecting the checkbox
beside the schedule and seing the status to Active or Suspend. You can do this to
change the status of multiple schedules at once.
7. Click Save & Close.
Overview
Integration Server and other Software AG products use Ehcache in many of their
own internal processes. The caches that they use are called system caches and they
belong to system cache managers. Trading Networks has its own system cache manager
called SoftwareAG.IS.TN. The asset caches and query results cache belong to
SoftwareAG.IS.TN.
With Ehcache, a cache holds elements that are represented as key-value pairs. The key
and its value are both Java objects. An element that is placed in cache is identified by
its key. For example, when Trading Networks caches a profile, it uses the profileId as
the key. You use Integration Server Administrator to display the Trading Networks
system cache manager. You are not permied to delete, reload, or shutdown a system
cache manager. Additionally, you are permied to modify only certain configuration
parameters for a system cache manager and its caches.
Asset Caching
Trading Networks uses the following asset caches:
Profile cache. The Profile cache holds elements for profiles of all corporations who are
trading partners in your network.
Profile Summary cache. A profile summary is a subset of profiles. The Profile Summary
cache holds elements for all profile summaries.
Profile ID cache. The Profile ID cache holds elements for the profile IDs of all profiles
present in your network.
Document Type cache. The Document Type cache holds elements for all document
types required for XML and flat files.
Document Attribute cache. The Document Aribute cache holds elements for all
document aributes required to process documents.
Trading Partner Agreement (TPA) cache. The TPA cache holds elements for trading
partner agreements between various partners in your network.
TPA ID cache. The TPA ID cache holds elements for the TPA IDs of all the trading
partner agreements between various partners in your network.
TNQueryResults cache. For best performance, set this property to be the page size
Trading Networks uses for query results (that is, 50). The remaining rows are stored in
the cache.
Note: Be aware that many of the parameters associated with a system cache my be
system-defined and cannot be edited in Integration Server Administrator.
When you edit a system cache, you can see all of its parameters, but you can
edit only certain seings.
Note: Trading Networks does not support BigMemory and Distributed Cache
Configuration.
Overflow to Disk Specifies where entries are wrien when Not selected
the memory-based portion of on-heap and
off-heap cache is filled. When selected, the
entries are wrien to disk when the cache
is full.
Memory Store Policy used to remove entries from the LRU (Least
Eviction Policy cache when the value in Maximum Elements Recently
in Memory is reached. Used)
Overflow to Disk Specifies where entries are wrien when Not selected
the memory-based portion of on-heap and
off-heap cache is filled. When selected, the
entries are wrien to disk when the cache
is full.
Memory Store Policy used to remove entries from the LRU (Least
Eviction Policy cache when the value in Maximum Elements Recently
in Memory is reached. Used)
Overflow to Disk Specifies where entries are wrien when Not selected
the memory-based portion of on-heap and
off-heap cache is filled. When selected, the
entries are wrien to disk when the cache
is full.
Memory Store Policy used to remove entries from the LRU (Least
Eviction Policy cache when the value in Maximum Elements Recently
in Memory is reached. Used)
Overflow to Disk Specifies where entries are wrien when Not selected
the memory-based portion of on-heap and
off-heap cache is filled. When selected, the
entries are wrien to disk when the cache
is full.
Memory Store Policy used to remove entries from the LRU (Least
Eviction Policy cache when the value in Maximum Elements Recently
in Memory is reached. Used)
Overflow to Disk Specifies where entries are wrien when Not selected
the memory-based portion of on-heap and
off-heap cache is filled. When selected, the
Memory Store Policy used to remove entries from the LRU (Least
Eviction Policy cache when the value in Maximum Elements Recently
in Memory is reached. Used)
Overflow to Disk Specifies where entries are wrien when Not selected
the memory-based portion of on-heap and
off-heap cache is filled. When selected, the
entries are wrien to disk when the cache
is full.
Memory Store Policy used to remove entries from the FIFO (First In
Eviction Policy cache when the value in Maximum Elements First Out)
in Memory is reached.
Overflow to Disk Specifies where entries are wrien when Not selected
the memory-based portion of on-heap and
off-heap cache is filled. When selected, the
entries are wrien to disk when the cache
is full.
Memory Store Policy used to remove entries from the LRU (Least
Eviction Policy cache when the value in Maximum Elements Recently
in Memory is reached. Used)
Overflow to Disk Specifies where entries are wrien when Not selected
the memory-based portion of on-heap and
off-heap cache is filled. When selected, the
entries are wrien to disk when the cache
is full.
Memory Store Policy used to remove entries from the LRU (Least
Eviction Policy cache when the value in Maximum Elements Recently
in Memory is reached. Used)
16 Managing Events
■ Overview ..................................................................................................................................... 248
■ Run-Time Events ........................................................................................................................ 248
■ Event Groups ............................................................................................................................. 254
■ Configuring Run-time Events ..................................................................................................... 255
Overview
Trading Networks run-time events are organized into several event groups. Grouping of
events makes it easy to manage events. To enable Trading Networks to publish run-time
events, you have to enable the event properties for the corresponding event groups. This
chapter describes the types of run-time events, the event groups, and how to configure
the event properties to enable or disable the events.
Run-Time Events
Trading Networks publishes the following run-time events:
Alert Email.Trading Networks can be configured to send alert emails. It publishes this
event when it sends an alert email to a contact in the sender’s or receiver’s profile.
Information published:
Timestamp of the event
Internal Document ID
Email address of the sender or receiver
Batch Delivery Complete.Trading Networks publishes this event when it delivers a
batch of documents present in a queue, at a scheduled time.
Information published:
Timestamp when the batch is delivered
Queue where the documents are placed
Document Attribute Added.Trading Networks publishes this event when a new aribute
is added to a document or an existing aribute in a document is updated.
Information published:
Timestamp of the event
Internal Document ID
Sender ID
Receiver ID
Custom aributes (ID and value of the aribute added or updated)
Document Persisted. A document can be processed using a processing rule, or simply
saved to the Trading Networks database. Trading Networks publishes this event
when it saves a document to its database.
Information published:
NOT ROUTED
User status of the document
Custom aributes
Indication that the document is saved to the Trading Networks database
Indication that the document is large
Original Sender ID
Original Receiver ID
Number of times the document has been reprocessed or resubmied
Indication that the document has been reprocessed or resubmied
Enqueue Document.Trading Networks publishes this event when it places a document
in a queue, to be delivered later.
Information published:
Internal Document ID
Queue where the documents are placed
Timestamp of the event
Immediate Delivery Complete.Trading Networks publishes this event when it delivers
a document directly to the receiving partner. It uses the reliable delivery approach
where it makes repeated aempts to deliver the document. This event occurs
whether the delivery is a success or a failure.
Information published:
Task ID
Internal Document ID
Server on which the process is running
Time to wait between retries
Number of retries
Retry limit
Status of the delivery process. The possible values are:
DONE
FAILED
NEW
DELIVERING
PENDING
STOPPED
QUEUED
HELD
Timestamp when the delivery process was created
Timestamp when the status of the delivery process was last updated
Indication if the completed delivery process is a success or a failure
Message indicating the success of a delivery process, or reason for failure
Time taken to deliver the document in milliseconds
Fully qualified service name
Queue for Polling. Queue for polling is the default delivery method. Trading Networks
publishes this event when it places a document in a queue, saves the document to its
database, and sets the document’s processing status to POLLABLE. When a partner
polls for documents, Trading Networks delivers all documents in the queue for
which the partner is the receiver.
Information published:
Timestamp of the event
Internal Document ID
Relate Documents.Trading Networks publishes this event when it establishes a one-
way relationship between two documents.
Information published:
Timestamp of the event
Internal Document IDs of the two documents
Relationship shared between the documents
Reprocess Document.Trading Networks publishes this event when a document is sent
back through processing rules to be reprocessed.
Information published:
Internal Document ID
Timestamp of the event
Resubmit Document.Trading Networks publishes this event when a document is
resubmied, to be processed as a new document.
Information published:
Internal Document ID
Timestamp of the event
Routing Rule Selected.Trading Networks publishes this event when it matches a
routing rule with an incoming document.
Information published:
Timestamp of the event
Internal Document ID
Name of the routing rule
Post-processing actions. The possible values are:
execute.a.service
deliver.document.by
change.user.status
alert.email
respond.with
Send Document.Trading Networks publishes this event when it sends a document
over a transport protocol.
Information published:
Timestamp of the event
Internal Document ID
Transport Protocol. The possible values are:
POLL
QUEUE_DELIV
RECEIVERS_QUEUE
PREFERRED
PRIMARY_HTTP
PRIMARY_HTTPS
PRIMARY_EMAIL
PRIMARY_FTP
PRIMARY_FTPS
SECONDARY_HTTP
SECONDARY_HTTPS
SECONDARY_EMAIL
SECONDARY_FTP
SECONDARY_FTPS
BATCH_FTP
Service Invoke.Trading Networks publishes this event when it invokes a service for
processing a document.
Information published:
Timestamp of the event
Internal Document ID
Method of service invocation. The possible values are:
ASYNC
SYNC
RELIABLE
Fully qualified service name
Start Delivery.Trading Networks publishes this event when it starts to deliver a
document or a batch of documents.
Information published:
Timestamp of the event
Internal Document ID
Job ID
Indication if the job is held
Queue where the documents are placed
System Status Changed. System Status refers to the processing status of a document.
Trading Networks publishes this event when it changes the processing status of a
document, for example, NEW.
Information published:
Timestamp of the event
Internal Document ID
New system status of the document
Task Action.Trading Networks publishes this event when it performs an action on a
delivery task related to a document.
Information published:
Job ID
Timestamp of the event
Action performed. The possible values are:
Restart
Stop
Reassign
Remove
New server to which the job is reassigned
User Status Changed. User Status refers to a user-defined status of a document, for
example, Accepted. Trading Networks publishes this event when it changes the user
status of a document.
Information published:
Timestamp of the event
Internal Document ID
New user status of the document
Validation.Trading Networks publishes this event when it validates a document
against a specified schema.
Information published:
Timestamp of the event
Internal Document ID
Validation status (success or failure)
Error messages in case of failure
Verification.Trading Networks publishes this event when it verifies the digital
signature of a document.
Information published:
Timestamp of the event
Internal Document ID
Verification status (success or failure)
Error messages in case of failure
Event Groups
The run-time events are grouped into event groups. To control whether Trading
Networks publishes a group of events, you set the corresponding event property to
true.
To enable... Set...
Overview
Trading Networks provides a set of dashboards and charts that give you a graphical
view of partners and their transactions on a daily, weekly, and monthly basis. The
information you can view includes:
Transaction volume summary
Transaction volume and total value trend for a document aribute
Percentage of successful and failed transactions
Number of late FA violations
You can also view the top-tier and boom-tier partners based on transaction volume,
and the most common and least common document types exchanged between partners.
The dashboards and the charts display data according to the time zone of My
webMethods server. However, for non-standard time zones that have 15 or 45 minutes
GMT offset, select the nearest available standard time zone to view the dashboards
and charts. For example, for Eucla in Australia (GMT +8:45), Chatham Islands in New
Zealand (GMT +12:45), and Kathmandu (GMT +5:45), select the nearest available
standard time zone.
In addition to this, to view the Success and Failure Transaction Summary chart and
the Late FA (Functional Acknowledgement) Violations Summary chart, enable the
Transaction Events event group to enable Trading Networks to publish all the run-
time events that belong to this group. For this, set tn.eda.events.transactions
event property to true.
For more information on the event properties, see "Event Properties" on page 272.
Note: Late FA Violations Summary chart is available only if you have installed
webMethods Module for EDI. For more information on installing
webMethods Module for EDI, see webMethods Module for EDI Installation
and User’s Guide.
Enable Trading Networks to subscribe to the run-time events that belong to the
Transaction Complete Events and the Transaction Events event groups. To enable
Trading Networks to subscribe to the events, use one of the following methods:
Install and configure webMethods Universal Messaging. For more information,
see Installing webMethods and Intelligent Business Operations Products.
Use Trading-Networks-NERV-Route-Bundle.jar to subscribe to events.
To use the NERV bundle to subscribe to events, see "Using NERV bundle to
subscribe to events" on page 259.
Set the tn.chart.fetchMaxRows property to a suitable value. By default,
tn.chart.fetchMaxRows=500000. For more information on the property, see
"Miscellaneous Properties" on page 282.
Dashboards
The following list describes the available executive dashboards and the details you can
view in each dashboard.
Transaction Volume Summary. A transaction volume summary dashboard that
summarizes the following data over a day, week, or a month.
Transaction Volume Summary by Sender
Transaction Volume Summary by Document Type
Transaction Volume Summary by Hour of the Day
Cross Partner Metrics. A cross partner metrics dashboard that summarizes the
following data for a selected document aribute of type NUMBER.
Volume and Value 7 day and 30 Day Trend
Volume and Value by Partners 7 Day Trend
Successful and Failed Transactions 7 Day Trend
Late FA Violations by Partners 7 Day Trend
Partner Metrics. A dashboard that summarizes the following data for a selected
partner and a selected document aribute of type NUMBER.
Volume and Value 7 Day and 30 Day Trend
Successful and Failed Transactions 7 Day Trend
Late FA Violations 7 Day Trend
Viewing Dashboards
Use the following procedure to view dashboards.
To view dashboards
1. In My webMethods: Monitoring > Integration > B2B > Analytics.
2. Select a dashboard to view data.
3. Depending on the dashboard selected, specify the following criteria.
For Transaction Volume Summary dashboard, choose from Date to view daily,
weekly, or, monthly data.
To view weekly data, select a day that belongs to the week for which you want
to view data. For example, if the date selected is December 22, 2014, the data
displayed is for the entire week starting from December 21, 2014 to December 27,
2014 (Sunday to Saturday).
To view monthly data, select any day that belongs to the month for which you
want to view data. For example, if the date selected is December 22, 2014, the
data displayed is for the entire month of December 2014.
For Cross Partner Metrics dashboard, choose from Attribute and Date to view
daily, weekly, or, monthly data for the selected document aribute of type
NUMBER.
For Partner Metrics dashboard, choose from Date, Attribute, and Partner to
view daily, weekly, or, monthly data for the selected partner and the selected
document aribute of type NUMBER. When you click Select to choose a
partner, the Select Partner pop-up window displays the list of partners. For more
information on searching for partners, refer "Searching for Assets" on page 195.
4. Click to refresh data for all the individual charts in the dashboard.
5. Click to export data to a .csv file.
Charts
The following list describes the available charts and the details you can view by drilling
down each data point in the chart.
Transaction Volume Summary by Sender. A bar chart that summarizes the transaction
volume by sender over a day, week, or month.
Drill down the chart to view:
Transaction volume by receivers for the selected sender
Transaction volume by document types exchanged between the selected partners
(selected sender and receiver)
Transaction volume for the selected document type exchanged between the
partner pair at various time intervals during the day
Transaction Volume Summary by Receiver. A bar chart that summarizes the transaction
volume by receiver over a day, week, or month.
Drill down the chart to view:
Transaction volume by senders for a receiver
Transaction volume by document types exchanged between the selected partners
(selected sender and receiver)
Transaction volume for the selected document type exchanged between the
partner pair at various time intervals during the day
Transaction Volume Summary by Document Type. A bar chart that summarizes the
transaction volume by document types over a day, week, or month.
Drill down the chart to view:
Transaction volume by senders for a selected document type
Transaction volume by receivers who receive the document type from the
selected sender
Transaction volume for the document type exchanged between the partner pair
at various time intervals during the day
Transaction Volume Summary by Hour of the Day. A bar chart that summarizes the
transaction volume by hour of the day over a day, week, or month.
Drill down the chart to view:
Transaction volume by senders at a specific time interval during the day
Transaction volume by receivers who receive document types from the selected
sender during the chosen time
Transaction volume by document types exchanged between the selected partner
pair during the chosen time
Transaction Volume and Total Value Trend Summary. A chart that summarizes the
transaction volume and total value trend for a document aribute of type NUMBER
over a day, week, or month.
Drill down the chart to view the transaction volume and total value trend by
partners for the selected aribute. The data is sorted in ascending order based on the
total value if you select a data point on the total value graph, and transaction volume
if you select a data point on the transaction volume graph.
Transaction Volume and Total Value Trend Summary by Partners. A chart that summarizes
the transaction volume and total value trend by partners for a document aribute of
type NUMBER over a day, week, or month.
Drill down the chart to view the transaction volume and total value trend for the
selected aribute and the selected partner.
Success and Failure Transaction Summary. A set of pie charts that summarize the
percentage of successful and failed transactions over a day, week, or month.
The successful transactions pie chart in turn shows the percentage of successful
transactions whose status is either DONE, REPROCESSED, or RESUBMITTED.
Similarly, the failed transactions pie chart in turn shows the percentage of failed
transactions whose status is either DONE W/ERRORS, REPROCESSED W/ERRORS,
or RESUBMITTED W/ERRORS.
Late FA Violations Summary. A chart that summarizes the late FA violations by partners
over a day, week, or, month.
Viewing Charts
Use the following procedure to view charts.
To view charts
1. In My webMethods: Monitoring > Integration > B2B > Analytics.
2. Select a chart to view data.
3. Depending on chart selected, specify the following criteria.
Note: To view weekly data, select a day that belongs to the week for which you
want to view data. For example, if the date selected is December 22, 2014,
the data displayed is for the entire week starting from December 21, 2014
to December 27, 2014 (Sunday to Saturday). For monthly data, if the date
selected is December 22, 2014, the data displayed is for the entire month of
December 2014.
based on total volume. By default, the chart displays data for 10 most commonly
used document types arranged in descending order.
For Transaction Volume Summary by Hour of the Day, choose from Date to view
daily, weekly, or, monthly data.
For Transaction Volume and Total Value Trend Summary chart, choose from
Date and Attribute to view daily, weekly, or, monthly data for the selected
document aribute of type NUMBER. The drill down chart, by default, displays
top 10 partners for the selected aribute.
For Transaction Volume and Total Value Trend Summary by Partners chart,
choose from Date to view daily, weekly, or, monthly data. Click to choose
from Attribute, from Sort By to sort data in ascending or descending order based
on total value or total volume, and from Direction to display data for inbound or
outbound transactions, or both.
For Success and Failure Transaction Summary chart, choose from Date to view
daily, weekly, or, monthly data.
For Late FA Violations Summary chart, choose from Date to view daily, weekly,
or, monthly data. Click to choose from Number of Partners, and from Sort
By to sort data in ascending or descending order based on total number of late
FA violations. By default, the chart displays data for top 10 partners with late FA
violations arranged in descending order.
4. Click a bar on a bar chart or a data point on a line chart to drill down for more
details.
5. Click to take you back to the main chart.
6. Click to export data to a .csv file.
A Configuration Properties
■ Introduction ................................................................................................................................. 266
■ Activity Log Properties ............................................................................................................... 266
■ Cluster Properties ....................................................................................................................... 267
■ Database Properties ................................................................................................................... 268
■ Database Query Properties ....................................................................................................... 269
■ Data Level Security Properties .................................................................................................. 270
■ Debugging Properties ................................................................................................................. 270
■ Document Archiving Properties .................................................................................................. 270
■ Document Validation Property .................................................................................................... 271
■ Document Delivery Properties ................................................................................................... 271
■ Event Properties ......................................................................................................................... 272
■ Flat File Property ........................................................................................................................ 273
■ Large Document Handling Properties ........................................................................................ 274
■ Localization Properties ............................................................................................................... 274
■ Performance Properties ............................................................................................................. 275
■ Profile Properties ........................................................................................................................ 278
■ Task Properties .......................................................................................................................... 278
■ Miscellaneous Properties ........................................................................................................... 282
Introduction
This appendix contains a description of the Trading Networks properties. You can set
these properties using one of the following methods:
Execute the wm.tn.admin:setProperties service.
Specify values for the properties on the Administration > Integration > B2B Settings >
Configure Properties page in My webMethods.
Edit the properties file, properties.cnf, in a text editor. This file is located in the
Integration Server_directory\instances\instance_name \packages\WmTN\config
directory. If you set properties using this method, you should reload the WmTN
package after you save the properties file.
Trading Networks Server uses default values for many of the properties. If a property
has a default, it is listed with the description of the property.
tn.docType.EnableLogDocumentType
Whether to log auditing information to the activity log when you modify document
types from My webMethods (as opposed to modifying document properties in the
Trading Networks properties file). Set the property to true or false. The default is
false.
tn.partnerOnboarding.EnableLog
Whether to log all partner onboarding activity in the Activity Log. If you set the value of
tn.partnerOnboarding.EnableLog to true, it will log all partner onboarding activity in
the Activity Log table. If you set the value to false, Trading Networks will not log any
partner onboarding activities in the Activity Log. Set the property to true or false. The
default is true.
tn.procRule.EnableLogProcessingRule
Whether to log auditing information to the activity log when you modify processing
rules from My webMethods. Set the property to true or false. The default is false.
tn.profile.EnableLogProfileChanges
Whether to log auditing information to the activity log when you modify profiles or data
or general functional permissions from My webMethods. Set the property to true or
false. The default is false.
tn.queue.EnableLogQueueStartStop
Whether to prevent start and stop messages for queues from being logged into the
Activity Log table. If you set the value of this property to true, webMethods Trading
Networks will log the start and stop messages for all the queues in the Activity Log
table. If you set the value to false, webMethods Trading Networkswill not log the start
and stop messages for any queues in the Activity Log table. The default is true
tn.tpa.EnableLogTPA
Whether to log auditing information to the activity log when you modify profiles or data
or general functional permissions from My webMethods. Set the property to true or
false. The default is false.
Cluster Properties
tn.cluster.notifyCacheChange
Whether a host Integration Server will notify other Integration Servers in the cluster
when you modify Trading Networks document types, processing rules, document
aributes, profile summaries, or delivery services. Specify false or specify true and use
the tn.cluster.sync.remoteAliases property to identify the Integration Servers to notify.
The default is true.
tn.cluster.notifyProfileAddUser
When a user account is created on one Integration Server in a cluster, whether the user
account is also created on other servers in the cluster. Specify false or specify true
and use the tn.cluster.sync.remoteAliases property to identify the Integration Servers to
notify. The default is true.
tn.cluster.notifyPropertyChange
When you update Trading Networks properties on one Integration Server in a cluster,
whether the Trading Networks properties are updated on other Integration Servers in
the cluster. Specify false or specify true and use the tn.cluster.sync.remoteAliases
property to identify the Integration Servers to notify. The default is true.
tn.cluster.sync.remoteAliases
List of remote server aliases for other Integration Servers in the cluster. There is
no default; if you do not set this property, Trading Networks cannot notify other
Integration Servers when there are changes. Separate server names with a comma.
Database Properties
tn.db.log.level
Controls the activity logs created for every incoming document, thereby reducing the
number of messages added to the Activity Log table. Trading Networks logs messages
to the Activity Log table according to the value set for this property:
tn.db.readonly
When Trading Networks points to a read-only database, set this property to true. If you
set this property to false, Integration Server logs an SQL exception in the server log file.
The default value is false.
tn.store.encoding
The encoding your database is using. When a string is passed to an INSERT or UPDATE
statement, if that string is too long to fit into a column, this property indicates where to
truncate the string. If you do not set this property, Trading Networks uses the default
system encoding.
tn.db.TNLocalDateFormat
Determines the timestamp to use when storing data, to use either the local time zone or
GMT. This property applies only to documents that are stored after the property is set.
Existing records are not updated.
tn.db.TNLocalDateFormat=true Uses GMT timezone. Default value.
tn.query.maxrows
Default number of rows that query services return. The query services are services in
the wm.tn.query folder. An input variable to the query services allows you to specify a
maximum number of rows to return from a query. If you do not specify the number of
rows to return when you invoke a query service, the query service uses this property.
If a query returns more rows than allowed by this property, the query service silently
drops the rows that exceed the number you specify. The default is 0, which indicates no
maximum.
tn.query.threshold
Number of rows of query results to store in the session object; storing query results
in the session object optimizes query execution. Trading Networks stores the number
of rows you specify in the session object on the host Integration Server and uses the
caching component to store the remaining rows of query results in Ehcache.
Trading Networks uses this property for all queries you perform from My webMethods
(for example, queries for documents, tasks, and activity logs). In addition, this is the
default for queries that you perform using the built-in services in the wm.tn.query folder.
If you are using Trading Networks in a cluster, do not store query results in the session
object; set this property to -1. If you are not using Trading Networks in a cluster, for
best performance, set this property to be the page size Trading Networks uses for query
results (that is, 50). The default is 50.
tn.dls.EnableLogDataSetChanges
Whether to log auditing information to the activity log when you modify data
permissions or general functional permissions in My webMethods. Set the property to
true or false. The default is false.
Debugging Properties
tn.store.logsql
Whether Trading Networks should write each SQL statement to the host Integration
Server server log as it executes the statement. Writing the SQL statements to the log will
cause the Integration Server to run more slowly. You should only use this feature in a
development environment. Set the property to true or false. The default is false.
Note: To view the SQL statements in the Integration Server server log, you must set
the detail level for the log to 9 or higher. You specify the level of detail you
want to view in the server log using the -debugIntegration Server startup
option.
tn.archive.archiveAfterDays
Number of days to retain documents in the production tables. Trading Networks
archives documents that are older than the specified number of days. Specify a number
from 0 through 730365. If you do not want to archive documents, do not specify this
property or set it to 0. There is no default.
tn.archive.batchSize
Number of documents to archive or delete in a batch. If the number of documents
available for archive or deletion is less than this property, Trading Networks archives or
deletes only the number of documents in the batch. There is no limit for the batch size.
The default is 100.
tn.archive.batchBackoffTime
Seconds to pause between two batches of archive or deletion. There is no limit for the
pause time. The default is 15.
tn.archive.deleteAfterDays
Number of days to retain documents in the production tables. Trading Networks deletes
documents that are older than the specified number of days. Specify a number from 0
through 730365. If you do not want to delete documents, do not specify this property or
set it to 0. There is no default.
tn.archive.maxRows
Maximum number of documents to archive or delete in each scheduled archive or
deletion. The this property must be greater than or equal to the tn.archive.batchSize
property. The default is -1, which indicates no limit to the maximum number of
documents that can be archived or deleted in a scheduled archive or deletion.
tn.doc.validate.max_errs
Maximum number of errors Trading Networks can return when errors occur during
XML document validation. The default is 10.
tn.delivery.ftpTransferType
Transfer type for FTP delivery of documents. Specify active or passive. The default is
passive.
tn.mail.from
The From e-mail address to use when you deliver documents using an E-mail immediate
delivery method. There is no default.
tn.mail.subject
Subject line to use when you deliver documents using an E-mail immediate delivery
method. There is no default.
Event Properties
tn.eda.events.transactions
Controls whether Trading Networks publishes the run-time events that belong to the
Transaction Events group. When the tn.eda.events.transactions parameter is set to true,
Trading Networks publishes the events listed below. When the parameter is set to
false, these events are not published. The default is false. The run-time events that fall
into this category are:
Routing Rule Selected
Document Persisted
Document Aribute Added
System Status Changed
User Status Changed
Verification
Validation
Alert Email
Queue for Polling
tn.eda.events.completedTransactions
Controls whether Trading Networks publishes the run-time events that belong to
the Transaction Complete Events group. When the tn.eda.events.completedTransactions
parameter is set to true, Trading Networks publishes the Document Processing
Complete event. When the parameter is set to false, the event is not published. The
default is false.
tn.eda.events.deliveryTasks
Controls whether Trading Networks publishes the run-time events that belong to the
Delivery Task Events group. When the tn.eda.events.deliveryTasks parameter is set to true,
Trading Networks publishes the events listed below. When the parameter is set to
false, these events are not published. The default is false. The run-time events that fall
into this category are:
Enqueued Document
Start Delivery
Send Document
Immediate Delivery Complete
Batch Delivery Complete
tn.eda.events.serviceExecutionTasks
Controls whether Trading Networks publishes the run-time events that belong to
the Service Execution Task Events group. When the tn.eda.events.serviceExecutionTasks
parameter is set to true, Trading Networks publishes the Service Invoke event. When
the parameter is set to false, the event is not published. The default is false.
tn.eda.events.userInitiatedTasks
Controls whether Trading Networks publishes the run-time events that belong to the
User Initialized Task Events group. When the tn.eda.events.userInitiatedTasks parameter is set
to true, Trading Networks publishes the events listed below. When the parameter is set
to false, these events are not published. The default is false. The run-time events that
fall into this category are:
Reprocess Document
Resubmit Document
Relate Documents
Task Action
tn.ff.contenttypes
Content types to associate with flat file documents. Separate content types with a
comma. If you do not include this property in the properties.cnf file, documents with the
content type text/plain are treated as flat files.
You cannot register these content types as flat files:
application/x-www-form-urlencoded
text/xml
application/x-wmrpc2
application/x-x509v3-bin
application/x-wmrpc
application/x-wmrpc-bin
application/x-wmidatabin
application/wm-soap
application/soap
application/soap+xml
tn.BigDocThreshold
Threshold size at which to consider a document large.
Value Meaning
tn.xml.xqlThreshold
Maximum number of bytes to read into memory from the start of an XML document to
perform the XQL queries that are defined in an XML document type. The XQL queries
can be identifying queries or queries to extract aributes. In your document types, if
you have XQL queries that point to nodes beyond the number of bytes you specify, the
queries will fail.
Specify a positive integer greater than 1000. If you specify an integer less than 1000,
Trading Networks reads 1000 bytes. If you do not specify this property, Trading
Networks uses tn.BigDocThreshold.
Localization Properties
Use the localization properties to change the Integration Server’s locale. When you
change the locale, Trading Networks displays error messages and screen labels using
the language associated with the locale. To display the messages and screen labels
in the language, Trading Networks must have the appropriate resource bundle.
These resource bundles reside in the tncore.zip file, which was copied to your system
during installation. If you change the locale but the resource bundle does not exist
for that locale, Trading Networks tries to find the best match. For information about
how Trading Networks selects the resource bundle that matches best, see the Oracle
documentation for the java.util.ResourceBundle class. By default, Trading Networks
uses the locale of the host machine.
To change the locale you must set, at a minimum, the tn.locale.language and
tn.locale.country properties. If you do not specify both of these properties, Trading
Networks continues to use the default locale (that is, the locale of the host machine).
tn.locale.language
Two-leer ISO 639 language code for the language to use for messages and screen labels.
tn.locale.country
Two-leer ISO 3166 country code for the country associated with the language.
tn.locale.variant
Variant code that further distinguishes the locale, if necessary. Typically you use the
variant code if there is a difference based on the platform on which Integration Server
is running. If you need to specify more than one variant code, list the most important
codes first, and separate them with an underscore. For more information about variant
codes, see the Oracle documentation for the java.util.Locale class.
Performance Properties
tn.clean.routePipeline
Whether to remove all data from the pipeline except bizdoc , rule , TN_parms , and
$tnReprocess when a document is routed. Removing pipeline contents can help prevent
the pipeline from growing very large, which could improve system performance. Set the
property to true or false. The default is false.
tn.db.fetchMaxRows
Maximum number of result rows to return for each query. To return all rows, set the
property to 0. The default is 10000.
tn.db.sortDocTimestamp
Whether to sort result rows based on timestamp in descending order. Set the property to
true or false. The default is true.
tn.doc.saveAsDone
When Trading Networks receives a document, it saves information about the
resulting BizDocEnvelope for that document to its database and sets the status of
the BizDocEnvelope. Based on this property, Trading Networks sets the status of the
BizDocEnvelope to one of the following:
NEW Trading Networks has received the document but has false
not yet processed it. This is the default.
Important:
If Integration Server ends unexpectedly while
processing a document, upon it restarts, because
the status is already DONE, processing of the
document will appear to be complete. There is a
risk that the document might not be processed
completely.
tn.receive.clearTNObjects
Whether to drop pipeline variables that represent Trading Networks objects after the
wm.tn:receive entry point service finishes executing. Dropping these objects reduces the
time it takes to process each document and improves overall performance because the
content handler does not have to format the objects to return to the client. You specify
the pipeline variables to drop using the tn.receive.clearKeys property. Set the property
to true or false. The default is true.
tn.receive.clearKeys
Pipeline variables that represent Trading Networks objects to drop from the pipeline
when the tn.receive.clearTNObjects property is set to true. Separate the variables with a
command. Your list can contain these objects:
node
bizdoc
sender
receiver
flags
ffdata
TN_parms
If you specify a pipeline variable other than the ones listed above, Trading Networks
ignores it, and Trading Networks does not drop the variable. The default is null (no
variables appear in the pipeline).
tn.store.pool.stmt
Enables caching of JDBC statements. Set the property to true or false. The default is
true. When you set this property to true, all PreparedStatements are cached in memory
to speed up subsequent access to data from database. When you set this property to
false, the PreparedStatements are not cached in memory. Instead, they are created
every time to access data.
tn.resubmit.return.bizdocs
Whether the wm.tn.doc:resubmit and wm.tn.doc:resubmits services should return
BizDocEnvelopes in the pipeline. You use these services to resubmit documents that
are in the Trading Networks database for processing. When you resubmit a document,
Trading Networks has a BizDocEnvelope for the original document that was in the
database and forms an additional BizDocEnvelope for the new instance of the document
that is being resubmied. This property controls whether the wm.tn.doc:resubmit and
wm.tn.doc:resubmits built-in services leave these BizDocEnvelopes in the pipeline when
returning to the caller. Performance is improved if the BizDocEnvelopes are not returned
in the pipeline. Set the property to true or false. The default is false.
tn.tpa.cacheSize
Maximum number of trading partner agreements (TPAs) in Agreed status to cache in
memory. Caching these TPAs speeds up the run-time retrieval of TPAs; however, it also
increases the amount of memory used by Integration Server. The default is 1000.
tn.xml.cacheXQLQueryResults
Whether to save and reuse the results of identifying XQL queries executed against an
XML document during document recognition. Several of your XML document types
might use the same XQL queries, so seing this property can improve performance. Set
the property to true or false. The default is true.
Profile Properties
tn.default.idType
External ID type (for example, D-U-N-S® number) to initially display when creating or
editing a profile in My webMethods. The default is DUNS.
tn.export.deleted.profiles
Displays deleted profiles in the Export Data dialog box. Set this property to true or
false. The default is false.
Task Properties
tn.task.attempt.notPersisted
For you to use reliable delivery for a document, the document must be saved to the
Trading Networks database. If reliable delivery is specified for a document and the
document has not been saved, this property specifies whether to aempt a single
asynchronous execution of the delivery service. Set this property to true or false. The
default is true.
tn.task.dbupdate.enableNotifications
Whether Trading Networks should publish an IS document (that is, raise an Integration
Server event) when it aempts to update its database for a task after a database failure
occurs. If you want Trading Networks to publish an IS document every time it retries
to update the database, whether the aempt is successful or failed, set the property to
true. If you want Trading Networks to not publish an IS document when it tries to
update the database after a database failure, set the property to false. The default is
false.
The IS document that Trading Networks publishes is in the format defined by the
wm.tn.rec:TaskDbUpdate IS document type. You can use Software AG Designer to define a
trigger that subscribes to the IS document and takes appropriate actions (see the Publish-
Subscribe Developer’s Guide).
tn.task.dbupdate.retryEnabled
Whether Trading Networks should try to update its database after it encounters a
database failure when it tries to update the information for a task (for example, because
it lost connectivity to the database). In this case, the information that Trading Networks
is maintaining in memory for the task will not match the information stored in the
database. If Integration Server is shut down, the task information will be incorrect upon
restart. Set this property to true or false. If you set the property to true, also specify
the tn.task.dbupdate.retrySweepTime property. The default is true.
tn.task.dbupdate.retrySweepTime
Number of seconds between aempts to retry updating the database information for
a task. Trading Networks uses this property when the tn.task.dbupdate.retryEnabled
property is set to true. The default is 300.
tn.task.init.groupSize
Number of tasks to process at one time during Integration Server startup. Trading
Networks uses a background thread during startup to read the task data from the
database and create the tasks in groups. The number of tasks in a group is the seing
you specify for this property. After creating a group of tasks, Trading Networks pauses
for the amount of time specified by the tn.task.init.pauseLength property. Pausing
between groups makes CPU cycles available to other Integration Server functions that
are initializing during startup. This improves performance when starting Trading
Networks when there are many pending tasks. The default is 100.
tn.task.init.pauseLength
Number of seconds to pause between processing groups of tasks during Integration
Server startup. Trading Networks uses a background thread during startup to read
the task data from its database and create the tasks in groups. The number of tasks in
a group is the seing you specify for the tn.task.init.groupSize property. After creating
a group of tasks, Trading Networks pauses for the amount of time specified by this
property. Pausing between groups makes CPU cycles available to other Integration
Server functions that are initializing during startup. This improves startup performance
when starting Trading Networks when there are many pending tasks. The default is 10.
tn.task.maxRetries
Number of times to try to re-execute a failed service specified on the Execute a Service
processing action when using reliable execution. Specify a positive integer. The default is
5.
tn.task.ttw
Number of milliseconds to wait before making the first aempt to re-execute a failed
service specified on the Execute a Service processing action when using reliable
execution. Set this property to a positive integer. The default is 300.
tn.task.retryFactor
Factor to use to determine how long to wait before making the second and subsequent
aempts to re-execute a failed service specified on the Execute a Service processing
action when using reliable execution. Trading Networks calculates the time to wait by
multiplying the last wait time by this property. Set this property to a positive integer.
The default is 1.
tn.task.notifyFailure
Whether Trading Networks should publish an IS document (that is, raise an Integration
Server event) when a task fails. Set this property to true or false. The default is false.
The IS document that Trading Networks publishes is in the format defined by the
wm.tn.rec:TaskFailure IS document type. You can use Software AG Designer to define a
trigger that subscribes to the IS document and takes appropriate actions (see the Publish-
Subscribe Developer’s Guide).
tn.task.pauseOnMaxThreads
Number of milliseconds to pause when the task manager runs out of threads.
You control the number of threads that the task manager is allocated using the
tn.task.pauseOnMaxThreads property. If the number of threads specified by the
tn.task.threadpool.pct property are in use and Trading Networks has more tasks to
process, Trading Networks pauses the number of milliseconds specified by this property
to allow some of the working threads to complete and become available. The default is
500.
tn.task.sweepTime
Number of seconds the task manager thread remains idle before checking for tasks it
needs to perform (for example, a task to deliver a document or execute a service). The
thread becomes idle when all tasks are completed, failed, or in the wait period between
aempts. The thread waits the number of seconds you specify with this property before
waking up to check for tasks it needs to process. The tasks that the task manager tries to
process when it wakes up are those tasks that failed on their last aempt and have not
yet reached their retry limit.
The minimum allowable seing for this property is 1 second. If you try to set this
property lower than 1 second, the task manager remains idle for 1 second before
checking for tasks it needs to perform. The default is 300.
Note: The task manager wakes up immediately when a new task arrives.
This property can affect how long to wait between aempts to retry a task. Typically, the
wait between retries is governed by one of the following:
Delivery The Wait between retries specified in the delivery seings of the
receiving partner's profile.
However, Trading Networks could wait as long as this property specifies. If the task
manager thread is idle when the wait between retries expires, the task manager thread
will not wake up to process the task until the tn.task.sweepTime expires.
tn.task.threadpool.pct
Percentage of the Integration Server thread pool the task manager can use to process
tasks simultaneously. This is to prevent the task manager from consuming all
Integration Server threads when the task manager has a large number of tasks to
process. Set this property from .03 through .9. If you set the property below the range,
the task manager ignores the seing and uses .03. If you set the property greater than the
range, the task manager ignores the seing and uses .9. No maer how small you set the
property, the task manager is guaranteed to always have at least one thread with which
to execute tasks. The default is .5.
tn.task.orderingMethod
Enables task manager to order the pending jobs according to the task creation time or
document creation time. The default value is default. When you set this property to
default, the task manager orders the pending jobs according to the task creation time.
When tn.task.orderingMethod= BizDocCreationTime, the task manager orders
the pending jobs according to the document creation time. BizDocCreationTime has the
same value as the DocTimestamp variable of the BizDocEnvelope. For more information
on BizDocEnvelope, see webMethods Trading Networks Built-In Services Reference.
tn.transport.user
User account to use to invoke a service that Trading Networks is executing reliably
due to a processing action in a processing rule. This affects the user account used to
invoke the built-in delivery services (which are in the wm.tn.transport folder), custom
delivery services that you create, and services invoked by service execution tasks. To
have Trading Networks use the currently connected user to invoke services, do not
set the tn.transport.user property. By default, Trading Networks will use the currently
connected user to invoke services. This is the user that submied the document to
Trading Networks, unless you are resubmiing or reprocessing a document. When you
resubmit or reprocess a document, the current user is the user issuing the resubmit or
reprocess.
If you want to use a user account other than the currently connected user's account,
use this property to specify the user name. If you want an Administrator account to
execute services from processing rules, specify Administrator. Some Integration Server
Administrators might delete the built-in Administrator account and create a new one
with a different name. If tn.transport.user is Administrator, Trading Networks will
use an account from the Administrators group, though it might not be the built-in
Administrator account.
Important: Make sure the ACL you use to protect the service grants Execute access to
the user you specify.
Miscellaneous Properties
tn.chart.fetchMaxRows
Whether to display data in the form of dashboards and charts. Set a suitable value for
this property. When the number of records in the dashboard tables are less than or
equal to the value set, My webMethods displays the data. When the number of records
is greater than the value set, My webMethods throws an error when you access the
Analytics link. By default, tn.chart.fetchMaxRows = 500000.
tn.check.ambiguous.docs
Whether to search through all document types to find a single matching document type
for an inbound document, or to use the first match. To find a single document type, set
the property to true; if Trading Networks finds multiple document types that match
it considers the document an unknown document because it does not know which
document type to use. To use the first match, set the property to false. The default is
true.
tn.checkUser.ignoreCase
Whether to consider case when mapping partners to the user that initiated a document
transaction. To not consider case when evaluating sender IDs, set the property to true.
To consider case, set the property to false. The default is false.
Note: This parameter applies only when Trading Networks uses either the Oracle or
the Microsoft SQL Server database. Trading Networks uses the default false
for other databases.
tn.decimalFormatPattern
To accommodate more than two digits after the decimal point. This property specifies
the paern that Trading Networks should use to format decimal numbers. For example,
if you want Trading Networks to retain up to six digits after the decimal point, specify
tn.decimalFormatPattern=##.######. The paern can contain any of the following
symbols:
# Indicates a digit. Leading or trailing zeroes are omied.
tn.eda.events.emittableDocumentAttributeNameFilter
Determines the set of document aributes for which Trading Networks will
publish the Document Aribute Added run-time event. By default, Trading
Networks publishes this event when Late FA document aribute is added
or updated. To enable Trading Networks to publish this event for any other
document aribute apart from Late FA aribute, set this property to a fully
qualified custom java class. This class should include the set of document aributes
apart from Late FA aribute, that will enable Trading Networks to publish
the event when the specified set of document aributes are added or updated.
For example, tn.eda.events.emittableDocumentAttributeNameFilter =
com.softwareag.app.tn.policies.eda.EmittableAttributeNameFilter. The
EmittableAttributeNameFilter custom class will filter all the document aributes
and enable Trading Networks to publish the event only for the specified document
aributes.
The custom class should implement the
com.softwareag.app.tn.policies.IInvoker<Boolean, String> interface, and
override the invoke (final String attrname) method. The attrname parameter
corresponds to the document aribute, and the output of the method is a Boolean value.
If the value is true, Trading Networks will publish the event for the document aribute
specified. If the value is false, Trading Networks will not publish the event for the
document aribute specified.
tn.ism.stats.saveFrequency
Frequency (in seconds) to save document processing statistics to the database.
Document statistics are viewed in My webMethods. The default is 30.
tn.mail.onuserfail
Whether to send an e-mail message to the Integration Server Administrator to alert to
these errors:
Sender of the document is not the same as the current user.
There is no profile for current user.
Trading Networks could not retrieve the profile summary for the sender.
Sender's profile is Inactive, which does not allow for sending documents.
Sender's profile has been deleted.
Internal exception prevented processing from completing.
Set the property to true or false. The default is false.
tn.portal.savetodisk.chunksize
Configure the chunk size used to save transaction content on the client side by using this
property in the properties.cnf file and set the chunk size range from 1024 bytes(1Kb) to
104857600 bytes (100Mb). The default is 100.
tn.recursion.max
Maximum number of successive times to use a processing rule for a specific document.
Trading Networks recursively uses a processing rule if the processing rule uses the
Execute a Service processing action to synchronously invoke a service that calls the
wm.tn:submit service to submit the same BizDocEnvelope to Trading Networks, and
Trading Networks selects the same processing rule again. If Trading Networks tries
to recursively use a processing rule more times than the number you specify, Trading
Networks aborts the document processing. Set this property to a positive integer. The
default is 0, which means recursive use of processing rules is not allowed.
tn.server.seq
Trading Networks uses this property when generating internal IDs. To guarantee that
the internal IDs are unique across all Integration Servers, IDs consist of the hash code of
the host name, the server sequence number, the system timestamp, and the counter. Set
this property from 0 through 31. There is no default.
The Integration Server sequence number is the tn.server.seq property. Use this
property only if you are running more than oneTrading Networks instance on the same
machine. In this situation, give each instance a unique tn.server.seq.
If you run multiple Trading Networks instances on one machine and do not set this
property, Trading Networks might generate duplicate internal IDs. If you supply an
invalid value, Trading Networks ignores the seing and uses 0 for the server sequence
number portion of generated internal IDs, in which case, again, Trading Networks might
generate duplicate internal IDs.
Introduction
This appendix contains a description of the Trading Networks properties you
can specify in the server configuration file (server.cnf), which is located in the
Integration Server_directory\instances\instance_name \config directory.
Trading Networks Server uses default values for many of the properties. If a property
has a default, it is listed with the description of the property.
C XQL Reference
■ XQL Reference Information ....................................................................................................... 290
■ Sample XML File ........................................................................................................................ 290
■ Example XQL Queries ............................................................................................................... 291
■ Extracting Custom Attributes From XML Documents ................................................................ 292
<definition-list>
<term>Trenton</term>
<definition>misery</definition>
</definition-list>
</excerpt>
</book>
<my:book style='leather' price='29.50' xmlns:my='http://www.placeholder
-name-here.com/schema/'>
<my:title>Who's Who in Trenton</my:title>
<my:author>Robert Bob</my:author>
</my:book>
</bookstore>
//book[excerpt][title]
Anywhere within the current document, find all book elements containing at least one
excerpt element and at least one title element.
The following tables demonstrate the values that Trading Networks returns using the
example XQL query of: /node/item. In some cases, the query returns a null value.
Overview
By default, when Trading Networks receives a document, it keeps the document
content in memory during processing. If a document is large, Trading Networks might
encounter memory constraint problems. These problems can occur when Trading
Networks tries to execute an XQL query against an XML document during document
recognition or tries to perform pre-processing or processing actions.
You can set a property to specify when a document should be considered large. When
Trading Networks receives a document that fits your specification, it processes the
document as a large document. Trading Networks does not try to read content for large
documents into memory; rather, it writes the document content to hard disk drive space
(called tspace) and stores only a reference to the document content in memory. When
Trading Networks needs to access document content during processing, if the content is
in tspace, Trading Networks either retrieves a certain number of bytes of the document
content or uses a Java InputStream to read the document content. The document content
remains on disk until the service that processes the document, and all services invoked
from that service, complete, and the time to live period you specify expires.
The Trading Networks features listed below are not available for large documents.
Queue for polling Logs a message to the activity log and continues
delivery method processing. The document is not available for your
partner to poll.
Web service delivery Logs a message to the activity log and continues
method processing.
Validate Structure pre- Does not validate the document, logs a message to the
processing action activity log, and continues document processing.
Verify pre-processing Does not verify the digital signature, logs a message
action to the activity log, and continues document
processing.
The hard disk drive space identifies only the amount of hard disk drive space that
Trading Networks requires for normal processing. It does not account for the hard
disk drive space that is necessary for temporarily saving the large documents during
processing. To use large document handling, you must define hard disk drive space
where Trading Networks can temporarily save documents (rather than store them in
memory). The size of the hard disk drive space for temporarily saving documents will
vary based on the number of documents you process concurrently and the size of the
documents you process. For example, if your typical concurrent document load is 10,
you would need a hard disk drive space that is 10 to 15 times the combined size of the
documents being processed concurrently.
Note: In a clustered environment, each Integration Server must have its own
tspace location. Do not share the tspace location.
Note: Each file stored in this directory is given the name DocResxxxxx .dat,
where xxxxx can vary in length and character.
Important: The size of the hard disk drive space for temporarily saving
documents varies based on the number of documents you process
concurrently and the size of the documents you process. For example,
if your typical concurrent document load is 10, you would need a
hard disk drive space that is 10 to 15 times the combined size of the
documents being processed concurrently.
Note: The value you specify does not have to be long enough to
accommodate reading the entire document, only to accommodate the
length of time it takes to receive a response to a read request.
example, if you want to delete the documents from tspace three minutes after
they are created, set this property to 180000 milliseconds.
The default value 0 tells Integration Server to delete documents from tspace only
after creating a document in tspace. For example, if tspace contains 10 documents
and this property is set to 0, Integration Server deletes the 10 documents only
after it creates a document.
6. Save the file and restart Integration Server.
Use the following fields in bizdoc to determine whether the document is stored in
memory or on the hard disk drive space:
Field Indicates...
startIndex If you specified bytes, the index into the document at which
to start retrieving content. For example, to retrieve document
content from the beginning, specify 0.
You can invoke this service for all documents, regardless of whether a document is
considered large or not.
You can invoke this service for all documents. The service determines whether the
document is considered large or not. If the document is not considered large, the service
returns a byte array that contains the retrieved delivery content. If the document is
considered large, the service retrieves the delivery content using a Java InputStream
object.