Web Methods Trading Networks Users Guide 65
Web Methods Trading Networks Users Guide 65
Web Methods Trading Networks Users Guide 65
Users Guide
VERSION 6.5
webMethods, Inc. South Tower 3877 Fairfax Ridge Road Fairfax, VA 22030 USA 703.460.2500 http://www.webmethods.com
webMethods Administrator, webMethods Broker, webMethods Dashboard, webMethods Developer, webMethods Fabric, webMethods Glue, webMethods Installer, webMethods Integration Server, webMethods Mainframe, webMethods Manager, webMethods Mobile, webMethods Modeler, webMethods Monitor, webMethods Optimize, webMethods Portal, webMethods Trading Networks, and webMethods Workflow are trademarks of webMethods, Inc. webMethods and the webMethods logo are registered trademarks of webMethods, Inc. Acrobat, Adobe, and Reader are registered trademarks of Adobe Systems Incorporated. Amdocs is a registered trademark, and ClarifyCRM is a trademark of Amdocs Inc. Ariba is a registered trademark of Ariba, Inc. BEA and BEA WebLogic Server are registered trademarks, and BEA WebLogic Platform is a trademark of BEA Systems, Inc. BMC Software and PATROL are registered trademarks of BMC Software, Inc. BroadVision is a registered trademark of BroadVision, Inc. ChemeStandards and CIDX are registered trademarks of Chemical Industry Data Exchange. Unicenter is a trademark of Computer Associates International, Inc. PopChart is a registered trademark of CORDA Technologies, Inc. Kenan and Arbor are registered trademarks of CSG Software, Incorporated. SNAP-IX and Data Connection are registered trademarks of Data Connection Corporation. DataDirect, DataDirect Connect, and SequeLink are registered trademarks of DataDirect Technologies Corp. D & B and D-U-N-S are registered trademarks of Dun & Broadstreet, Inc. Entrust is a registered trademark of Entrust, Inc. Hewlett-Packard, HP, HP-UX, and OpenView are trademarks of Hewlett-Packard Company. i2 is a registered trademark of i2 Technologies, Inc. AIX, AS/400, CICS, DB2, Domino, IBM, Infoprint, Lotus, Lotus Notes, MQSeries, OS/390, OS/400, RACF, RS/6000, S/390, System/390, VTAM, z/OS, and WebSphere are registered trademarks; and Informix, SQL/400, Communications System for Windows NT, IMS, MVS, SQL/DS, and Universal Database are trademarks of IBM Corporation. InnoDB is a trademark of Innobase Oy. JBoss is a registered trademark, and JBoss Group is a trademark of JBoss Inc. JD Edwards is a registered trademark of J.D. Edwards & Company and OneWorld is a registered trademark of J.D. Edwards World Source Company. Linux is a registered trademark of Linus Torvalds. X Window System is a trademark of the X.org Foundation. MetaSolv is a registered trademark of Metasolv Software, Inc. ActiveX, Microsoft, Outlook, Visual Basic, Windows, and Windows NT are registered trademarks; and SQL Server is a trademark of Microsoft Corporation. MySQL is a registered trademark of MySQL AB, Ltd. Teradata is a registered trademark of NCR International, Inc. Netscape is a registered trademark of Netscape Communications Corporation. ServletExec is a registered trademark, and New Atlanta is a trademark of New Atlanta Communications, LLC. CORBA is a registered trademark of Object Management Group, Inc. UNIX is a registered trademark of X/Open Company Ltd. Oracle is a registered trademark of Oracle International Corporation. PeopleSoft and Vantive are registered trademarks, and PeopleSoft Pure Internet Architecture and WorldSoftware are trademarks of PeopleSoft, Inc. Infranet and Portal are trademarks of Portal Software, Inc. RosettaNet is a trademark of RosettaNet, a non-profit organization. SAP and R/3 are registered trademarks of SAP AG. Siebel is a registered trademark of Siebel Systems, Inc. SPARC is a registered trademark, and SPARCStation is a trademark of SPARC International, Inc. SSA Global and SSA Baan are trademarks of SSA Global Technologies, Inc. EJB, Enterprise JavaBeans, Java, JavaServer, JDBC, JSP, J2EE, Solaris, and Sun Microsystems are registered trademarks; and Java Naming and Directory Interface, SOAP with Attachments API for Java, JavaServer Pages and SunSoft are trademarks of Sun Microsystems, Inc. SWIFT and SWIFTNet are registered trademarks of Society for Worldwide Interbank Financial Telecommunication SCRL. Sybase is a registered trademark of Sybase, Inc. UCCnet and eBusinessReady are registered trademarks of Uniform Code Council, Inc. Verisign is a registered trademark of Verisign, Inc. VERITAS is a registered trademark of VERITAS Operating Corporation, and VERITAS Software and VERITAS Cluster Server are trademarks of VERITAS Software Corporation. W3C is a registered trademark of Massachusetts Institute of Technology. All other marks are the property of their respective owners. Copyright 2005 by webMethods, Inc. All rights reserved, including the right of reproduction in whole or in part in any form.
Contents
Contents
15
17
18 18 19 19 20
21
22 22 24 25 26 26 29 29 29 30 31 31 32 33 34 34 34 36 37 37
Contents
Chapter 3. Trading Networks Web Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Chapter 4. Configuring webMethods Trading Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Trading Networks Configuration Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the Database Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Trading Networks in a High Availability Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shared Database in a Clustered Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shared Database in a Non-Clustered Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Separate Database for Each Instance of Trading Networks . . . . . . . . . . . . . . . . . . . . . . . . Configuring Trading Networks for a Clustered Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring Profile Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring E-mail Settings for Document Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring Tasks Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enabling Task Failure Notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring Registry Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuring Trading Networks for Large Document Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Minimum Hardware Requirements for Large Document Handling . . . . . . . . . . . . . . . . . . . . . . . Steps for Configuring Large Document Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting Properties in the Trading Networks Properties File . . . . . . . . . . . . . . . . . . . . . . . . . Configuring the Integration Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Other Configuration Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Customizing the Trading Networks Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Predefining the List of Servers that You Want to Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Defining Proxy Servers for the Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 43 44 44 45 47 48 50 51 52 54 55 56 56 57 57 58 61 61 61 63
Contents
87
88 88 88 95 96 97 98 101 102 102 103
Contents
Step 3: Informing the Partner of the User Name and Password . . . . . . . . . . . . . . . . . . . . . . . . . Retrieving the Partners User Name and Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Supplying the User Account Information to Your Partner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . About Querying and Viewing Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic Search Criteria for Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Custom Search Criteria for Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detail View of Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Finding and Viewing Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Managing the Partners Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Updating the Profile of Your Partner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Deleting a Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Disabling a Partners ProfileChanging the Status to Inactive . . . . . . . . . . . . . . . . . . . . . . . . . Enabling a Partners ProfileChanging the Status to Active . . . . . . . . . . . . . . . . . . . . . . . . . . .
165 165 166 166 167 167 168 168 173 173 174 175 176
Contents
Contents
Contents
Processing Rule Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Action 1Execute a Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Executing the Service Synchronously or Asynchronously . . . . . . . . . . . . . . . . . . . . . . . . . . Service Execution Tasks and Reliable Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating the Service for the Execute a Service Processing Action . . . . . . . . . . . . . . . . . . . Action 2Send an Alert E-mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Recipient of the E-mail Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Subject of the E-mail Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Body of the E-mail Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Action 3Change User Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Action 4Deliver the Document to the Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Immediate Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scheduled Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Queued for Polling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preferred Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Action 5Respond With a Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifying the Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifying the Content Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Defining Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Defining a Processing Rule Based on a Saved Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting Up a Default Processing Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ordering the Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testing the Order of Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . About Querying and Viewing Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Basic Search Criteria for Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detail View of Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Finding and Viewing Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Managing Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Updating Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Disabling Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enabling Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Deleting Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
329 330 331 333 335 338 338 340 340 341 341 342 344 345 346 346 347 347 347 361 362 363 365 366 366 367 367 372 373 373 374 374
Contents
Scheduled Delivery Queue States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing the State of a Scheduled Delivery Queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing the State of a Public Queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Changing the State of a Private Queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Defining Queue for Polling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting up Queue for Polling to Poll on a Partners System . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting up Queue for Polling for webMethods for Partners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing Documents in a Queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing Documents that are Scheduled for Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Viewing Documents that are Queued for Polling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
390 391 392 393 394 394 395 396 396 397
10
Contents
11
Contents
Deleting Delivery Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478 Reassigning a Delivery Task to Another Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
12
Contents
Migrating Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Exporting Database Information from the Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Importing Database Information from the Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Importing Items that Have the Same Name as Existing Items . . . . . . . . . . . . . . . . . . . . . . . . . . Using the Overwrite Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Suppressing the Overwrite Dialog Box and Forcing the Overwrite of Items . . . . . . . . . . . . Specifying How to Import Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Procedure for Importing Database Information from the Console . . . . . . . . . . . . . . . . . . . . . . . . Using the tnexport and tnimport Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . tnexport Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . tnimport Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
519 519 521 521 522 523 524 524 526 526 527 528 529
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551
13
Contents
14
Document Conventions
Convention Bold Italic Description Identifies elements on a screen. Identifies variable information that you must supply or change based on your specific situation or environment. Identifies terms the first time they are defined in text. Also identifies service input and output variables. Identifies storage locations for services on the webMethods Integration Server using the convention folder.subfolder:service. Identifies characters and values that you must type exactly or messages that the system displays on the console. Identifies keyboard keys. Keys that you must press simultaneously are joined with the + symbol. Directory paths use the \ directory delimiter unless the subject is UNIX-specific. Optional keywords or values are enclosed in [ ]. Do not type the [ ] symbols in your own code.
Narrow font
Typewriter font
UPPERCASE \ []
15
Additional Information
The webMethods Advantage Web site at http://advantage.webmethods.com provides you with important sources of information about webMethods components: Troubleshooting Information. webMethods provides troubleshooting information for many webMethods components in the webMethods Knowledge Base. Documentation Feedback. To provide documentation feedback to webMethods, go to the Documentation Feedback Form on the webMethods Bookshelf. Additional Documentation. All webMethods documentation is available on the webMethods Bookshelf.
16
CHAPTER
17
C H A P T E R 1 I n t e g r a t i o n S e r v e r a n d Tr a d i n g N e t w o r k s
Overview
To use webMethods Trading Networks (Trading Networks), you must start the Integration Server. Because Trading Networks is seamlessly integrated into the webMethods platform, all configuration, administration, and management tasks that you can perform for the webMethods Integration Server also apply to the Trading Networks. For more information about the architecture and components of webMethods Trading Networks, see Chapter 1, "Overview of webMethods Trading Networks" in the webMethods Trading Networks Concepts Guide. This chapter describes basic tasks that you will need to perform when using the server, specifically, how to start and shut down the server.
To start the Integration Server on Microsoft Windows 1 On the Start menu, select Programs Server. webMethods Servers webMethods Integration
Note: When you installed the Trading Networks, you installed additional packages into the webMethods Integration Server. Installing the Trading Networks added functionality to the webMethods Integration Server.
To start the Integration Server on UNIX 1 2 Locate the server.sh script file that you modified for your environment when you installed the server. Execute this script.
18
Important! Run this script when logged in as a non-root user. Running the script as root might reduce the security of your system.
2 3
In the upper right corner of any webMethods Administrator screen, click the Shutdown and Restart link. Select whether you want the server to wait before shutting down or to shutdown immediately. Delay number minutes or until all client sessions are complete. Specify the number of minutes you want the Integration Server to wait before shutting down. Trading Networks begins monitoring user activity and automatically shuts down when all non-administrator sessions complete or when the maximum wait time you specify elapses (whichever comes first). Immediate. The server and all active sessions terminate immediately.
19
C H A P T E R 1 I n t e g r a t i o n S e r v e r a n d Tr a d i n g N e t w o r k s
For instructions on how to view the active sessions, see the webMethods Integration Server Administrators Guide. 4 Click Shutdown.
20
CHAPTER
21
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
Overview
The Trading Networks Console (Console) is a standalone Java GUI, which is the main user interface for webMethods Trading Networks (Trading Networks). Use the Trading Networks Console to perform functions such as managing your trading partners, configuring how documents are exchanged through your network, and performing real-time monitoring and analysis To use webMethods Trading Networks (Trading Networks), you must start the Integration Server. Because Trading Networks is seamlessly integrated into the webMethods platform, all configuration, administration, and management tasks that you can perform for the webMethods Integration Server also apply to the Trading Networks. In addition, the Integration Server must be running to use the Trading Networks Console or Trading Networks Web Manager. This chapter provides procedures for how to start and exit from the Console. In addition, it contains information to help you become familiar with how to use the Console.
To start the Trading Networks Console 1 On the Start menu, select Programs
Specify the name and port assignment of a Trading Networks Server...
webMethods
22
In the Open Session dialog box, complete the following: In this field... Server Specify... The name and port assignment of the Integration Server in ServerName:PortNum format. Example localhost:5555 Note: Servers to which you have successfully logged on in the past are listed in the Server list. You can select a server from this list or type a different server name and port number. User Name The name of a valid user account on this server. (The user name must be a member of a group belonging to the Administrators ACL and a member of a group belonging to the Developers ACL.) Note: The user name must be a member of a group belonging to the Developers ACL because Trading Networks actually launches the Developer for some tasks, such as: specifying a service for a routing rule or a delivery queue; specifying a custom duplicate checking service or custom attribute transformation service for a doctype; browsing for an IS doctype for a TPA; and setting inputs for a TPA. Use the exact combination of upper- and lower-case characters with which the user name was originally defined. IS user names are case-sensitive. Password The password for the user account in User Name. Use the exact combination of upper- and lower-case characters with which it was originally defined. IS passwords are case-sensitive. Whether the connection will be made through HTTP or HTTPS. To open a session on the selected server using the Secure Socket Layer (SSL), select this check box. Whether the Trading Networks opens a session on the server through the default proxy server. To open a session on the selected server using your proxy server, select this check box. For information about defining default proxy servers, see Defining Proxy Servers for the Console on page 63.
Click OK.
23
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
To close a session on the current server 1 2 Save any work that you want to keep. Select File Close Session.
Note: If you already have a session opened on a Integration Server, Trading Networks automatically closes the session you have on that server. If you have unsaved work, you are prompted to save it. 2 3 Complete the Opening Session to Integration Server dialog box. See step 2 on page 23 for instructions. Click OK.
24
Display area Display area showing the query results table (e.g,. Profiles table)
25
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
Enterprise
26
Performs this function... Trading Partner: Displays information for a trading partner in your trading network. To select a different partner for which you want to view information, perform a query on the Profiles list. Note that this list also includes your Enterprise partner as well. For more information about your partners profile, see Chapter 9, Partner Profiles. In addition, you can access the Profile Fields screen from the Trading Partners profile screen. Define and manage TN document types, specify attributes for Trading Networks to extract from the document, and specify options for pre-processing. In addition, you can access the Document Attribute screen from the Document Types screen. If you are using an OEM version of the Trading Networks, you cannot create new TN document types in Trading Networks. Trading Networks will gray out this unavailable feature. For more information about TN document types, see Chapter 12, TN XML Document Types and Chapter 13, TN Flat File Document Types. Define and manage processing rules, which Trading Networks uses to determine how to process the documents sent to your Trading Networks system. For more information about processing rules, see Chapter 14, Processing Rules. Define and manage Trading Partner Agreement (TPA) parameters that will specify how to govern transactions between two trading partners. You can also view and query TPAs. For more information about TPAs, see Chapter 10, Trading Partner Agreements (TPAs).
Trading Partners
Document Types
Processing Rules
Agreements
27
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
Performs this function... Track and manage documents in your system by querying the Trading Networks database for the documents in which you are interested. Note: If you are using an OEM version of the Trading Networks, this Trading Networks feature is not available through the Trading Networks Console. To view documents, use Trading Networks Web Manager. For more information about transaction analysis, see Chapter 18, Managing and Tracking Documents. View the status and detail of delivery and service execution tasks. You can also restart or delete tasks. Note: If you are using an OEM version of the Trading Networks, this Trading Networks feature is not available through the Trading Networks Console. To view tasks, use Trading Networks Web Manager. For more information about tasks, see Chapter 19, Delivery Tasks and Chapter 20, Service Execution Tasks. Access the activity log that records the activity occurring within the Trading Networks system. This includes activity while managing your partners; while documents are being received, processed, and delivered; as well as administrative actions performed for your Trading Networks system. For more information about the activity log, see Chapter 21, The Activity Log.
Transaction Analysis
Tasks
Activity Log
Note: If you are using an OEM version of Trading Networks, not all Trading Networks features are available. Trading Networks grays out these unavailable features.
28
Screen Name
The screen name shows the selector panel function you have selected (e.g., Trading Partners).
Toolbar
The buttons on the toolbar are function-specific for each of the Console screens. These toolbar buttons are a quick alternative method to access most of the basic menu functions for that screen.
Display Area
The display area contains the corresponding Trading Networks Console screen based on the selector panel button or Trading Networks function you have selected. Appropriate window panes, pop-up windows, and tab groups, including the query functions, also appear in this area. See Basic Operations on page 31 for a description of these window elements. The query functions may not initially appear on your Console screen, as shown below.
The Trading Partners screen with no query tabs displayed
Display area showing only the query results table (e.g,. Profiles table)
29
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
To view the query tabs on the Console screen as shown below, click Show Query toolbar.
Trading Partners screen displayed with query tabs
on the
... and the query results table (e.g, Profiles table) below
on the toolbar.
For more information about the query functions, see Chapter 16, Queries in Trading Networks.
30
Basic Operations
Basic Operations
This section describes basic operations you can perform with the Trading Networks Console.
31
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
Upper pane
Lower pane
Sometimes, editing controls within a pane are grouped onto tabs. To display the contents of a tab, click the tabs name.
Resizing Panes
You can resize panes in the Trading Networks screen by dragging borders with your mouse. Movable borders are typically marked with the split pane controls or symbols.
32
Basic Operations
Resizing a Pane
Drag this border (where the split pane controls are located)...
or
33
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
Adjust column width: Place the cursor over the edge of a column and then drag the border until the column is the desired width. Sort the information in a column: Click the column header for forward ( ( ) alpha-numeric order. ) and reverse
For more information about query result tables, see About Viewing and Querying Documents on page 428.
Right-click menus
Most Trading Networks screens have a right-click menu that contains the basic menu functions for that screen. The actions you can perform from this menu mimic the functions you can perform using the toolbar.
Selecting a Partner
If you need to select a partner profile, you can use Select... ; for example, when you .
create processing rule criteria, you can select a Sender or Receiver by clicking Select... To select a profile for Sender, Receiver, or Partner 1 2 Click Select... . Trading Networks displays the Partner Selection Dialog.
Select the profile from the list of partners in the Partner Selection Dialog table. You can select Unknown if you want to select a profile for which the partner is not known. To select multiple profiles from the partners list, use the following keys: Hold this key... <Shift> <Ctrl> To select... A contiguous block of profiles More than one non-contiguous profiles
34
3 4
Click OK to select the partner profile(s). If you wish to search for a specific profile, click the Show Query button on the toolbar. Trading Networks expands the Partner Selection dialog to show the Basic Criteria, Custom Criteria, and Detail View tabs. Use these tabs to specify more detailed search criteria to select a partner profile. To use this tab... Basic Criteria Custom Criteria Use this procedure... Step 4a on page 169 Step 4b on page 170 For more information, see... Basic Search Criteria for Profiles on page 167 Custom Search Criteria for Profiles on page 167
For more information about searching for partner profiles, see About Querying and Viewing Profiles on page 166. 5 6 To run the query, click the Run Query toolbar button.
To change the format of the query results in the Profiles table, click the Detail View tab. Fill in the following fields to specify how Trading Networks displays information in the Detail view. a In the Standard Fields section, check each field that you want Trading Networks to include in the Detail view. Trading Networks displays a column for each checked field. Trading Networks always displays the Corporation Name column for each partner profile. In the Extended Fields section, select the extended fields that you want Trading Networks to include in the Detail view. Trading Networks displays a column for each field in the Selected Extended Fields list. To move items to the Selected Extended Fields list: Select this... To do this... To move all extended fields to the Selected Extended Fields list To move some but not all extended fields to the Selected Extended Fields list, select one or more fields in the Available Extended Fields list and then click .
35
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
If you decide you do not want Trading Networks to display information for the fields in the Selected Extended Fields list, move the items back to the Available Extended Fields list:
.
Select this...
To do this... To remove some but not all extended fields from the Selected Extended Fields list, select the extended fields you do not want displayed from the Selected Extended Fields list and then click . To remove all extended fields from the Selected Extended Fields list.
For more information about: Searching for partner profiles, see About Querying and Viewing Profiles on page 166 Running queries in Trading Networks, see Chapter 16, Queries in Trading Networks The Detail View tab of the Trading Partners screen, see Detail View of Profiles on page 168. Changing the display table format, see Working with Tables on page 33.
36
To select multiple TN document types from the list by, use the following keys: Hold this key... <Shift> <Ctrl> To select... A contiguous block of TN document types More than one non-contiguous TN document types
Trading Networks displays the Document Type Details dialog for the selected TN document type. 4 Click OK.
For more information about TN document types, see Chapter 12, TN XML Document Types and Chapter 13, TN Flat File Document Types.
37
CH A P T E R 2 Tr ad in g N et w o r ks Co n so l e
38
CHAPTER
39
CH A P T E R 3 Tr ad in g N et w o r ks Web Man a ge r
40
CHAPTER
41
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
3 4
42
43
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
44
Shared Database in a Clustered Environment Behavior of Trading Networks Changes you make to Trading Networks objects (e.g., profiles, attributes, TN document types, processing rules, etc.), are automatically shared by all servers that share the database. Changes you make to Trading Networks server properties using the TN Properties page or by invoking the wm.tn.admin:setProperties service are automatically replicated to all servers in the cluster. For more information about the wm.tn.admin:setProperties service, see the webMethods Trading Networks Built-in Services Reference. Note: If you change the server properties by directly editing the
webMethods6\IntegrationServer\packages\WmTN\config\pr operties.cnf file, you must manually make your changes to the properties.cnf file for each server.
All configuration data and run-time data (e.g., documents received from partners, activity log, etc.) is shared among all instances of Trading Networks in the cluster.
45
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
Shared Database in a Non-Clustered Environment If you want each instance of Trading Networks to have the same Web Manager configuration, be sure to configure Web Manager the same for each instance of Trading Networks. You can use a load balancer to cluster Trading Networks only if your application code is stateless and you are not using stateful processes (e.g., long-running conversations). To use the Console query paging feature (e.g., Next Page, Prev Page, First Page, Last Page), when you start the Console, be sure to connect it to one of the Trading Networks instances. That is, specify the host name and port name of one of the Trading Networks instances that share the database, and do not specify the virtual IP address defined by the load balancer. This is important because Trading Networks stores the results of the database queries in the repository. If you connect the Console to the load balancer, the load balancer might redirect query paging results to a different server than the one that originally executed the query. This server will not have the query results that the Console is attempting to retrieve. Behavior of Trading Networks Changes you make to Trading Networks objects (e.g., profiles, attributes, TN document types, processing rules, etc.), are automatically shared by all servers that share the database. Changes you make to Trading Networks server properties using the TN Properties page or by invoking the wm.tn.admin:setProperties service are automatically replicated to all servers that share the database. For more information about the wm.tn.admin:setProperties service, see the webMethods Trading Networks Built-in Services Reference. Note: If you change the server properties by directly editing the
webMethods6\IntegrationServer\packages\WmTN\config\pr operties.cnf file, you must manually make your changes to the properties.cnf file for each server.
All run-time data (e.g., documents received from partners, activity log, etc.) is shared among all instances of Trading Networks that share the database.
46
If you want all instances of Trading Networks to be able to handle all incoming documents, be sure that the application code you need Trading Networks to execute (e.g., delivery services, services invoked from processing rules, etc.) is available on all servers. You cannot cluster the Integration Servers because the Trading Networks database is not shared. Behavior of Trading Networks Changes you make to Trading Networks objects (e.g., profiles, attributes, TN document types, processing rules, etc.), are not shared by all servers. You need to make the changes to each instance of Trading Networks if you want to keep them in sync. Changes you make to Trading Networks server properties are not replicated to all servers. You need to make the changes to each instance of Trading Networks if you want to keep them in sync.
47
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
Separate Database for Each Instance of Trading Networks An instance of Trading Networks does not share its run-time data (e.g., documents received from partners, activity log, etc.) with the other instances of Trading Networks. You cannot relate documents sent to and processed by one server to documents sent by and processed by another server. For example, an Acknowledgement document that is sent to server A cannot be related to the Confirmation document if the Confirmation document is sent to server B.
On each Integration Server in the cluster, create a remote server alias for the other servers in the cluster. For example, if you have two servers (Server1 and Server2) in the cluster, you would create a remote server alias for Server2 on Server1, and a remote server alias for Server1 on Server2. For information on how to create a remote server alias, see webMethods Integration Server Administrators Guide.
Important! If you have already created a remote server alias so the server is part of an Integration Server cluster (without Trading Networks), you need to create an additional remote server alias for the server specifically for the Trading Networks cluster. 2 To update the Trading Networks properties.cnf file for each Integration Server in the cluster, perform the following: a b Open the Server Administrator if it is not already open. In the Solutions menu of the navigation panel, click Trading Networks. The Server Administrator opens a new browser window to display Trading Networksspecific pages. In the Settings menu of the navigation panel, click TN Properties.
48
d e
Click Edit TN Properties Settings. Add or update the following property: For this property... tn.cluster.sync.remoteAliases Specify... The remote server aliases you created in step 1.
Ensure the following properties are set to true: Set this property to true... tn.cluster.notifyCacheChange tn.cluster.notifyProfileAddUser tn.cluster.notifyPropertyChange To notify all servers in the cluster about... A change to data cached in memory New user accounts A change to Trading Networks properties
Important! When you use the TN Properties page and save your updated properties, Trading Networks updates all properties with the values from the TN Properties page, including those that you might not have altered. This is important if you are using Trading Networks in a clustered environment and have the tn.cluster.notifyPropertyChange property set to true. Using the TN Properties page to update properties when you are in a clustered environment will cause Trading Networks to synchronize all properties each time you use the TN Properties page. If you want the servers in the cluster to maintain different values for some of the properties, set the tn.cluster.notifyPropertyChange property to false, and maintain the properties for each server individually. For a description of the properties used in this procedure, see Cluster Properties in the Trading Networks properties online help. To view the online help, click the Help link on the TN Properties page. After completing the above procedure, the data cached in memory, user accounts, and Trading Networks properties are automatically synchronized on all Integration Servers in the cluster. To turn one of these synchronizations off for a server, modify the respective property in the Trading Networks properties.cnf file. For example, if you wanted to manually control user account creation, you would disable automatic user account creation by turning off the tn.cluster.notifyProfileAddUser property.
49
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
3 4 5
50
1 2
Open the Server Administrator if it is not already open. In the Solutions menu of the navigation panel, click Trading Networks. The Server Administrator opens a new browser window to display Trading Networks-specific pages. In the Settings menu of the navigation panel, click TN Properties. Click Edit TN Properties Settings. Add or update the following properties to configure how Trading Networks performs document delivery: For this property tn.mail.from Specify The e-mail address you want Trading Networks to use as the from e-mail address in the e-mail messages that it sends to deliver a document when instructed to use an e-mail delivery method (Primary E-mail or Secondary E-mail). Example: If you want the e-mail messages to use the from email address [email protected], specify the following:
[email protected]
3 4 5
tn.mail.subject
The subject line you want Trading Networks to use in the email messages that it sends to deliver a document when instructed to use an e-mail delivery method (Primary E-mail or Secondary E-mail). Example: If you want the e-mail messages to use the subject line Document from IFC, specify the following:
tn.mail.subject=Document from IFC
51
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
To configure tasks settings 1 2 Open the Server Administrator if it is not already open. In the Solutions menu of the navigation panel, click Trading Networks. The Server Administrator opens a new browser window to display Trading Networks-specific pages. In the Settings menu of the navigation panel, click TN Properties. Click Edit TN Properties Settings. Add or update the following property to configure settings that affect both delivery and service execution tasks: For this property... tn.task.sweepTime Specify... The number of seconds the reliable 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 task manager thread becomes idle when all tasks are completed, failed, or in the wait period between attempts. The task manager 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 attempts to process when it wakes up are those tasks that failed on their last attempt and have not yet reached their retry limit Note: The task manager wakes up immediately if a new task arrives.
3 4 5
52
The value you specify for tn.task.sweepTime can affect how long Trading Networks waits between attempts to retry a task. Typically, the wait between retries value is governed by one of the following: Type of task Delivery Service execution Wait between retries is governed by The Wait between retries value on the Delivery Method tab of the receiving partners profile. The tn.task.ttw property value.
However, Trading Networks could wait as long as the tn.task.sweepTime value. If the task manager thread is idle when the wait between retries value expires, the task manager thread will not wake up to process the task until the tn.task.sweepTime value expires. 6 Add or update the following properties to configure settings that affect only service execution tasks. These settings configure how many times Trading Networks attempts to execute services that use reliable execution and how long Trading Networks waits between attempts to re-execute a service that failed. For this property... tn.task.maxRetries tn.task.ttw Specify... The number of times you want Trading Networks to attempt to re-execute a service. Specify a whole number. The number of milliseconds you want Trading Networks to wait before making its first attempt to re-execute a service when the first attempt failed. (Trading Networks uses the tn.task.retryFactor value along with the tn.task.ttw value to calculate how long to wait for subsequent retry attempts.) The factor you want Trading Networks to use when determining how long to wait before making the second and subsequent attempts to re-execute the service. Trading Networks calculates the time to wait by multiplying the last wait time by the tn.task.retryFactor value. Specify a whole number greater than zero for tn.task.retryFactor. Example: The following shows sample values for the these properties and how they affect the wait times between attempts to re-execute a failed service.
tn.task.retryFactor
53
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
Specify... tn.task.maxRetries tn.task.ttw tn.task.retryFactor = 3 = 10000ms = 3 Retry 1 Wait until next attempt 10000 ms Retry 2 30000 ms Retry 3 90000 ms
1 2
Open the Server Administrator if it is not already open. In the Solutions menu of the navigation panel, click Trading Networks. The Server Administrator opens a new browser window to display Trading Networks-specific pages. In the Settings menu of the navigation panel, click TN Properties. Click Edit TN Properties Settings.
3 4
54
Add or update the following property to enable Trading Networks to publish an IS document in the event that a task fails: For this property... tn.task.notifyFailure Specify... Either true or false.
true if you want Trading Networks to publish an IS document false if you do not want Trading Networks to publish an IS document
Tools
Registry
Profile Groups
55
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
Recommended # of CPUs 1CPU Hard Disk Space 256 MB RAM 1 GB # of CPUs 2CPU
RAM 512 MB
Note that this is only the space required for normal processing. See the Important! note below for more information about additional hard disk drive space required for large document handling.
Important! The hard disk drive space listed above 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 need to 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 that you process concurrently and the size of the documents that 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.
56
1 2
Open the Server Administrator if it is not already open. In the Solutions menu of the navigation panel, click Trading Networks. The Server Administrator opens a new browser window to display Trading Networks-specific pages. In the Settings menu of the navigation panel, click TN Properties. Click Edit TN Properties Settings and add or update the following properties to define the profile setting: For this property... tn.BigDocThreshold Specify... How many bytes a document must contain for Trading Networks to consider the document to be large. Specify one of the following: -n: Specify a negative number to have Trading Networks consider no documents as large. Trading Networks processes all documents in the traditional manner, reading the document content into memory during processing. The default is -1. 0: Specify zero to have Trading Networks consider all documents as large. Because all documents that Trading Networks receives contains more than 0 bytes, Trading Networks uses large document handling for all documents. n: Specify a positive whole number to indicate the number of bytes over which Trading Networks considers a document large. For example, if you specify the following, Trading Networks considers all documents greater than 1,000,000 bytes as large:
tn.BigDocThreshold=1000000
3 4
57
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
Specify... The number of bytes that Trading Networks reads into memory to perform the XQL queries in a TN XML document type. In your TN XML document types, if you have XQL queries that point to nodes beyond the number of bytes that Trading Networks reads, the queries will fail. For more information, see Defining TN XML Document Types on page 232. Specify a positive whole number. For example, if the XQL queries that you specify reference nodes in the first 50,000 bytes of the document, specify the following:
tn.xml.xqlThreshold=50000
If you do not specify a value for tn.xml.xqlThreshold, Trading Networks uses the number of bytes that you specify for tn.BigDocThreshold. If you do not specify a value for tn.BigDocThreshold, or if the value that you specify is negative, Trading Networks defaults to 1,000 bytes. Trading Networks needs to read at least 1,000 bytes to perform document recognition. 5 Click Save Changes.
58
Specify... The absolute directory path of the hard disk drive space where Trading Networks is to temporarily store large documents rather than keep them in memory. Each file that the Integration Server stores in this directory is given the name DocResxxxxx.dat, where xxxxx is a value that can vary in length and character. The directory you specify is on the same machine as the Integration Server. For example: For Windows:
watt.server.tspace.location=D:\\LargeDocTemp
When specifying the directory path, be sure to use a double backslash (\\) in place of a single backslash in the directory path because Trading Networks reads the property as a Java String. For UNIX:
watt.server.tspace.location=D:/opt/webmethods/ tspace
Note: If you are setting up large document handling for multiple webMethods components (e.g., Trading Networks, webMethods EDI Module, and webMethods RosettaNet Module), use this property to define a single hard disk drive location. All components use the same location and the Integration Server manages allotting space to each component. watt.server.tspace.max The maximum number of bytes that can be stored at any one time in the hard disk drive space that you defined using the watt.server.tspace.location property. If Trading Networks (or another webMethods component) attempts to write a large document to the hard disk drive space that will cause the number of bytes you specify to be exceeded, an error message is displayed on the server console and the document is not stored. Specify any positive whole number of bytes. The default is 52,428,800 bytes (50 MB). For example:
watt.server.tspace.max=30000000
59
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
Specify... Important! The size of the hard disk drive space for temporarily saving documents will vary based on the number of documents that you process concurrently and the size of the documents that 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: If you are setting up large document handling for multiple webMethods components, all components use this property. The Integration Server ensures that the hard disk drive space use for all components does not exceed the value you specify.
watt.server. keepAliveTimeout
The maximum number of milliseconds that you want the Integration Server to wait for a response after making a request to read from a network InputStream. When you submit a document using a Java InputStream over a network to the Integration Server, the Integration Server makes a request to read from the InputStream. The Integration Server waits the amount of time you specify with the watt.server.keepAliveTime property for a response. If the Integration Server does not receive a response in the specified amount of time, it times out with the error Connection reset by peer. Specify a whole number greater than zero. It is recommended that you set this property to 180000 (3 minutes), for example:
watt.server.keepAliveTimeout=180000
The default value is 15000 (15 seconds). Note: The value you specify with watt.server.keepAliveTime does not need to be long enough to accommodate reading the entire document. Rather it is just to accommodate the length of time it takes to receive a response to a read request.
60
61
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
To predefine the list of servers on which you want to open sessions 1 2 3 4 5 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select Edit Preferences.
Select the Servers tab. To add a new server to the list, click Add Row Server Information dialog box. . Trading Networks displays the
Specify the following parameters; then, click OK. For this Server Information parameter Host:Port Specify The name of the Integration Server that you want to appear in the Open Session dialog box. Type the name of the server in ServerName:PortNumber format. Example: rubicon:5555 User Name The user name of the user account on the Integration Server that you want Trading Networks to display in the User Name field of the Open Session dialog box when the server specified by Server is selected. The user name must identify a valid webMethods User account on the associated server. Be sure to use the correct combination of upper- and lowercase letters because user names are casesensitive Note: If you add the same server more than one time specifying different user names, Trading Networks displays the server with the user name from the first entry in the list of servers in the Open Session dialog box. Use secure connection Whether you want the connection to this server to be made through HTTP or HTTPS. To use HTTPS, select this checkbox. If you select this checkbox, Trading Networks automatically selects the Use secure connection checkbox in the Open Session dialog box when the server specified by Server is selected.
62
Whether you want the connection to this server to be made through the default proxy server. Select the checkbox to use a proxy server. If you select this checkbox, Trading Networks automatically selects the Use proxy server checkbox in the Open Session dialog box when the server specified by Server is selected. For information about defining default proxy servers, see Defining Proxy Servers for the Console on page 63.
To edit the information for an existing server in the list, click the row you want to update; then, click Edit . Type the changes in the appropriate field.
To remove a server from the list, click the row you want to delete; then, click Remove Row .
63
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
To define a proxy server that the Console uses when opening a session on a server via HTTP, specify the following parameters. If you do not want to use a proxy for HTTP requests, leave these fields blank. For this Proxies tab parameter Host:Port Specify this for HTTP The address of the HTTP proxy server in ServerName:PortNumber format. Be sure to place a colon between the server name and the port number, and do not leave spaces. Example: myproxy:8080 User Name The user name that the Trading Networks Console is to use to access the HTTP proxy server. Type a valid user name for the proxy server specified in Host:Port. If you do not know this name, contact your network administrator. If your proxy server does not require a user name, leave this field blank. This entry is case-sensitive. The password that the Trading Networks Console is to use to access the HTTP proxy server. Type the password for the user name specified in User Name. If you do not know the password, contact your network administrator. If your proxy server does not require a password, leave this field blank. This entry is case-sensitive.
Password
To define a proxy server that the Console uses when opening a session on a server via HTTPS (secure), specify the following parameters. If you do not want to use a proxy for HTTPS requests, leave these fields blank. For this Proxies tab parameter Host:Port
Specify this for HTTPS (secure) The address of the HTTPS proxy server in ServerName:PortNumber format. Be sure to place a colon between the server name and the port number, and do not leave spaces Example: secureproxy:8080
User Name
The user name that the Trading Networks Console is to use to access the HTTPS proxy server. Type a valid user name for the proxy server specified in Host:Port. If you do not know this name, contact your network administrator. If your proxy server does not require a user name, leave this field blank. This entry is case-sensitive.
64
Password
The password that the Trading Networks Console is to use to access the HTTPS proxy server. Type the password for the user name specified in User Name. If you do not know the password, contact your network administrator. If your proxy server does not require a password, leave this field blank. This entry is case-sensitive.
65
C H A P T E R 4 C o n f i g u r i n g w e b M e t h o d s Tr a d i n g N e t w o r k s
66
CHAPTER
67
C H A P T E R 5 P l a n n i n g Yo u r N e t w o r k
Introduction
Before you begin planning your network, it is helpful if you have a basic understanding of Trading Networks and how the Trading Networks Console is set up. For more information, see the webMethods Trading Networks Concepts Guide. This chapter describes the tasks to perform to plan for and set up your trading network. The tasks are presented in the proposed order in which you should complete them; however, based on your unique situations, you might want (or need) to perform the tasks in an alternative order. The general order of tasks is: Task 1. 2. Description Identify the types of transactions that Trading Networks will need to handle. Determine the pieces of information within documents that are of interest to you and define this information to Trading Networks. Define the types of documents you want Trading Networks to recognize. Determine the information that you want to maintain about your partners; use this information to define the profiles you want to keep about partners. Create the profile for your own corporation. Define the actions that you want Trading Networks to take against the documents it receives. Add partners to your network. See page 69 71
3. 4.
72 80
5. 6. 7.
81 81 82
Tasks 1 through 6 define the behavior of your trading network. After you perform these tasks, you have defined the document attributes, TN document types, profile fields, and processing rules that determine how Trading Networks processes documents that enter your system. You might want to perform these tasks in a development environment. After Tasks 1 through 6 are completed, you can use your development system to test your trading network to ensure it processes documents as you intended. If problems arise, you can correct them. After you ensure your trading network is defined properly, migrate your information to a production environment. You can migrate your document attributes, TN document types, profile fields, processing rules, and your profile into your production system using the export and import facility that Trading Networks provides. For more information, see Appendix A, Exporting and Importing Database Information.
68
After you have migrated information to your production system, you can perform Task 7; that is, add partners to your network. The following sections provide more information about each task required to set up your trading network. The description of each task points to sections of this manual or other manuals that describe more information about the task and how to perform the steps required to complete each task.
2.
3.
69
C H A P T E R 5 P l a n n i n g Yo u r N e t w o r k
Task 1: Identify the Types of Transactions to Process Step 4. Action Create webMethods schemas. If you want Trading Networks to be able to programmatically validate the structure of the documents it receives, you must create schemas. For XML documents: For XML documents, you must create IS schemas for each variation of a transaction type. For information about creating IS schemas, see the webMethods Integration Server Schema Reference. For flat file documents: For flat file documents, you can create a flat file schema that contains a particular TN document types structural information, including how to identify records and separate those records into fields. This enables inbound flat file documents to be parsed and validated for use by back-end systems, and outbound documents to be converted to a flat file for delivery to anothers back-end system.You build/create your own flat file schema in webMethods Developer. For more information about the flat file schema and parsing, see the Flat File Schema Developers Guide 5. Create webMethods IS document types. This is applicable for XML documents only. To transform the XML documents to an IS document (IData object) to allow you to manipulate the document within a service, set up IS document types for each variation of an XML document. For information about creating IS document types, see the webMethods Developer Users Guide. For more information about transforming XML documents to IS documents (IData objects), see the wm.tn.doc.xml:bizdocToRecord built-in service that is described in the webMethods Trading Networks Built-in Services Reference. Create a document gateway service. This is applicable for flat file documents only. A document gateway service is the entry point for flat file documents into Trading Networks. Your trading partners send their flat files to the document gateway service so that Trading Networks can process the documents. You need to write a document gateway service to provide information hints for the Trading Networks recognition process. For more information about the document gateway service, see Defining Document Gateway Services on page 276.
6.
70
71
C H A P T E R 5 P l a n n i n g Yo u r N e t w o r k
a transaction typedefine a single custom attribute that can be used for all variations of the transaction type. For each piece of information (attribute) that is of interest to you, complete the following tasks: Task 2: Determine the Important Document Information Step 1. Action Identify the attribute. Select a name for the attribute and the data type (STRING, NUMBER, or DATETIME) for the value of the attribute. Optionally, you might want to give the attribute a description. Define the custom document attribute. Use the Trading Networks Console and the information from Step 1 to define the attribute. For instructions, see Defining Document Attributes on page 196.
2.
72
Task 3: Define the Types of Documents Step 1. Action Determine how to recognize documents of this type. Identify the contents of the document that uniquely indicate that a document is this variation of a transaction. For XML documents: For example, if you are defining a cXML purchase order, identify the parts of the document that uniquely identify a document as a cXML purchase orderit might be that the root tag of the document is cXML and there is PurchaseOrder node within the document. To identify specific nodes within an XML document, you specify an XQL query. If you have a sample document available, when you use the Trading Networks Console to define the TN XML document type, you can have Trading Networks load the sample for your use in creating the XQL queries. When a sample document is loaded, you can select the node in the sample document and Trading Networks creates the query for you. For details about what you can use to identify a TN XML document type, read Identification Information in TN XML Document Types on page 206. For flat file documents: you can specify arbitrary pipeline variables to identify a TN flat file document type. The identification information specifies how Trading Networks is to recognize a flat file document based on variables the document gateway service places in the pipeline. For details, read Pipeline Matching Criteria Used to Identify the TN Document Type on page 283. 2. Determine the attributes that you want to create from documents of this type. You can have Trading Networks create any or all of the system and custom attributes from XML and flat file documents. For XML documents: For each attribute that you want to extract from an XML document, you must provide an XQL query that identifies the location of the attribute within the document. If you have a sample document available, when you use the Trading Networks Console to define the TN document type, you can have Trading Networks load the sample for your use in creating the XQL queries. When a sample document is loaded, you can select the node that contains the attribute information and Trading Networks creates the query for you. For details about specifying XML document attributes, read Extraction Information In TN XML Document Types on page 210.
73
C H A P T E R 5 P l a n n i n g Yo u r N e t w o r k
Task 3: Define the Types of Documents Step 2. cont... Action For flat file documents: For each attribute that you want to create from a flat file document, specify the system and custom (user-defined) attributes that you want Trading Networks to extract from TN_parms and place in the bizdoc. These are attributes that Trading Networks can save to the database to use later. For details about specifying flat file document attributes, read Attributes To Extract From Documents on page 285. For Trading Networks to perform some pre-processing and processing actions, you must extract certain system attributes. The following lists the system attributes that you should consider extracting along with the Trading Networks pre-processing and processing actions they affect: System Attribute SenderID Function it affects Processing rule search criteriaTo process documents based on the sender of the document, you need to extract the SenderID. For example, you might want all documents from a specific sender to be handled in a special way. (For more information, see Processing Rule Criteria on page 317.) The Check for Duplicate Document pre-processing actionIf you want Trading Networks to be able to check if it has received the document already by comparing the sender, you must extract the SenderID. (For more information, see Checking for Duplicate of the XML Document on page 228 and Checking for Duplicates of the Flat File Document on page 296.) Alert E-mail processing actionsTo send an email message to a contact at the senders corporation, you need to extract the Sender ID. You set up contacts when you define profiles for a partner, which is handled in a later task. (For more information, see Action 2Send an Alert E-mail on page 338.) Note: Typically, you should always extract the SenderID system attribute.
74
Task 3: Define the Types of Documents Step 2. cont... Action System Attribute ReceiverID Function it affects Processing rule search criteriaTo process a document based on receiver of the document, you need to extract the ReceiverID. For example, you might want all documents that are sent to a specific receiver to be handled in a special way. (For more information, see Processing Rule Criteria on page 317.) The Check for Duplicate Document pre-processing actionIf you want Trading Networks to be able to check if it has received the document already by comparing the receiver, you must extract the ReceiverID. (For more information, see Checking for Duplicate of the XML Document on page 228 and Checking for Duplicates of the Flat File Document on page 296.) Alert e-mail processing actionTo send an e-mail message to a contact at the receivers corporation, you need to extract the ReceiverID. You set up contacts when you define profiles for a partner, which is handled in a later task. (For more information, see Action 2Send an Alert E-mail on page 338.) The Deliver Document By processing actionIf you want Trading Networks to deliver the document to the receiver, you need to extract the ReceiverID. (For more information, see Action 4Deliver the Document to the Receiver on page 341.) Note: Typically, you should always extract the ReceiverID system attribute
75
C H A P T E R 5 P l a n n i n g Yo u r N e t w o r k
Task 3: Define the Types of Documents Step 2. cont... Action System Attribute DocumentID Function it affects The Check for Duplicate Document pre-processing actionIf you want Trading Networks to be able to check if it has received the document already by comparing the document ID, you need to extract the DocumentID. (For more information, see Checking for Duplicate of the XML Document on page 228 and Checking for Duplicates of the Flat File Document on page 296.) Note: Typically, you should always extract the DocumentID system attribute. SignedBody and Signature The Verify Digital Signature pre-processing actionIf you want Trading Networks to be able to verify the digital signature of XML documents, you need to extract the SignedBody and Signature. (For more information, see Verifying the Digital Signature of an XML Document on page 227. To verify the digital signature of flat file documents, see Verifying the Digital Signature of Flat File Documents on page 294.) Process management for a documentIf a document is part of a conversation of documents and you want Trading Networks to pass the document along to process management after performing the actions defined by processing rules, you need to extract the conversation ID. (For more information, see Important Attributes that You Should Extract from an XML Document on page 210 or Specifying the Document Gateway Services Outputs on page 280.) Rather than have Trading Networks look up the appropriate rule for a flat file document, use this attribute to explicitly specify the processing rule, thus eliminating the overhead of that lookup. (For more information, see Specifying the Document Gateway Services Outputs on page 280.)
ConversationID
processingRule ID
76
Task 3: Define the Types of Documents Step 2. cont... Action DoctypeID Rather than have Trading Networks search for an appropriate TN flat file document type for a flat file document, use this attribute to explicitly specify the document type, thus eliminating the overhead of that search. (For more information, see Specifying the Document Gateway Services Outputs on page 280.) Use this attribute if you want to process a flat file document based on the user status. Also, the user status is a criterion that Trading Networks uses to determine the processing rule to use for a document. (For more information, see Specifying the Document Gateway Services Outputs on page 280.) Use this attribute to easily locate all the flat file documents within the same group. (For more information, see Specifying the Document Gateway Services Outputs on page 280.)
UserStatus
GroupID
3.
Determine whether you want to associate an IS document type with the TN XML document type. This is applicable for XML documents only. If you will want to use the wm.tn.doc.xml:bizdocToRecord built-in service to transform the XML document to an IS document (IData object), you must identify a webMethods IS document type with the document. the wm.tn.doc.xml:bizdocToRecord service uses the IS document type that you specify as the blueprint to form the IS document (IData object). For more information about this service, see the webMethods Trading Networks Builtin Services Reference. For more information about associating an IS document type with a TN XML document type, see Specifying an IS Document Type for TN XML Document Types on page 226. Determine whether you want to associate a schema with the TN document type. For XML documents: If you want Trading Networks to perform the Validate Structure pre-processing action to validate the structure of an XML document, you must specify an IS schema that maps the structure of the TN XML document type. For more information, see Specifying an IS Schema for TN XML Document Types on page 227. For flat file documents: If you want Trading Networks to perform the Validate Structure pre-processing action to validate the structure of a flat file document, you must specify a parsing schema that maps the structure of the TN flat file document type. For more information, see Validating the Structure of Flat File Documents on page 295.
4.
77
C H A P T E R 5 P l a n n i n g Yo u r N e t w o r k
Task 3: Define the Types of Documents Step 5. Action Determine the pre-processing actions you want Trading Networks to perform. You can specify whether you want Trading Networks to perform any or all of the following pre-processing actions against documents of this type. For more information about specifying the pre-processing actions in a TN document types, see Specifying Pre-Processing Actions for TN XML Document Type on page 227 and Pre-Processing Actions in the TN Flat File Document Type on page 294. Verify the digital signature of a document. For XML documents: To use this action, you must have Trading Networks extract the system attributes SignedBody and Signature. In addition, you must have a certificate on file for each partner whose digital signature you want to verify; this will be addressed in a later step. For more information, see Verifying the Digital Signature of an XML Document on page 227. For flat file documents: To use this action, you must code the verification service for your flat file document. For the inputs and outputs of the service, your verification service should implement the wm.tn.rec:BizDocVerification service. For more information, see Verifying the Digital Signature of Flat File Documents on page 294. Validate the structure of a document. For XML documents: To use this action, you must specify an IS schema with the TN XML document type. For more information, see Validating the Structure of an XML Document on page 228. For flat file documents: To use this action, you must specify a flat file schema with the TN flat file document type. For more information, see Validating the Structure of Flat File Documents on page 295.
78
Task 3: Define the Types of Documents Step 5. cont... Action Check the for duplicate document of a document; that is, has Trading Networks already received the documentyou can have Trading Networks determine whether it has already received a document with either: the same document ID the same document ID and sender the same document ID, sender and receiver the same document ID, sender and TN document type To use this action, you must have Trading Networks extract the system attributes DocumentID, SenderID and/or ReceiverID. Save a copy of the document content, attributes, and/or log information to the databaseYou can have Trading Networks maintain information about the document in the database. Trading Networks has a reliable delivery feature that it uses only if the document content is saved to the database. The reliable delivery feature allows Trading Networks to attempt to deliver a document to a partner more than one time. For more information, see Using Reliable Delivery with Immediate Delivery Method on page 343. Keep in mind that all pre-processing actions can be overridden by selections you make in the processing rules that process a document. This will be addressed in a later task. 6. Create the TN document type. Use the Trading Networks Console and the information from Steps 1-5 to define the TN document type. You can create TN XML document types and TN flat file document types. For instructions, see Defining TN XML Document Types on page 232 and Defining TN Flat File Document Types on page 300. Note: If you are using an OEM version of the Trading Networks, you cannot create new TN document types in Trading Networks. Trading Networks will gray out this unavailable selection.
79
C H A P T E R 5 P l a n n i n g Yo u r N e t w o r k
80
Task 4: Define Information to Maintain about Partners Step 3. Action Define extended profile fields. To maintain information about partners that is not covered by the standard fields, you can define extended profile fields. For example, you might want to define extended fields for preferred shipping method, cost centers, or customer codes. Use the Trading Networks Console to define your extended profile fields. For instructions on how to define extended profile fields, see Extended Profile Fields on page 97 and Adding Extended Profile Fields on page 98.
81
C H A P T E R 5 P l a n n i n g Yo u r N e t w o r k
Note: If you want to process documents as part of a complete business interaction (that is, as a series of connected steps), use process management. You define the business process by using webMethods Modeler to create a process model. If you have Trading Networks extract a conversation ID from a document, Trading Networks automatically passes the document to process management after it performs the actions you define in a processing rule. For more information about creating process models, see the webMethods Modeler Users Guide. Processing rules and conversation scripts are extremely flexible. To understand all of the capabilities of processing rules and how to set them up, see Processing Rules on page 311.
82
CHAPTER
Trading Partners
How to Manage Partners in Your Trading Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Steps to Setting up Profiles in Trading Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
83
CH A P T E R 6 Tr ad in g P a r t ne r s
After you perform these tasks, you can start adding profiles for your partners. For more information about trading partners information, see Chapter 2, "Trading Partners" in the webMethods Trading Networks Concepts Guide.
84
85
CH A P T E R 6 Tr ad in g P a r t ne r s
86
CHAPTER
Profile Fields
What are Profile Fields? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Standard Profile Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Extended Profile Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
87
Required Fields
A required field is one that you want supplied for all profiles. Several of the standard fields, as defined by webMethods, are required. Those that are not, you can mark as required if you want. When you add extended fields, you can mark them as required. All profiles on your system must have a value for required profile fields. When you create your own profile or add a profile for a partner, you must supply information for all required fields before Trading Networks will allow you to enable the profile. When you are filling in a profile, Trading Networks displays each required field in blue and places an asterisk (*) next to the required fields, so you can easily determine the fields that are required.
88
The following table lists the standard profile fields that you can update. For each field, the table lists a description of what each field is, how Trading Networks uses the field, and any consequences if a field is not included in a partner profile. Standard Field Corporation Name Description What it is: This field identifies the name of the corporation, for example, Industrial Steel Company. This field is located on the Corporate tab of the Profile screen and has the label Corporation Name. How it is used: Trading Networks uses this field (along with the OrgUnitName, if specified) to identify your enterprise or a partner within the network. For example, Trading Networks uses the CorporationName and OrgUnitName as the name of your enterprise on the Enterprise selection in the Selector Panel and as the name of your partner on the Partner selection. If not specified: Trading Networks will not have a name to use to identify for this partner. Unit Name What it is: This field identifies a unit name or division name within the corporation, for example, Sales and Marketing. This field is located on the Corporate tab of the Profile screen and has the label Unit Name. How it is used: Trading Networks uses this field (along with the CorporationName) to identify your enterprise or a partner within the network. For example, Trading Networks uses the CorporationName and OrgUnitName as the name of your enterprise on the Enterprise selection in the Selector Panel and as the name of your partner on the Partner selection. If not specified: Trading Networks will use only the CorporationName for identification. Preferred Delivery Method What it is: This field identifies which delivery method the partner prefers to receive documents with. This field is located on the Delivery Method tab of the Profile screen and has the label Use as preferred protocol. How it is used: If a processing rule is configured to deliver a document using the preferred protocol, the partners delivery method that is selected as the preferred protocol will be used. If not specified: The preferred protocol defaults to Queue for polling.
89
Description What it is: This field identifies an e-mail address for a contact, for example, [email protected]. This field is located on the Contact tab of the Profile screen and has the label E-mail. How it is used: Trading Networks allows you to select a contact type in a processing rule for the Alert e-mail action. The Alert e-mail action instructs Trading Networks to send an e-mail message to the contacts associated with the selected contact type. If the e-mail address is not specified for a contact of the selected contact type, Trading Networks cannot send the e-mail message to that contact. For more information on the Alert e-mail action in a processing rule, see Action 2Send an Alert E-mail on page 338. If not specified: If the contact is referenced in the Alert e-mail action of a processing rule, Trading Networks will not be able to send an email message.
Fax
What it is: This field identifies the fax number for a contact, for example, 1-888-555-4897. This field is located on the Contact tab of the Profile screen and has the label Fax. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to contact information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile.
First Name
What it is: This field identifies the contact's first name. This field is located on the Contact tab of the Profile screen and has the label First Name. How it is used: Trading Networks does not use this information. It is maintained for your information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile.
90
Description What it is: This field identifies the pager number for a contact, for example, 1-330-555-7890. This field is located on the Contact tab of the Profile screen and has the label Pager. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to contact information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile.
Role
What it is: This field identifies the contact's role. This might be a job title, for example, Trading Network Administrator. This field is located on the Contact tab of the Profile screen and has the label Role. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to contact information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile.
Last Name
What it is: This field identifies the contact's last name. This field is located on the Contact tab of the Profile screen and has the label Last Name. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to contact information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile.
91
Description What it is: This field identifies the extension number for a contact. If the telephone number in the Telephone field identifies the main line for the corporation, use the Extension field to identify the contact's extension. This field is located on the Contact tab of the Profile screen and has the label Extension. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to contact information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile.
Telephone
What it is: This field identifies the telephone number for a contact, for example, 1-800-555-1234. This field is located on the Contact tab of the Profile screen and has the label Telephone. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to contact information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile.
Address
What it is: This field identifies the first line of the street address, for example, 595 Main Street. This field is the first line of the Address fields that are located on the Corporate and Contact tabs of the Profile screen. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to partner information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile. Note: If you require AddressLine1, the AddressLine1 field on both the Corporate and Contact tabs will be required.
92
Description What it is: This field identifies the second line of the street address, for example, Suite 556. This field is the second line of the Address fields that are located on the Corporate and Contact tabs of the Profile screen. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to partner information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile. Note: If you require AddressLine2, the AddressLine2 field on both the Corporate and Contact tabs will be required.
AddressLine3
What it is: This field identifies the third line of the street address, for example, ATTN Billing Department. This field is the third line of the Address fields that are located on the Corporate and Contact tabs of the Profile screen. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to partner information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile. Note: If you require AddressLine3, the AddressLine3 field on both the Corporate and Contact tabs will be required.
93
Description What it is: This field identifies the city in an address, for example, Los Angeles. This field is the City fields that are located on the Corporate and Contact tabs of the Profile screen. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to partner information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile. Note: If you require City, the City field on both the Corporate and Contact tabs will be required.
Country
What it is: This field identifies the country in an address, for example, USA. This field is the Country fields that are located on the Corporate and Contact tabs of the Profile screen. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to partner information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile. Note: If you require Country, the Country field on both the Corporate and Contact tabs will be required.
94
Description What it is: This field identifies the state or province in an address, for example, California. This field is the State/Province fields that are located on the Corporate and Contact tabs of the Profile screen. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to partner information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile. Note: If you require State/Province, the State/Province field on both the Corporate and Contact tabs will be required.
Postal Code
What it is: This field identifies the postal code (for example, ZIP code) for the state or province in an address, for example, 90001. This field is the Postal Code fields that are located on the Corporate and Contact tabs of the Profile screen. How it is used: Trading Networks does not use this information. It is maintained to allow easy access to partner information. You can view it by displaying the partner profile for a partner. If not specified: The information will not be available in the partner profile. Note: If you require Postal Code, the Postal Code field on both the Corporate and Contact tabs will be required.
Select Enterprise
95
Click the Standard tab. Note: To sort the columns in the Standard table, select the column to sort and then click on the column heading for forward ( ) and reverse ( ) alpha-numeric order.
5 6
Click the row containing the profile field that you want to view. Right click and select Edit. For more information about the fields on this tab, see Standard Profile Fields on page 88.
Select Enterprise
Click the Standard tab. Note: To sort the columns in the Standard table, select the column to sort and then click on the column heading for forward ( ) and reverse ( ) alpha-numeric order.
5 6 7
Click the row containing the profile field that you want to update. Right click and select Edit. Update the field(s) you want to change: For this Standard tab parameter Description Specify The description you want the profile field to have. You can replace the current description or add more detail to it. You can specify 1-1024 characters. You can specify any characters; there are no restrictions.
96
Specify Whether the profile field is required or not. Click the checkbox to indicate your choice. To indicate the profile field is required, assure the checkbox has a check. To indicate that the profile field is not required, remove the check from the checkbox. Important! Use caution when changing fields from required to not required. webMethods uses some standard fields for its processing, so if you change a field so that it is not required and a partner opts to not supply that information, Trading Networks might be prevented from performing a function that you will require. To determine how Trading Networks uses each standard field and the effect of not specifying a field, see Standard Profile Fields on page 88.
Click OK.
97
You can change all information for an extended field, including its name. Important! Use caution when changing fields from required to not required. If you have services that use the field or if you might create or update services that use the field, the information might not be available if the partner is not required to supply it. When you already have profiles in your system and then change an extended field from not required to required, you must manually edit the existing profiles for the updated extended profile fields. This is true even when the updated extended profile fields has a default value The following table describes the tasks you can perform against extended profile fields: Task Adding Extended Profile Fields Viewing Extended Profile Fields Updating Extended Profile Fields Disabling Extended Profile Fields Enabling Extended Profile Fields See page... 98 101 102 102 103
To add a new extended profile field 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Enterprise. Profile Fields.
Select Enterprise
Click the Extended tab to view the list of extended profile fields. For more information about how to change the format of the table, see Working with Tables on page 33.
98
Perform one of the following to start defining a new extended profile field: To create a new extended field based on... A blank New Extended Profile Field screen
Trading Networks displays a blank New Extended Profile Field screen Click the row containing the profile field that you want to duplicate. Click Duplicate .
2 3
Trading Networks displays the New Extended Profile Field screen with the information copied from the selected profile field. You can update any or all fields for the extended profile field
Fill in the fields on the New Extended Profile Field screen: For this Extended tab parameter... Name
Specify... The name you want to assign the new extended profile field. For example, if you send catalogs to clients and you want to maintain the type of catalog the partner is to receive, you might define an extended profile field named Catalog Type. Specify 1-32 characters. You can specify any characters; there are no restrictions.
Group
The group you want Trading Networks to assign the extended profile field to. To assign the field to an existing group, select a group from the list. To assign the field to a new group, type the name of the group. Optional. A description of the profile field. It is helpful to include the type of information that you expect for this field because Trading Networks displays this description when requesting a profile be completed. Specify 1-1024 characters. You can specify any characters; there are no restrictions.
Description
99
Specify... The data type of the profile field. Select either String or Binary from the list. If you specify String, you can specify a default value, maximum length, and valid values for the profile field. Optional. The default value for a profile field. You can specify Default only when Data Type is String. Specify 1-128 characters. You can specify any characters; there are no restrictions.
Default
Maximum Length
Optional. The maximum number of characters that you want to allow someone to specify for the profile field. If you do not specify a maximum length, there is no limit placed on the profile field. You can specify Maximum Length only when Data Type is String. Optional. These are values that you want Trading Networks to accept for this profile field. Specify the valid values in the table in the Valid Values field. Place one valid value per row. To add row to the table, click Add New .
Valid Values
To remove a row from the table, select the row and then click Delete Selected .
If you specify valid values, Trading Networks displays a list of the values that can be selected when filling out a profile. You can specify Valid Values only when Data Type is String. Enabled Whether the profile field is enabled or disabled. To define the field and assure it is enabled, make sure the Enabled checkbox is selected. Whether the profile field is required or not. Select the checkbox to indicate your choice. To indicate the profile field is required, assure the checkbox has a check. To indicate that the profile field is not required, remove the check from the checkbox.
Required
Click OK.
100
Select Enterprise
Click the Extended tab to view the list of extended profile fields. For more information about how to change the format of the table, see Working with Tables on page 33. Select one of the following options to view extended profile fields. For the following... To see details about a specific extended profile field To display disabled extended profile fields To hide disabled extended profile fields Perform this procedure... Double click the row for that field.
To display disabled extended profile fields, click Show All to show both enabled (yellow light bulbs) and disabled (darkened light bulbs) items. To hide disabled extended profile fields, click Show Enabled to only show enabled (yellow light bulbs) items. Trading Networks does not display any disabled (darkened light bulbs) items.
101
Select Enterprise
Click the Extended tab. Note: To sort the columns in the Extended table, select the column to sort and then click on the column heading for forward ( ) and reverse ( ) alpha-numeric order.
5 6 7
Click the row containing the profile field you want to update. Select Edit . Update the fields you want to change. For information on what you can specify, see step 4on page 99. Click OK.
102
Because the field is no longer displayed in profiles, if you create new profiles after disabling a field, the new profile will not contain information for the disabled field. Use caution when disabling fields. You should not disable a field that is used by services at your site because the information the services use will not be available for profiles that you add after you disable the field. Note: To permanently remove the extended profile field from the database, your database administrator must remove it. Before you can remove the field, you must first remove all rows from the PartnerProfileField table that reference the profile field you want to delete.
To disable an extended profile field 1 2 3 4 5 6 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Enterprise. Profile Fields.
Select Enterprise
Click the Extended tab. Click the row containing the profile field that you want to disable. Right click and select Disable. Trading Networks places No in the Enabled column to indicate that the extended profile field is disabled.
103
To enable an extended profile field 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Enterprise. Profile Fields.
Select Enterprise
Click the Extended tab. Note: To sort the columns in the Extended table, select the column to sort and then click on the column heading for forward ( ) and reverse ( ) alpha-numeric order.
5 6
Click the row containing the profile field that you want to enable. Right click and select Enable. Trading Networks places Yes in the Enabled column to indicate that the extended profile field is enabled.
104
CHAPTER
105
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
106
Description The type of software your corporation uses to interact with the trading network. Value webMethods Trading Networks webMethods for Partners Meaning You are using webMethods Trading Networks. You are using webMethods for Partners.
Note: You cannot change the Partner Type for your corporation (Enterprise). Trading Networks automatically sets the value of this field based on the license key. Preferred Language The Preferred Language option is for use only by other webMethods components (e.g., webMethods RosettaNet Module) for localization purposes. Optionally, specify the preferred language of your corporation.Trading Networks does not use this option for its own processing.
Trading Networks displays the following fields on your profiles Address sub-tab. Address Sub-Tab Field Country Address Description The country where your corporation is located, for example USA. The street address of your corporation, for example, 123 Main Street. You can specify an unlimited number of addresses for a corporation. The order that you add the addresses is the order that they are displayed as tabs. The city where your corporation is located, for example, Los Angeles. The state or province where your corporation is located, for example, California. The postal code (for example, a zip code) for the state or province where your corporation is located, for example, 90001.
107
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Trading Networks displays the following fields in the Profile Identifiers section of your profiles Corporate tab. Profile Identifiers Field External ID Type Value Description The External ID Type is the identification that your corporation uses within documents. For example, a corporation might use a D-U-N-S number as an external identification type. The Value is the alpha-numerical value of the corporations external ID type. For example, if the corporation uses a D-U-N-S number, the Value is the corporations D-U-N-S number. Trading Networks uses these fields to correlate the identification of a corporation in a document to the corporation defined by the profile. For example, when Trading Networks receives a document with an external ID type that is a D-U-N-S number and it matches the value specified in a profile, Trading Networks can associate the document with the profile and the corporation defined by the profile. Additionally, on the systems of your partners that use Trading Networks, the value of the required ID types in your profile is used to create a webMethods User account. This required ID type cannot contain any white spaces. Your partners Trading Networks system uses the value of the external ID type that is required on its Trading Networks system. Note: Out-of-the-box, Trading Networks provides predefined external ID types. You can add additional external ID types using the built-in service wm.tn.dictionary:addIDType. For more information, see the webMethods Trading Networks Built-in Services Reference. Trading Networks uses the required external ID defined by the tn.required.idType system property. The tn.required.idType property controls what type of external ID is used as the IS username for Trading Networks partners.This required ID type cannot contain any white spaces and the default value is DUNS. You configure the required ID type by using the tn.required.idtype property on the TN Properties page. For more information about the TN Properties page, see Chapter 4, Trading Networks Configuration Properties.
108
The your profiles Corporate tab also contains the Profile Group Membership table. Corporate tab Field Profile Group Membership Description The name of the profile group that Trading Networks associates your profile to. This column contains the list of profile groups that your profile belongs to. You can only associate profiles with a profile group if there are profile groups defined in the database. Once you create a profile group, you can associate a partner profile (including your Enterprise profile) with any profile group and to more than one group. For more information about how to create profile groups, see Other Configuration Settings on page 61.
109
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Description The contact's e-mail address. Note: On the Processing Rules screen, Trading Networks allows you to select a contact type for the Alert e-mail processing action. The Alert e-mail processing action instructs Trading Networks to send an e-mail message to the contacts of the selected contact type. If an e-mail address is not specified for a contact of the selected contact type, Trading Networks cannot send the e-mail message. For more information, see Action 2Send an Alert E-mail on page 338.
Telephone Extension Pager Fax Country Address City State/Province Postal Code
The contact's telephone number, for example, 1-800-555-1234. The contact's extension number. The contact's pager number, for example, 1-330-555-7890. The contact's fax number, for example, 1-888-555-4897. The country where the contact is located, for example, USA. The street address of the contact, for example, 123 Main Street, Suite 456. The city where the contact is located, for example, Los Angeles The state or province where the contact is located, for example, California. The postal code (for example, a zip code) for the state or province where the contact is located, for example, 90001.
110
Description The name of a delivery method that Trading Networks can use when delivering documents. Note: Trading Networks provides (out-of-the-box) delivery methods for delivering documents via e-mail (SMTP), HTTP, HTTPS, FTP, and FTPS. If you require another method (e.g., delivering into a message queuing system), see Chapter 17, Delivery Services. This chapter describes how to add your own delivery methods.
Host
The host name or IP address of your system, for example, IndustrialSteel.com. Note: This option is only valid for HTTP, HTTPS, FTP, and FTPS protocols.
Port
The port number on which your system listens for incoming requests, for example, 5555. If you do not supply a port number, Trading Networks uses the default port number for the protocolfor HTTP, it uses 80; for HTTPS, it uses 443; for FTP and FTPS it uses 21. This option is only valid for HTTP, HTTPS, FTP, and FTPS protocols.
111
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Description The location a partner is to use when sending a document to your system. For this Protocol HTTP or HTTPS Use this Location The URL that Trading Networks is to use when sending documents. Trading Networks automatically fills in the Location with /invoke/wm.tn/receive, the standard URL for document exchange. The directory path that Trading Networks is to use when sending documents. The file name of the file is the internal ID that Trading Networks generates for the document when Trading Networks receives it. For XML documents, the file extension is xml, e.g., 0a010154f70ddbf900000203.xml. For flat file documents, the file extension is dat
FTP or FTPS
The e-mail address a partner is to use when delivering documents to your system, for example, [email protected]. The delivery method that you prefer partners to use to deliver documents to your Trading Networks system. The preferred delivery method is the value you select for Protocol. If the Use as preferred protocol is not selected for any delivery method, Trading Networks uses Queue for Polling.
For more information about Clients that partners can use to send documents to Trading Networks, see Chapter 4, "Sending Documents to Trading Networks for Processing" in the webMethods Trading Networks Concepts Guide. Delivery methods you can use with Trading Networks, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide.
112
Description The name of the field group that Trading Networks associates extended fields with. This column contains the list of groups that have defined profile fields. Note: Out-of-the-box, Trading Networks provides pre-defined field groups. You can add additional field groups by specifying a new group when you add a new extended field. Alternatively, you can also use the built-in service wm.tn.dictionary:addFieldGroup. For more information about this service, see the webMethods Trading Networks Built-in Services Reference. If there are no extended profile fields in a specific group, that group is not listed. For example, if you have not defined any extended profile fields for the Corporate group, Corporate will not appear in the Group column. Note: To see extended fields, select the name of the group from the Group column, and Trading Networks displays the corresponding extended fields on the right.
113
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
CAs that the webMethods Integration Server maintains. For more information, see security information in the webMethods Integration Server Administrators Guide. SSL Client sub-tabUse this sub-tab to specify a certificate that enables Trading Networks to act as an SSL client to connect to a remote secure server. Trading Networks displays the following fields on each sub-tab. Security Tab Field Certificate Chain Description The digital certificate that you want Trading Networks to use to digitally sign or decrypt documents when a partners profile does not contain a signing or decrypting certificate. A best practice is to specify the certificate that you want to use with most of your partners in the Default profile to establish the default. Then, if you want to use a different certificate with other partners, add that partner to the list of certificate sets and define the alternate set. If you specify a default certificate set, Trading Networks uses it for all partners for which there are no alternative certificate set defined. If a profile has no signing/decrypting certificate information, Trading Networks uses the default certificate set for your Enterprise to process information for that partner. All profiles display the default certificate as the first element of the Partner list, whether you set values for a default or not. If you do not set values, the default certificate will have sub-tabs with no certificate information defined. Default certificate sets cannot be deleted. If you try to save alternative certificate sets for a partner using default certificate sets, Trading Networks cannot save the information that you supplied. This is because the certificate set is the same as the default set. Similarly, if you try to save alternative certificate sets for a partner whose certificates are not set, Trading Networks cannot save the information. Trading Networks displays the value of the CN (Common Name) field from the Subject defined by the certificate. Private Key The private key that is associated with the digital certificate that you specified in the Certificate Chain field. Trading Networks uses the private key to process Sign, Decrypt, and Client SSL certificates.
For more information about security in Trading Networks, see Appendix B, "Security within Trading Networks" in the webMethods Trading Networks Concepts Guide.
114
2 3 4 5
Select Create my profile. Click Next. The Profile Assistant takes you to the appropriate panel based on the action that you are to perform. Follow the directions specified by the Profile Assistant. On the Profile Assistant panels, use the following buttons to supply information to the profile fields: Use this button To... Add an entry. Edit an existing entry. Delete an entry. The information you need to supply in the Profile Assistant is the same as the information you supply on the Profile screen. For descriptions of the fields on the
or
115
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Profile screen, see Information Trading Networks Maintains in Your Profile on page 106. Note: Trading Networks validates the information you enter in each panel and will alert you with an error message for incorrect or incomplete entries. If you receive an error message, you must go back to that panel and complete the required information to proceed with Profile Assistant. Click Back to return to the previous panel in Profile Assistant. 6 When you have completed all the steps, Trading Networks saves the new profile and displays the Profile Created message. Note: If the profile fields were not completed correctly, Trading Networks: 1) Displays a dialog box listing the error messages that identify the fields that are in error and 2) Saves the profile with the information you specified. You must edit the profile to correct the errors. For instructions, see Updating Your Profile on page 117. After you create your profile and Trading Networks validates the fields, Trading Networks saves your profile and sets the status of your profile on your system to Inactive. Note that your profile is saved, even if there are errors. Important! Before you can exchange documents with partners, you must enable your profile to update the status to Active. For instruction on how to enable a profile, see Enabling Your ProfileChanging the Status to Active on page 129.
Inactive
116
If you enable your own profile, you will be able to exchange documents with partners. If you enable a partners profile, you will be able to exchange documents with that partner. For more information about enabling a partners profile, see Enabling a Partners ProfileChanging the Status to Active on page 176.
117
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Perform the following procedure to update your profile. Fields that you must specify are in blue and are marked with an asterisk (*) on the screen: To update your profile 1 2 3 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Enterprise. Trading Networks displays the Profile screen.
Click the Corporate tab and make the necessary changes. For more information about these fields, see Information on Your Corporate Tab on page 106. For this Corporate tab parameter... Corporation Name Unit Name Partner Type Preferred Language
Perform this procedure... To add or edit your corporation information: 1) 2) 3) Click Edit Corporation Name Name field. next to the Corporation
In the Corporation Name field, type the name of your corporation, for example, Industrial Steel Company. In the Unit Name field, type the name of the organizational unit or division within your corporation, for example, Sales and Marketing. In the Partner Type field, specify the type of software your corporation uses to interact with the trading network: webMethods Trading Networks or webMethods for Partners. The partner type is listed with the icon used in the Summary view of the Transaction Analysis screen. In the Preferred Language field, optionally specify the language preference your corporation uses if needed for another webMethods component (e.g., webMethods RosettaNet Module). Click Save.
4)
5)
6)
118
For this Corporate tab parameter... Country Address City State/Province Postal Code
Perform this procedure... To add or edit an address for your corporation: 1) To add, click Add New Address on the right side of the screen. To edit, select the tab containing the address you want to edit; then click Edit Address 2) .
Specify the following fields for the corporate information: For this corporate parameter Country Address Specify The country where your corporation is located, for example, USA. The street address for your corporation, for example, 123 Main Street, Suite 456. The city where your corporation is located, for example, Los Angeles. The state or province where your corporation is located, for example, California. The postal code (for example, a zip code) for the state or province where your corporation is located, for example, 90001.
City State/Province
Postal Code
3)
Click Save.
Note: Repeat this step for each address that you want to add or edit. You can specify an unlimited number of addresses for a corporation. The order that you add the addresses is the order that they are displayed as tabs. To delete an address: 1) Select the tab containing the address you want to delete. Click Delete Address in the bottom portion of the screen. Trading Networks confirms that you want to delete the address. Click Yes.
2)
119
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
For this Corporate tab parameter... External ID Type Value Profile Group Membership
Perform this procedure... To add or edit a profile identifier: 1) To add and external ID, click Add New External ID in the Profile Identifiers section on the bottom portion of the screen. To edit, select the row you want to edit, then click Edit External ID 2) .
In the External ID Type field, select the external ID type. Be sure to include an external ID type for each type of identification that you use in documents. You can specify an unlimited number of external ID types. In the Value field, specify the value of the external ID type. For example, if you selected DUNS and your D-U-N-S number is 987654321, specify 987654321 for Value. The maximum length you can specify for an external ID is 128 characters. Click Save. You can associate your profile with a profile group. Note: You can only associate profiles with a profile group if there are profile groups defined in the database. To add a new profile group, see Other Configuration Settings on page 61. Click Add New Profile Group next to Profile Group Membership. Select the profile group name from the list of available groups. Repeat this step if you want to associate your profile with more than one profile group. To delete a profile group association, select the row containing the profile group you want to delete and click Delete From Group . Trading Networks confirms that you want to delete the profile group. Click Yes.
3)
4) 5)
6)
Click Save.
120
Perform this procedure... To delete a profile identifier: 1) Select the row containing the external ID you want to delete and click Delete External ID . Trading Networks confirms that you want to delete the external ID. Click Yes.
Click the Contact tab and fill in the fields. Use the Name column on the left-hand side of the screen to add, edit, or delete the contacts listed in this column. For each contact, supply the following information. For more information, see Information on Your Contact Tab on page 109. For this Contact tab parameter... Contact Type Role Last Name First Name E-mail Telephone Extension Pager Fax Country Address City State/Province Postal Code Last Name Role
Perform this procedure... To add or edit a contact: 1) To add, click Add New Contact . To edit, select the .
name you want to edit; then click Edit Contact 2) Specify the following fields for the contact: For this contact parameter Contact Type Specify
The type of contact, for example, Administrative. Select a contact type from the list. The role the contact has in the partners corporation. This might be a job title, for example, Trading Network Administrator. The contact's last (surname) name. Note: To sort the contacts last names alphabetically, click on the Name column heading for forward ( ) and reverse ( ) alphabetization.
121
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Perform this procedure... First Name E-mail The contact's first (given) name. The contact's e-mail address, for example, [email protected]. The contact's telephone number, for example, 1-800-555-1234. The contact's extension number. If the telephone number in the Telephone field identifies the main line for the corporation, use the Extension field to identify the contact's extension. The contact's pager number, for example, 1-330-555-7890. The contact's fax number, for example, 1-888-555-4897. The country where the contact is located, for example, USA. The street address for the contact, for example, 123 Main Street, Suite 456. The city where the contact is located, for example, Los Angeles. The state or province where the contact is located, for example, California. The postal code (for example, a zip code) for the state or province where the contact is located, for example, 90001.
Telephone Extension
Postal Code
Click Save. If you added a contact, the new contacts name now appears in the Name column.
Note: Repeat this step for each contact that you want to add or edit. You can specify an unlimited number of contacts for a corporation.
122
Perform this procedure... To delete a contact: 1) Select the contact that you want to delete in the Name column. Click Delete Contact . Trading Networks confirms that you want to delete the contact. Click Yes.
2)
Click the Delivery Method tab and fill in the fields to specify how partners are to deliver documents to your Trading Networks system. The Deliver document processing action uses the settings on the Delivery Method tab. For more information, see Information on Your Delivery Method Tab on page 111. For this Delivery Method tab parameter... Protocol Host Port Location E-mail Use as preferred protocol 2)
Perform this procedure... To add or edit a delivery method: 1) To add a delivery method, click Add New Destination in the upper portion of the screen. To edit a delivery method, select the tab for the delivery method; then, click Edit Destination .
In the Protocol field, select a delivery method from the list. Trading Networks updates the information on the tab screen to display the fields required for the protocol you selected.
3)
For an HTTP, HTTPS, FTP, or FTPS delivery method, specify the host name or IP address of your system in the Host field, for example, IndustrialSteel.com. For an HTTP, HTTPS, FTP, or FTPS delivery method, specify the port number on which your system listens for incoming requests in the Port field, for example, 5555.
4)
Note: If you do not supply a port number, Trading Networks uses the following defaults: HTTP80; HTTPS443; FTP or FTPS 21.
123
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Perform this procedure... 5) For an HTTP, HTTPS, FTP or FTPS delivery method, specify one of the following in the Location field: For HTTP or HTTPS, Location is the URL partners should use to send documents to your system via HTTP or HTTPS. By default, Trading Networks displays the default URL: /invoke/wm.tn/receive for HTTP and HTTPS. For FTP or FTPS, Location is a directory path on the machine identified by Host and Port to which your partners should deliver documents when using this FTP or FTPS delivery method. 6) For an E-mail delivery method, specify the e-mail address to which you want a partner to deliver documents in the E-mail field, for example, [email protected] If you prefer that partners use this delivery method to deliver documents to your Trading Networks system, select the Use as preferred protocol checkbox. Trading Networks displays the preferred protocol at the top of the Delivery Method tab screen. Note: If the Use as preferred protocol is not selected for any delivery method, Trading Networks uses Queue for polling. 8) 1) 2) Click Save.
7)
To delete a delivery method: Select the tab for the delivery method you want to delete. Click Delete Destination . Trading Networks confirms that you want to delete the delivery method. Click Yes. Note: You cannot delete a delivery method that is selected as the preferred protocol.
124
Click the Extended Fields tab and fill in the fields. For more information, see Information on Your Extended Fields Tab on page 113. For this Delivery Method tab parameter... Group
Perform this procedure... To view the values of the extended field: 1) From the Group column on the left side of the screen, select the name of the group that contains the extended profile field you want to edit. Trading Networks displays the corresponding extended fields on the right.
Note: If there are no extended profile fields in a specific group, Trading Networks does not list that group. For example, if you have not defined any extended profile fields for the Corporate group, Corporate will not appear in the Group column. See Extended Profile Fields on page 97 on how to add and define extended fields. 2) Click Edit Field group.
Note: If you do not know what to specify for an extended field and the description does not indicate what to specify, contact your Trading Networks administrator to determine what to specify. 3) Click Save. Note: You must save the changes you make to one groups extended fields before you can edit another groups extended fields. Repeat this step for each extended field you want to update.
125
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Click the Security tab and fill in the fields. For more information, see Information on Your Security Tab on page 113. Perform the following procedure for each sub-tab. Use this sub-tab Sign/Verify Decrypt/Encrypt SSL Client To add/update certificates to use to Digitally sign documents that your Enterprise sends to partners. Decrypt documents that your Enterprise receives from partners. Enable Trading Networks to act as an SSL client to connect to a remote secure server.
Perform this procedure... To view information about a certificate: 1) 2) Select the partner from the Partner list on the left. Select the appropriate certificate sub tab: Sign/Verify, Decrypt/Encrypt, or SSL Client. Trading Networks displays the certificate information. Click the appropriate row of the Certificate Chain table. The Console displays the certificate information on the right.
3)
In the Add Certificate dialog box, add one or more certificates as follows: To add one certificate, browse to and select the file that contains the certificate.
126
Perform this procedure... Note: When you add a certificate, be sure also to add the CA certificate(s) and private key that are associated with the certificate. The certificates, CA certificates, and private keys must reside in your file system. Trading Networks can import files that have a .der, .cer, or .p7b extension. If you import a .der file, Trading Networks appends it to the existing certificate chain list. However, if you import a .cer or .p7b file, Trading Networks replaces the certificate chain list with the .cer or .p7b file. To add multiple certificates within a directory, browse to and select the files that contain the certificates, using the SHIFT + CONTROL keys. If you select an entire directory, Trading Networks imports all files except duplicate files and private key files. Note: The order that Trading Networks displays the certificate chain does not reflect how the chain is linked. To delete certificates: 1) 2) Click Edit Selected .
Select the certificate(s) that you want to delete. To select multiple certificates, press CTRL and click on the second and subsequent certificates. Click Delete Certificate(s) . When Trading Networks prompts you to verify that you want to delete the certificate(s), click Yes. Note: If you delete the certificate, be sure also to delete the CA certificate(s) and private key that are associated with the certificate.
3)
Private Key
To view a private key: The Trading Networks Console will not display private key information. If a key is defined, Defined appears in the text field. If a key is not defined, <Empty> appears in the text field.
127
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
Perform this procedure... To add a private key: 1) 2) 3) Click Edit Selected . in the Private Key field.
In the Import Private Key dialog box, browse to and select the file that contains the private key that you want to add. You can only import a .der file that contains a valid private key format. Once you select the file, then click Open. Note: If you add a private key, be sure also to add the certificate and CA certificate(s) that are associated with the private key.
Click Delete Private Key . When Trading Networks prompts you to verify that you want to delete the private key, click Yes. Note: If you delete the private key, be sure also to delete the certificate and CA certificate(s) that are associated with the private key.
128
Select Enterprise
Select Enterprise
129
C H A P T E R 8 Yo u r P r o f i l e ( Yo u r E n t e r p r i s e )
130
CHAPTER
Partner Profiles
What is a Partners Profile? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 Information Trading Networks Maintains in the Partners Profile . . . . . . . . . . . . . . . . . . . . . 132 Adding Partner Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 About Querying and Viewing Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 Managing the Partners Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
131
132
Description Web Browser Other/Unknown A partner in the network that is using a Web browser. A partner in the network that is not using one of the other types of software. For example, this might be a partner that is using a webMethods Integration Server (without Trading Networks) or a marketplace.
Preferred Language
The Preferred Language option is for use only by other webMethods components (e.g., webMethods RosettaNet Module) for localization purposes. Optionally, specify the preferred language of the partner. Trading Networks does not use this option for its own processing.
Trading Networks displays the following fields on the partners Address sub-tab. Address Sub-Tab Field Country Address City State/Province Postal Code Description The country where the partners corporation is located, for example USA. The street address of the partners corporation, for example, 123 Main Street. The city where the partners corporation is located, for example, Los Angeles. The state or province where the partners corporation is located, for example, California. The postal code (for example, a zip code) for the state or province where the partners corporation is located, for example, 90001.
133
Trading Networks displays the following fields in the partners Profile Identifiers section of the partners Corporate tab. Profile Identifiers Field External ID Type Value Description The External ID Type is the type of identification that the partner (partners corporation) uses within documents. The Value is the alpha-numerical value of the partners external ID type. For example, if the partner uses a D-U-N-S number as an external identification type, select DUNS from the External ID Type list and specify the partners D-U-N-S number in the Value column. Trading Networks uses the values of these fields to correlate the identification of a corporation in a document to the corporation defined by the partners profile. For example, when Trading Networks receives a document with an external ID type that is a D-U-N-S number and that D-U-N-S number matches the value specified in a partners profile, Trading Networks can associate the document with the partner. Additionally, the value of the required ID type is used for a webMethods user account that Trading Networks automatically creates when you add a partner profile. This required ID type cannot contain any white spaces. You determine the external ID that Trading Networks uses for the user account by identifying a required ID type. You configure the required ID type by using the tn.required.idtype property on the TN Properties page. Note: The tn.required.idType property controls what type of external ID is used as the IS username for Trading Networks partners. This required ID type cannot contain any white spaces and the default value is DUNS. For more information about the TN Properties page, see Chapter 4, Trading Networks Configuration Properties.
134
Description When your partner delivers a document to your system, your partner must access your system using this user account. The user account has the proper Trading Networks privileges to allow your Trading Networks system to accept documents. Important! After the valid profile is added, Trading Networks displays the partners username and password on your system. Be sure to record the information so that you can send the user name and password to your partner inStep 3: Informing the Partner of the User Name and Password on page 165. Otherwise, your partner cannot access or use your Trading Networks system.
The partners Corporate tab also contains the Profile Group Membership table. Corporate tab Field Profile Group Membership Description The name of the profile group that Trading Networks associates the partners profile to. This column contains the list of profile groups that the partner profile belongs to. You can only associate profiles with a profile group if there are profile groups defined in the database. Once you create a profile group, you can associate a partner profile (including your Enterprise profile) with any profile group and to more than one group. For more information about how to create profile groups, see Other Configuration Settings on page 61.
135
136
Description The city where the contact is located, for example, Los Angeles The state or province where the contact is located, for example, California. The postal code (for example, a zip code) for the state or province where the contact is located, for example, 90001.
Description The name of a delivery method Trading Networks can use when delivering documents. Note: Trading Networks provides (out-of-the-box) immediate delivery methods for delivering documents via e-mail (SMTP), HTTP, HTTPS, FTP, and FTPS. You can also queue documents for scheduled delivery using the Trading Networks out-of -the-box delivery service (wm.tn.transport:batchFTP service), which uses FTP to deliver documents to a single destination. See Scheduled Delivery Queues on page 378 for more information. If you require another method, see Chapter 17, Delivery Services on how to create custom delivery services.
Host
The host name or IP address of the partners system, for example, IndustrialSteel.com. Note: This option is only valid for HTTP, HTTPS, FTP, and FTPS protocols.
Port
The port number on which the partners system listens for incoming requests, for example, 5555. If no port number is supplied, the following defaults are used: for HTTP, use 80; for HTTPS, use 443; for FTP or FTPS, use 21. Note: This option is only valid for HTTP, HTTPS, FTP, and FTPS protocols.
137
Description The location Trading Networks is to use when sending a document to a partners system. For this Protocol HTTP or HTTPS Use this Location The URL that Trading Networks is to use when sending documents. Trading Networks automatically fills in the Location with /invoke/wm.tn/receive, the standard URL for document exchange. The directory path that Trading Networks is to use when sending documents. The file name of the file is the internal ID that Trading Networks generates for the document when Trading Networks receives it. For XML documents, the file extension is xml, e.g., 0a010154f70ddbf900000203.xml. For flat file documents, the file extension is dat
FTP or FTPS
User Name
The user name that your Trading Networks system is to supply when connecting to the partners system to deliver documents using the associated protocol (HTTP, HTTPS, FTP, or FTPS). Important! If you are creating a profile for a partner that uses webMethods Trading Networks or webMethods for Partners, you must specify the user name of a webMethods User account on the partners system. The user account must be a member of the TNPartners group on the partners Integration Server. If you do not know what to specify for User Name, contact the partner.
138
Description The password that your Trading Networks system is to supply (along with User Name) when connecting to the partners system using the associated protocol (HTTP, HTTPS, FTP, or FTPS). Note: This option is only valid for HTTP, HTTPS, FTP, and FTPS protocols. The password appears hidden by asterisks (*) on this screen. You can view the password in clear text (after you save the profile) by selecting Show Password from the Trading Partners menu. Note: Passwords used in scheduled delivery queues (public and private) are stored in the Trading Networks database in binaryencoded form (not in clear text). It is not possible for Trading Networks to encrypt passwords used in scheduled delivery queues; since trading partners are allowed to create custom scheduled delivery services, Trading Networks cannot anticipate which user-defined input variable might be a password. For more information, see Appendix B, "Security within Trading Networks" in the webMethods Trading Networks Concepts Guide.
The e-mail address to which the partner wants Trading Networks to deliver documents, for example, [email protected]. View-only screen of schedules and settings for the selected public queue. A public queue is a queue that can contain documents for multiple receiving partners. Documents bound for several partners can be placed in the same public queue. For more information about public queues, see Defining Public Queues on page 380. Note: You cannot select either the public or private queue as the preferred protocol.
139
Description Send documents to a private queue for scheduled delivery. A private queue is a queue that contains only delivery tasks that correspond to documents aimed for a specific receiving partner. Settings tabSet the following private queue settings on this tab. Delivery Service. The delivery service to use for the private queue. Select the delivery service from the list. For more information, see Adding and Registering New Delivery Services on page 421 Set Inputs. The inputs for the delivery service you selected. Queue State. The state of the queue (Enable Queue, Drain Queue, Suspend Delivery, or Disable Queue). The state of the scheduled delivery queue determines: 1) whether Trading Networks can add delivery tasks to the queue and 2) whether Trading Networks can deliver documents associated with the delivery tasks in the queue. Schedule tabThe schedule of when Trading Networks is to invoke the delivery service that will deliver documents from this queue. For more information about the fields on the Schedule tab, see Delivery Schedule for Queues on page 384. Run Once. Trading Networks executes the delivery service a single time. For more information, see Using the Run Once Option on page 385 Simple Interval. Trading Networks executes the delivery service repeatedly at an interval you specify. For more information, see Using the Simple Interval Option on page 385. Complex Interval. Trading Networks runs the delivery service on the day(s) and at the time(s) that you specify either during a specified date range or indefinitely. For more information, see Using the Complex Interval Option on page 386.
140
Description The delivery method that your partner prefers your system use to deliver documents to the partners system. The preferred delivery method is the value you select for Protocol. If the Use as preferred protocol is not selected for any delivery method, Trading Networks uses Queue for Polling. Note: You cannot select either the public or private queue as the preferred protocol.
The number of times you want Trading Networks to attempt to redeliver a document to the partners system. Note: The Delivery Maximum Retries, Wait Between Retries, and Retry Factor options are only used when Trading Networks is using reliable delivery (delivery tasks). The Delivery Maximum Retries option is used for both immediate and scheduled delivery methods.
The number of milliseconds (ms) you want Trading Networks to wait before making its first attempt to redeliver the document to the partners system. Trading Networks uses the Retry Factor along with the Wait Between Retries value to calculate how long to wait for subsequent retry attempts. Note: The Wait Between Retries and Retry Factor options are only used when Trading Networks is using reliable delivery for an immediate delivery method (as opposed to a scheduled delivery method). Trading Networks does not use the Wait Between Retries and Retry Factor settings for reliable delivery with scheduled delivery because the queues delivery schedule dictates how often to retry delivery attempts.
141
Description The factor you want Trading Networks to use when determining how long to wait before making the second and subsequent attempts to redeliver the document when Trading Networks is using reliable delivery. Trading Networks calculates the time to wait by multiplying the last wait time by Retry Factor. Specify a whole number greater than zero for Retry Factor. Example: The following shows sample values for the reliable delivery settings and how they affect the wait times between attempts to redeliver a document. Delivery Maximum Retries Wait Between Retries Retry Factor Wait until next attempt = = = 3 10000 ms 2 Retry 1 10000 ms Retry 2 20000 ms Retry 3 40000 ms
Note: For more information about reliable delivery, see Using Reliable Delivery with Immediate Delivery Method on page 343 and Using Reliable Delivery with Scheduled Delivery on page 344. Polling Method The method (e.g., Primary HTTP) that your Trading Networks system uses to contact the partners system to request documents that the partner has queued for your system. Select the method from the list. If you do not want your Trading Networks system to poll for documents, select the blank entry. How often Trading Networks is to poll the partners system to retrieve documents that the partner has queued for your system. Specify a number of minutes that is zero or greater. If you specify zero, Trading Networks will not poll. Note: Setting the polling frequency too low can have an adverse effect on Trading Networks performance.
Polling Frequency
142
For more information about Clients that partners can use to send documents to Trading Networks, see Chapter 4, "Sending Documents to Trading Networks for Processing" in the webMethods Trading Networks Concepts Guide. Delivery methods you can use with Trading Networks, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide.
Description The name of the field group that Trading Networks associates extended fields with. This column contains the list of groups that have defined profile fields. Note: Out-of-the-box, Trading Networks provides pre-defined field groups. You can add additional field groups by specifying a new group when you add a new extended field. Alternatively, you can also use the built-in service wm.tn.dictionary:addFieldGroup. For more information about this service, see the webMethods Trading Networks Built-in Services Reference. If there are no extended profile fields in a specific group, Trading Networks does not display that group. For example, if you have not defined any extended profile fields for the Corporate group, Trading Networks does not display Corporate in the Group column. Note: To see extended fields, select the name of the group from the Group column, and Trading Networks displays the corresponding extended fields on the right.
143
144
For more information about Security in the Integration Server, including trusted CA certificates, see the chapter about security information in the webMethods Integration Server Administrators Guide. Security in Trading Networks, see Appendix B, "Security within Trading Networks" in the webMethods Trading Networks Concepts Guide. Trading Networks displays the following fields on the sub-tabs. Security Tab Field Certificate Chain Description The partners digital certificate that you want Trading Networks to use to verify digital signatures, encrypt documents, and enable Trading Networks to act as an SSL client to connect to a remote secure server. Trading Networks displays the value of the CN (Common Name) field from the Subject defined by the certificate. The private key that is associated with the digital certificate that you specified in the Certificate Chain field. Trading Networks uses the private key to process Verify, Encrypt, and Client SSL certificates.
Private Key
Description Create the profile for the partner. Enable the partner profile. Inform the partner of the user name and password.
145
Perform one of the following procedures to add a profile. Method to add a profile New The profile fields are empty. Procedures Select Trading Partners New Trading Partner. Trading Networks displays the New Profile screen to allow you to fill in the information for the profile. 1) Select either your enterprise profile -ORClick the row containing the partner profile that you want to duplicate. Note: You can duplicate both your enterprise profile or an existing partner profile to add another partner profile. 2) Select Trading Partners Trading Partner. Duplicate
Duplicate With the exception of the corporation name and external ID, the profile fields are filled with the values from the profile that you want to duplicate. You can update any or all fields from the duplicated profile.
146
Click the Corporate tab and fill in the fields. Fields that you must specify are in blue and are marked with an asterisk (*) on the screen. For more information about these fields, see Information on the Partners Corporate Tab on page 132. For this Corporate tab parameter... Corporation Name Unit Name Partner Type Preferred Language 2)
Perform this procedure... To add the partners corporation information: 1) In the Corporation Name field, type the name of the partners corporation, for example, Industrial Steel Company. In the Unit Name field, type the name of the organizational unit or division within the partners corporation, for example, Sales and Marketing. In the Partner Type field, specify the type of software that the partner uses to interact with your trading network: webMethods Trading Networks, webMethods for Partners, Web Browser, or Other/Unknown. In the Preferred Language field, optionally specify the language preference the partner uses if needed for another webMethods component (e.g., webMethods RosettaNet Module).
3)
4)
To edit the partners corporation information: 1) 2) Click Edit Corporation Name Name field. next to the Corporation
147
For this Corporate tab parameter... Country Address City State/Province Postal Code
Perform this procedure... To add an address for your partner: Click Add New Address on the right side of the screen. To edit an address for your partner: Select the address tab you want to edit; then, click Edit Address 1) .
Specify the following fields for the address: For this address parameter Country Specify The country where the partners corporation is located, for example, USA. The street address of the partners corporation, for example, 123 Main Street, Suite 456. The city where the partners corporation is located, for example, Los Angeles. The state or province where the partners corporation is located, for example, California. The postal code (for example, a zip code) for the state or province where the partners corporation is located, for example, 90001.
Address
City
State/Province
Postal Code
2)
Click Save.
Note: Repeat this step for each address that you want to add. You can specify an unlimited number of addresses for a corporation. The order that you add the addresses is the order that they are displayed as tabs. External ID Type Value To add a new external ID type: Click Add New External ID located next to the External ID Type table in the Profile Identifiers section. To edit an external ID type: Select the row containing the external ID you want to edit; then, click Edit External ID .
148
Perform this procedure... 1) In the External ID Type field, specify the type of identification that the partners corporation uses within documents. For example, specify DUNS if the partner uses a D-U-N-S number. Be sure to include an external ID type for each type of identification that you use in documents. You can specify an unlimited number of external ID types. Note: You determine the external ID that Trading Networks uses for the user account by identifying a required ID type. You configure the required ID type by using the tn.required.idtype property on the TN Properties page. The tn.required.idType property controls what type of external ID is used as the IS username for Trading Networks partners. This required ID type cannot contain any white spaces and the default value is DUNS. To see a list of the tn.required.idType property and a description of it, view the online help files that you access from the TN Properties page. For more information about the TN Properties page, see Chapter 4, Trading Networks Configuration Properties. 2) In the Value field, specify the value of the external ID type. For example, if you selected DUNS and the partner D-U-N-S number is 987654321, specify 987654321 for Value. The maximum length you can specify for an external ID is 128 characters. Click Save.
3) 1)
To delete an external ID: Select the row containing the external ID you want to delete and click Delete External ID 2) .
Trading Networks confirms that you want to delete the external ID. Click Yes.
149
Perform this procedure... If you want to associate the partner profile with a profile group: 1) Click Add New Profile Group located next to the Profile Group Membership table in the Profile Identifiers section. Note: You can only associate profiles with a profile group if there are profile groups defined in the database. To add a new profile group, see Other Configuration Settings on page 61. 2) 3) Click Save. Repeat this step to associate the partner profile with more than one profile group.
If you want to delete the profile group association: 1) Select the row containing the profile group you want to delete; then, Delete Profile Group 2) .
Trading Networks confirms that you want to delete the profile group. Click Yes so that the partner profile is no longer associated with this partner group.
150
Click the Contact tab and fill in the fields. Trading Networks displays fields for you to fill in. Fields that you must specify are in blue and are marked with an asterisk (*) on the screen. You can specify an unlimited number of contacts. For each contact, supply the following information. For more information about these fields, see Information on the Partners Contact Tab on page 136. For this Contact tab parameter... Contact Type Role Last Name First Name E-mail Telephone Extension Pager Fax Country Address City State/Province Postal Code Last Name Role
Perform this procedure... To add a contact: Click Add New Contact the screen. on the right side of
To edit a contact: Select the row containing the name of the contact you want to edit; then, click Edit Contact 1) Specify the following fields for the contact: For this contact parameter Contact Type Specify The type of contact, for example, Administrative. Select a contact type from the list. The role the contact has in the partners corporation. This might be a job title, for example, Trading Network Administrator. The contact's last (surname) name. Note: To sort the contacts last names alphabetically, click on the Name column heading for forward ( ) and reverse ( ) alphabetization. First Name E-mail The contact's first (given) name. The contact's e-mail address, for example, [email protected]. The contact's telephone number, for example, 1-800-555-1234. .
Telephone
151
Perform this procedure... Extension The contact's extension number. If the telephone number in the Telephone field identifies the main line for the corporation, use the Extension field to identify the contact's extension. Specify The contact's pager number, for example, 1-330-555-7890. The contact's fax number, for example, 1-888-555-4897. The street address for the contact, for example, 123 Main Street, Suite 456. The city where the contact is located, for example, Los Angeles. The state or province where the contact is located, for example, California. The postal code (for example, a zip code) for the state or province where the contact is located, for example, 90001.
Postal Code
2)
Click Save.
Note: Repeat this step for each contact that you want to add or edit. You can specify an unlimited number of contacts for a corporation. To sort the contacts last names alphabetically, click on the Name column heading for forward ( ) and reverse ( ) alphabetization To delete a contact: 1) Select the contact you want to delete from the Name list and then click Delete Contact 2) .
Trading Networks confirms that you want to delete the address. Click Yes.
152
Click the Delivery Method tab and fill in the fields to specify how you are to deliver documents to the partner. The Deliver document processing action uses the settings on the Delivery Method tab. For more information about these fields, see Information on the Partners Delivery Method Tab on page 137. For more information about the Deliver Document By processing action, see Action 4Deliver the Document to the Receiver on page 341. For this Delivery Method tab parameter... Protocol Host Port Location User Name Password E-mail Use as preferred protocol
Perform this procedure... To add a delivery method: Click Add New Destination upper portion of the screen. in the
To edit the delivery method: Select the tab for the delivery method you want to edit; then, click Edit Destination 1) .
In the Protocol field, select a delivery method from the list. Trading Networks updates the information on the tab screen to display the fields required for the protocol you selected.
Note: If you selected Queue for delivery as your delivery method, see step 7 on page 155 for instructions on how to specify information for this delivery method. 2) For an HTTP, HTTPS, FTP, or FTPS delivery method, in the Host field, specify the host name of the partners system, for example, IndustrialSteel.com. For an HTTP, HTTPS, FTP, or FTPS delivery method, in the Port field, specify the port number on which the partners system listens for incoming requests, for example, 5555 Note: If you do not supply a port number, Trading Networks uses the following defaults: HTTP80; HTTPS443; FTP or FTPS21.
3)
153
Perform this procedure... 4) For an HTTP, HTTPS, FTP, or FTPS delivery method, specify one of the following in the Location field: For HTTP and HTTPS delivery methods, specify the URL Trading Networks is to use when sending a document to the partners system, for example, cgibin/acceptOrder. If the partner is using Trading Networks, the URL is typically, /invoke/wm.tn/receive. For FTP and FTPS delivery methods, specify the directory path on the partners system identified by Host and Port. Trading Networks delivers the document to this directory. 5) For an HTTP, HTTPS, FTP, or FTPS delivery method, in the User Name field, specify the user name that your Trading Networks system is to supply when connecting to the partners system to deliver documents. If you are creating a profile for a partner that uses webMethods Trading Networks or webMethods for Partners, you must specify the user name for your webMethods User account on the partners system. The user account must be a member of the TNPartners group on the partners Integration Server. Note: If you do not know what to specify for User Name, contact the partner. 6) For an HTTP, HTTPS, FTP, or FTPS delivery method, in the Password field, specify the password that your Trading Networks system is to supply (along with User Name) when connecting to the partners system.
154
Perform this procedure... 7) When defining the delivery method that the partner prefers that you use to deliver documents to its system, select the Use as preferred protocol checkbox. Note: You cannot select the Queue for delivery as the preferred protocol. Trading Networks displays the preferred protocol at the top of the Delivery Method tab. 8) 1) Click Save. To delete a delivery method: Select the tab for the delivery method you want to delete; then, click Delete Contact 2) .
Trading Networks confirms that you want to delete the delivery method. Click Yes.
If you added Queue for delivery as the delivery method (in the Protocol field), select which type of queue: Use Public Queue or Use Private Queue. Note: You cannot use either the public or private queue as your preferred protocol. Then set the following parameters on the New Protocol tab screen of the Delivery Method tab. For this Delivery Method tab parameter Use Public Queue
Perform this procedure... To use a public queue: 1) 2) Select Use Public Queue. Specify which public queue to use to deliver documents from the Public Queues list. The public queues were defined on the Tools menu of the Console. For more information about the public queue fields, see Defining Public Queues on page 380. If you want to review the setting for the public queue, click the View button.
155
Perform this procedure... 3) Click Save. Select Use Private Queue. Click Edit and fill in the fields on the Settings and Schedule tabs. Set the following Settings tab parameters to specify private queue settings. For this parameter Delivery Service Set Inputs Queue State Specify Which delivery service to use with the private queue. The inputs for the delivery service. The state of the queue (Enable Queue, Disable Queue, Drain Queue, or Suspend Delivery). The state of the scheduled delivery queue determines: 1) whether Trading Networks can add delivery tasks to the queue and 2) whether Trading Networks can deliver documents associated with the delivery tasks in the queue. The states for private queues are the same states as for public queues. For a description of each queue state, Scheduled Delivery Queue States on page 390
156
Perform this procedure... 4) Set the following Schedule tab parameters for the private queue delivery settings. The scheduling fields for a private queue are the same as for a public queue. See Delivery Schedule for Queues on page 384 for more information about the schedule settings. For this parameter Run Once Specify In the Date field the date on which you want Trading Networks to execute the delivery service. In the Time field the time at which you want Trading Networks to execute the delivery service. Using the Run Once Option on page 385 Simple Interval The number of seconds that you want Trading Networks to wait between executions of the delivery service in the Interval field. If you want Trading Networks to wait for a delivery service to complete execution before it starts the next scheduled execution of the service, check Do not overlap task. When you add or update a simple interval schedule for a queue that is Enabled or Draining, Trading Networks invokes the service immediately. Subsequent invokes are governed by the interval. For more information, see Using the Simple Interval Option on page 385 Complex Interval Settings that indicate when and how often you want the delivery service to execute. For descriptions of these fields and examples of setting them, see Using the Complex Interval Option on page 386.
157
Set the following parameters (located on the bottom of the Delivery Method tab screen) to specify the reliable delivery and polling settings. For this Delivery Method tab parameter Delivery Maximum Retries Wait Between Retries Retry Factor Polling Method Polling Frequency
Perform this procedure... To set/supply the values of the reliable delivery and polling settings: 1) 2) 3) Click on Edit Access Information .On the bottom portion of the screen to change the default values for these fields. In the Delivery Maximum Retries field, specify the number of times you want Trading Networks to attempt to redeliver a document to the partner when Trading Networks is using reliable delivery. Specify a whole number. Note: The Delivery Maximum Retries, Wait Between Retries, and Retry Factor options are only used when Trading Networks is using reliable delivery (delivery tasks). For more information about reliable delivery, see Using Reliable Delivery with Immediate Delivery Method on page 343 and Using Reliable Delivery with Scheduled Delivery on page 344 The Delivery Maximum Retries option is used for both immediate and scheduled delivery methods. 4) In the Wait Between Retries field, specify the number of milliseconds you want Trading Networks to wait before making its first attempt to redeliver the document when Trading Networks is using reliable delivery. Trading Networks uses the Retry Factor along with the Wait Between Retries value to calculate how long to wait for subsequent retry attempts.
158
Perform this procedure... Note: The Wait Between Retries and Retry Factor options are only used when Trading Networks is using reliable delivery for an immediate delivery method (as opposed to a scheduled delivery method). Trading Networks does not use the Wait Between Retries and Retry Factor settings for reliable delivery with scheduled delivery because the queues delivery schedule dictates how often to retry delivery attempts. 5) In the Retry Factor field, specify the factor you want Trading Networks to use when determining how long to wait before making the second and subsequent attempts to redeliver the document when Trading Networks is using reliable delivery. Trading Networks calculates the time to wait by multiplying the last wait time by Retry Factor. Specify a whole number greater than zero for Retry Factor. In the Polling Method field, specify the method (e.g., Primary HTTP) that your Trading Networks system uses to contact the partners system to request queued documents. Select the method from the list. Note: If you do not want your Trading Networks system to poll for documents, select the blank entry. 7) Click Save.
6)
Click the Extended Fields tab and fill in the fields. Extended fields that you must specify are in blue and are marked with an asterisk (*) on the screen. For more information, see Information on the Partners Extended Fields Tab on page 143. For this Extended Fields tab parameter... Group
159
Perform this procedure... 2) Click Edit Field group. to fill in the fields for the appropriate
Note: If you do not know what to specify for an extended field and the description does not indicate what to specify, contact your Trading Networks administrator to determine what to specify. 3) Click Save. Note: You must save the changes you make to one groups extended fields before you can add another groups extended fields. Repeat this step for each extended field you want to update. 10 Click the Security tab and fill in the fields. For more information, see Information on the Partners Security Tab on page 144. Use this sub-tab Sign/Verify To Specify certificate information that Trading Networks uses to verify the digital signature of documents that were digitally signed by this partner. Specify certificate information that can be used to encrypt information that is being sent to a partner. Enable Trading Networks to act as an SSL client to connect to a remote secure server.
160
Perform this procedure... To view information about a certificate: 1) 2) Select the partner from the Partner list on the left. Select the appropriate certificate sub tab: Sign/Verify, Decrypt/Encrypt, or SSL Client. Trading Networks displays the certificate information. Click the appropriate row of the Certificate Chain table. The Console displays the certificate information on the right.
3)
In the Add Certificate dialog box, add one or more certificates as follows: To add one certificate, browse to and select the file that contains the certificate. Note: When you add a certificate, be sure also to add the CA certificate(s) and private key that are associated with the certificate. The certificates, CA certificates, and private keys must reside in your file system. Trading Networks can import files that have a .der, .cer, or .p7b extension. If you import a .der file, Trading Networks appends it to the existing certificate chain list. However, if you import a .cer or .p7b file, Trading Networks replaces the certificate chain list with the .cer or .p7b file. To add multiple certificates within a directory, browse to and select the files that contain the certificates, using the SHIFT + CONTROL keys. If you select an entire directory, Trading Networks imports all files except duplicate files and private key files. Note: The order that Trading Networks displays the certificate chain does not reflect how the chain is linked.
161
Select the certificate(s) that you want to delete. To select multiple certificates, press CTRL and click on the second and subsequent certificates. Click Delete Certificate(s) . When Trading Networks prompts you to verify that you want to delete the certificate(s), click Yes. Note: If you delete the certificate, be sure also to delete the CA certificate(s) and private key that are associated with the certificate.
3)
Private Key
To view a private key: The Trading Networks Console will not display private key information. If a key is defined, Defined appears in the text field. If a key is not defined, <Empty> appears in the text field. To add a private key: 1) 2) 3) Click Edit Selected . in the Private Key field.
In the Import Private Key dialog box, browse to and select the file that contains the private key that you want to add. You can only import a .der file that contains a valid private key format. Once you select the file, then click Open. Note: If you add a private key, be sure also to add the certificate and CA certificate(s) that are associated with the private key.
162
Click Delete Private Key . When Trading Networks prompts you to verify that you want to delete the private key, click Yes. Note: If you delete the private key, be sure also to delete the certificate and CA certificate(s) that are associated with the private key.
11 After completing all of the partner profile fields: If you are creating a new profile: 1 Click Create Profile to save your new profile. Note: If the profile fields were not completed correctly, Trading Networks: 1. Displays a dialog box listing the error messages that identify the fields that are in error and 2. Saves the profile with the information you specified. You must edit the profile to correct the errors. 2 Once you create the profile and Trading Networks saves it, the Console displays the User Account Information dialog box. Note: This dialog box will only appear when the profile saved is valid and created successfully. Trading Networks displays the user name and password of the created IS user account in this dialog box and will use this information later on in Step 3: Informing the Partner of the User Name and Password on page 165. Important! Be sure to record the information and send the user name and password to your partner. Otherwise, your partner cannot access or use your Trading Networks system.
163
If you are updating an existing profile: Click Save to save all your changes to the partner profile. For more information about managing profiles, see About Querying and Viewing Profiles on page 166.
164
Trading Networks displays the user name and password for this partner profile. Record the user name and password.
165
Perform this procedure... 1 2 3 Click the tab for the delivery method. Click Edit Destination .
In the User Name field, your partner should specify user name that you supplied. In the Password field, your partner should specify the password that you supplied. Click Save.
166
To set up a query and display information for viewing profiles, specify some or all of the following: Basic search criteria Custom search criteria How to display detail view information about selected profiles.
167
Operator Is null
Matches when the attribute extracted from a document Has no value. The attribute value has no value if: XQL query (defined in the TN document type) that Trading Networks used to extract the attribute failed. The TN document type does not instruct Trading Networks to extract the attribute. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Matches exactly the value that you specify. Has a value that does not match the value that you specify. Contains the character string that you specify for the value.
168
Note: Trading Networks displays the last query run on the Trading Networks Console. 4 Perform one of the following to identify and select the profile of one of your partners: To select from all partners: Select a partner from the Profiles table on the bottom portion of the screen. To narrow down the list of partners from which to choose: a Select the Basic Criteria tab and fill in the fields to specify basic search criteria. To indicate that you want to use one or more of the basic search criteria, select the checkbox next to each criterion you want to use. Then fill out the corresponding information as follows For this Basic Criteria tab parameter Corporation Name
Specify The name of the partners corporation, for example, Industrial Steel Company. Type a character string contained in the Corporation Name of the partner you want to work with. You can use the pattern-matching characters % in the corporation name search.
Unit Name
The name of the organizational unit or division within the partners corporation, for example, Sales and Marketing. type a character string contained in the Unit Name of the partner you want to work with. The External ID Type is the type of identification that the partner (partners corporation) uses within documents. The Value is the alpha-numerical value of the partners external ID type. You must provide both values for the query to work. For example, if the partner uses a D-U-N-S number as an external identification type, select DUNS from the External ID Type list and specify the partners D-U-N-S number in the Value column.
169
Specify The name of the profile group that Trading Networks associates the partners profile to. This column contains the complete list of profile groups that have been created in the database. You can only select one profile group from the list for each query. For more information about how to create profile groups, see Other Configuration Settings on page 61. The status of the partners profile. Select Active to search for an enabled profile or Inactive for a disabled profile. For more information about partner profile statuses, see Step 2: Enabling the Partners Profile on page 164. The country where the partners corporation is located, for example USA. The city where the partners corporation is located, for example, Los Angeles. The state or province where the partners corporation is located, for example, California. The postal code (for example, a zip code) for the state or province where the partners corporation is located, for example, 90001.
Partner Status
For more information about these profile query fields, see Information on the Partners Corporate Tab on page 132. b Select the Custom Criteria tab and fill in the fields to specify custom search criteria for the extended profile field(s). For the profile query, specify a STRING extended field to query documents as follows. For this Custom Criteria tab parameter Extended Field
Specify The name of the extended profile fields that you want Trading Networks to use to select documents. Select a STRING data type from the drop-down list.
170
Specify The operator you want Trading Networks to use with the Value you specify. For example, select Equal if you want Trading Networks to match extended fields that have the exact value you specify for Value. Data Type STRING Operator values Is null; Is not null; Equals; Not equals; Contains
Value
The value you want Trading Networks to use when querying for documents. To specify a string, type the characters in the string. Be sure to use the exact combination of upper- and lowercase letters because Trading Networks performs a case-sensitive match. You do not need to specify a value if you select Is null or Is not null for Operator.
For more information about extended profile fields, see Information on the Partners Extended Fields Tab on page 143. For more information about how to use custom criteria, see Custom Search Criteria for Profiles on page 167. c 5 Select Run Query on the toolbar. Trading Networks displays the Profiles table with the results from the refined query.
To change the format of the query results in the Profiles table, click the Detail View tab. Fill in the following fields to specify how Trading Networks displays information in the Detail view. a In the Standard Fields panel, check field that you want Trading Networks to include in the Detail view. Trading Networks displays a column for each checked field. Trading Networks always displays the Corporation Name column for each partner profile. In the Extended Fields section, select the extended fields that you want Trading Networks to include in the Detail view. Trading Networks displays a column for each field in the Selected Extended Fields list. To move items to the Selected Extended Fields list:
171
Select this...
To do this... To move all extended fields to the Selected Extended Fields list To move some but not all extended fields to the Selected Extended Fields list, select one or more fields in the Available Extended Fields list and then click .
If you decide you do not want Trading Networks to display information for the fields in the Selected Extended Fields list, move the items back to the Available Extended Fields list:
.
Select this...
To do this... To remove some but not all extended fields from the Selected Extended Fields list, select the extended fields you do not want displayed from the Selected Extended Fields list and then click To remove all extended fields from the Selected Extended Fields list. .
6 7
toolbar button.
Double click to select the partner you want from query results in the Profiles table on the bottom portion of the screen. Trading Networks displays the Update Profile screen. For more information about the tabs and fields on this screen, see Step 1: Defining a Partner Profile on page 146. For procedures on how to change the information in your partners profile, see Updating the Profile of Your Partner on page 173. For more information about queries in Trading Networks, see About Viewing and Querying Documents on page 428.
172
Follow the procedures to update the partner profile. These procedures are the same ones you initially used to create a partner profile. In general, on the Profile screen, use the following buttons to supply information to the profile fields:
173
or
Fields that you must specify are in blue and are marked with an asterisk (*) on the screen. 3 After updating all of the partner profile fields, make sure to click Save to save all your changes to the profile.
Deleting a Profile
When you delete a profile from the Trading Networks Console, Trading Networks removes most of the profile data from its database, but keeps all documents, entries, and TPAs that are associated with the partner. You are no longer able to view: the profile using the Profile screen and any related TPAs. If you decide to delete a profile, you must also delete all related TPAs before deleting the profile. Note: You cannot delete your own Enterprise profile. Trading Networks does not provide a way to undelete a profile. If a partner sends you a document after you delete its profile, Trading Networks treats the document as if it came from an unknown partner. Important! When you delete a partners profile, Trading Networks does not delete the user account it created for the partner. To delete the user account, use the webMethods Administrator. For instructions, see the webMethods Integration Server Administrators Guide.
174
To delete a partners profile, perform the following procedure: To delete a partners profile 1 Select the partner whose profile you want to delete. If you need procedures for this step, see About Querying and Viewing Profiles on page 166. Important! Before you delete any profile, you must delete any related TPAs. For more information, see Deleting a TPA on page 192. 2 3 Select Trading Partners Delete Trading Partner to delete the profile.
When Trading Networks prompts you to verify that you want to delete the profile, click Yes.
175
Important! When you disable a partners profile, Trading Networks does not disable or delete the webMethods User account for the partner. To delete the user account, use the webMethods Administrator. For more instructions, see the webMethods Integration Server Administrators Guide.
176
CHAPTER
10
177
C H A P T E R 1 0 Tr a d i n g P a r t n e r A g r e e m e n t s ( T PA s )
Agreement ID
178
Description An IS document type that specifies the data that you define in the TPA. For more information about changing the data, see Changing the TPA Data Inputs in the IS Document Type on page 190. When using the TPA feature for your own custom application, these are the parameters that your custom applications need access to during document exchange. Use the webMethods Developer to create the IS document type that contains the parameters you need for your custom application. For more information on how to create an IS document type, see the webMethods Developer Users Guide. webMethods components that use the TPA feature come with the IS document type you need to use for the TPA data. For example, the webMethods EDI Module supplies the wm.b2b.editn.TPA:EDITPA IS document type and the webMethods ebXML Module supplies the wm.ip.ebxml.cpa.rec:tpaDataSchema IS document type. For more information about EDI TPAs, see webMethods EDI Module Users Guide.
Control Number
A field that is available for application-specific use. Trading Networks does not update the Control Number field. When using the TPA feature for your own custom application, you can use the Control Number field in any way you want. Some webMethods components that take advantage of the TPA feature use the Control Number field. For example, the webMethods EDI Module uses the control number to ensure documents are processed in order and that no documents have been lost or unprocessed.
179
C H A P T E R 1 0 Tr a d i n g P a r t n e r A g r e e m e n t s ( T PA s )
Description This field applies only when the Agreement Status is Agreed. The data status indicates whether you can update the values for the TPA data defined in the IS document type (located in the panel on the lower portion of the Agreement Details dialog box). The data status can be one of the following: Modifiable - the TPA data can be changed Non-modifiable - the TPA data cannot be changed Note: Trading Networks uses the data status only after the TPA has an Agreed status. For more information about TPA statuses, see Changing a TPA Agreement Status on page 188. For more information about changing the TPA data defined in the IS document type, see Changing the TPA Data Inputs in the IS Document Type on page 190.
Export Service
A service that exports a Trading Networks TPA and converts it to an industry-standard format. After creating a TPA, if you need to obtain the industry-standard format of a TPA, you can execute your export service. Defining an export service is optional. Note: The format of the industry-standard agreement will not be the same as the format of a Trading Networks TPA. When using the TPA feature for your own custom application, you can create an export service that converts the Trading Networks TPA to the industry-standard format that you require.
180
Defining a TPA
Description A service that sets default values for the IS document type data of the TPA. Defining an initialization service is optional. You can set this field to point to an IS service that can provide the initial values for that data. When using the TPA feature for your own custom application, you can create an initialization service that populates the parameters in the IS document type with default values. Some webMethods components that take advantage of the TPA feature supply an initialization service. For example, the webMethods EDI Module supplies the service wm.b2b.editn.TPA:initService that populates the EDITPA with the default values for an EDI TPA. The webMethods ebXML Module supplies the wm.ip.ebxml.cpa:initTPA initialization service. For more information about EDI TPAs, see the webMethods EDI Module Users Guide. For more information about ebXML CPAs, see the webMethods ebXML Users Guide
Description
This is an optional field that you can use to specify a description for the TPA. Specify 1-1024 characters. There is no restriction to the characters that you can use.
Defining a TPA
You define TPAs on the Agreement Details screen of the Trading Networks Console. After you set the attributes of your TPA on the top portion of this screen and select the IS document type, Trading Networks displays the corresponding IS document type data tree on the bottom panel of the screen. The right side of this panel displays the input values (TPA data inputs) to variables of the IS document type. Use the following procedure to define a TPA. To define a TPA 1 2 3 Start the Trading Networks Console. If you need procedures for this step, see the webMethods Trading Networks Concepts Guide. Select View Agreements. Trading Networks displays the Agreements screen.
181
C H A P T E R 1 0 Tr a d i n g P a r t n e r A g r e e m e n t s ( T PA s )
Method to create a TPA NewThe TPA fields are empty. DuplicateThe TPA fields are filled with values from the TPA agreements that you duplicate. You can update any or all fields from the duplicated TPA agreement. You can use this function to create a template TPA. 4
Procedures Select Agreements New. Trading Networks displays the Agreement Details screen to allow you to fill in the information for the TPA. a b Click the row containing the name of the TPA agreement that you want to duplicate. Select Agreements Duplicate. Trading Networks displays the Agreement Details screen.
Fill in the following fields on the Agreement Details screen for the TPA you want to create: Note: The Sender, Receiver, and Agreement ID fields must be unique for each TPA. After you create a TPA, you cannot change or update these fields of the TPA.
Specify Name of the trading partner that has the sender role in the transaction the TPA will govern. Type in the name of the sender or click the Select... button to select the sender from the Partner Selection Dialog. This list includes your own profile (Enterprise). For EDI, to create a template that you will duplicate to create other TPAs, you can use the default value of Unknown. For more information about how to select a sender, see Selecting a Partner on page 34.
Receiver
Name of the trading partner that has the receiver role in the transaction the TPA will govern. Type in the name of the receiver or click the Select... button to select the receiver from the Partner Selection Dialog. This list includes your own profile (Enterprise). For EDI, to create a template that you will duplicate to create other TPAs, you can use the default value of Unknown. For more information about how to select a receiver, see Selecting a Partner on page 34.
182
Defining a TPA
Specify An identifier that indicates the type of agreement between the two partners. The Sender, Receiver, and Agreement ID values together uniquely identify a TPA. Note: You will not be able to continue creating a TPA unless you supply the Agreement ID. After you supply the Agreement ID, you can: create the TPA or continue to supply data for the remaining fields. The value you specify depends on the application that is going to use the TPA. You can use up to 254 characters of any type for this field, including spaces. For more information about the agreement ID, see Information You Supply to Define a TPA on page 178.
IS Document Type
The IS document type that defines the application-specific TPA data. The TPA data is used to govern the exchange of documents between the two partners. Type in the name of the IS document type located on the server or click Find IS Document Type to browse the IS document types and select the one you want to use. Trading Networks displays the data tree input values of the selected IS document type in the bottom panel of the Agreement Details screen. For more information about the IS document type, see Information You Supply to Define a TPA on page 178. If you want to change the data input for the IS document type, see Changing the TPA Data Inputs in the IS Document Type on page 190.
Control Number
A value that the application using the TPA expects. This value is only needed if the application using the TPA uses the Control Number field. The value for this field must be an integer. The default value is zero (0).
Data Status
Whether you want to be able to modify the values of the TPA data of the IS document type. The data status is only applicable when the agreement status is Agreed. For more information about statuses, see Changing a TPA Agreement Status on page 188.
183
C H A P T E R 1 0 Tr a d i n g P a r t n e r A g r e e m e n t s ( T PA s )
Specify A service to convert the data in the Trading Networks TPA to an industry-format trading partner agreement. For more information about the export service, see Information You Supply to Define a TPA on page 178. Type in the name of the export service located on the server or click Find Service you want to use. to browse the services and select the one
Note: The Export Service is different from the Trading Networks File Export function that exports Trading Networks data (such as profiles, TN document types) out of the Trading Networks database, so data can be exported/imported within the same Trading Networks release from development to production environment. For more information about exporting Trading Networks data to another Trading Networks system, see Appendix A, Exporting and Importing Database Information. Initialization Service A service to populate the inputs to the variables in the IS document type for the TPA with default values. This is optional. For more information about the initialization service, see Information You Supply to Define a TPA on page 178. Type in the name of the initialization service located on the server or click Find Service to browse the services and select the one you want to use. Note: If you create a partner-defined EDITPA from scratch, webMethods recommends that you do not use the wm.b2b.editn.TPA:initService initialization service because it populates the partner-defined EDITPA with hard-coded values other than those in the default EDITPA, which is already tailored to a users particular requirements. Instead, webMethods recommends that you manually complete each parameter field in the Input for wm.b2b.edi.tn.TPA:EDITPA screen in the Trading Networks Console. For more information about EDI TPAs, see the webMethods EDI Module Users Guide.
184
Managing TPAs
Specify Optionally, specify a description for the TPA in the Description field. Specify 1-1024 characters. There is no restriction to the characters that you can use.
Note: Trading Networks disables the OK button until you supply the Sender, Receiver, and Agreement ID fields. If you clear any of the Sender, Receiver, and Agreement ID fields during the creation of the TPA, Trading Networks will disable the OK button, as well as the other TPA fields. You will not be able to save the TPA unless you supply the Sender, Receiver, and Agreement ID fields.
Managing TPAs
The following table describes the tasks you can perform against TPAs: Task Finding and Viewing TPAs Updating TPAs Changing a TPA Agreement Status Changing the TPA Data Inputs in the IS Document Type Deleting a TPA See Page... 185 187 188 190 192
To see detailed information about a specific TPA, double click on the row containing the TPA you want more detailed information about. Trading Networks displays the Agreements Details screen.
185
C H A P T E R 1 0 Tr a d i n g P a r t n e r A g r e e m e n t s ( T PA s )
If you cannot find the TPA you are looking for, you can use the search criteria on the Agreements screen to query for specific TPAs. a b Select Show Query criteria. on the toolbar to have Trading Networks display the search
To indicate that you want to use one or more of the search criteria, select the checkbox next to each criterion you want to use. Then fill out the corresponding information as follows. Important! The search-criteria fields are space and character-sensitive; be sure to use the exact combination of upper- and lowercase letters. Do not use pattern-matching characters (such as *, %, or _) in the TPA search.
Specify The name of the trading partner that has the sender role for the TPA. Type in the name of the sender or click the Select... button to select the sender from the Partner Selection Dialog. For more information about the Select... Partner on page 34. button, see Selecting a
Note: The Sender, Receiver, and Agreement ID fields must be unique for each TPA. Receiver The name of the trading partner that has the receiver role for the TPA. Type in the name of the receiver or click the Select... button to select the receiver from the Partner Selection Dialog. For more information about the Select... Selecting a Partner on page 34. Agreement ID Agreement Status button, see
The Agreement ID of the TPA that you want to view. The status of the agreement that you want to view: Proposed, Disabled, or Agreed. For more information about statuses, see Changing a TPA Agreement Status on page 188. The IS document type for the TPA data you want to use. Type in the name of the IS document type located on the server or click Find IS Document Type to browse the IS document types and select the one you want to search for.
IS Document Type
186
Managing TPAs
Specify The time Trading Networks last updated the TPA either when the TPA was created or last updated. Select an entry from the list. To specify a date range, select Custom from the list. Then specify dates in the Beginning and Ending fields. You can type in a date value, or click Select Date to open a dialog that allows you to select the date from a calendar.
For more information about the TPA attribute fields, see Information You Supply to Define a TPA on page 178. c d Select Run Query on the toolbar. Trading Networks updates the Agreements table on the bottom portion of the screen with the query results. Double click to select the partner you want from query results in the Profiles table on the bottom portion of the screen. Trading Networks displays the Agreement Details screen. For more information about the tabs and fields on this screen, see Defining a TPA on page 181. For procedures on how to change the information in your partners profile, see Updating TPAs on page 187. For more information about queries in Trading Networks, see About Viewing and Querying Documents on page 428
Updating TPAs
Use the following procedure to update a TPA. To update a TPA 1 2 3 Select the TPA you want to update. If you need procedures for this step, see Finding and Viewing TPAs on page 185. Select Agreements Edit.
Update the TPA fields you want to change: For information on what you can specify for the fields in the Agreement Details screen, see step 4 on page 182. For instructions on how to change the Agreement Status, see the next section, Changing a TPA Agreement Status.
187
C H A P T E R 1 0 Tr a d i n g P a r t n e r A g r e e m e n t s ( T PA s )
Important! You cannot modify or update the Sender, Receiver, or Agreement ID field of a TPA. 4 For instructions on how to update the inputs for the IS document type, see Changing the TPA Data Inputs in the IS Document Type on page 190.
188
Managing TPAs
Agreement Status
Meaning If the Data Status is: Modifiable, you can change: The Control Number All inputs to TPA data variables in the IS document type. For more information, see Changing the TPA Data Inputs in the IS Document Type on page 190. Non-modifiable, you can change: The Control Number Note: To modify the data of the TPA, you must change the agreement status from Agreed to Proposed. For more information, see Changing the TPA Data Inputs in the IS Document Type on page 190. The TPA should not be used. You can delete a disabled TPA. For more information, see Deleting a TPA on page 192. What you can change: The Control Number Note: To modify the data of a TPA, you must change agreement status from Disabled to Proposed. For more information, see Changing the TPA Data Inputs in the IS Document Type on page 190
Disabled
Use the following procedure to change a TPA agreement status. To change a TPA agreement status 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Agreements. Trading Networks displays the Agreements screen.
Click the row containing the TPA you want to change the agreement status for. To change the agreement status:
189
C H A P T E R 1 0 Tr a d i n g P a r t n e r A g r e e m e n t s ( T PA s )
, Disabled
, or
Right-click and select from the menu items: Proposed, Disabled, or Agreed. Trading Networks displays the new status in the Agreement Status column.
190
Managing TPAs
To change the data input in the following manner... Change the values in the IS document type through the Input for <IS Document Type> dialog. When you click this icon, the dialog displays the parameters of the IS document type with the corresponding TPA data values automatically filled in. You can modify the data values and then save them by selecting OK. For more information about changing IS Document Types, see the webMethods Developer Users Guide. Trading Networks invokes the initialization service (if specified) to reset the TPA data inputs of the IS document type to their default values. If you choose to reset these values, you will lose any changes that you have made to the IS document type. Note: The Reset to Initialization Service button is only enabled when an initialization service is supplied. If this field is emptied, Trading Networks disables the Reset to Initialization Service button.
191
C H A P T E R 1 0 Tr a d i n g P a r t n e r A g r e e m e n t s ( T PA s )
Deleting a TPA
When you delete a TPA, Trading Networks deletes all of the TPA data from its database. Important! Trading Networks does not provide a way to undelete the TPA. Important! Before you delete a profile that is referenced by a TPA, you must first delete any related TPAs. If you accidentally deleted the profile and not the TPA, you can delete the invalid TPA. For more information, see Deleting a Profile on page 174. You can only delete TPAs with the Proposed or Disabled agreement status. You cannot delete TPAs with an Agreed status. If you want to delete a TPA with an Agreed status, you will need to first change the agreement status to either Proposed or Disabled, and then Trading Networks allows you to delete the TPA. To delete a TPA, perform the following procedure: To delete a TPA 1 2 Select the TPA you want to delete. If you need procedures for this step, see Finding and Viewing TPAs on page 185. Select Agreements Delete to delete the TPA. When Trading Networks prompts you to verify that you want to delete the TPA, click Yes.
Note: If you are deleting a non-modifiable agreement, you will need to use the wm.tn.tpa:deleteTPA service. For more information, see the Programmers Reference Guide.
192
CHAPTER
11
Document Attributes
What are Document Attributes? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 Defining Document Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 Managing Document Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
193
C H A P T E R 11 D o c u m e n t A t t r i b u t e s
For more information about these system attributes, see Important Attributes that You Should Extract from an XML Document on page 210 or Attributes To Extract From Documents on page 285. You should define custom document attributes for all types of documents that you expect to receive; a document attribute is not associated with a specific document type. Later, when you define your TN document types, you will specify which document attributes to include in each document type. Instructions for creating document types appear in Chapter 12, TN XML Document Types and Chapter 13, TN Flat File Document Types. To define a document attribute you specify the attributes name, description, and data type (DATETIME, DATETIME LIST, NUMBER, NUMBER LIST, STRING, or STRINGLIST). In addition, you can specify whether Trading Networks should save the attribute to the database (the default behavior).
194
The definition of a TN document type specifies how to locate the attributes in the specific type of document.
The definition of a document attribute specifies the name, type, and description for a document attribute.
<POID>A230</POID>
Document Attribute Name = PO_Number Type = Number Description = Purchase Order Number TN Document Type Name = cXML PO . . . Attributes PO_Number . . .
Document #3 <!-- CBL --> <BuyerRefNum> <Reference> <RefNum> 100 </RefNum> </Reference> </BuyerRefNum>
When you define a TN document type, you identify the attributes that you want Trading Networks to extract from the type of document. Different kinds of documents have different formats, so the location of attributes within a document is based on the specific kind of document. To identify the attributes, you specify the name of the attribute and how Trading Networks is to locate the attribute in the specific type of document. In addition, you can indicate whether you require the attribute to be extracted. If you mark an attribute as required and Trading Networks is unable to extract the attribute from the document, Trading Networks records the error. In the TN document type (or in a processing rule), you can specify that you want Trading Networks to save the document to the database. If you do this, Trading Networks saves the custom attributes it extracts. Trading Networks saves a custom attribute only if the TN document type or processing rule indicates to save that attribute. Note: Regardless of whether you save custom attributes or not, Trading Networks always saves all system attributes except Signature and SignedBody. You can use document attributes to: Locate specific documents that have passed through your network by using the attributes as search criteria in document queries. For example, if you use an attribute
195
C H A P T E R 11 D o c u m e n t A t t r i b u t e s
that retrieves the total order amount of a purchase order, you can query documents where the total order amount is over $10,000. Generate reports about documents in your Trading Network. For more information about document attributes, see Chapter 3, "Setting up Trading Networks to Process Documents" in the webMethods Trading Networks Concepts Guide.
Perform one of the following procedures to begin a document attribute definition. Method to begin a definition NewThe document attribute fields are empty. DuplicateThe document attribute fields are filled with values from the document attribute that you duplicate. You can update any or all fields from the duplicated document attribute. Procedure Click New (yellow highlight). The New Document Attribute screen appears. Click the row containing the document attribute that you want to duplicate. Click Duplicate . A copy of the document attribute screen appears.
196
Fill in the following fields for the custom attribute you want to add: For this parameter... Name Specify The name you want to give to the attribute. You can specify 1 to 64 characters. You can use any character except a single quote ('). Example: If you are defining an attribute for the price of an item in a purchase order, you might use the name LineItemPrice. Type The data type of the attribute. Select the data type (DATETIME, DATETIME LIST, NUMBER, NUMBER LIST, STRING, or STRINGLIST) from the list. Optional. A description of the attribute. You can specify 1 to 256 characters. You can use any character except a single quote ('). Example: If you are defining an attribute for the price of an item in a purchase order, you might specify the description The price of an item in a purchase order. Enabled Whether this attribute is enabled or not. If the document attribute is disabled, select this checkbox to enable it. For more information, see Enabling Document Attributes on page 200 or Disabling Document Attributes on page 199. Whether this attribute is eligible to be saved to the Trading Networks database. If you select this checkbox and the pre-processing actions indicate to save attributes to the database, Trading Networks saves this attribute to the database. If you do not select this checkbox and the pre-processing actions indicate to save attributes to the database, Trading Networks does not save this attribute. Deselect this checkbox if the attribute value is needed during document processing, but does not need to be kept in the database.
Description
Save
197
C H A P T E R 11 D o c u m e n t A t t r i b u t e s
To see the details about a specific document attribute, double click the row for that attribute.
198
Click the row containing the document attribute that you want to update. Right click and select Edit. Update the fields you want to change. For information on what you can specify, see step 5 on page 197. Important! If this attribute is referenced by a TN document type that you imported into Business Integrator and is used in Business Integrator process models, do not change the name of the attribute. You can change other settings for the attribute.
199
C H A P T E R 11 D o c u m e n t A t t r i b u t e s
Networks no longer displays the value of the attribute on the Transaction Analysis screen or the Document Detail screen. When you disable a document attribute, the definition for the document attribute is not removed from the database. Later, if you decide that you need the document attribute, you can enable it. See Enabling Document Attributes on page 200. Note: To permanently remove the document attribute from the database, your database administrator must remove it. When you remove a document attribute from the database, you must also remove all TN document types that reference this attribute and all documents that had this attribute extracted from them.
To disable a document attribute 1 2 3 4 5 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Select Types Document Types. Document Attributes.
Click the row containing the document attribute you want to disable. Right click and select Disable. Trading Networks places No in the Enabled column to indicate that the document attribute is disabled.
To enable document attributes 1 2 3 4 5 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Select Types Document Types. Document Attributes.
Click the row containing the document attribute you want to enable. Right click and select Enable. Trading Networks places Yes in the Enabled column to indicate that the document attribute is enabled.
200
Click the row containing the document attribute for which you want to view TN document type dependencies. Click Show document type dependencies .
201
C H A P T E R 11 D o c u m e n t A t t r i b u t e s
202
CHAPTER
12
203
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
204
uniquely identify the namespace. Namespace mappings map the prefixes used by namespaces to the URIs used by those namespaces. For more information about XML namespaces, see the XML Namespace specification at http://www.w3.org/. When you define namespace mappings in a TN XML document type, Trading Networks uses the namespace mappings you specify when applying XQL queries against the XML document. That is, Trading Networks uses the namespace mappings for both the identifying XQL queries and the XQL queries to extract attributes. For more information, see Namespace Mappings in TN XML Document Types on page 221. Options. You can use the options to define items for later processing. When specifying the options for an XML document, you can specify: An IS document type that defines the structure of the XML document and that can be used to parse the XML document into an IData object. Trading Networks uses the IS document type if you invoke the wm.tn.doc.xml:bizdocToRecord service to convert the document content in the BizDocEnvelope to an IData object. A webMethods IS schema that defines the structure of the XML document. Trading Networks uses this IS schema if you indicate you want to Trading Networks to perform the pre-processing action to validate the structure of the XML document. Whether you want Trading Networks to perform any or all of the pre-processing actions. Pre-Processing actions are actions that Trading Networks performs before using the processing rule actions to process the XML document. For more information, see Specifying Pre-Processing Actions for TN XML Document Type on page 227. Note: You specify pre-processing actions in both TN XML document types and processing rules. The pre-processing actions in a processing rule indicate whether Trading Networks is to use the settings from the TN document type or to override the TN document type settings. For more information about Recognition and processing of XML documents, see Chapter 5, "Trading Networks Document Processing". Processing of large document types, see Appendix C, Large Document Handling.
205
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
206
Description You can specify one or more XQL queries that locate a specific node in the XML document. In addition, for each identifying query, you can optionally specify the value that the node must evaluate to match this TN XML document type. Example: To identify a cXML order request, you might specify the following XQL query that assures the OrderRequest tag is in the document: /cXML[0]/Request[0]/OrderRequest[0] To be more specific, you might set up the TN XML document type to match cXML OrderRequest from a specific sender. To do this, you can add a second identifying query that identifies the Identity tag within the Credential tag that is within the Sender tag. Then, specify the value that it must evaluate to, for example, Industrial Steel Company. The following shows the query: /cXML[0]/Header[0]/Sender[0]/Credential[0]/Identity[0] The above query will match if the document contains the following: <cXML> <Header> <Sender> <Credential> <Identity>Industrial Steel Company</Identity> . . . Caution: The XQL queries are case-sensitive. For example, if the tag you want to match in the document is <cXML> and your query specifies CXML, the query will not find the node and the TN XML document type will not be used for the document. In addition, if you specify a value for the query, the value is also case-sensitive. If you specify the value Industrial Steel Company and the actual value in the document is IndustRIAL Steel COmpany, the values will not match and the TN XML document type will not be used.
207
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Item
Description If the documents use namespaces, you must also define namespace mappings for Trading Networks to correctly locate the nodes identified by the XQL queries. For more information, see Namespace Mappings in TN XML Document Types on page 221. Note: For custom attributes that are extracted from an XML document, Trading Networks returns specific values for the different data types (e.g., STRINGLIST, STRING, NUMBERLIST, NUMBER, DATETIMELIST, and DATETIME). For more information, see Extracting Custom Attributes From XML Documents on page 536.
Root tag
You can optionally specify the value of the root tag within the XML document that you want documents that match this TN XML document type to have. Example: To identify a document that has a declared root tag value of cXML, you would specify cXML. For example, the document might contain the following document type declaration containing the declared root tag: <!DOCTYPE cXML SYSTEM "cXML.dtd">
DOCTYPE identifier
You can optionally specify the system identifier or public identifier within the XML document. These identifiers are located in the document type declaration (DOCTYPE) after either the SYSTEM or PUBLIC literal string. Example: To identify a document that has the following DOCTYPE declaration, specify cXML.dtd for the value of DOCTYPE identifier: <!DOCTYPE cXML SYSTEM "cXML.dtd">
You can optionally specify arbitrary pipeline variables for Trading Networks to use to identify the TN XML document type. Specify the Name and optionally, the Value of the pipeline matching variable. If you specify both the Name and the Value of the pipeline matching variable, Trading Networks checks to see that both exist in the pipeline. If you specify only the Name and no Value, then Trading Networks checks to see if the Name exists.
Note: If you do not include any identification information in a TN XML document type, Trading Networks does not use the TN XML document type.
208
209
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
210
UserStatusExtract the user status if the document contains a user status, and you want the user status to be available so you can process the document based on this user status. The user status is a criterion that Trading Networks uses to determine the processing rule to use for a document. For more information, see Processing Rule Criteria on page 317. In addition, if you extract this system attribute, you can refine the list of displayed documents on the Transaction Analysis screen by searching for documents with specific user statuses. GroupIDExtract this system attribute if it is important for you to easily access the group ID of a document. SignedBody and SignatureExtract these system attributes if you want Trading Networks to be able to verify the digital signature of a document. For more information, see Verifying the Digital Signature of an XML Document on page 227. In addition to the system attributes, you should extract any custom attribute that you will want to use later. For example, to be able to query documents based on the total order amount of a purchase order, you need to specify that you want the total order amount extracted from the document. If the documents contain a status that you will want to use in reports, you need to specify that you want the status from the document extracted. To specify an attribute that you want to extract, select an existing attribute (system or custom) from a list. After specifying the attribute, you must specify an XQL query that instructs Trading Networks how to extract the attribute for the particular TN XML document type. To specify the XQL query, you can type the query or you can load a sample document to help you generate the queries. For example, you might have an attribute named ShippingMethod. The following shows an example of an XQL query to identify the ShippingMethod and portions of a CBL document that show what would be selected by the query.
211
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
XQL Query for ShippingMethod = /PurchaseOrder[0]/Transport[0]/Carrier[0] <PurchaseOrder> . . . <Transport Direction = "SupplierToBuyer"> . . . <Carrier>FedEx</Carrier> . . . </Transport> . . . </PurchaseOrder>
The XQL query points to this tag. Trading Networks stores the value FedEx for the ShippingMethod attribute.
Another attribute that you might want to extract from the above document is the direction of the transport. You can use the following XQL query:
/PurchaseOrder[0]/Transport[0]/@Direction
To extract the ShippingMethod attribute specifically when the direction of the transport is SupplierToBuyer, use the following query:
/PurchaseOrder[0]/Transport[@Direction 'eq' 'SupplierToBuyer']/Carrier[0]
The XQL queries are case-sensitive. For example, if the tag you want to match in the document is <Carrier> and your query specifies <CARRIER>, the query will not find the node and Trading Networks will be unable to extract the information for the attribute. For examples of XQL queries, see Appendix B, XQL Reference. Important! If the XML documents you expect use equivalent namespaces but have different prefixes, you must also define namespace mappings for Trading Networks to correctly locate the nodes identified by the XQL queries. For more information, see Namespace Mappings in TN XML Document Types on page 221. If the query does not identify a node in the XML document, Trading Networks cannot extract information for the attribute.
212
For custom attributes that are extracted from an XML document, Trading Networks returns specific values for the different data types (e.g., STRINGLIST, STRING, NUMBERLIST, NUMBER, DATETIMELIST, and DATETIME). For more information, see Extracting Custom Attributes From XML Documents on page 536.
213
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Specifying Built-In Transformation Information for Attributes with the DATETIME and DATETIME LIST Data Type on page 215 Specifying Built-in Transformation Information for Attributes with the STRING or STRING LIST Data Type on page 216 Specifying Built-in Transformation Information for Attributes with the NUMBER Data Type on page 218
Attributes with the data type STRING (other than SenderID or ReceiverID) and STRING LIST Attributes that represent an array of numbers
Specify whether you want Trading Networks to alter the string value before storing the value.
Specify the built-in transformation you want Trading Networks to take on the array of numbers: Average, Minimum, Maximum, or Sum. For example, if you want Trading Networks to average the values in the array and store that for the attribute, specify Average for the detail. You can write your own service to transform attributes.
All attributes
214
The Document Types screen that you use to create TN document types contains a list of the external ID types you can select. If the external ID type used for the sender or receiver information within a document 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 from the list. Be sure to select an external ID type that your partners specify in their profiles.
Specifying Built-In Transformation Information for Attributes with the DATETIME and DATETIME LIST Data Type
If you specify an attribute that has the data type DATETIME or DATETIME LIST, Trading Networks requires you to identify the date format. Trading Networks maintains a list of built-in common date/time formats from which you can select. However, if the date/time format you need to use is not in the list, you can type the format you need. To specify the date/time format, use a pattern string based on the Time Format Syntax described for the java.text.SimpleDateFormat class. For example, if you want the requested delivery date extracted from the following sample CBL document, specify the XQL query to identify the location of the RequestedDeliveryDate attribute and specify the date format yyyyMMdd'T'hh:mm:ss.
215
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
XQL Query for RequestedDeliveryDate = /PurchaseOrder[0]/OrderHeader[0]/RequestedDeliveryDate[0] <PurchaseOrder> <OrderHeader> <RequestedDeliveryDate>20000829T01:01:01</RequestedDeliveryDate> . . The XQL query points to this tag. Trading Networks uses the . value 20000829T01:01:01 for the RequestedDeliveryDate </OrderHeader> attribute and uses the date format you specify to convert the . date to a java.sql.Timestamp. . . </PurchaseOrder>
Trading Networks extracts the value of the date and uses it and the pattern that you specify to decode the value and convert it to the format that Trading Networks requires to store the date in the database.
Specifying Built-in Transformation Information for Attributes with the STRING or STRING LIST Data Type
For attributes (other than SenderID or ReceiverID) with the data type STRING or STRINGLIST, you can specify whether you want Trading Networks to alter the string value before storing. You can have Trading Networks make a simple alteration to change the case of the extracted string values to all upper- or all lowercase. Alternatively, you can have Trading Networks use the extracted values as substitutions in a string that you supply. If you do not specify transformation information for a string attribute, Trading Networks saves the data exactly as it extracted it. The following table describes each of the built-in transformation options you can use for string attributes. If you specify this format... Uppercase
Trading Network stores... The extracted string attribute value in all uppercase. For example, if the extracted attribute value is Purchase Order, Trading Networks stores PURCHASE ORDER for the attribute value. The extracted string attribute in all lowercase. For example, if the attribute value is Purchase Order, Trading Networks stores purchase order for the attribute value.
Lowercase
216
Trading Network stores... The pattern that you specify using the information that Trading Networks extracts to replace the arguments (e.g., {0}) you specify in the pattern. Trading Networks uses the java.text.MessageFormat class to substitute the extracted values into the pattern that you specify. For example, you might specify the pattern Items Ordered: {0}, {1}, {2}, and specify an XQL query for the attribute that extracts the following array of values: 0 1 2 Cellular phone Belt clip Rapid mobile charger
Trading Networks would store the following for the value of the attribute: Items Ordered: Cellular phone, Belt clip, Rapid mobile charger If you place more arguments in the pattern than values that Trading Networks extracts, the string that Trading Networks stores in the database for the attribute will contain the extra arguments (e.g., {2}). If you specify less arguments in the pattern than values that Trading Networks extracts, the string that Trading Networks stores in the database for the attribute will not contain all the extracted values; it will only contain the values for the number of arguments you specify in the pattern.
217
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Specifying Built-in Transformation Information for Attributes with the NUMBER Data Type
You can specify an attribute with NUMBER data type with an XQL query that identifies an array of numbers. When the XQL query for an attribute identifies an array of numbers, you can specify one of the following built-in formats to transform the array of numbers to a single value for Trading Networks to store: If you specify this format Average
Trading Networks stores The average value of all the numbers in the array. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 3.5. The smallest number in the array. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 2. The largest number in the array. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 5. The sum of all the numbers in the array. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 14. The first value of the array as the value of the attribute. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 2.
Minimum
Maximum Sum
No format specified
Note: When Trading Networks extracts a NUMBER or NUMBER LIST from a document, it uses the number parsing behavior of java.lang.Number. For example, if the NUMBER or NUMBER LIST contains the value 100zzz, Trading Networks interprets the value as 100, instead of throwing an error as it would if the value were zzz100. If you want to redefine this parsing behavior, you can write a custom attribute transformation. For more information about custom transformations, see below, Specifying a Custom Transformation Service.
218
The following sample CBL document shows two line items and the quantity to purchase of each. To store the total number of items ordered in the attribute TotalItems, specify an XQL query that specifies an array of numbers that contains the quantity of each line item, and specify the format SUM.
XQL Query for TotalItems = /PurchaseOrder[0]/ListOfOrderDetail[0]/OrderDetail[]/BaseItemDetail[0]/Quantity[0]/Qty[0] <PurchaseOrder> . . . <ListOfOrderDetail> <OrderDetail> <BaseItemDetail> <LineItemNum>1</LineItemNum> . . . <Quantity> <Qty>10</Qty> </Quantity> . . . <BaseItemDetail> </OrderDetail> <OrderDetail> <BaseItemDetail> <LineItemNum>2</LineItemNum> . . . <Quantity> <Qty>5</Qty> </Quantity> . . . <BaseItemDetail> </OrderDetail> <ListOfOrderDetail> . . . </PurchaseOrder>
This element of the query indicates to select all occurrences of <OrderDetail> tags.
The XQL query points to these tags. Trading Networks uses the SUM format and stores the value 15 for the TotalItems attribute.
219
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
For more information about the inputs and outputs, see the section Setting Input and Output Values for Custom Transformation Services below. To view these specifications, use webMethods Developer. The specifications are located in the WmTN package. For more information about these specifications, see the webMethods Trading Networks Built-in Services Reference. Setting Input and Output Values for Custom Transformation Services For custom transformation services, Trading Networks passes the following input variables: Input Value values Meaning One or more values for your service to transform. Note: The values may be null or an empty (zero length) string. For an array data type (e.g., DATETIME LIST), any element in the values array can be null or an empty string. Make sure that your custom transformation service can handle null values or empty strings. isArray arg Whether values contains a single value to transform or multiple values to transform. Optional arguments that you can define
220
As output, Trading Networks expects that you return the transforms values in the following output variable: Output Value newValues Meaning Transformation values of: Date List for DATETIME or DATETIME LIST String List for STRING or STRING LIST Number List for NUMBER or NUMBER LIST. If the input variable isArray is false, the input variable values will contain only a single item to transform. 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, meaning multiple values, 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. For information about creating the service, see the webMethods Developer Users Guide.
221
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
<order xmlns:standard="http://www.standards.org" xmlns:custom="http://www.unitedsteel.com/orderDocs"> <standard:buyer> <standard:DUNS>987654321</standard:DUNS> <standard:company>SMK Products</standard:company> <custom:contact>Mr. Smith</custom:contact> <custom:customerNum>01031995</custom:customerNum> </standard:buyer> <standard:seller> <standard:DUNS>123456789</standard:DUNS> <standard:company>United Steel</standard:company> <custom:contact>Mr. Jones</custom:contact> </standard:seller> <standard:LineItem> <standard:LineItemNumber>1</standard:LineItemNumber> <standard:partNumber>C8C8C8</standard:partNumber> <standard:quantity>10</standard:quantity> <custom:description>bar steel</custom:description> </standard:LineItem> </order>
This element is in the custom namespace The namespace is associated with a URI that uniquely identifies the The namespace is associated with a string that is used as a prefix in the names of elements The xmlns attribute defines a namespace
XML documents that use namespaces contain the xmlns attribute, which defines a namespace. Each namespace is associated with a URI. Note that the URI does not have to point to anything. It is used to uniquely identify the namespace. Elements are considered to be in the same namespace if they are all associated with the same URI. The xmlns attribute specifies the URI for a namespace and optionally, a prefix associated with that namespace. When a namespace is associated with a string, this string is used as a prefix when naming the elements in that namespace, which allows you to easily identify the elements that belong to a specific namespace. For example, if a document contains a namespace that is associated with the prefix string standard and the quantity element is in the standard namespace, the element is represented in the XML document as <standard:quantity>. The exception for naming elements in a namespace with a prefix is when the elements belong to the default namespace. When an XML document uses a default namespace, the elements in the default namespace do not use a prefix. The documents with a default namespace contain an xmlns attribute that specifies only the URI for a namespace, for example:
xmlns=http://www.standards.org
222
However, not all documents use the same prefix for the same namespace. For example, one document might use standard for a prefix and another might use CBL_standard. Namespaces are the same if they identify the same URI, not the same prefix. As a result, the following xmlns attributes identify the same namespace:
xmlns:standard=http://www.standard.org/ xmlns:CBL_standard=http://www.standard.org/
As a result, if the above xmlns attributes are used in two different documents, the XQL queries for elements within those documents are different: For example, the following XQL queries might represent the same elements:
/Order[0]/standard:buyer /Order[0]/CBL_standard:buyer
However, if you execute the /Order[0]/standard:buyer XQL query against the document that uses the prefix CBL_standard, the XQL query will fail. The solution to this problem is namespace mappings. In a TN XML document type, you define namespace mapping to identify all the prefixes that point to the same URI (in other words, identify the same namespace).
Namespace Mappings
Namespace mappings map the prefixes used by namespaces to the URIs used by those namespaces. With this information, if Trading Networks receives an XML document that contains a prefix that you have in the namespace mappings, it can make the appropriate substitutions in the XQL queries, if necessary, so that the queries find the elements of the XML document as expected. For example, you create your TN XML document type using a sample document that uses the following namespace:
xmlns:standard=http://www.standard.org/
You have a trading partner that sends you documents, but the trading partner uses the following namespace:
xmlns:CBL_standard=http://www.standard.org/
Note that the URIs are identical meaning it is the same namespace; however, the prefixes are different. To accommodate the different prefixes, the TN XML document type contains the following namespace mappings:
223
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Prefix
standard CBL_standard
URI
http://www.standard.org/ http://www.standard.org/
With this namespace mapping, a TN XML document type definition can use the XQL query /Order[0]/standard:buyer, and Trading Networks will make the proper substitution for a document that uses the CBL_standard prefix rather than the standard prefix.
With the namespace mapping, the following XQL query will locate the "buyer" element in either of the following documents. XQL query = /order[0]/standard:buyer <order xmlns:standard="http://www.standards.org" xmlns:custom="http://www.unitedsteel.com/orderDocs"> <standard:buyer> <standard:DUNS>987654321</standard:DUNS> <standard:company>SMK Products</standard:company> <custom:contact>Mr. Smith</custom:contact> <custom:customerNum>01031995</custom:customerNum> </standard:buyer> </order> <order xmlns:CBL_standard="http://www.standards.org" xmlns:custom="http://www.unitedsteel.com/orderDocs"> <CBL_standard:buyer> <CBL_standard:DUNS>987654321</CBL_standard:DUNS> <CBL_standard:company>SMK Products</CBL_standard:company> <custom:contact>Mr. Smith</custom:contact> <custom:customerNum>01031995</custom:customerNum> </CBL_standard:buyer> </order>
Define namespace mappings for a TN XML document type if the XML documents that your trading partners send to Trading Networks use namespaces that are equivalent but have different prefixes. If you do not define namespace mappings, the identifying XQL queries and the XQL queries that locate document attributes will fail. As a result, if the TN XML document types use identifying queries, Trading Networks will not match the document to the TN XML document type. If the TN XML document type specifies XQL queries to locate and extract attribute information, those queries will fail and Trading Networks will not extract the attribute information.
224
To define namespace mappings, you can define them manually, or if you are using a sample document, you can have Trading Networks populate the namespace mappings table with the prefix and URIs from the xmlns attributes that define namespaces in the sample document. When defining namespace mappings, keep the following guidelines in mind: Guideline Each prefix in the namespace mappings table for a TN XML document type must be unique. Sample
Prefix
aaa bbb ccc ddd
URI
http://www.ww.com http://www.xx.com http://www.yy.com http://www.zz.com
The URIs you list in the namespace mappings table do not have to be unique. You can define more than one prefix to the same URI.
Prefix
aaa bbb ccc ddd
URI
http://www.xx.com http://www.xx.com http://www.xx.com http://www.xx.com
To define a mapping for the default namespace (which does not use a prefix), use the literal string prefix0 for the prefix.
Prefix
prefix0
URI
http://www.yy.com
Note: Because Trading Networks uses the literal prefix0 to identify the default namespace, you should not use prefix0 as the prefix in any document.
Additionally, be sure to include a mapping for each prefix/URI combination that you expect to receive in XML documents from your trading partners. If Trading Networks receives a document that uses a prefix not defined in the namespace mappings table, it performs a literal match of the XQL queries against the document.
225
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
226
227
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
information about the pipeline variables that are available to processing actions, see Action 1Execute a Service on page 330. If Trading Networks is instructed to use the Save Document to Database pre-processing action to save information about the document to the database, Trading Networks also logs the error to the activity log.
For more information, see Trading Networks Configuration Properties on page 42.
228
You can have Trading Networks determine whether the document is a duplicate using a built-in or custom duplicate check service. Built-in servicesUse one of the following built-in duplicate checks: Document ID onlyTrading Networks assures that it does not already have a document with the same document ID in its database. To check for a duplicate document using the document ID, you must instruct Trading Networks to extract the DocumentID system attribute from the document. Document ID and sender Trading Networks assures that it does not already have a document with the same document ID and sender in its database. To check for a duplicate document using the document ID and sender, you must instruct Trading Networks to extract the DocumentID and SenderID system attributes from the document. Document ID, sender and receiverTrading Networks assures that it does not already have a document with the same document ID, sender, and receiver in its database. To check for a duplicate document using the document ID, sender, and receiver, you must instruct Trading Networks to extract the DocumentID, SenderID, and ReceiverID system attributes from the document. Document ID, sender and document typeTrading Networks assures that it does not already have a document with the same document ID, sender, and TN document type in its database. To check for a duplicate document using the document ID and sender you must instruct Trading Networks to extract the DocumentID and SenderID system attributes from the document. Custom servicesUse a service that you create to determine whether a document is a duplicate. For more information, see Creating a Duplicate Document Check Service on page 329. Note: There could be performance issues if you choose to use custom services for duplicate checking based on the logic in the service you select. The following lists reasons Trading Networks might be unable to correctly determine whether a document is a duplicate: Trading Networks previously received a document that it did not save to the database and the same document is sent again. Trading Networks previously received a document and saved it to the database, but did not extract the DocumentID, SenderID, and/or ReceiverID system attributes from the document. You selected the Document ID, sender and document type option and Trading Networks was unable to match the document to a TN document type.
229
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Trading Networks saves the results of the duplicate document check to the pipeline. As a result, it is available for your use in processing actions that you define in the processing rule. For more information about the pipeline variables that are available to processing actions, see Action 1Execute a Service on page 330. Additionally, Trading Networks uses the results of the duplicate document check in the Save Document to Database pre-processing action.
230
Then the consequences of not saving are... If you use the Deliver Document actions, Trading Networks will not use reliable delivery. You will not be able to view content from the Transaction Analysis screen (i.e., the Content tab will have no data). You will not be able to resubmit or re-process the document.
Attribute
You will not be able to view custom attributes from the Transaction Analysis screen (i.e., attributes will contain only information for system attributes). However, you can still use the processing rules extended criteria for the document. If you use the Transaction Analysis Custom search criteria, Trading Networks will be unable to locate documents for which you did not save the attributes, because you cannot search on any documents that do not have these custom attributes saved. You might get different or unexpected results when you reprocess a document. Because the attributes are not saved when you reprocess the document, Trading Networks will not match processing rules that use extended criteria. Instead, Trading Networks will match to another processing rule, for example the default processing rule, and perform the process actions identified in that matching rule. Trading Networks does not perform document recognition again and therefore does not re-extract the attributes. For example, if you use extended criteria to select a processing rule when the value of the custom attribute Total Amount is greater than 10000, Trading Networks would not select that processing rule when reprocessing a document because the value of the Total Amount attribute would not be available and therefore would not match the extended criteria. Note that you can still resubmit a document. When Trading Networks resubmits a document, it performs document recognition and therefore extracts the attributes again.
Activity Log
You will not be able to view Activity Log entries from the Transaction Analysis screen (i.e., the Activity Log tab will have no data). You will not be able to view entries from the Activity Log screen.
231
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Note: Trading Networks always saves documents that it is to pass on to process management regardless of the setting of the Save Document to Database pre-processing action. Trading Networks passes documents on to project management if it extracted a conversation ID from the document. For more information about process management, see the webMethods Modeler Users Guide.
232
Procedures when you have a sample document loaded 1) 2) 3) 4) Select View Select Types Document Types. New XML.
In the Create New DocType dialog box, select the XML document type category from the list. In the Document Types Details dialog box, click the Identify tab. Click Select Sample Document .
5) 6)
In the Select File dialog box, browse your file system to locate the XML document that you want to use as a sample, and click Open. Select View Document Types.
Duplicate The TN XML document type fields are filled with values from the TN XML document type that you duplicate, and you load a sample document from the file system. You can update any or all fields from the duplicated TN XML document type.
1) 2) 3) 4) 5) 6)
Click the row containing the TN XML document type that you want to duplicate. Select Types Duplicate.
In the Select File dialog box, browse your file system to locate the XML document that you want to use as a sample, and click Open.
233
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Method to start a TN XML document type From Saved DocumentThe TN XML document type fields are empty and the sample document from the Trading Networks database is loaded for you.
Procedures when you have a sample document loaded 1) Use the Transaction Analysis screen to display the sample document that you want to use. If you need procedures for viewing documents on the Transaction Analysis screen, see Chapter 18, Managing and Tracking Documents. Click the row containing the document for which you want to create a TN XML document type. Select Transactions Create/Edit Document Type.
2)
3)
Note: Trading Networks displays a tree view of the XML document in the left side on the screen. To view the document source, click Show Source. 3 4 5 Type the name you want to give the TN XML document type in the Name field. This field is required. Optionally, type a description for the TN XML document type in the Description field. Click the Identify tab. Perform one or more of the following procedures to specify information that indicates how Trading Networks is to identify documents. For details about specifying any of this information, see Identification Information in TN XML Document Types on page 206.
234
Use this procedure when using a sample document 1) In the sample document, select the node that you want the identifying query to represent. When you select a node, Trading Networks fills in the Query field with the XQL query for the selected node and displays the value in the Value field. Note: This filled in query is for a specific node in the XML document. This node is applicable for DATETIME, STRING, or NUMBER data types. But, if you want to use DATETIME LIST, STRING LIST, NUMBER (with Average, Minimum, Maximum, and Sum), or NUMBERLIST data types, you need to update the query so that it identifies an array of values. For information about XQL queries, see Appendix B, XQL Reference. 2) Right click and select Add an identifying query. Trading Networks displays the Add an identifying query dialog box. Trading Networks fills the Query field with the XQL query for the node that you selected and the Value field with the value of the node. If you want the TN XML document type to require the identifying query to evaluate to the value in the Value field, continue with Step 4. If you want the TN XML document type to require the identifying query to evaluate to a different value, replace the current value in the Value field with the value you want the TN XML document type to use. If you do not want the TN XML document type to require the identifying query to evaluate to a specific value, clear the Value field. 3) Click OK. Trading Networks adds the identifying query to the list on the right.
235
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Use this procedure when using a sample document 4) Repeat this procedure for each identifying query that you want to add.
Note: If you add an identifying query and then decide you do not need it, you can remove it by clicking on the row containing the identifying query, and then clicking Delete selected identifying query .
To view (in the sample document) the node that a query represents, click the row containing the identifying query; then click Show node Root Tag .
Click the Set button next to the Root Tag field. Trading Networks determines the root tag of the sample document and uses its value to populate the Root Tag field. Click the Set button next to the DOCTYPE Identifier field. Trading Networks obtains the value that follows the SYSTEM or PUBLIC literal string in the document type declaration (DOCTYPE) in the sample document. If both literal strings exist, Trading Networks uses the value after the SYSTEM literal string. Trading Networks populates the DOCTYPE Identifier field with the value it obtains from the document type declaration in the sample document.
DOCTYPE Identifier
236
Use this procedure when using a sample document 1) 2) Click Add New Pipeline Match .
Specify the following values in the Add Pipeline Matching dialog box. Name. Name of the pipeline matching variable. Value. The value of the pipeline matching variable. This field is optional. If you specify both the Name and the Value of the pipeline matching variable, Trading Networks checks to see that both exist in the pipeline. If you specify only the Name and no Value, then Trading Networks checks to see if the Name exists.
3) 4)
Click OK. Trading Networks adds the pipeline matching variable to the list. Repeat this procedure for each pipeline matching variable that you want to add.
Important! You must supply at least one criterion that Trading Networks is to use to recognize an XML document; that is, you must supply at least one identifying query, a value for the Root Tag field, a value for the DOCTYPE Identifier field, or a pipeline matching variable. Note: If you do not specify any identification information in a TN document type, Trading Networks does not use the TN document type. 6 Click the Extract tab. Perform the following procedure for each attribute that you want Trading Networks to extract from documents identified by this TN XML document type. For details about what to specify for these fields, see Extraction Information In TN XML Document Types on page 210. a b In the sample document, select the node that represents the attribute that you want Trading Networks to extract. Right click and select Add an attribute. Trading Networks displays the Add an attribute dialog box. Trading Networks fills the Query field with the XQL query for the node that you selected.
237
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Note: This filled in query is for a specific node in the XML document. This node is applicable for DATETIME, STRING, or NUMBER data types. But, if you want to use DATETIME LIST, STRING LIST, NUMBER (with Average, Minimum, Maximum, and Sum), or NUMBERLIST data types, you need to update the query so that it identifies an array of values. c d In the Name field, select the name of the attribute from the list. Trading Networks fills in the Description and Type fields based on the document attribute definition. If you want Trading Networks to flag an error if it encounters an error attempting to extract this document attribute, select the Required check box. For more information, see Indicating that Attributes are Required in TN XML Document Types on page 213. Use the Transformation option to specify how Trading Networks is to handle attribute data before storing it in the Trading Networks database. The data type of the attribute (shown in the Type field) determines the Built-in or Custom transformation options available. For more information, see Transformation Information for Extracted Attributes of TN Document Types on page 214. 1 Built-in. Select an existing built-in transformation provided by Trading Networks. If the attribute data type is Is SenderID or ReceiverID
For Transformation You must specify an external ID type. For more information, see Specifying Built-in Transformation Information for SenderID and ReceiverID on page 215. You must specify a date format. Select one from the seven different built-in formats or type in your own. For more information, see Specifying Built-In Transformation Information for Attributes with the DATETIME and DATETIME LIST Data Type on page 215. You can specify whether you want Trading Networks to alter the string value before storing it to UPPERCASE or LOWERCASE. For more information, see Specifying Built-in Transformation Information for Attributes with the STRING or STRING LIST Data Type on page 216.
Has STRING or STRING LIST data type (but not SenderID or ReceiverID)
238
If the attribute data type is Has NUMBER data type and the XQL query identifies an array of numbers
For Transformation You should specify the operation that Trading Networks should perform on the numbers in the array. For more information, see Specifying Built-in Transformation Information for Attributes with the NUMBER Data Type on page 218.
Custom. Select or create your own service to perform custom transformations on extracted attributes. For more information, see Specifying a Custom Transformation Service on page 220. To do this Create a new custom transformation Select an existing custom transformation service Set the inputs of the transformation from the selected service Edit an existing service Perform this Click New Service .
Click Find Service to browse the IS namespace to locate the one you want to use. Click Set Inputs.
Click OK to close the Add an attribute dialog box Important! If you do not extract the system attributes, Trading Networks does not have this information available for processing rules or querying documents. Note: If you add an attribute and then decide you do not need it, you can remove it by clicking on the row containing the attribute, and then clicking Delete attribute . To view (in the sample document) the node that a query represents, click the row containing the query; then click Show node .
239
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
To define namespace mappings, click the Namespaces tab and perform one of the following: To populate the namespace mapping table replacing any existing namespace information, click Set. To add the namespace information to the current namespace mappings, click Append. When you click either Set or Append, Trading Networks populates the namespace table with the namespace information from all xmlns attributes in the sample document. For more information about namespaces, see Namespace Mappings in TN XML Document Types on page 221.
Click the Options tab and fill in the fields. For details about these fields, see Options in TN XML Document Types on page 226. For information specific to pre-processing actions, see Specifying Pre-Processing Actions for TN XML Document Type on page 227. For this Options tab parameter Format an IS document type
Specify The fully-qualified name of the IS document type. If you do not know the fully-qualified name, click Find IS document type to browse webMethods IS document types to locate the one you want to use. For more information, see Specifying an IS Document Type for TN XML Document Types on page 226
The fully-qualified name of the IS schema. If you do not know the fully-qualified name, click Find schema to browse webMethods IS schemas to locate the one you want to use. For more information, see Specifying an IS Schema for TN XML Document Types on page 227. Note: When you select a webMethods IS schema, Trading Networks automatically sets the Validate Structure fields to indicate that you want to validate the structure of the document.
240
For this Options tab parameter Verify Digital Signature pre-processing action
Specify Whether you want Trading Networks to Verify digital signature or Do not verify digital signature of a document. Trading Networks performs this pre-processing action before it performs the processing actions defined by the processing rule. For more information about this pre-processing action, see Verifying the Digital Signature of an XML Document on page 227. Whether you want Trading Networks to Validate structure or Do not validate structure of the XML document. If you select to validate, Trading Networks validates the structure of the XML document against the IS schema you specified in the webMethods schema to validate again option. Trading Networks performs this pre-processing action before it performs the processing actions defined by the processing rule. For more information about this pre-processing action, see Validating the Structure of an XML Document on page 228. Whether you want Trading Networks to Use built-in service to check for duplicate document, Use custom service to check for duplicate document, or Do not check for duplicate document; that is, determine whether Trading Networks has already received the document. Trading Networks performs this pre-processing action before it performs the processing actions defined by the processing rule. Note: There could be performance issues if you choose to use custom services for duplicate checking based on the logic in the service you select.
Click New Service to create a new custom duplicate check service. To select an existing duplicate check service, click Find Service to browse the IS namespace to locate the one you want to use and then click the Edit Service button if you want to modify the service. For more information about this pre-processing action, see Checking for Duplicate of the XML Document on page 228. For more information about how to create a custom duplicate checking service, see, Creating a Duplicate Document Check Service on page 329.
241
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
For this Options tab parameter Save Document to Database preprocessing action
Specify Whether you want Trading Networks to Save all documents, Save only unique documents, or Do not save documents to the database. Trading Networks performs this pre-processing action before it performs the processing actions defined by the processing rule. If you select to save documents to the database, select from the list whether you want Trading Networks the documents content, attributes, and/or activity log information to the database. For more information about this pre-processing action, see Saving an XML Document to the Database on page 230
Important! Keep in mind the pre-processing actions specified in the processing rules can override pre-processing actions specified in a TN document type. For more information, see Specifying Pre-Processing Actions for TN XML Document Type on page 227. 9 Click OK to create the TN XML document type.
242
243
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Description Right click in the sample document to display the right-click menu. Add an AttributeSelect a node in the XML document; then, select this menu item to add a new attribute that you want Trading Networks to extract. Trading Networks creates a new entry for the attribute and fills in the Query field in the Add an Attribute dialog box with the XQL query for the selected node. Edit AttributeUse to update the XQL query that identifies where to locate the attribute information. Select the attribute for which you want to update the XQL query. Then, select the node in the sample document that represents the new query you want to use. Right click and select this menu item. Trading Networks opens the Edit Attribute dialog box and replaces the XQL query in the Query field with the XQL query for the selected node.
Right click in the sample document to display the right-click menu. Set Namespace MappingSelect this menu item to populate the namespace mappings table with the namespace information from all xmlns attributes in the sample document. When you select Set Namespace Mapping, Trading Networks deletes any existing namespace mappings from the table and replaces them with the namespace information that it obtains from the sample document. Append Namespace MappingsSelect this menu item to populate the namespace mappings table with the namespace information from all xmlns attributes in the sample document. When you select Append Namespace Mappings, Trading Networks appends the namespace information that it obtains from the sample document to the existing namespace mappings in the table.
Use the Append button to populate the namespace mappings table with the namespace information from all xmlns attributes in the sample document. Trading Networks appends the namespace information that it obtains from the sample document to the existing namespace mappings in the table.
244
Description Use the Set buttons to set the Root Tag and/or DOCTYPE Identifier fields with values from the sample document. To set the Root Tag field with the value of the root tag in the sample document, click the Set button next to the Root Tag field To set the DOCTYPE Identifier field with the value from the document type declaration (DOCTYPE) in the sample document, click the Set button next to the DOCTYPE Identifier field. Trading Networks uses the value that follows the SYSTEM or PUBLIC literal string in the document type declaration. If both literal strings exist, Trading Networks uses the value after the SYSTEM literal string.
SetNamespaces Tab
Use the Set button to populate the namespace mappings table with the namespace information from all xmlns attributes in the sample document. Trading Networks deletes any existing namespace mappings from the table and replaces them with the namespace information that it obtains from the sample document. Use this button to test an XQL query that you have typed in the Query field of the Document Type screen. When you click this button, Trading Networks evaluates the XQL query you typed in the Query field and displays the value of that query (retrieved from the sample document) in the Value field. Example: The following sample document is loaded:
245
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Menu or Button
Description Type the following query in the Query field and click Test Query:
Trading Networks updates the Value field to contain the value for TotalLineNum, which is 1.
Use this button to display the source of the XML document. When you click this button, Trading Networks opens a new window that contains the document source. Click to have Trading Networks highlight the node in the sample document that an XQL query for an identifying query or attribute represents. On the Identify tab, select an identifying query; then, click . Trading Networks highlights (in the sample document) the node that the XQL query for the identifying query represents. When on the Extract tab, select an attribute; then, click . Trading Networks highlights (in the sample document) the node that Trading Networks would extract for the attribute (based on the query defined for the attribute).
246
In the Create New DocType dialog box, select the XML document type category from the list. Select View Document Types.
Click the row containing the TN XML document type that you want to duplicate. Select Types Duplicate.
247
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Use this procedure when not using a sample document 1) 2) Click Add an identifying query . Trading Networks displays the Add an identifying query dialog box. In the Query field, type an XQL query that represents a node in a document that must exist for this TN XML document type to be used for a document. For information about XQL queries, see Appendix B, XQL Reference. If you want the TN XML document type to require the identifying query to evaluate to a specific value, type that value in the Value field. Click OK. Repeat this procedure for each identifying query that you want to add.
3)
4) 5)
Note: If you add an identifying query and then decide you do not need it, you can remove it by clicking on the row containing the identifying query, and then clicking Deleting an identifying query Root Tag DOCTYPE Identifier .
Type the value of the root tag from within the XML documents that this TN XML document type is to match. Type the value of the system identifier or public identifier from the document type declaration (DOCTYPE) within the XML documents that this TN XML document type is to match.
248
Use this procedure when not using a sample document 1) 2) Click Add New Pipeline Match .
Specify the following values in the Add Pipeline Matching dialog box. Name. Name of the pipeline matching variable. Value. The value of the pipeline matching variable. This field is optional. If you specify both the Name and the Value of the pipeline matching variable, Trading Networks checks to see that both exist in the pipeline. If you specify only the Name and no Value, then Trading Networks checks to see if the Name exists.
3) 4)
Click OK. Trading Networks adds the pipeline matching variable to the list. Repeat this procedure for each pipeline matching variable that you want to add.
Important! You must supply at least one criterion that Trading Networks is to use to recognize an XML document; that is, you must supply at least one identifying query, a value for the Root Tag field, a value for the DOCTYPE Identifier field, or a pipeline matching variable. 6 Click the Extract tab. Perform the following procedure for each attribute that you want Trading Networks to extract from documents identified by this TN XML document type. For details about what to specify for these fields, see Extraction Information In TN XML Document Types on page 210. a b c Click Add an attribute box. . Trading Networks displays the Add an attribute dialog
In the Name field, select the name of the attribute from the list. Trading Networks fills in the Type and Description fields based on the document attribute definition. If you want Trading Networks to flag an error if it encounters an error attempting to extract this document attribute, select the Required check box. For more information, see Indicating that Attributes are Required in TN XML Document Types on page 213. In the Query field, type an XQL query that identifies the location of the attribute within an XML document. For information about XQL queries, see Appendix B, XQL Reference.
249
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
If necessary, use the Transformation option to specify how Trading Networks is to handle attribute data before storing it in the Trading Networks database. The data type of the attribute (shown in the Type field) determines the Built-in or Custom transformation options available. For more information, see Transformation Information for Extracted Attributes of TN Document Types on page 214. Important! If you do not extract the system attributes, Trading Networks does not have this information available for processing rules or querying documents. 1 Built-in. Select an existing built-in transformation provided by Trading Networks. If the attribute data type is Is SenderID or ReceiverID Has DATETIMEor DATETIME LIST data type
For Transformation You must specify an external ID type. For more information, see Specifying Built-in Transformation Information for SenderID and ReceiverID on page 215. You must specify a date format. Select one from the seven different built-in formats or type in your own. For more information, see Specifying Built-In Transformation Information for Attributes with the DATETIME and DATETIME LIST Data Type on page 215. You can specify whether you want Trading Networks to alter the string value before storing it to UPPERCASE or LOWERCASE. For more information, see Specifying Builtin Transformation Information for Attributes with the STRING or STRING LIST Data Type on page 216. You should specify the operation that Trading Networks should perform on the numbers in the array. For more information, see Specifying Built-in Transformation Information for Attributes with the NUMBER Data Type on page 218.
Has STRING or STRING LIST data type (but not SenderID or ReceiverID) Has NUMBER data type and the XQL query identifies an array of numbers
250
Custom. Select or create your own service to perform custom transformations on extracted attributes. For more information, see Specifying a Custom Transformation Service on page 220. To do this Create a new custom transformation Select an existing custom transformation service Set the inputs of the transformation from the selected service Edit an existing service Perform this Click New Service .
Click Find Service to browse the IS namespace to locate the one you want to use. Click Set Inputs.
Important! If you do not extract the system attributes, Trading Networks does not have this information available for processing rules or querying documents. Note: If you add an attribute and then decide you do not need it, you can remove it by clicking on the row containing the attribute, and then clicking Delete an attribute 7 .
To define namespace mappings, click the Namespaces tab. Perform the following for each namespace mapping you want to add to the table. For more information about namespaces, see Namespace Mappings in TN XML Document Types on page 221. a In the Namespace Mappings section of the screen on the right, click Add a namespace mapping b c . Trading Networks adds a row to the namespace mappings table.
In the Namespace Prefix column, type the prefix for the namespace. If you are adding a mapping for the default namespace, specify prefix0. In the URI Mapping column, type the URI for the namespace.
251
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Note: If you add a namespace mapping and then decide you do not need it, you can remove it by clicking on the row containing the namespace mapping, and then clicking Delete selected namespace mapping .
If you need to edit a namespace mapping, simply type over the existing information. 8 Click the Options tab and fill in the fields. For details about these fields, see Options in TN XML Document Types on page 226. For information about pre-processing actions, see Specifying Pre-Processing Actions for TN XML Document Type on page 227. For this Options tab parameter Format an IS document type
Specify The fully-qualified name of the IS document type. If you do not know the fully-qualified name, click Find IS document type to browse webMethods IS document types to locate the one you want to use. For more information, see Specifying an IS Document Type for TN XML Document Types on page 226
The fully-qualified name of the IS schema. If you do not know the fully-qualified name, click Find schema to browse webMethods IS schemas to locate the one you want to use. For more information, see Specifying an IS Schema for TN XML Document Types on page 227. Note: When you select a webMethods IS schema, Trading Networks automatically sets the Validate Structure fields to indicate that you want to validate the structure of the document.
252
For this Options tab parameter Verify Digital Signature pre-processing action
Specify Whether you want Trading Networks to Verify digital signature or Do not verify digital signature of a document. Trading Networks performs this pre-processing action before it performs the processing actions defined by the processing rule. For more information about this pre-processing action, see Verifying the Digital Signature of an XML Document on page 227. Whether you want Trading Networks to Use built-in service to check for duplicate document, Use custom service to check for duplicate document, or Do not check for duplicate document; that is, determine whether Trading Networks has already received the document. Trading Networks performs this pre-processing action before it performs the processing actions defined by the processing rule. Note: There could be performance issues if you choose to use custom services for duplicate checking based on the logic in the service you select. Click New Service to create a new custom duplicate check service. To select an existing duplicate check service, click Find Service to browse the IS namespace to locate the one you want to use and then click the Edit Service button if you want to modify the service. For more information about this pre-processing action, see Checking for Duplicate of the XML Document on page 228. For more information about how to create a custom duplicate checking service, see, Creating a Duplicate Document Check Service on page 329
Whether you want Trading Networks to Save all documents, Save only unique documents, or Do not save documents to the database. Trading Networks performs this pre-processing action before it performs the processing actions defined by the processing rule. If you select to save documents to the database, select from the list whether you want Trading Networks the documents content, attributes, and/or activity log information to the database.
253
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Specify If you do not select to save the document content and Trading Networks is to use a delivery option that requires document content to be saved (e.g., if you want to deliver a document via a queue), Trading Networks will bypass reliable delivery and invoke the specified delivery service once. For more information about this pre-processing action, see Saving an XML Document to the Database on page 230.
Important! Keep in mind the pre-processing actions specified in the processing rules can override pre-processing actions specified in a TN document type. For more information, see Pre-Processing Actions on page 327. 9 Click OK to create the TN XML document type.
254
255
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Click the row containing information about the TN XML document type that you want to update. Trading Networks displays the Document Type Details dialog for the selected TN XML document type. Select Types Edit.
4 5 6
To update the description, type a new description in the Description field. Perform the following to load the sample document: a b c Click the Identify tab. Click Select Sample Document .
In the Select File dialog box, browse your file system to locate the XML document that you want to use as a sample, and click Open.
For a summary of actions you can take against a sample document, see Working with a Sample Document on page 243. 7 To update an existing partner profile, select the tab you wish to update. Use the table below to find the procedure to update the selected tab. To update this tab... Corporate Contact Delivery Method Extended Fields Security Use this procedure... Go to step 4 on page 147 Go to step 5 on page 151 Go to step 6 on page 153 Go to step 9 on page 159 Go to step 10 on page 160 For more information, see... Information on the Partners Corporate Tab on page 132 Information on the Partners Contact Tab on page 136 Information on the Partners Delivery Method Tab on page 137 Information on the Partners Extended Fields Tab on page 143 Information on the Partners Security Tab on page 144
256
Follow the procedures to update the partner profile. These procedures are the same ones you initially used to create a partner profile. In general, on the Profile screen, use the following buttons to supply information to the profile fields: Use this button To... Add an entry Edit an entry Delete an entry 8 To update identification information, click the Identify tab. For details about specifying any of this information, see Identification Information in TN XML Document Types on page 206. To update this Identify tab parameter Identifying Queries
or
Use these procedures when you have a sample document loaded To add an identifying queryIn the sample document, select the node that you want the identifying query to represent. Right click and select Add an identifying query. Trading Networks opens the Add an identifying query dialog box and populates the Query field with the XQL query for the selected node. Note: This filled in query is for a specific node in the XML document. This node is applicable for DATETIME, STRING, or NUMBER data types. But, if you want to use DATETIME LIST, STRING LIST, NUMBER (with Average, Minimum, Maximum, and Sum), or NUMBERLIST data types, you need to update the query so that it identifies an array of values. If you want the TN document type to require the identifying query to evaluate to a specific value, assure that value is in the Value field; otherwise, clear the Value field. Click OK to close the Add an identifying query dialog box. For information about XQL queries, see Appendix B, XQL Reference
257
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Use these procedures when you have a sample document loaded To update an identifying queryIn the sample document, select the node that you want the identifying query to represent. Right click and select Edit selected identifying query. Trading Networks opens the Edit selected identifying query dialog box and updates the Query field with the XQL query for the selected node and the Value field with the XQL querys value. Click OK to close the Edit selected identifying query dialog box. To delete an identifying query from the TN document typeSelect the row for the identifying query and click Delete selected identifying query
Root Tag
To update the Root Tag field with the value from the sample document, click the Set button next to the Root Tag field. To remove the value from the Root Tag field, clear the Root Tag field.
DOCTYPE Identifier
To update the DOCTYPE Identifier field with the value from the sample document, click the Set button next to the DOCTYPE Identifier field. To remove the value from the DOCTYPE Identifier field, clear the DOCTYPE Identifier field.
Pipeline Matching
To add a pipeline matching variableClick Add New Pipeline Match . In the Add Pipeline Matching dialog box, specify the Name and optionally, the Value for the pipeline matching variable. Click OK to save the variable and close the dialog box. To update a pipeline matching variable, click the row containing the pipeline matching variable you want to update and click Edit Selected Pipeline Match . In the Update Pipeline Matching dialog box, update the Name and Value fields for that variable. Click OK to save your updates and close the Update Pipeline Matching dialog box.
258
Use these procedures when you have a sample document loaded To delete a pipeline matching variable, click the row containing the pipeline matching variable you want to delete and click Remove Selected Pipeline Match For more information, see .
Important! The TN XML document type must include at least one criterion that Trading Networks can use to recognize a document; that is, at least one identifying query, a value for the Root Tag field, a value for the DOCTYPE Identifier field, or a pipeline matching variable. 9 To update extraction information, click the Extract tab. For information about how to specify information on this tab, see Extraction Information In TN XML Document Types on page 210. To add an attributeIn the sample document, select the node that represents the attribute that you want Trading Networks to extract. Right click and select Add an attribute. Trading Networks opens the Add an attribute dialog box and populates the Query field with the XQL query for the selected node. Note: This filled in query is for a specific node in the XML document. This node is applicable for DATETIME, STRING, or NUMBER data types. But, if you want to use DATETIME LIST, STRING LIST, NUMBER (with Average, Minimum, Maximum, and Sum), or NUMBERLIST data types, you need to update the query so that it identifies an array of values. Fill in the rest of the Add an attribute dialog box by performing the following: a b In the Name field, select the name of the attribute from the list. If you want Trading Networks to flag an error if it encounters an error attempting to extract this document attribute, select the Required check box. For more information, see Indicating that Attributes are Required in TN XML Document Types on page 213. If necessary, use the Transformation option to specify how Trading Networks is to handle attribute data before storing it in the Trading Networks database. The data type of the attribute (shown in the Type field) determines the Built-in or Custom transformation options available.
c d
259
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Important! If you do not extract the system attributes, Trading Networks does not have this information available for processing rules or querying documents. Built-in transformation. Select an existing built-in transformation provided by Trading Networks: If the attribute data type is Is SenderID or ReceiverID
For Transformation You must specify an external ID type. For more information, see Specifying Built-in Transformation Information for SenderID and ReceiverID on page 215. You must specify a date format. Select one from the seven different built-in formats or type in your own. For more information, see Specifying BuiltIn Transformation Information for Attributes with the DATETIME and DATETIME LIST Data Type on page 215. You can specify whether you want Trading Networks to alter the string value before storing it to UPPERCASE or LOWERCASE. For more information, see Specifying Built-in Transformation Information for Attributes with the STRING or STRING LIST Data Type on page 216. You should specify the operation that Trading Networks should perform on the numbers in the array. For more information, see Specifying Builtin Transformation Information for Attributes with the NUMBER Data Type on page 218.
Has STRING or STRING LIST data type (but not SenderID or ReceiverID)
Has NUMBER data type and the XQL query identifies an array of numbers
Custom transformation. Select or create your own service to perform custom transformations on extracted attributes. For more information, see Specifying a Custom Transformation Service on page 220. To do this Create a new custom transformation Select an existing custom transformation service Perform this Click New Service .
Click Find Service to browse the IS namespace to locate the one you want to use.
260
To do this Set the inputs of the transformation from the selected service Edit an existing service e
To update information for an existing attributeIn the sample document, select the node that represents the attribute that you want Trading Networks to extract. Right click and select Edit Attribute. Trading Networks opens the Edit Attribute dialog box and updates the Query field with the XQL query for the selected node. For information about what you can specify, see above for the description for adding an attribute. Click OK to close the Edit Attribute dialog box. To delete an attribute from the TN document typeSelect the row for the attribute and click Delete selected attribute .
10 To update namespace mappings, click the Namespaces tab. For information about namespaces, see Namespace Mappings in TN XML Document Types on page 221. To replace existing namespace mappings with namespace information from the sample documentClick Set. Trading Networks deletes the existing namespace mappings (if any) and populates the namespace mappings table with the namespace information from all xmlns attributes in the sample document. To append namespace information from the sample document to the existing namespace mappingsClick Append. Trading Networks adds the namespace information from all xmlns attributes in the sample document to the namespace mappings table. To update a namespace mappingType over the existing information in the namespace mappings table. To delete a namespace mappingSelect the row for the namespace mapping and click Delete selected namespace mapping .
11 To update options, click the Options tab. For information about how to specify information on this tab, see step 8 on page 240. 12 After you have made all your changes, click OK. Trading Networks closes the screen.
261
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
1 2 3 4 5 6
Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Document Types. Trading Networks displays both the TN XML document types and TN flat file document types. Click the row containing information about the TN XML document type that you want to update. Select Types Edit.
To update the description, type a new description in the Description field. To update identification information, click the Identify tab. For details about specifying any of this information, see Identification Information in TN XML Document Types on page 206. To update this Identify tab parameter Identifying Queries
Use these procedures when you do not have a sample document To add an identifying queryClick . Trading Networks displays the Add an identifying query dialog box. In the Query field, type an XQL query that represents a node in a document that must exist for this TN document type to be used for a document. Note: This filled in query is for a specific node in the XML document. This node is applicable for DATETIME, STRING, or NUMBER data types. But, if you want to use DATETIME LIST, STRING LIST, NUMBER (with Average, Minimum, Maximum, and Sum), or NUMBERLIST data types, you need to update the query so that it identifies an array of values. If you want the TN document type to require that the identifying query evaluate to a specific value, type that value in the Value field. Click OK to close the Add an identifying query dialog box.
262
Use these procedures when you do not have a sample document For information about XQL queries, see Appendix B, XQL Reference. To update information for an existing identifying querySelect the row for the identifying query and click Edit selected identifying query . Trading Networks displays the Edit selected identifying query dialog box. Update the Query and/or Value fields. Click OK to close the Edit selected identifying query dialog box. To delete an identifying query from the TN document typeSelect the row for the identifying query and click Delete selected identifying query .
Root Tag
To update the Root Tag field, type the value of the root tag from within the XML documents that this TN document type is to match. To remove the value from the Root Tag field, clear the Root Tag field.
DOCTYPE Identifier
To update the DOCTYPE Identifier field, click the Set button next to the DOCTYPE identifier field. To remove the value from the DOCTYPE Identifier field, clear the DOCTYPE Identifier field.
263
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
Use these procedures when you do not have a sample document To add a pipeline matching variableClick Add New Pipeline Match . In the Add Pipeline Matching dialog box, specify the Name and optionally, the Value for the pipeline matching variable. Click OK to save the variable and close the dialog box. To update a pipeline matching variableClick the row containing the pipeline matching variable you want to update and click Edit Selected Pipeline Match . In the Update Pipeline Matching dialog box, update the Name and optionally, the Value fields for that variable. Click OK to save your updates and close the Update Selected Pipeline Match dialog box. To delete a pipeline matching variableClick the row containing the pipeline matching variable you want to delete and click Remove Selected Pipeline Match .
Important! The TN document type must include at least one criterion that Trading Networks is to use to recognize an XML document; that is, at least one identifying query, a value for the Root Tag field, a value for the DOCTYPE Identifier field, or a pipeline matching variable. 7 To update extraction information, click the Extract tab. For information about how to specify information on this tab, see Extraction Information In TN XML Document Types on page 210. To add an attributeClick . Trading Networks displays the Add an attribute dialog box. Fill in the Add an attribute dialog box by performing the following: 1 2 3 In the Name field, select the name of the attribute from the list. To update the description, type a description in the Description field. If you want Trading Networks to flag an error if it encounters an error attempting to extract this document attribute, select the Required check box. For more information, see Indicating that Attributes are Required in TN XML Document Types on page 213.
264
In the Query field, type an XQL query that identifies the location of the attribute within an XML document. For information about XQL queries, see Appendix B, XQL Reference. If necessary, use the Detail field to specify how Trading Networks is to handle attribute data before storing it in the Trading Networks database. If the attribute Is SenderID or ReceiverID For Detail, specify You must specify an external ID type. For more information, see Specifying Built-in Transformation Information for SenderID and ReceiverID on page 215. You must specify a date format. Select one from the seven different built-in formats or type in your own. For more information, see Specifying Built-In Transformation Information for Attributes with the DATETIME and DATETIME LIST Data Type on page 215. You can specify whether you want Trading Networks to alter the string value before storing it. For more information, see Specifying Built-in Transformation Information for Attributes with the STRING or STRING LIST Data Type on page 216. You should specify the operation that Trading Networks should perform on the numbers in the array. For more information, see Specifying Built-in Transformation Information for Attributes with the NUMBER Data Type on page 218.
5
.
Has STRING data type (but not SenderID or ReceiverID) Has NUMBER and the XQL query identifies an array of numbers
To update information for an existing attributeSelect the row for the attribute and click Edit selected attribute . Trading Networks displays the Edit Attribute dialog box. Update the fields to make the changes you want. For information about what you can specify, see above for the description for adding an attribute. Click OK to close the Edit Attribute dialog box. To delete an attribute from the TN document typeSelect the row for the attribute and click Delete selected attribute .
265
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
To update namespace mappings, click the Namespaces tab. For information about namespaces, see Namespace Mappings in TN XML Document Types on page 221. To add a namespace mappingClick namespace mappings table. In this column... Namespace Prefix URI Mapping Specify The prefix for the namespace. If you are adding a mapping for the default namespace, specify prefix0. The URI for the namespace. . Trading Networks adds a row to the
To update a namespace mappingType over the existing information in the namespace mappings table. To delete a namespace mappingSelect the row for the namespace mapping and click Delete selected namespace mapping 9 .
To update options, click the Options tab. For information about how to specify information on this tab, see step 8 on page 240.
10 After you have made all your changes, click OK. Trading Networks closes the screen.
266
To disable a TN XML document type 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Document Types.
Click the row containing information about the TN XML document type that you want to update. Select Types Disable. Trading Networks places No in the Enabled column to indicate that the TN XML document type is disabled. Note: To view the Enabled column (if it is not currently displayed), select Document Types Show All.
To enable a TN XML document type 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Document Types.
Click the row containing information about the TN XML document type that you want to update. Select Types Enable. Trading Networks places Yes in the Enabled column to indicate that the TN XML document type is enabled
267
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
268
Perform the following procedure to test your TN XML document types for a specified document. To test TN XML document types 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Select Types Document Types. Test. Trading Networks displays the Select Input Document dialog box.
From the Select Input Document dialog box, select the sample document you want to use for the test and click Open. Trading Networks highlights all the TN document types that the sample document matches and displays a message informing you whether the document matched a single TN XML document type, multiple TN document types, or no TN document types.
269
C H A P T E R 1 2 T N X M L D o c u m e n t Ty p e s
270
CHAPTER
13
271
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Overview
Flat file documents present data in a record-based storage format. Unlike XML files, flat files do not have structural information embedded within the data. Trading Networks definition of a flat file is any file or document with a format that is non-describing, that is, a document that does not contain metadata. In other words, flat file data is externalized as a set of records (a list of records containing fields and composites) without any structural information. Because the records are not structured in a flat file document, the application receiving the flat file must have knowledge of the flat files structure to read its content. To provide this structural knowledge, you create a document gateway service and a corresponding TN flat file document type for each type of document you expect to receive. A document gateway service is the entry point for flat files into Trading Networks. It is a Java or flow service that you create to provide information to Trading Networks about a flat file. To provide this information, your service defines values in a pipeline variable named TN_parms. The service should define values for: System attributes, for example SenderID and ReceiverID in the TN_parms/SenderID and TN_parms/ReceiverID, respectively. Optional system variables, for example variables that specify the content type and content encoding you want Trading Networks to use for the document. Custom attributes (the document data). After supplying the values needed in the TN_parms pipeline variable, the gateway service passes control to Trading Networks for processing. Trading Networks will retrieve the flat file information from the TN_parms pipeline variable. In addition to creating a document gateway service, you define a corresponding TN flat file document type that Trading Networks will use when it receives the document from the gateway service. In a TN flat file document type you specify: Values of variables within the TN_parms pipeline variable that Trading Networks uses to match the document type to the incoming flat file document. For example, you might define the document type to match when the TN_parms/Department variable has a value of Billing and the TN_parms/Service_code variable has a value of XYZ. The system and custom attribute values to extract. You can only extract values for the attributes that the gateway service has placed in the TN_parms pipeline variable. In addition, you can transform certain types of attribute data before Trading Networks stores it in the database, using built-in or custom transformations. Whether to perform pre-processing actions (such as validating the data structure and checking for duplicate documents) before executing a processing rule.
272
Overview
A document would match this document type only if it contains both of those pipeline variables (within TN_parms) and the variables have the specified values. (You could have omitted the Service_code value if you wanted to receive Billing department documents with any service code.) Tip! Rather than having Trading Networks search all of your TN flat file document types to find a match, you can explicitly specify in the gateway service the document type to use for processing the document. Doing this eliminates the overhead of that search. Trading Networks logs a recognition error if any of the following conditions are met: The data in the TN_parms pipeline variable does not match the pipeline matching criteria in any document type The data in the TN_parms pipeline variable matches the pipeline matching criteria in multiple document types The data in the TN_parms pipeline variable explicitly identifies the document type to use, but that document type does not exist 4 After finding a single matching document type, Trading Networks adds the extracted attributes to the BizDocEnvelope, which is placed in the pipeline as a variable named bizdoc. A BizDocEnvelope represents a routable Trading Networks transaction. It
273
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
contains the flat file document, and Trading Networks adds additional information that it uses for routing and processing. 5 Trading Networks extracts all system and custom attributes that you defined in the TN flat file document type. To extract attribute values, Trading Networks looks for the values within the TN_parms pipeline variable. Trading Networks places the extracted attribute values into the BizDocEnvelope. In addition, Trading Networks can transform the extracted attribute values before storing them into the BizDocEnvelope, using the optional built-in or custom transformations that you specified. By default if Trading Networks cannot extract a particular attribute value, it will not log an error; it completes processing (assuming it finds no errors) and sets the processing status to DONE. If you want Trading Networks to log an error when it cannot extract particular attribute values, you can designate those attributes as being required for extraction. In this case, Trading Networks completes processing, logs the error to the activity log, and sets the processing status to DONE W/ERRORS. Continuing with the example document type Acme_XYZ_Invoices, suppose your trading network expects to receive a document whose TN_parms will contain the following attributes: Attribute TN_parms/SenderID TN_parms/ReceiverID TN_parms/DocumentID TN_parms/Department TN_parms/Service_code TN_parms/Invoice_number TN_parms/Amount Value [some value] [some value] [some value]
Billing XYZ 123 1000.00
You can extract any of these attributes. SenderID and ReceiverID are system attributes that Trading Networks always requires in TN_parms, and always extracts. Extracting all other system attributes, such as DocumentID, is optional. You extract system attribute values if you want to use them as criteria for determining the processing rule to use for a document, transaction analysis, process management, and more. You can extract document data to perform any processing you want, such as calculations. 6 Trading Networks performs a processing rule lookup to determine the processing rule to use for the incoming flat file document. For details, see Chapter 14, Processing Rules.
274
Overview
Tip! Trading Networks performs a processing rule lookup for each document, to determine the processing rule to use for it. Alternatively, you can explicitly specify in the gateway service the processing rule to execute for a given document type, thus bypassing the lookup (and its overhead). 7 Trading Networks executes the optional pre-processing actions that you might have specified when you defined the TN flat file document type. Trading Networks executes these pre-processing actions before it executes the processing rule that you associate with the document type. These actions, executed in the following order, include the following: Verify the digital signature of a document Validate the structure of a document using a flat file schema that you specified in the document type definition Check for duplicate documents; that is, determine whether Trading Networks has already received the document Save a copy of the document content, attributes, and/or log information to the database You can also specify this same set of pre-processing actions in the processing rule that you associate with the TN flat file document type. In the processing rule, you can specify whether to use the pre-processing actions specified in the processing rule, or to use the ones specified in the document type. For details, see Pre-Processing Actions on page 327. 8 Trading Networks executes the processing rule actions. For details, see Chapter 14, Processing Rules.
275
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
276
This is an alternative to havingTrading Networks look up the appropriate processing rule to use, thus eliminating the overhead of that lookup. Use the system variables TN_parms/processingRuleID and TN_parms/processingRuleName for this purpose. e Place the gateway services name into the pipeline to enable documents that invoke this gateway service to be resubmitted if necessary (optional). Use the system variable TN_parms/$receiveSvc for this purpose. f Specify the content type and content encoding you want Trading Networks to use for the document (optional). This is an alternative to having Trading Networks automatically determine the content type and content encoding of the document. Use the system variables TN_parms/$contentType and TN_parms/$contentEncoding for this purpose. 3 Specify all custom attribute values (the document data) that the matching document type is to extract. Make sure that the name and case you use for the TN_parms pipeline variable match exactly to the attribute name that is defined in the TN flat file document type. Invoke either wm.tn:receive or wm.tn.doc.ff:routeFlatFile to pass ffdata and TN_parms to Trading Networks.
277
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
278
the flat file parser to validate the documents structure and content, based on the flat file schema that you name as input to the service. Trading Networks can save or throw away the parsed contents. Alternatively, if you decide you do not need to parse the document in your gateway service, you can still indicate that you want to parse the document to validate its structure using the pre-processing option Validate Structure. For details, see Validating the Structure of Flat File Documents on page 295. Note: Do not convert a document in both the gateway service and the TN document type; there is no reason to do that. If you convert a document in the gateway service, it will remain in the pipeline.
279
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
SenderID
String An external ID value specified in the senders profile, for example, the senders D-U-N-S number. The TN document type uses SenderID to verify the senders identity. In the TN document type you must specify the type of the external ID, for example DUNS. String An external ID value specified in the receivers profile, for example, the receivers D-U-N-S number. The TN document type uses ReceiverID to verify the receivers identity. In the TN document type you must specify the type of the external ID, for example DUNS. String (optional) The identifier of the flat file document. Be sure to specify DocumentID if you want to use the Check for Duplicate Document pre-processing action, and Trading Networks is to use the DocumentID to determine whether documents are duplicates. For details, see Checking for Duplicates of the Flat File Document on page 296.
ReceiverID
DocumentID
280
Description String (optional) The identifier in a flat file document that associates this document with other documents in its group. If you expect to receive more documents in the same group, be sure the value you specify for GroupID is reproducible for future documents that will arrive in the same group. String (optional) The identifier in a flat file document that associates this document with other documents in the same conversation of documents. Use ConversationID if you want Trading Networks to pass the document to process management after it executes the document types processing rule. You define the actions taken against a document during process management by creating a process model. For more information about creating process models, see the webMethods Modeler Users Guide. If you do not want Trading Networks to pass the document to process management, add a variable to the pipeline called prtIgnoreDocument with the value of true. If you expect to receive more documents in the same conversation, be sure the value you specify for ConversationID is reproducible for future documents that will arrive in the same conversation.
ConversationID
UserStatus
String (optional) A status that you have associated with the flat file document. Use UserStatus if you want it to be available so you can process the document based on the user status. The user status is a criterion that Trading Networks uses to determine the processing rule to use for a document. For more information, see Processing Rule Criteria on page 317. In addition, if you create UserStatus, you can refine the list of displayed documents on the Transaction Analysis screen by searching for documents with specific user statuses.
281
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Description String (optional) The Trading Networks-generated internal identifier or name of the processing rule that you want Trading Networks to use for the flat file document. This is an alternative to having Trading Networks look up the appropriate rule, thus eliminating the overhead of that lookup. To determine the identifier, invoke the wm.tn.route:list service from Developer to return the name and ID of all your processing rules. If you use processingRuleID and that name is changed, the gateway service will not function as intended. Processing rule IDs cannot be changed, so your gateway service will be both more stable and more efficient if you use processingRuleID rather than processingRuleName. If you include values for processingRuleID and processingRuleName (which is unnecessary), processingRuleID is used. Note: An important usage consideration is discussed in Bypassing Lookups for Processing Rules on page 326.
$receiveSvc
String (optional) The fully qualified name of the document gateway service you are creating. By saving the name of the gateway service, you will be able to resubmit the flat file document if necessary. For example, if your service is named gateway1and is located in the partners.east folder, the fully-qualified name of the service would be partners.east:gateway1. If $receiveSvc is not set and you resubmit the document, Trading Networks resubmits the document to wm.tn:receive, which will not be able to properly recognize the flat file document. As a result, the sender, receiver, and TN document type will all be unknown, and the resubmission will fail. String (optional) The content type and encoding you want Trading Networks to use for the flat file document. You can specify $contentType and/or $contentEncoding. This is an alternative to having Trading Networks automatically determine the content type and content encoding of the submitted flat file document. For more information, see Determining the Content Type and Content Encoding on page 278.
282
A document would match this document type only if it contains both of those variables within TN_parms and the variables have those values. (You could have omitted the Service_code value if you wanted to receive Billing department documents with any service code.)
283
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
284
You can extract any of these attributes. Trading Networks always extracts the system attributes SenderID and ReceiverID. Extracting all other system attributes, such as DocumentID, is optional. You extract system attribute values if you want to use them as criteria for determining the processing rule to use for a document, transaction analysis, process management, and more. You can extract document data to perform any processing you want, such as calculations. For more information, see System Attributes To Extract From Documents on page 286.
285
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
In this case, you can configure the document types processing rule to handle the error as follows: Use the processing rules Recognition Errors criterion to trigger a processing rule based on whether it contains errors. For more information, see Document Recognition Errors Criterion on page 321. Use the processing rules Execute a service processing action to inspect the bizdoc/Errors variable for the errors that Trading Networks encountered. When Trading Networks is unable to extract a required attribute, it records the error in the bizdoc/Errors variable. This variable is in the pipeline and is available for your use when Trading Networks is processing the document. For more information about the Execute a service processing actions, see Action 1Execute a Service on page 330.
286
receiver of a document. For more information about creating process models, see the webMethods Modeler Users Guide. Use the Retrieve SenderID from session option as an alternative way to set the value of the SenderID system attribute. If set, rather than look in TN_parms\SenderID for the value to use, Trading Networks uses the connected user. That means that when the client sent the flat file 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, then that partner will have an Integration Server user account with the user name 123456789. So, when that partners client wants to send a flat file document to Trading Networks, it must present credentialsit supplies user name 123456789 along with its password. So, if Retrieve SenderID from session is set to true in a TN flat file document type, Trading Networks would determine the sender of the document based on the user account 123456789, find the profile (and therefore the internal ID), and put 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 the Trading Networks Console, the user is the IS user account that you used to log in to the Trading Networks Console (e.g., 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 When Trading Networks has a value for DocumentID, you can perform the following tasks. Determine whether the incoming flat file document is a duplicate, by checking the value of the document ID; that is, determine whether Trading Networks has already received the document. For details, see Checking for Duplicates of the Flat File Document on page 296. Search for the flat file document on the Transaction Analysis screen by searching for documents with the specific document ID. Search for the flat file document on the Transaction Analysis screen by searching for documents with the specific document ID.
287
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
ConversationID You can use ConversationID to pass the document to process management after it performs the actions identified by a processing rule. You define the actions taken against a document during process management by creating a process model. For more information about creating process models, see the webMethods Modeler Users Guide. If you do not want Trading Networks to pass the document to process management, add a variable to the pipeline called prtIgnoreDocument with the value true. UserStatus When Trading Networks has a value for UserStatus, you can perform the following tasks. Specify the user status as a criterion for determining the processing rule to use for the flat file document. For more information, see Processing Rule Criteria on page 317. Search for the flat file document on the Transaction Analysis screen by searching for documents with the specific user status. GroupID When Trading Networks has a value for GroupID, you can search for this flat file and all other flat files that have the same group ID on the Transaction Analysis screen.
288
Built-In Transformations for DATETIME and DATETIME LIST Data Type Attributes If you specify an attribute that has the data type DATETIME or DATETIME LIST, Trading Networks requires you to identify the date format. Trading Networks maintains a list of built-in common date/time formats from which you can select. However, if the date/time format you need to use is not in the list, you can type the format you need. To specify the date/time format, use a pattern 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 pattern that you specify to decode the value and convert it to the format that Trading Networks requires to store the date in the BizDocEnvelope. Built-in Transformations for STRING or STRING LIST Data Type Attributes For attributes with the data type STRING or STRING LIST, you can specify whether you want Trading Networks to alter the string value before storing it. You can have Trading Networks make a simple alteration to change the case of the extracted string values to all upper- or all lowercase. Alternatively, you can have Trading Networks use the extracted values as substitutions in a string that you supply. If you do not specify transformation information for a string attribute, Trading Networks saves the data exactly as it extracted it. Following are descriptions of the built-in transformation options for string attributes. Format Uppercase Description Stores the extracted string attribute value in all uppercase. For example, if the extracted attribute value is Purchase Order, Trading Networks stores PURCHASE ORDER for the attribute value. Stores the extracted string attribute in all lowercase. For example, if the attribute value is Purchase Order, Trading Networks stores purchase order for the attribute value.
Lowercase
289
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Description Substitutes extracted values with a pattern that you specify. Trading Networks uses the java.text.MessageFormat class to perform this transformation. For example, suppose your document gateway service extracts the names of three items in a purchase order and places them into an attribute named itemName in your TN_parms variable as follows:
/TN_parms/itemName = {WidgetA, WidgetB, WidgetC}
Suppose you want to replace the three names with a single string that contains the three names. To do this, use this field to specify the following string substitution pattern for itemName:
Item Name: {0}, {1}, {2}
Trading Networks would store the following for the value of itemName: Item Name: WidgetA, WidgetB, WidgetC If you place more arguments in the pattern than values that Trading Networks extracts, the string that Trading Networks stores for the attribute will contain the extra arguments (e.g., {2}). If you specify less arguments in the pattern than values that Trading Networks extracts, the string that Trading Networks stores for the attribute will not contain all the extracted values; it will only contain the values for the number of arguments you specify in the pattern. Built-in Transformations for NUMBER Data Type Attributes You can specify an attribute with the NUMBER data type that contains an array of numbers. You can specify one of the following built-in formats to transform the array of numbers to a single value for Trading Networks to store: Format Average Description Stores the average value of all the numbers in the array. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 3.5. Stores the smallest number in the array. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 2.
Minimum
290
Format Maximum
Description Stores the largest number in the array. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 5. Stores the sum of all the numbers in the array. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 14. Stores the first value of the array as the value of the attribute. For example, if the array contains the numbers [2, 3, 4, 5], Trading Networks stores the value 2.
Sum
No format specified
Note: When Trading Networks extracts a NUMBER or NUMBER LIST from a document, it uses the number parsing behavior of java.lang.Number. For example, if the NUMBER or NUMBER LIST contains the value 100zzz, Trading Networks interprets the value as 100, instead of throwing an error as it would if the value were zzz100. To redefine this parsing behavior, you can write a custom attribute transformation. For more information, see Custom Transformation Services on page 292. For example, suppose your document 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 attributes in your TN_parms variable and in your TN document type: TN_parms attributes
/TN_parms/itemNumber /TN_parms/quantity /TN_parms/totalQuantity
TN document type
itemNumber NUMBER quantity NUMBER totalQuantity NUMBER summedValue NUMBER LIST
If you select the Sum built-in transformation for totalQuantity, it will sum its value (an of quantities), and produce a single number. For example, if the value of totalQuantity is the following array:
/TN_parms/totalQuantity = {2, 3, 4, 5}
291
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Custom Transformation Services Trading Networks allows you to create your own service to perform transformations on extracted attributes. Base your service on the appropriate specification listed below: Data type DATETIME or DATETIME LIST STRING or STRING LIST NUMBER or NUMBER LIST Specification you must use The service must implement the input and output variables defined in the wm.tn.rec:DateAttributeTransformService specification. The service must implement the input and output variables defined in the wm.tn.rec:StringAttributeTransformService specification. The service must implement the input and output variables defined in the wm.tn.rec:NumberAttributeTransformService specification.
To view these specifications, use webMethods Developer and look in the WmTN package. For more information, see the webMethods Trading Networks Built-in Services Reference. Trading Networks passes the following input variables: Input Value values Meaning One or more values for your service to transform. Note: The values might be null or an empty (zero length) string. For an array data type (e.g., DATETIME LIST), any element in the values array can be null or an empty string. Make sure that your custom transformation service can handle null values or empty strings. isArray Whether values contains a single value to transform or multiple values to transform. isArray will be false if values contains a single value; otherwise it will be true. Optional arguments that you can define.
arg
292
Trading Networks expects you to return the transformed values in the following output variable: Output Value newValues Meaning Transformation values of: Date List for DATETIME or DATETIME LIST String List for STRING or STRING LIST Number List for NUMBER or NUMBER LIST. If the input variable isArray is false, the input variable values will contain only a single item to transform. 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 (meaning multiple values), 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. For information about creating a service, see the webMethods Developer Users Guide.
293
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
294
295
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Important! If the structure of a document is invalid, the validation service can return many error messages. To limit the number of error messages, set the Validate Max Errors option on the Trading Networks Web Manager.
296
Trading Networks might be unable to correctly determine whether a document is unique if: Trading Networks previously received a document that it did not save to the database, and the same document is sent again (see Saving Flat File Documents to the Database on page 297). Trading Networks previously received a document and saved it to the database, but the document gateway service did not supply values in the pipeline for DocumentID, SenderID, and/or ReceiverID system attributes. Trading Networks previously received a document and saved it to the database, but the document type Extract panel information did not indicate to save the DocumentID, SenderID, and/or ReceiverID system attributes. Trading Networks was unable to match the document to a TN document type. Trading Networks saves the results of the duplicate check to the pipeline, so you can use it in the processing rule. Additionally, Trading Networks uses the results of the duplicate check in the Save Document to Database pre-processing action.
297
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Then the consequences of not saving are... If you use the Deliver Document actions, Trading Networks will not use reliable delivery or scheduled delivery. If Trading Networks is to use a delivery option that requires document content to be saved, Trading Networks will bypass reliable delivery and invoke the specified delivery service once, but only if the Trading Networks property tn.task.attempt.notPersisted is set to true (the default). For more information, see the TN Properties page of the Server Administrator. For instructions on how to view the online help of the TN Properties page, seeTrading Networks Configuration Properties on page 42. You will not be able to view content from the Transaction Analysis screen (i.e., the Content tab will have no data). You will not be able to resubmit or re-process the document.
Attribute
You will not be able to view custom attributes from the Transaction Analysis screen (i.e., attributes will contain only information for system attributes). However, you can still use the processing rules extended criteria for the document. If you use the Transaction Analysis Custom search criteria, Trading Networks will be unable to locate documents for which you did not save the attributes. You might get different or unexpected results when you reprocess a document. Because the attributes are not saved when you reprocess the document, Trading Networks will not match processing rules that use extended criteria. Instead, Trading Networks will match to another processing rule, for example the default processing rule, and perform the process actions identified in that matching rule. Trading Networks does not perform document recognition again and therefore does not re-extract the attributes. For example, if you use extended criteria to select a processing rule when the value of the custom attribute Total Amount is greater than 10000, Trading Networks would not select that processing rule when reprocessing a document because the value of the Total Amount attribute would not be available and therefore would not match the extended criteria.
298
Then the consequences of not saving are... Note: You can still resubmit a document. When Trading Networks resubmits a document, it performs document recognition and therefore extracts the attributes again.
Activity Log
You will not be able to view Activity Log entries from the Transaction Analysis screen (i.e., the Activity Log tab will have no data). You will not be able to view entries from the Activity Log screen.
Note: Trading Networks always saves documents that will be passed on to process management regardless of the setting of the Save Document to Database pre-processing option. Trading Networks passes documents on to process management if it extracted a conversation ID from the document. For more information about process management, see the webMethods Modeler Users Guide.
299
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
To define a TN flat file document type 1 2 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Perform one of the following procedures to start a new TN flat file document type. Method to start a TN document type New The TN flat file document type fields are empty.
Select Flat file for the TN document type category. Click OK. Select View Document Types.
Duplicate The TN flat file document type fields are filled with values from the TN flat file document type that you duplicate. You can update any or all fields from the duplicated TN flat file document type. 3 4 5 6
1) 2) 3)
Click the row containing the TN flat file document type that you want to duplicate. Select Types Duplicate.
In the Name field (required), type the name you want to give the TN flat file document type. Optionally, type a description for the TN document type in the Description field. Click on the Configure tab. Click on the Identify panel to specify the criteria that Trading Networks will use to match flat file documents to the document type. For details about the information you
300
specify on this panel, see Pipeline Matching Criteria Used to Identify the TN Document Type on page 283. Note: You must specify at least one attribute; otherwise Trading Networks will not use the TN document type.
a b
Specify the following values in the Add Pipeline Matching dialog box. Attribute Name Value Specify Name of the TN_parms variable. Optional. The value of the TN_parms variable. If you specify a value, Trading Networks finds a match only if the variable has the specified value.
c 7
Click OK to save the attribute and close the Add Pipeline Matching dialog box.
In the Extract panel, specify the system attributes and document attributes (document data) that you want Trading Networks to extract from documents. For details about what to specify for these fields, see Attributes To Extract From Documents on page 285. Important! If you do not extract the system attributes, Trading Networks will not have this information available for processing rules or querying documents.
Add an attribute to extract by clicking Add New Attribute displays the Add an attribute dialog box.
. Trading Networks
Note: Trading Networks always lists SenderID and ReceiverID as attributes to be extracted. You cannot delete them. b In the Name field, select the name of the attribute from the list. Trading Networks fills in the Type field based on the document attribute definition. To view more details about all of the document attributes, click Document Attributes the Document Attributes screen. c to view
Select the Required check box if you want Trading Networks to throw an error when it cannot extract the attribute. Note: Trading Networks always designates SenderID and ReceiverID as required.
301
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Note: If you do not mark an attribute as required, Trading Networks does not flag an error if it is unable to extract the attribute. If Trading Networks completes processing without encountering any further errors, it sets the processing status to DONE. d Use the Retrieve SenderID from session option as an alternative way to set the value of the SenderID system attribute. If set, rather than look in TN_parms\SenderID for the value to use, Trading Networks uses the connected user. For more information, see System Attributes To Extract From Documents on page 286. Use the Transformation fields to specify how Trading Networks is to handle attribute data before storing it in the Trading Networks database. The data type of the attribute (shown in the Type field) determines the Built-in or Custom transformation options available. For more information, see Transformation Information for Extracted Attributes of TN Flat File Document Types on page 288. Built-in. Select a built-in transformation provided by Trading Networks. Use the Transform and Argument fields to specify how you want to handle attribute data before storing it in the Trading Networks database. If the attribute data type Is SenderID or ReceiverID
For Transformation You must select from the pull-down list the type of the external IDs (for example, DUNS) for both attributes so that Trading Networks can match the externals ID in SenderID and ReceiverID with the external IDs in the profiles. This is how Trading Networks verifies the identities of the sender and receiver. When Trading Networks finds a match, it automatically transforms the external IDs in TN_parms/SenderID and TN_parms/ReceiverID into its internal IDs before storing them in the BizDocEnvelope.
You must specify a date format. Select a built-in format or type in your own. For more information, see BuiltIn Transformations for DATETIME and DATETIME LIST Data Type Attributes on page 289.
302
If the attribute data type Has STRING or STRING LIST data type (but not SenderID or ReceiverID)
For Transformation You can specify whether you want Trading Networks to alter the string value to all uppercase or all lowercase before storing it. Alternatively, you can have Trading Networks use the extracted values as substitutions in a string that you supply. For more information, see Built-in Transformations for STRING or STRING LIST Data Type Attributes on page 289. You should specify the operation that Trading Networks should perform on the numbers in the array. For more information, see Built-in Transformations for NUMBER Data Type Attributes on page 290.
Custom. Select or create your own service to perform custom transformations on extracted attributes. For more information, see Custom Transformation Services on page 292. To do this Create a new custom transformation Select an existing custom transformation service Set the inputs of the transformation from the selected service Edit an existing service f Perform this Click New Service .
Click Find Service to browse the IS namespace to locate the one you want to use. Click Set Inputs.
Click OK to save the new attribute and close the Add an attribute dialog box. Trading Networks returns to the Extract panel of the Document Type Details screen. Trading Networks displays the name of the extracted attributes and their built-in or custom transformation services. Note: If you add an attribute and then decide you do not need it, you can remove it by clicking on the row containing the attribute, and then clicking Delete attribute .
303
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Click the Options tab and specify any of the options. Important! Keep in mind that the pre-processing actions specified in the processing rules can override pre-processing actions specified in a TN document type. For details, see Pre-Processing Actions on page 327. Options tab parameter Parsing schema
Description The fully qualified name of a webMethods flat file (parsing) schema to use to validate the structure of the documents. You only need to specify a flat file schema if you select the Validate Structure pre-processing option. If you do not know the fully qualified name, click Find schema to browse webMethods flat file schemas to locate the one you want to use. For more information, see Validating the Structure of Flat File Documents on page 295.
Executes a user-defined verification service to verify the digital signature of the documents. Trading Networks executes this pre-processing action before executing the processing rule that you associate with the TN document type. Create the verification service in any user-defined package, using the inputs and outputs specified in wm.tn.rec:BizDocVerificationService (described in the webMethods Trading Networks Built-in Services Reference). For more information, see Verifying the Digital Signature of Flat File Documents on page 294.
Invokes the flat file parser to validate the documents structure and content against the flat file schema you specify in the Parsing schema option, and converts the flat file document to an IS document. Then you can map information from the converted document to the TN_parms variable. The Input for Flat File Validation dialog box prompts you to select the parsing settings. Trading Networks executes this pre-processing action before executing the processing rule that you associate with the TN document type. For more information, see Validating the Structure of Flat File Documents on page 295.
304
Description Searches the database to determine whether the database has already received the document. Trading Networks executes this pre-processing action before executing the processing rule that you associate with the TN document type. Select a built-in service or use a custom service. For more information, see Checking for Duplicates of the Flat File Document on page 296. To create a new custom service click New Service .
To select an existing duplicate service, click Find Service to browse the IS namespace to locate one and then click the Edit Service button if you want to modify the service. Note: A custom duplicate checking service may affect performance, depending on its logic. For details, see, Creating a Duplicate Document Check Service on page 329. Save Document to Database preprocessing action Specify whether to save all documents, only unique documents, or no documents. Additionally, specify whether to save the documents content, attributes, and/or activity log information. Trading Networks executes this pre-processing action before executing the processing rule that you associate with the TN document type. For more information, see Saving Flat File Documents to the Database on page 297.
305
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
306
To update a TN flat file document type 1 2 3 4 5 6 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Document Types. Trading Networks displays all TN flat file document types as well as the TN XML document types. Click the row containing the TN flat file document type you want to update. Select Types Edit.
To update the description, type a new description in the Description field. To update identification information, click on the Identify panel. For details about the what to specify on this panel, see Pipeline Matching Criteria Used to Identify the TN Document Type on page 283. To add a pipeline matching variable, click Add New Pipeline Match the variable and close the dialog box. . Click OK to save
To update a pipeline matching variable, click the row containing the pipeline matching variable you want to update and click Edit Selected Pipeline Match . In the Update Pipeline Matching dialog box, update the Name and Value fields for that variable. Click OK to save your updates and close the Update Pipeline Matching dialog box. To delete a pipeline matching variable, click the row containing the pipeline matching variable you want to delete and click Remove Selected Pipeline Match 7 8 .
To update extraction information, click the Extract panel. For details about what to specify on this panel, see Attributes To Extract From Documents on page 285. To update the system attributes, click on the System Attributes tab. For details about what to specify for these fields, see System Attributes To Extract From Documents on page 286. To select a system attribute to extract, select the appropriate check box in front of the attribute name. Note: The SenderID and ReceiverID are always selected. Use the Transform and Argument fields to specify detail information for how Trading Networks is to handle attribute data before storing it in the Trading
307
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
Networks database. For a summary of actions you can take for adding a new system attribute, see step 7 on page 301. To deselect a system attribute, deselect the appropriate check box in front of the attribute name. 9 To update custom attribute information, click on the Custom Attributes tab. Custom attributes are the user-defined ones on the Document Attributes screen. For more information about document attributes, see Chapter 11, Document Attributes. To add a custom attribute, click Add New Attribute . Then, add a new custom attribute. For a summary of actions you can for take for adding a new custom attribute, see step 5 on page 197. To view more details about all of the document attributes, click Document Attributes to view the Document Attributes screen. To update a custom attribute, click Edit Selected Attribute . For a summary of actions you can take for custom attributes, see step 5 on page 197. To delete a custom attribute from the TN document typeSelect the row for the attribute and click Remove Selected Attribute .
10 To update options, click the Options tab. For details about these fields, see PreProcessing Actions in the TN Flat File Document Type on page 294. 11 After you have made all your changes, click OK. Trading Networks closes the screen.
To disable a TN flat file document type 1 2 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Document Types. Trading Networks displays both the TN XML document types and TN flat file document types.
308
3 4
Click the row containing information about the TN flat file document type that you want to disable. Select Types Disable. Trading Networks places No in the Enabled column to indicate that the TN flat file document type is disabled. Note: To view the Enabled column (if it is not currently displayed), select Document Types Show All.
To enable a TN flat file document type 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Document Types. Trading Networks displays both the TN XML document types and TN flat file document types. Click the row containing information about the TN document type that you want to enable. Select Types Enable. Trading Networks places Yes in the Enabled column to indicate that the TN document type is enabled.
309
C H A P T E R 1 3 T N F l a t F i l e D o c u m e n t Ty p e s
310
CHAPTER
14
Processing Rules
What are Processing Rules? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312 Processing Rules Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313 Processing Rule Criteria . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 Extended CriteriaUsing Custom Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322 Pre-Processing Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 Processing Rule Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 Defining Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347 About Querying and Viewing Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366 Managing Processing Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
311
312
The processing rules reorder in this way... The new processing rule is assigned the original ordinal of the highlighted rule. The highlighted processing rule is assigned its original ordinal + 1. All existing processing rules below the highlighted processing rule keep their respective order but are also assigned their original ordinal + 1.
The new processing rule is assigned the highlighted rules original ordinal + 1. The highlighted processing rule keeps its original ordinal. All existing processing rules below the highlighted processing rule keep their respective order, but they are assigned their original ordinal + 1.
313
If you add a new processing rule using this option.... LastAdd a new processing rule to the bottom of the processing rules list. If you set up a default processing rule, place it here (last) in the list.
The processing rules reorder in this way... The new processing rule is placed in the last position at the bottom of the full, unfiltered list of processing rules. All other processing rules keep their original ordinals.
Example: The following diagrams demonstrate what happens if you highlight Processing Rule B, Ordinal 12 as the rule to add your new processing rule in relation to.
Add Processing Rule ABOVE Processing Rule B, Ordinal 12
Add new rule ABOVE Processing Rule B, Ordinal 12 The new rule is ABOVE Processing Rule B and is now Ordinal 12 Processing Rule B is now Ordinal 13
314
Add new rule BELOW Processing Rule B, Ordinal 12 Processing Rule B remains Ordinal 12 The new rule is BELOW Processing Rule B and is now Ordinal 13
315
Default rule remains Ordinal 15 The new rule is LAST, Ordinal 16, and is now below the Default rule
316
Keep rules with specific criteria before rules with general criteria. You should also set up a default processing rule that you want Trading Networks to use when a document does not match any of the other processing rules. Trading Networks ships with a default processing rule that you can use. Place the default processing rule in the last position of the full, unfiltered processing rules list. For more information about ordering processing rules, see Processing Rules Order on page 313. For more information about the default processing rule, see Setting Up a Default Processing Rule on page 362. The rest of this section describes the types of criteria you can specify in a processing rule.
317
If Trading Networks cannot determine the sender/receiver of a document, it considers the sender/receiver an unknown partner. Trading Networks uses the unknown partner for a document in all the following situations: The TN document type is unknown. Because it is the TN document type that specifies the attributes to extract, when the TN document type is not recognized, Trading Networks cannot extract any attributes (including SenderID and ReceiverID). The TN document type does not instruct Trading Networks to extract the SenderID and ReceiverID system attributes. The XQL query (in the TN document type) that identifies the location of the SenderID/ ReceiverID system attributes is not valid. The value of the SenderID/ ReceiverID system attributes in the document do not match the value of the external ID type of any defined partner on your Trading Networks system. Trading Networks uses the sender/receiver information from the document and matches it against the ID type information stored in the partner profiles for your partners. If a document was sent by one of your partners (for example, Industrial Steel Company), but Trading Networks cannot determine the sender for one of the above reasons, Trading Networks uses Unknown for the sender. If you have a processing rule that processes documents that are sent by this partner (for example, Industrial Steel Company), Trading Networks will not select the rule because it is using the unknown partner for the sender. If Trading Networks successfully extracts the SenderID/ ReceiverID system attributes from a document and can match it to a partner profile on your Trading Networks system, it uses the corporation name and unit name specified in the partner profile as the name of the sender and/or receiver. Trading Networks compares the name of the partner (or unknown) to the partner or partners that you specify in the processing rule. If you specify this Any Senders or Any Receivers Enterprise Unknown Selected Senders or Selected Receivers Only if the sender/receiver that is identified in the document is the local partner. Only if the sender/receiver is unknown Only if the sender/receiver that is identified in the document is one of the partners you specify The rule matches Regardless of the partner that is identified as the sender/receiver in of the document, even if the partner is unknown
318
319
Integration Server
Processing Rule TN document type = PO user status = accepted Processing Rule TN document type = PO user status = rejected PO
TN document type = PO user status = null To: From: Subject: http://tn:5555/PO.dsp Set user status to accepted
PO Accept Reject
4
PO
5
Step Description Trading Networks receives a document and recognizes that its TN document type is PO. The user status is originally null because Trading Networks was not instructed to extract the User Status system attribute. The document matches the processing rule that has the criteria that indicates the TN document type must be PO and the document can have any user status. The processing action in this rule indicates Trading Networks is to send an alert e-mail. The alert e-mail contains a URL for a web page that displays the PO. The processing rule also changes the user status to pending approval. The user clicks the URL to open the web page to view the PO. The web page contains an HTML form that has an Accept button and a Reject button that the user can use to accept or reject the PO.
1 2
320
Step
Description The user selects either Accept or Reject. When the user selects either button, code executes. If the user selects Accept, the code uses the built-in service wm.tn.doc:changeStatus to set the user status associated with the document to accepted. If the user selects Reject, the code uses the built-in service to set the user status associated with the document to rejected. The code for the web form invokes the wm.tn:submit built-in service that sends the document back to the Integration Server for processing. Trading Networks recognizes the TN document type is PO and determines the user status, which is either accepted or rejected. The document matches either the processing rule that indicates the TN document type must be PO and the user status is accepted or the TN document type is PO and the user status is rejected. This processing action in these rules indicates Trading Networks is to invoke a service. This service processes the purchase order appropriately.
You can set the user status processing rule criterion to one of the following: If you specify this Any User Status Specified User Status The rule matches Regardless of the user status of the document, even if the user status is null Only if the user status of the document is one of the user statuses you specify
321
receiver error if the XQL query to locate the ReceiverID system attribute fails or if the external ID of the receiver in the document does not match external ID information for any defined partner. This processing criterion is useful to assure that processing occurs only if no errors were encountered during document recognition. Conversely, you can also use this criterion to set up processing rules that specifically handle error cases. You can set the error processing rule Content Criteria to one of the following: If you specify this may have errors has no errors has errors The rule matches Regardless of whether Trading Networks encountered errors Only if Trading Networks did not encounter any errors Only if Trading Networks did encounter errors
322
Operator Is null
Matches when the attribute extracted from a document Has no value. The attribute has no value if the XQL query for the custom attribute (in the TN document type) did not identify a node in the document. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Matches exactly the value that you specify. Contains the character string that you specify for the value. Has a value that does not match the value that you specify. Has no value. The attribute has no value if the XQL query (defined in the TN document type) that Trading Networks used to extract the attribute failed. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Includes the value that you specify.
323
Operator Is null
Matches when the attribute extracted from a document Has no value. The attribute has no value if the XQL query for the custom attribute (in the TN document type) did not identify a node in the document. You do not need to specify a value when you specify this operator.
Is not null Equals Less than Greater than Less than or equals Greater than or equals Not equals NUMBERLIST Is null
Has any value. You do not need to specify a value when you specify this operator. Matches exactly the value that you specify. Has a value that is less than the value that you specify. Has a value that is greater than the value that you specify. Has a value that is less than or equal to the value that you specify. Has a value that is greater than or equal to the value that you specify. Has a value that does not match the value that you specify. Has no value. The attribute has no value if the XQL query for the custom attribute (in the TN document type) did not identify a node in the document. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Includes the value that you specify.
324
Operator Is null
Matches when the attribute extracted from a document Has no value. The attribute has no value if the XQL query for the custom attribute (in the TN document type) did not identify a node in the document. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Matches exactly the value that you specify. Is a date that is before the date that you specify. Is a date that is after the date that you specify. Has no value. The attribute has no value if the XQL query for the custom attribute (in the TN document type) did not identify a node in the document. You do not need to specify a value when you specify this operator.
Is not null
Has any value. You do not need to specify a value when you specify this date list.
Value along with the operator, instructs Trading Networks how to match documents based on the value of the attribute extracted from the documents. Even when a document contains the attribute information that you specify, Trading Networks might still have a null value for the attribute. The following lists reasons this might occur: The XQL query for the custom attribute (in the TN document type) did not identify a node in the document. The TN document type of the document is unknown. (Trading Networks does not extract attributes for unknown TN document types.) Note: For custom attributes that are extracted from an XML document, Trading Networks returns specific values for different attribute data types. For more information about these extraction values, see Extracting Custom Attributes From XML Documents on page 536.
325
You can specify multiple custom attributes in the extended criteria. Trading Networks only selects the processing rule if all the criteria you specify match. Note: If the pre-processing actions do not indicate that Trading Networks is to save the attributes, Trading Networks does not save the custom attributes. However, you can still use extended criteria for the document. For more information about the pre-processing actions, see Pre-Processing Actions on page 327. If you reprocess a document, Trading Networks does not recognize the TN document type again and therefore does not re-extract the attributes. If you reprocess a document for which Trading Networks did not save the attributes, Trading Networks will not match processing rules that use extended criteria. Instead, Trading Networks will match to another processing rule, for example the default processing rule, and perform the process actions identified in that matching rule. For more information about reprocessing a document, see Processing a Saved Document Again on page 452.
326
Pre-Processing Actions
If you assign the rule 2 identifier as the value of processingRuleID, and an application submits an order greater than $10, rule 2 will discard the order.
Pre-Processing Actions
Trading Networks performs pre-processing actions before it processes the document using the processing rule actions. You can specify pre-processing actions in both the TN document type and the processing rule. You specify the pre-processing actions in the processing rule to override the actions that are specified in the TN document type. Trading Networks performs the pre-processing actions in the following order. Use preprocessing actions to instruct Trading Networks to: Verify Digital SignatureTrading Networks verifies the digital signature of a document. To verify that the document arrived unchanged, Trading Networks assures the signed body has not changed by verifying the digital signature. To verify that the sender is who it claims to be, Trading Networks matches the certificate from the digital signature to the certificate that Trading Networks has on file for the partner. Validate StructureTrading Networks validates the structure of the document against an IS schema. Trading Networks assures that the document matches the structure identified by the IS schema (using the pub.schema:validate built-in service). Check for Duplicate DocumentTrading Networks determines if there is a duplicate of the document; that is, if it has already received the document. Trading Networks checks the document being processed against documents it has in its database. You can have Trading Networks determine whether the document is a duplicate using a built-in or custom duplicate check service or have Trading Networks not check for a duplicate document. Built-in servicesUse one of the following built-in duplicate checks: Document ID onlyTrading Networks assures that it does not already have a document with same document ID in its database. Document ID and senderTrading Networks assures that it does not already have a document with same document ID and sender in its database. Document ID, sender and receiverTrading Networks assures that it does not already have a document with the same document ID, sender, and receiver in its database. Document ID, sender and document typeTrading Networks assures that it does not already have a document with the same document ID, sender, and TN document type in its database.
327
Custom servicesUse a service that you create to determine whether a document is a duplicate. For more information, see below, Creating a Duplicate Document Check Service. Note: There could be performance issues if you choose to use custom services for duplicate checking based on the logic in the service you select. Trading Networks saves the results of the duplicate check to the pipeline. As a result, this information is available for use in the processing actions that you define in the processing rule. Save Document to DatabaseTrading Networks saves a copy of the document content, attributes, and/or activity log information to the database. Trading Networks uses the results of the duplicate check in the Save Document to Database pre-processing action. Certain delivery options require saving the document content to the database, for example, if you want to deliver a document via a queue. If you do not select to save the document content and Trading Networks is to use a delivery option that requires document content to be saved, Trading Networks will bypass reliable delivery and invoke the specified delivery service once. For more information about pre-processing actions for XML documents, see Specifying Pre-Processing Actions for TN XML Document Type on page 227. For more information about pre-processing actions for flat file documents, see Pre-Processing Actions in the TN Flat File Document Type on page 294. For all pre-processing actions, you can indicate in the processing rule that you want Trading Networks to: Use the setting in the TN document type Perform the pre-processing action regardless of the setting in the TN document type Not perform the action regardless of the setting in the TN document type For more information about pre-processing options, see Chapter 3, "Setting up Trading Networks to Process Documents" and Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide.
328
For duplicate checking services, Trading Networks passes the following output variables: Output Value duplicate Meaning String Whether the service determined the document is a duplicate. The service should return either true or false for duplicate.
The specification is located in the WmTN package. For more information about this specification, see the webMethods Trading Networks Built-in Services Reference.
329
If you select to have Trading Networks perform more than one of the above actions, Trading Networks performs the actions in the order listed above. For example, if you select to execute a service, send an alert e-mail message, and deliver the document to the receiver, Trading Networks performs the actions in that order. If Trading Networks encounters an error performing one of the actions, it will continue to attempt the other actions. For example, if the service specified in the rule does not exist, Trading Networks will receive an error attempting to invoke the service. In this situation, Trading Networks logs the error in the activity log and continues, attempting to send the alert e-mail message and deliver the document to the receiver. For more information about Processing rule actions, see Chapter 5, "Trading Networks Document Processing" in the webMethods Trading Networks Concepts Guide. Delivery methods you can use, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide.
330
331
Trading Networks Behavior for the Execute a service Action What does Trading Networks return to the caller? synchronous If you do not select the Respond With processing action, the results of the service are returned unmodified to the caller that sent the document for processing. If you do select the Respond With processing action, Trading Networks does not return the results of the service to the caller. It returns only the message that you specify with the Respond With action. However, because Trading Networks performs the Respond With action after it executes the service all information that the service places in the pipeline is available for use in the message that Trading Networks returns to the caller. This includes the results of the service. asynchronous and service execution task If you do not select the Respond With processing action, Trading Networks returns no additional information to the caller. If you do select the Respond With processing action, Trading Networks returns the message that you specify with the Respond With action. Trading Networks cannot return the results of the service because the service might not be complete. What if the service throws an exception or does not exist at runtime (i.e., it was deleted since you created the processing rule)? synchronous, asynchronous and service execution task Trading Networks logs the error to its activity log and continues with the other actions in the processing rule, if any.
332
Description The number of times you want Trading Networks to attempt to re-execute a service. The number of milliseconds (ms) you want Trading Networks to wait before making its first attempt to re-execute the service. (Trading Networks uses the Retry Factor along with the Wait Between Retries value to calculate how long to wait for subsequent retry attempts.)
333
Description The factor you want Trading Networks to use when determining how long to wait before making the second and subsequent attempts to re-execute the service. Trading Networks calculates the time to wait by multiplying the last wait time by the value you specify for Retry Factor.
Example: The following shows sample values for the settings described in the table above and how they affect the wait times between attempts to re-execute a service. Maximum Retries Wait Between Retries Retry Factor Wait until next attempt = = = 3 10000 ms 2 Retry 2 20000 ms Retry 3 40000 ms
Retry 1 10000 ms
With the above settings, if the original attempt to execute the service fails, Trading Networks waits 10000 milliseconds before it makes its first retry attempt. If the first retry attempt fails, Trading Networks determines the next retry wait period by multiplying the last wait value (10000 ms) by the Retry Factor (2). This results in 20000 ms; Trading Networks waits 20000 ms between the first failed retry attempt an the second retry attempt. If the second retry attempt fails, Trading Networks multiplies the last wait value (20000 ms) by the Retry Factor (2). This results in 40000 ms; Trading Networks waits 40000 ms between the second retry attempt and the third retry attempt. Trading Networks keeps track of the progress and status of each service execution task. If the service execution task fails, you can troubleshoot the problem. If you can correct the problem, you can restart the service execution task to have Trading Networks attempt to execute the service again. You can view information about service execution tasks using the Tasks screen of the Trading Networks Console. For more information about managing and tracking service execution tasks, see Chapter 20, Service Execution Tasks.
334
335
Variable in the
serviceOutput
Specify Whether the service executed successfully or unsuccessfully. Your service must provide one of the following values for the reliable execution feature of Trading Networks to operate correctly: Value
success
status
Meaning The service executed successfully. When your service returns this value, Trading Networks updates the status of the service execution task for this service to DONE. Trading Networks does not attempt to execute the service again.
fail
The execution of the service failed. If the maximum retry limit has been met, Trading Networks updates the status of the service execution task for this service to FAILED. If the maximum retry limit has not yet been reached, the status of the service execution task remains PENDING and Trading Networks will attempt to re-execute the service after the wait period elapses.
statusMessage
Optional. A message that contains more information about the outcome of the service. It is recommended that you provide information for statusMessage if the service fails, for example, an error message that explains why the service failed. Optional. The number of milliseconds it took for the service to execute. Specify this value if you want to maintain analytical information about how long it took the service to execute.
transportTime
Trading Networks displays the output information described above on the Task Details screen of the Console. In addition, it also displays other task-related information, such as, the number of times Trading Networks has attempted to retry the service. For instructions on how to view tasks, see information about managing tasks in Chapter 20, Service Execution Tasks. Setting Values for the Input Variables If you create a service that requires input values, in addition to the input values specified in the wm.tn.rec:ProcessingService or wm.tn.rec:ReliableProcessingService specification, you might want to hardcode some of the values. You can do this when you set up the processing rule.
336
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 the service is to takeadd, update, or delete. You can create three separate processing rules that all execute this service. However, you set the input values for the flag different for each processing rule. For the processing rule that is triggered by a document for which you want to add an entry, set the input value of the flag to indicate the service should add an entry. For the processing rule that is triggered by a document for which you want to update an entry, set the input value of the flag to indicate the service should update an entry, and so on. Logic for the Service This service can perform any logic that you want. You might want to perform different processing based on whether Trading Networks encountered errors during previous processing, e.g., whether a document is a duplicate. Trading Networks provides a sample service wm.tn.sample.docError:errorCheck that demonstrates how to detect for the duplicate document errors in a BizDocEnvelope. The sample service wm.tn.sample.docError:errorCheck resides in the WmTNSamples package, and Trading Networks also provides a sample document, matching TN document type, and processing rule in the WmTnSamples/config directory. To run the sample, submit the document to Trading Networks two times. The first time, the document will not be a duplicate. The second time, Trading Networks will flag the document as a duplicate. For more information about creating the service, see the webMethods Developer Users Guide.
337
2 3 4 5
When you use the Alert e-mail action, you specify the recipient that is to receive the e-mail message, the subject line for the e-mail message, and the body (or content) of the e-mail message.
338
Specify The receivers contacts that are to receive the e-mail message. For example, if you want Trading Networks to send the e-mail message to the receiver's technical contact, specify Technical. Trading Networks looks in the receivers profile for the e-mail addresses of all contacts of the type you selected. If the receiver is unknown or if the contact type you specify is not defined in the receivers profile, Trading Networks will be unable to determine an e-mail address. As a result, Trading Networks will be unable to send the e-mail message. In this situation, Trading Networks logs the error to its activity log and continues with the other actions you specified in the processing rule, if any.
webMethods Administrator
No additional information is required. Trading Networks sends the e-mail message to the webMethods administrator. Before you select webMethods Administrator, assure the e-mail address for the webMethods administrator is defined. Do this using the webMethods Administrator. Follow the steps specified in the Prerequisites section above, on page 338. However, in Step 4, in addition to specifying the SMTP server, assure an e-mail address is specified for Internal Email field. If an e-mail address is not specified, specify it. If the webMethods administrator is not defined, Trading Networks will be unable to send the e-mail message. In this situation, Trading Networks logs the error to its activity log and continues with the other actions you specified in the processing rule, if any.
E-mail Address
The e-mail address of the recipient that is to receive the e-mail message. If the e-mail address you specify is not valid, Trading Networks will be unable to send the e-mail message. In this situation, Trading Networks logs the error to its activity log and continues with the other actions you specified in the processing rule, if any.
339
If the TN document type is Purchase Order, the sender's corporation name is Industrial Steel Company, and the organizational unit is Alloys Division, the following shows how the above sample e-mail message body would be rendered:
340
Trading Networks received a Purchase Order document from Industrial Steel Company--Alloys Division. You can view the document at http://wMTN:5555/invoke/wm.tn.doc/view?docId=000233AB907ED1234
When Trading Networks executes the Alert E-mail action, the pipeline contains the information described in Action 1Execute a Service on page 330. In addition, if the processing rule specifies the Execute a service action and the service is executed synchronously, the pipeline also contains any information that the service placed in the pipeline. For details about the output template tags that you can use, see the Dynamic Server Pages and Output Templates Developers Guide manual.
341
Important! Trading Networks uses the receiver that is extracted from the document. If you use the Execute a service action and the executed service updates the receiver identified in the original document, Trading Networks will not deliver the document to the partner that service specified 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. The following lists the prerequisite to using the Deliver Document By action. Prerequisite To use the Deliver Document By action, the TN document type must indicate that Trading Networks is to extract the ReceiverID system attribute from the document. Trading Networks uses the receiver information to determine the partner to which to deliver the document. For more information about Delivery methods in Trading Networks, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide. Delivery information on the partners profile, see Information on the Partners Delivery Method Tab on page 137.
Immediate Delivery
When the Deliver Document By processing action indicates Immediate Delivery, Trading Networks attempts to deliver a document directly to the receiving partner. webMethods provides the following immediate delivery methods: Primary E-mail Primary FTP Primary FTPS Primary HTTP Primary HTTPS Secondary E-mail Secondary FTP Secondary FTPS Secondary HTTP Secondary HTTPS
Each immediate delivery method (Primary HTTP, Secondary HTTP, etc.) that Trading Networks provides is associated with a built-in immediate delivery service that Trading Networks provides. An immediate delivery service is a service that acts on a single document to delivery the document to a single partner. Trading Networks invokes the delivery service to deliver a document to a trading partner. In addition to the above delivery methods, you can create immediate delivery services and register them with Trading Networks to define your own custom immediate delivery methods.
342
For more information about Immediate delivery methods, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide. Immediate delivery services, see What is an Immediate Delivery Service? on page 410. Using Reliable Delivery with Immediate Delivery Method If the pre-processing actions specify that Trading Networks is to save the document content to its database, Trading Networks automatically uses reliable delivery to deliver a document to a partner one or more times based on the settings that you define in the profile for each of your partners. To keep track of the attempts to deliver a document, Trading Networks establishes a delivery task. Note: You can also use reliable delivery by invoking the built-in service, wm.tn.delivery:deliver. The following table lists the reliable delivery settings that you define in the Delivery Method tab of the partners profile. When using reliable delivery with an immediate delivery method, Trading Networks uses these settings to establish the parameters for the delivery task that governs the delivery of the document. Reliable Delivery Setting Delivery Maximum Retries Wait Between Retries
Description The number of times you want Trading Networks to attempt to redeliver a document. The number of milliseconds (ms) you want Trading Networks to wait before making its first attempt to redeliver the document. (Trading Networks uses the Retry Factor along with the Wait Between Retries value to calculate how long to wait for subsequent retry attempts when delivering documents using an immediate delivery method.) The factor you want Trading Networks to use when determining how long to wait before making the second and subsequent attempts to redeliver the document when using an immediate delivery method. Trading Networks calculates the time to wait by multiplying the last wait time by the value you specify for Retry Factor.
Retry Factor
343
For more information about Delivery options, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide. Delivery tasks, see Chapter 19, Delivery Tasks.
Scheduled Delivery
When the Deliver Document By processing action indicates scheduled delivery, Trading Networks batches documents that are then delivered at scheduled times. Trading Networks also creates the delivery task for the document and places the delivery task in the queue specified by the processing rule. The queue specified in the processing rule is a scheduled delivery queue that you have previously defined. Note: The queue is not a queue in the traditional sense. It is a set of rows in the Trading Networks database. Each queued delivery task that is associated with a document is a row in the same table of the Trading Networks database. For scheduled delivery, Trading Networks supports two types of queuespublic queues and private queues. You can select to use a public queue or to use a specific partners private queue. Note: If you select Receivers Queue, Trading Networks looks up a queue in the receivers profile. If the receivers profile does not contain a queued delivery method (i.e., does not define a queue), then Trading Networks will be unable to deliver the document by this method and instead, Trading Networks makes the document pollable (Queue for polling). Once you select a queue for the scheduled delivery method, the next time Trading Networks runs a scheduled delivery service and reads documents from that specified queue, all documents in that queue will be delivered. For more information about Scheduled delivery, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide. Public/Private queues and scheduled delivery, see Scheduled Delivery Queues on page 378. Using Reliable Delivery with Scheduled Delivery Trading Networks automatically uses reliable delivery for a scheduled delivery method. Reliable delivery is a feature of Trading Networks where Trading Networks attempts to deliver a document to a partner one or more times based on settings that you define. To specify how many times Trading Networks attempts to re-deliver a document that is
344
scheduled for delivery, you define reliable delivery settings in the profile for each of your partners. To keep track of the attempts to deliver a document, Trading Networks establishes a delivery task. Note: You can also use reliable delivery by invoking the built-in service, wm.tn.delivery:deliver. When using reliable delivery with a scheduled delivery method, Trading Networks only uses only the following reliable delivery setting that you define in the Delivery Method tab of the partners profile. Reliable Delivery Setting Delivery Maximum Retries Description The number of times you want Trading Networks to attempt to redeliver a document.
Unlike for the immediate delivery method, Trading Networks does not use the Wait Between Retries and Retry Factor settings for reliable delivery with scheduled delivery because the queues delivery schedule dictates how often to retry delivery attempts. For more information about Delivery information on the partners profile, see Information on the Partners Delivery Method Tab on page 137. Scheduled Delivery Queue States on page 390 Scheduled delivery services, see What is a Scheduled Delivery Service? on page 410. Customized delivery services, see Adding and Registering New Delivery Services on page 421. Delivery tasks, see Chapter 19, Delivery Tasks
345
method (i.e., does not define a queue), then Trading Networks makes the document pollable (Queue for polling). When Trading Networks queues the document for polling, it places the document in an internally-defined queue. Trading Networks does not deliver the documents that are in this queue. Instead, Trading Networks waits for a partner to poll for the documents. When a specific partner polls for documents, Trading Networks returns all the documents in the queue for which that partner is the receiver. The receiving partners define the protocol (e.g., HTTP) to use to poll for the document and how frequently to poll for documents. For more information about Delivery options, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide. Queue for polling, see Defining Queue for Polling on page 394.
Preferred Protocol
If you select Receivers Preferred Protocol, Trading Networks looks up the receivers profile and uses the delivery method that is identified as that partners preferred delivery method. This preferred delivery method can be an immediate delivery or queued for polling. In addition to the above delivery methods, you can create customized delivery services and register them with Trading Networks to define your own custom delivery methods. For more information about Partners preferred delivery method, see Information on the Partners Delivery Method Tab on page 137. Customized delivery services, see Adding and Registering New Delivery Services on page 421.
346
347
To define a processing rule 1 2 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Processing Rules. Perform one of the following procedures to add a new processing rule. Method to start a processing rule Add To add a new processing rule in a specific order relative to a selected processing rule. For more information about adding processing rules, see Adding Processing Rules and the Order of Processing Rules on page 313 Procedures 1) 2) Click the row where you want to add the new processing rule. Select Rules following: a b c Add and then one of the
Above Add a new processing rule above the highlighted processing rule. Below Add a new processing rule below the highlighted processing rule. LastAdd a new processing rule to the bottom of the full unfiltered processing rules list. All other processing rules keep their original ordinal numbers.
Note: Make sure you place the Default processing rule in the last position in the filter processing rules list. For more information about the default processing rule, see Setting Up a Default Processing Rule on page 362 3) Trading Networks displays a blank Processing Rule Details screen for you to complete. Click the row containing the processing rule that you want to duplicate.
Duplicate Add a new processing rule that is a duplicate of an existing one. Trading Networks adds the new rule to the bottom of the processing rules list.
1)
348
Method to start a processing rule You can update any or all fields from the duplicated processing rule.
Trading Networks copies the processing rule fields with values from the processing rule that you duplicate.
On the Processing Rule Details screen, specify the name you want to give the processing rule in the Name field. Specify 1-64 characters. There is no restriction to the characters that you can use. If you do not want this processing rule to be enabled, deselect the default Enabled field. Optionally, specify a description for the processing rule in the Description field. Specify 1-255 characters. There is no restriction to the characters that you can use. Click the Criteria tab and fill in the fields to identify documents that should be processed using this rule. A document must meet all the criteria that you specify on both the Criteria and Extended Criteria tabs for Trading Networks to use the processing rule to process the document. For more information, see Processing Rule Criteria on page 317. For this Criteria tab parameter Sender
4 5 6
Specify The sender(s) identified in the documents that you want to process with this rule. Select one of the following: Any to use this rule for documents regardless of the sender. Enterprise to use this rule for documents that identify the local partner (the partner that is the hub of the trading network) as the sender. Trading Networks lists the name of the Enterprise profile in parentheses. Unknown to use this rule for documents for which the sending partner is not known.
349
Specify Selected to use this rule for documents that identify one or more of the specified partner profiles and/or partner profile groups as the sender. To specify a partner profile: a b Click the Select Profile(s)... button.
Select a partner profile from the Partner Selection Dialog. You can select multiple partners using the <Shift> and <Ctrl> keys. For more information about the Select Profile(s)... button, see Selecting a Partner on page 34. Click OK.
To specify a partner profile group: a b Click the Select Profile Group(s)... button.
Select a partner profile group from the Partner Groups Dialog. You can select multiple partner profile groups using the <Shift> and <Ctrl> keys. For more information about the Select Profile Group(s)... button, see Selecting a Partner on page 34. Click OK.
For more information about these processing rules fields, see Sender and Receiver Criteria on page 317. Receiver The receiver(s) identified in the documents that you want to process with this rule. Select one of the following: Any to use this rule for documents regardless of the receiver. Enterprise to use this rule for documents that identify the local partner (the partner that is the hub of the trading network) as the receiver. Trading Networks lists the name of the Enterprise profile in parentheses. Unknown to use this rule for documents for which the receiving partner is not known.
350
Specify Selected to use this rule for documents that identify one or more of the specified partner profiles and/or partner profile groups as the receiver. To specify a partner profile: a b Click the Select Profile(s)... button.
Select a partner profile from the Partner Selection Dialog.You can select multiple partners using the <Shift> and <Ctrl> keys. For more information about the Select Profile(s)... button, see Selecting a Partner on page 34. Click OK.
To specify a partner profile group: a b Click the Select Profile Group(s)... button.
Select a partner profile group from the Partner Groups Dialog. You can select multiple partner profile groups using the <Shift> and <Ctrl> keys. For more information about the Select Profile Group(s)... button, see Selecting a Partner on page 34. Click OK.
For more information about these processing rules fields, see Sender and Receiver Criteria on page 317. Document Type The TN document type(s) of the documents that you want to process with this rule. Select one of the following: Any to use this rule for documents regardless of the TN document type. Unknown to use this rule for documents with unknown TN document types.
351
Specify Selected to use this rule for documents with the specified TN document types. To specify TN document types: a b Click the Select Document Type button.
Select the row containing the TN XML document type or TN flat file document type that you want from the Document Type Selection Dialog. You can select multiple partners using the <Shift> and <Ctrl> keys. For more information about using this button, see Selecting TN Document Types on page 36. Click OK.
For more information about these fields, see Document Type Criterion on page 319 User Status The user status of the documents that you want to process using this rule. Select one of the following: Any to use this rule for documents regardless of the user status. Specified to use this rule for documents with the specified user statuses. Type each user status you want to allow on a separate row in the table. To add a user status to the table, click Add New to add a row; then, type the user status. To remove a user status from the table, delete the row containing the user status by clicking Delete Selected For more information about these fields, see User Status Criterion on page 319. Recognition Errors Whether the documents that you want to process using this rule contain errors. Select one of the following from the list: May have errors to use this rule for documents regardless of whether the document contains errors. Has no errors to use this rule for documents that do not contain errors. Has errors to use this rule for documents that contain errors. For more information about these fields, see Document Recognition Errors Criterion on page 321 .
352
Click the Extended Criteria tab to specify custom attributes that you want Trading Networks to use as criteria for matching processing rules. A document must meet all the criteria that you specify on both the Criteria and Extended Criteria tabs for Trading Networks to use the processing rule to process the document. For each custom attribute that you want to use, specify the following Content Criteria: For this Extended Criteria tab parameter Attribute
Specify The custom attribute that you want Trading Networks to use to select documents. Select an attribute from the list. The operator you want Trading Networks to use with the value you specify. For example, select Equal if you want Trading Networks to match documents that have the exact value you specify for Value. Specify the value you want Trading Networks to use when matching documents to the processing rule. To specify a string, type the characters in the string. Be sure to use the exact combination of upper- and lowercase letters because Trading Networks performs a case-sensitive match. To specify a number, type the numeric value. To specify a date and time, either type in the date and time or click to open a dialog that allows you to select the date from a calendar. (Trading Networks uses the current time.) If you type a date and time, use the format yyyy-mm-dd hh:mm:ss. (Use a 24-hour clock for the hour field, hh.). For example, if you want to specify the date/time August 29, 2001 at 2:30 pm, specify 2001-08-29 14:30:00. You do not need to specify a value if you select is null or is not null for Operator
Operator
Value
Click the Pre-Processing tab and fill in the fields to specify the pre-processing actions you want Trading Networks to perform for documents that meet the criteria specified in this processing rule. By default, Trading Networks checks all pre-processing actions. For more information about pre-processing actions for XML documents, see Specifying Pre-Processing Actions for TN XML Document Type on page 227. For
353
more information about pre-processing actions for flat file documents, see PreProcessing Actions in the TN Flat File Document Type on page 294. For this Pre-Processing tab parameter Verify Digital Signature
Specify Whether you want Trading Networks to verify the digital signatures of documents. Select one of the following: Defer to Document Type to use the Verify setting that is specified in the TN document type for the document. Verify digital signature to always verify digital signatures or digitally sign documents that Trading Networks processes with this processing rule. Do not verify digital signature to never verify digital signatures or digitally sign documents that Trading Networks processes with this processing rule.
Validate Structure
Whether you want Trading Networks to validate the structure of documents. Select one of the following: Defer to Document Type to use the Validate setting that is specified in the TN document type for the document. Validate structure to always validate the structure of the documents that Trading Networks processes with this processing rule. Do not validate structure to never validate the structure of the documents that Trading Networks processes with this processing rule.
Whether you want Trading Networks to determine whether it already received the document. Select one of the following: Defer to Document Type to use the Check for Duplicate Document setting that is specified in the TN document type for the document. Use built-in services to check for duplicate document of XML or flat file documents against a Trading Networks built-in service. If you select Use built-in services to check for duplicate document, select whether you Trading Networks should use the: Document ID only; both the Document ID and sender; the Document ID, sender and receiver; or the Document ID, sender and document type.
354
Specify Use custom services to check for duplicate document against a custom duplicate checking service. To create a new custom duplicate service, click New service .
To select an existing duplicate service, click Find Service to browse the IS namespace to locate the one you want to use. Click the Edit Service button if you want to modify the service. To edit an existing custom duplicate service, click on the Edit Service button. For more information about creating a duplicate checking service, Creating a Duplicate Document Check Service on page 329. Do not check for duplicate document to never check the uniqueness of the documents that Trading Networks processes with this processing rule. Note: There could be performance issues if you choose to use custom services for duplicate checking based on the logic in the service you select. Save Document to Database Whether you want Trading Networks to save a copy of document content to the database. Select one of the following: Defer to Document Type to use the Save Document to Database setting that is specified in the TN document type for the document.
355
Specify Save to always save a copy of the document contents, attributes, and/or activity log information that Trading Networks processes with this processing rule. If you select Save, select whether you want to save the document only if it is unique. Select one of the following: all documentsto save the selected information for all documents regardless of whether they are unique. only unique documentsto save the selected information for documents only if they are unique. Select the information you want to save to the database by specifying the following: Contentto save the content of the document. Attributesto save the custom attributes of the document. Activity Logto save activity log criteria relative to the document. When you select the Save option, Trading Networks displays the above three items (Content, Attributes, and Activity Log) by default. Do not save to never save the document content and attributes of the documents that Trading Networks processes with the processing rule. Note: If you do not select to save the document content and Trading Networks is to use a delivery option that requires document content to be saved (e.g., if you want to deliver a document via a queue), Trading Networks will bypass reliable delivery and invoke the specified delivery service once.
356
Click the Action tab and select one or more of the following processing rule actions. The default for a new processing rule is to have all five actions enabled. To disable a processing rule action, deselect the appropriate checkbox in the Enable column on the left. When you select a processing rule action, Trading Networks displays the corresponding panel for each action on the right side of the screen. Complete your selections for each processing rule action as explained below. Important! If you select more than one action, Trading Networks performs the actions in the order they are listed on the Processing Rules screen. For example, if you select to execute a service, send an alert e-mail message, and deliver the document to the receiver, Trading Networks performs the actions in that specific order. For more information, see Processing Rule Actions on page 329. 1) Execute a service. Specify the service you want Trading Networks to invoke for the document and how you want Trading Networks to invoke the service. Optionally, you can also hardcode input parameters for the service. For more information about the Execute a service processing rule action, seeAction 1Execute a Service on page 330. If you are using large document processing, see Creating Services that Recognize Large Document Handling on page 544. a Perform one of the following to specify the service you want Trading Networks to invoke for the processing action: To specify an existing service, click Find Service select the one you want to use. to browse the services and
To create a new service, click New Service (folder with yellow highlight) to open the Developer to create the service. For more information about creating services, see the webMethods Developer Users Guide. b Specify how to invoke the service: To invoke the service synchronously, select synchronous. To invoke the service asynchronously, select asynchronous. To invoke the service asynchronously and use a service execution task, select service execution task. c To set inputs for the service, click Set Inputs. Trading Networks displays the input parameters for the service. Type in values for the parameters you want to hardcode an input value. After specifying inputs, click OK. If you need to update the service, click Edit Service. Trading Networks opens the Developer from which you can update the service.
357
2)
Alert E-mailCompose an e-mail message to send to a specified contact. Specify the recipient, subject line, and body of the e-mail message in the To, Subject, and Body fields, respectively. For more information about the Alert E-mail processing rule action, see Action 2 Send an Alert E-mail on page 338. For this Alert e-mail field To
Specify... One of the following addressees: webMethods Administrator to send the e-mail to the webMethods administrator. Sender to send the e-mail to a sender contact. Then, select the contact type from the list. Receiver to send the e-mail to a receiver contact. Then, select the contact type from the list. E-mail address to specify a specific address. Then, specify the e-mail address. For more information on these fields, see Recipient of the E-mail Message on page 338.
Subject Body
Type a character string for the subject of your e-mail. There are no limits to the length or the characters you can specify. Type a character string for the body of your e-mail. There are no limits to the length or the characters you can specify. You can include output template tags to create a dynamic message. To use a larger input window to specify the body, click Expand. For more information on this field, see Body of the E-mail Message on page 340.
3)
Change User StatusSpecify the user status you want to associate with the document. In the Change to field, specify a character string containing 1-255 characters. There is no restriction on the characters you can use. For more information about the User Status processing rule action, see Defining a Processing Rule Based on a Saved Document on page 361.
358
4)
Deliver Document BySpecify the delivery method you want to use to deliver the document. For more information about the Deliver Document By processing rule action, see Action 4Deliver the Document to the Receiver on page 341 Select this Deliver Document field Queue for polling
For... Trading Networks queues a document for polling. For more information, see Defining Queue for Polling on page 394. The delivery method that is identified as the receiving partners preferred delivery method. This preferred delivery method can be an immediate delivery or queued for polling. Specify an immediate delivery method from the list. For more information, see Immediate Delivery on page 342.
Immediate Delivery
Scheduled Delivery
Specify the scheduled delivery queue to use from the list. Scheduled Delivery indicates that documents matching the processing rule will not be delivered immediately, but will be queued and delivered later by scheduled delivery. The scheduled delivery queue can be a public or private queue (Receivers queue). Select the public queue from the list of registered public queues. Select Receivers queue to place documents that match this processing rule in the receiving partners selected queue. The next time Trading Networks runs a scheduled delivery service and reads documents from the specified queue, all documents in that queue will be delivered. For more information about queues and scheduled delivery, see Scheduled Delivery on page 344 and Scheduled Delivery Queues on page 378. Important! If you select the Scheduled Delivery processing action, you must use the Save Document to Database preprocessing action. If you do not save the document, Trading Networks maintains no information about this document after it processes the document.
359
5)
Respond With Specify the message you want to return to the caller that sent the document and the content type of the message. For more information about the Respond With processing rule action, see Action 5Respond With a Message on page 346. For this Respond With field Content type
Type The content type of the message in the Content type field. For example, if the message is and XML document, type text/xml. The message in the Message field. Specify a character string. There are no limits to the length or the characters you can specify. You can include output template tags to create a dynamic message. To use a larger input window to specify the message, click Expand.
Message
10 Click OK. Trading Networks closes the Processing Rule Details screen, and saves all changes you have made to processing rules. This includes saving all new rules you added, rules you changed, rules you disabled or enabled, and all changes you made to the order of the rules.
360
How Trading Networks Defines the Information on the Tab Trading Networks sets the processing rule criteria as follows: Sender criterionSet to the sender that is associated with the document; that is, either the sender identified within a document or unknown. Receiver criterionSet to the receiver that is associated with the document; that is, either the receiver identified within a document or unknown. Document type criterionSet to the TN document type that was used for the document or unknown if it the document did not match a TN document type. User status criterionSet to the value of the user status that is associated with the document, if any.
Trading Networks does not set any extended criteria. Trading Networks sets the pre-processing actions as follows: Verify digital signatureSet to always verify the digital signature of the document. Validate structureSet to always validate the structure of the document. Check for duplicate documentSet to use the setting in the TN document type for the duplicate check pre-processing action. Save document to databaseSet to always save a copy of the document content, attribute, and/or activity log information.
Action
You can make any changes to the criteria, extended criteria, pre-processing actions, or processing actions.
361
To define a processing rule based on a saved document 1 2 3 4 5 Use the Transaction Analysis screen to display the sample document that you want to use. Select View Transaction Analysis. Click the row containing the document that you want to view. Select Transactions Create Processing Rule.
To change the criteria, select the Criteria tab; then, update the settings as you want. For information about how to update the settings, see step 6 on page 349. To change the custom attribute (extended) criteria, select the Extended Criteria tab; then, update the settings as you want. For information about how to update the settings, see step 7 on page 353. To change the pre-processing actions, select the Pre-Processing tab; then, update the settings as you want. For information about how to update the settings, see step 8 on page 353. To change the processing actions, select the Action tab; then, update the settings as you want. For information about how to update the settings, see step 9 on page 357. Click OK. Trading Networks saves the processing rule and closes the Processing Rule Details screen.
7 8
Note: Trading Networks saves the new rule at the top of the list of processing rules. For instructions on how to move the processing rule to another position in the list, see Ordering the Processing Rules on page 363.
362
Use the following procedure to update and set up your default processing rule. To update the default processing rule 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Processing Rules.
Double-click on the row for the default processing rule that is named Default rule. The default processing rule is listed last (on the bottom of the full unfiltered list). To update the pre-processing actions, click the Pre-Processing tab. Then, update the pre-processing actions. For information about what you can specify, see step 8 on page 353. To update the processing actions, click the Action tab. Then, update the processing actions. For information about what you can specify, see step 9 on page 357.
Note: If you do update the Default rule, make sure that it remains last in the full, unfiltered processing list. 6 Click OK. Trading Networks closes the Processing Rule Details screen and saves the changes to the processing rule.
363
Use the following procedure to order processing rules. To order processing rules 1 2 3 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Processing Rules.
To move a processing rule, click the rule you wish to move. To move more than one contiguous block of rules at a time, you can highlight multiple processing rules using the <Shift> key.
Note: You can only move and reorder processing rules if their ordinals are contiguous. 4 Click Rules Move Select to select the processing rule (s) you want to move.
Note: If you reorder processing rules, there is no undo function that will return the processing rules to their original order. 5 6 Highlight the processing rule you want to move your selected rule in relation to. Once you have highlighted the location, perform the following to move your selected processing rule: Click this... Rules Rules Move Move Above Below Inserts the selected processing rule... Above the highlighted rule Below the highlighted rule
Trading Networks reassigns the ordinal numbers for all affected processing rules. Repeat this step until the processing rules are listed in the order you want. You can order the processing rules in any direction. The default processing rule should always be listed last. For more information, see Processing Rules Order on page 313. If you want, you can test the order of your processing rules to assure you have them in the correct order. For more information, see Testing the Order of Processing Rules below.
364
Select Rules
From the Select Input Document dialog box, select the sample document you want to use for the test and click Open. Trading Networks informs you of the number of matches for which the sample document information meets the processing rule criteria, and highlights the corresponding processing rules.
365
366
Note: Trading Networks displays the last query run on the Trading Networks Console.
3 4
Perform one of the following to view processing rule information from the table: To see summary information for a processing rule: a With your cursor, single click on the selected row. Trading Networks displays corresponding summary information about the highlighted processing rule in a summary section below the processing rules table. The summary information contains: the processing rule name, description, and processing rule criteria for the selected processing rule.
367
To see the detailed information for a specific processing rule: a With your cursor, double click on the row containing the processing row you want more detailed information about. Trading Networks displays the Processing Rule Details screen for the selected processing rule. On the Processing Rule Details screen, you can: 1 2 View the information. For more information about the tabs and fields on this screen, see Defining Processing Rules on page 347. Edit the information. For more information on how to change the information on the Processing Rule Details screen, see Updating Processing Rules on page 373.
To change the display format of the processing rules table: a b 5 Select Show Query and Detail View tabs. on the toolbar. Trading Networks displays the Basic Criteria
Go to step 7 to change the table format using the Detail View tab.
If you cannot find the processing rule you are looking for, you can perform a more detailed query to refine the results on the processing rules table. Select Show Query on the toolbar. Trading Networks displays the Basic Criteria and Detail View tabs.
To narrow down the list of processing rules from which to choose, select the Basic Criteria tab and fill in the fields to specify basic search criteria. To indicate that you want to use one or more of the basic search criteria, select the checkbox next to each criterion you want to use. Then fill out the corresponding information as follows.
368
Select the checkbox and specify The sender of the processing rule you want to view. Optionally, select Perform Implicit Matching to implicitly expand the query results to reflect group membership of your selected sender(s). For example, if you select a sender group (Group A), the query returns all rules where any of the following conditions are met: The sender is Group A The sender is a member of Group A The rule has a sender criteria of Any (that is, where the processing rule sender was set to Any in the Criteria tab). For more information about the Criteria tab, see step 6 on page 349. If you do not select this option, the query returns only those rules where the sender is Group A. Similarly, if you select an individual sender (Partner 1), the query returns all rules where any of the following conditions are met: The sender is Partner 1 The sender is any group that Partner 1 is a member of The rule has a sender criteria of Any If you do not select this option, the query returns only those rules where the sender is Partner 1. To specify one or more senders, click the Select Profile(s)... button or the Select Profile Group(s)... button. Select the individual sender(s) and/or sender group(s) from the Partner Selection Dialogue or the Profile Group(s) Dialog. For more information about the Select Profile(s)... or the Select Profile Group(s) button, see Selecting a Partner on page 34.
369
Select the checkbox and specify The receiver of the processing rule you want to view. Optionally, select Perform Implicit Matching to implicitly expand the query results to reflect group membership of your selected receiver(s). This option works the same way it works for sender queries. To specify one or more receivers, click the Select Profile(s)... button or the Select Profile Group(s)... button. Select the individual receiver(s) and/or receiver group(s) from the Partner Selection Dialogue or the Profile Group(s) Dialog. For more information about the Select Profile(s)... or the Select Profile Group(s) button, see Selecting a Partner on page 34.
Document Type
The TN document type of the documents processed with this processing rule. Select Includes rules where document type is Any to search for processing rules that were used for any documents regardless of the TN document type. That is, where the processing rule TN document type was set to Any in the Criteria tab. For more information about the Criteria tab, see step 6 on page 349 To specify a TN document type, click the Select Document Type button. Select the TN document type from the Document Type Selection Dialog.
User Status
The user status of the documents that processed by this processing rule. To specify a user status for the query, click Add New type the user status in the newly added row. ; then,
To remove a user status from a query, select the row containing the user status you want to delete and then click Delete Selected Rule Name .
The name of the processing rule. Type in a character string contained in the processing rule name.
370
Select the checkbox and specify You can use the pattern-matching characters % in the processing rule name search. For example Type this:
%str str% str%str
To find: Any string beginning with "str" Any string ending with "str" Any string beginning and ending with "str"
The time Trading Networks last updated the processing rule either when the processing rule was created or last updated. Select an entry from the list. To specify a date range, select Custom from the list. Then specify dates in the Beginning and Ending fields. You can type in a date value, or click Select Date to open a dialog that allows you to select the date from a calendar.
Ordinals
The ordinal for the processing rule that you are searching for. The ordinal corresponds to the order placement where Trading Networks has assigned the rule you are searching for in the processing rules list. You can specify an ordinal range by using the From and To fields to indicate the beginning and end of the range.
Select the Detail View tab and fill in the fields to specify how Trading Networks displays information in the processing rules table. a In the Display Column panel, check each field that you want Trading Networks to include in the Detail view. Trading Networks displays a column for each checked field. Trading Networks always displays the Ordinals and Rule Name columns. Trading Networks displays the Senders and Receivers columns by default. In the Search Order panel, select the search order that you want Trading Networks to follow when performing a query. To change the search order, use the up and down buttons.
371
Select this...
To do this... Move a search criteria up, select the criteria you want to have precedence from the Search Order list and then click precedence from the Search Order list and then click .
Move a search criteria down, select the criteria you want to have .
For more information about the Detail view, see Detail View of Processing Rules on page 367. 8 9 Select Run Query on the toolbar. Trading Networks displays the processing rules table with the results from the refined query. Select the processing rule you want from the Processing Rules table on the bottom portion of the screen. For more information about the tabs and fields on this screen, see Defining Processing Rules on page 347. For more information on how to change the information on the Processing Rule Details screen, see Updating Processing Rules on page 373. For more information about queries in Trading Networks, see About Viewing and Querying Documents on page 428.
372
Click the row containing the processing rule you want to update. Select Rules Edit.
To update the name, type a new name in the Name field. You can specify 1-64 characters. There is no restriction to the characters that you can use. To update the description, type a new description in the Description field. You can specify 1-256 characters. There is no restriction to the characters that you can use. To update the criteria for the processing rule, click the Criteria tab. Then, update the fields. For information about what you can specify, see step 6 on page 349. To update the extended criteria for the processing rule, click the Extended Criteria tab. Then, update the fields. For information about how to update the settings, see step 7 on page 353. To update the pre-processing actions, click the Pre-Processing tab. Then, update the pre-processing actions. For information about how to update the settings, see step 8 on page 353.
10 To update the processing actions, click the Action tab. Then, update the processing actions. For information about how to update the settings, see step 9 on page 357. 11 Click OK. Trading Networks closes the Processing Rule Details screen and saves the changes to the processing rule.
373
To disable a processing rule 1 2 3 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Processing Rules.
Click the row containing the processing rule(s) you want to disable. You can select multiple processing rules using the <Shift> (for a contiguous block of rules) and <Ctrl> (for more than one non-contiguous processing rule) keys. Select Rules Disable. Trading Networks places No in the Enabled column to indicate that the processing rule is disabled.
Click the row containing the processing rule(s) you want to enable. You can select multiple processing rules using the <Shift> (for a contiguous block of rules) and <Ctrl> (for more than one non-contiguous processing rule) keys. Select Rules Enable. Trading Networks places Yes in the Enabled column to indicate that the processing rule is enabled.
374
If you want to delete a processing rule that is currently disabled, make sure that disabled processing rules are visible on the processing rules table. To do so: a b c Select Show Query and Detail View tabs. on the toolbar. Trading Networks displays the Basic Criteria
Select the Detail View tab. In the Display Column panel, check the Enabled field so that Trading Networks includes it in the Detail view. Select Run Query on the toolbar. Trading Networks updates the processing rules table. Now you can see the disabled processing rules (No in the Enabled column).
Click the row containing the processing rule(s) you want to delete. You can select multiple processing rules using the <Shift> (for a contiguous block of rules) and <Ctrl> (for more than one non-contiguous processing rule) keys.
Important! This is an actual delete of the processing rule. The processing rule is not deactivated; it is removed from the Trading Networks system. You will not be able to recover it later. 5 Select Rules Delete. Trading Networks confirms that you want to delete the selected processing rule(s). Click Yes to delete.
375
376
CHAPTER
15
377
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
What is a Queue?
A queue in Trading Networks is a grouping of outbound documents that can be delivered in batch. Note that a Trading Networks queue is not a queue in the traditional sense. Instead, it is a set of rows in the Trading Networks database. When documents are placed in a queue, Trading Networks does not deliver them immediately, rather, Trading Networks delivers them based on a schedule defined for the queue. Trading Networks supports queues for two different purposes scheduled delivery and polling. For more information about delivery methods and queues, see Chapter 6, "Delivering Documents to Partners" in the webMethods Trading Networks Concepts Guide.
378
As a result, when Trading Networks schedules a document for delivery, Trading Networks also creates a delivery task that maintains information about the delivery of the document. It is this delivery task that Trading Networks places in the queue. When you define a queue for scheduled delivery, you associate a delivery schedule and scheduled delivery service with the queue. The delivery schedule defines the times that Trading Networks is to invoke the scheduled delivery service to deliver the batched documents that correspond to the delivery tasks that are in the queue. For more information about Scheduled delivery services, see What is a Scheduled Delivery Service? on page 410. Delivery tasks, see Chapter 19, Delivery Tasks. Trading Networks supports two types of scheduled delivery queuespublic and private: Type of queue Public QueuesA queue that can contain delivery tasks that correspond to documents that are aimed for multiple receiving partners. For more information, see... You configure public queues using the Tools menu of the Console. For more information about how to configure public queues, see below, Defining Public Queues on page 380. You define private queues in the partners profile on the Delivery Method tab. The queue will only contain delivery tasks that correspond to documents that are to be delivered to the partner defined by the profile. For more information, see Information on the Partners Delivery Method Tab on page 137 and refer to step 7 on page 155.
Private QueuesA queue that contains only delivery tasks that correspond to documents aimed for a specific receiving partner.
379
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
Perform one of the following procedures to add a new public queue or to edit or duplicate an existing one. Method to select queue New The public queue fields are empty. Edit Edit an existing public queues fields. Procedures Click Add New 1 to add a new public queue.
Select the public query for which you want to update and click to select. Click Edit queue. to edit the selected public
2 Copy Use this function to rapidly create queues and schedules with roughly the same values. The public queue fields are filled with values from the public queue that you duplicate, and you can update any or all fields from the duplicated public queue. 1
Select the public query for which you want to update and click to select. Click Copy Selected public queue fields. to copy the selected
380
Select the Settings tab. Specify the following parameters to add or edit a public queue to Trading Networks: For this Public Queues Settings parameter Queue Name
Specify The name you want the public queue to have. Public queues that you define here are the ones in your partners profile. These public queue names appear on the Delivery Method tab of your partners profile. You can specify a string of up to 225 characters and you can specify any alphanumeric character.
Delivery Service
Select a scheduled delivery service that will deliver documents from the queue. A scheduled delivery service acts on multiple documents to deliver those documents to one or more partners. Out-of-the-box, Trading Networks provides a single scheduled delivery service, Batch FTP (wm.tn.transport:batchFtp service), which uses FTP to deliver documents to a single destination. Select the delivery service from Batch FTP or any custom created scheduled delivery services, if they exist. If you created a custom delivery service and registered them with Trading Networks, then you can associate your custom scheduled delivery services with the queues that you define. For more information about scheduled delivery services, see What is a Scheduled Delivery Service? on page 410. For more information about custom delivery services, see Adding and Registering New Delivery Services on page 421.
Set Inputs
Click the Set Inputs button to set the inputs for the delivery service you selected. If you selected Batch FTP for your delivery service, specify the required inputs (host, transfermode, and transfertype) and then click OK to set the inputs. See the description of the wm.tn.transport:batchFtp service in the webMethods Trading Networks Built-in Services Reference for a description of the inputs into this service.
381
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
Specify Set the state of the public queue. The state of a scheduled delivery queue determines: 1) whether Trading Networks can add delivery tasks to the queue and 2) whether Trading Networks can deliver documents associated with the delivery tasks in the public queue. Select from the following queue states: Enable Queue Enable a queue when you want Trading Networks to be able to both add delivery tasks into a queue and invoke the scheduled delivery service that is associated with the queue to deliver the documents that correspond to the delivery tasks. Disable Queue Disable a queue when you want Trading Networks to neither add additional delivery tasks into a queue nor act on the delivery tasks in the queue. All delivery tasks that are in the queue when you disable it remain in the queue. If you enable or drain the queue, Trading Networks will once again invoke the scheduled delivery service that is associated with the queue to deliver the documents that correspond to those delivery tasks. There are two reasons you might wish to disable a queue. 1) If the delivery service is defective and you need to debug and fix it, or 2) if a processing rule has been placed on the wrong queue and you need to change the rule and/or reassign some tasks to another queue.
382
Specify
Drain Queue Drain a queue when you do not want Trading Networks to add additional delivery tasks into a queue, but you do want Trading Networks to continue to invoke the scheduled delivery service that is associated with the queue to deliver the documents that correspond to the delivery tasks. Drain a queue if you want to empty it, so you can delete it. You can also drain a queue to perform maintenance changes (e.g., change queue settings, update delivery services).
Suspend Delivery Suspend a queue when you want Trading Networks to be able to add additional delivery tasks into a queue, but you do not want Trading Networks to invoke the scheduled delivery service that is associated with the queue to deliver the documents that correspond to the delivery tasks. You might suspend a queue if a trading partner indicates that it is temporarily unable to accept documents. 4 Select the Schedule tab to schedule when Trading Networks is to invoke the scheduled delivery service to deliver the documents in the public queue. Select the scheduling option you would like for the delivery service. See Delivery Schedule for Queues on page 384 for more information about the Schedule tab parameters to specify. If you use the webMethods Administrator to view scheduled user tasks, you will see a scheduled invocation of the wm.tn.queuing:deliverBatch service for each delivery queue you have saved. The wm.tn.queuing:deliverBatch service handles exceptions and logging, and invokes the scheduled delivery service you specified for the delivery queue. Important! Do not attempt to use the webMethods Administrator to change the schedule for a delivery service! If you do so, the data passed to the service will be lost and the service will be unable to deliver documents. Always use the Trading Networks Console to change the delivery schedule and other queue settings. 5 Click Save.
383
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
Use the following procedure to delete public queues from Trading Networks. To delete public queues 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select Tools Registry Public Queues.
Select the public query for which you want to update and click to select. Click Delete to delete the selected public queue.
384
385
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
Start Time
End Date
End Time
Run Mask Settings Months Days Weekdays Hours Minutes The months (January through December) that you want Trading Networks to execute the delivery service. The days of the months (1 through 31) that you want Trading Networks to execute the delivery service. The days of the week (Sunday through Saturday) that you want Trading Networks to execute the delivery service. The hours of the days that you want Trading Networks to execute the delivery service. The minute of the hour that you want Trading Networks to execute the delivery service.
Trading Networks combines all your selections to determine when to execute the scheduled delivery service. If you do not select an item in one of the above settings, Trading Networks assumes all items for the selection. For example, if you do not specify a
386
month, Trading Networks assumes you want the service to execute every month. If you do not select any items for any of the settings, Trading Networks assumes you want the service to execute every month, every day, all week days, every hour, and every minute; in other words, Trading Networks executes the scheduled delivery service every minute from the time you add the task. If you use the Start Date and End Date to specify a date range, Trading Networks executes the delivery service at the scheduled times until the end of the time period. All delivery tasks added to the queue after the End Date are stuck in the queue. Trading Networks will not act on the queued tasks again unless you update the queue schedule. If you do not specify an End Date to specify a date range, Trading Networks executes the delivery service for an indefinite period of time. The following shows examples of how to use the Complex Interval settings: If you want the delivery service to execute... The 28th day of every month at midnight for the year 2002.
For this setting: Start Date Start Time End Date End Time Months Days Weekdays Hours Minutes
Specify... 2002/01/01 00:10:00 2002/12/31 00:00:00 (or leave blank) no selection 28 no selection 0 0 leave blank leave blank leave blank leave blank January, February, March no selection Monday 14 30
Every Monday in the months of January, February, and March at 2:30 p.m. for an indefinite period of time.
Start Date Start Time End Date End Time Months Days Weekdays Hours Minutes
387
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
If you want the delivery service to execute... Every hour of every Tuesday of the month of June, 2002.
For this setting: Start Date Start Time End Date End Time Months Days Weekdays Hours Minutes
Specify... 2002/06/01 00:00:00 (or leave blank) 2002/06/30 23:59:59 June no selection Tuesday no selection 0 2002/06/01 00:00:00 (or leave blank) 2002/06/30 23:59:59 June no selection Tuesday no selection no selection
Every minute of every hour of every Tuesday of the month of June, 2002.
Start Date Start Time End Date End Time Months Days Weekdays Hours Minutes
To schedule the execution of a delivery service for a public queue 1 2 3 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select Tools Registry Public Queues.
Select a public queue for scheduling a delivery. You can add a new queue, or edit or copy an existing one as follows: To add a new public queue, click Add New . .
To edit an existing public queue, select the queue and click Edit
388
To copy an existing public queue, select the queue and click Copy Selected The fields of the copied queue are filled with values from the queue that you copied. You can update any or all fields from the copied public queue. 4 5 Select the Schedule tab.
Select Run Once, Simple Interval, or Complex Interval to indicate when and how often you want Trading Networks to execute the delivery service for the specified queue. If you select... Run Once Specify... The date on which you want Trading Networks to execute the service in the Date field. Use the format yyyy/mm/dd to specify the date. For example, if you want Trading Networks to execute the service on March 11, 2002, specify 2002/03/11. The time at which you want Trading Networks to execute the service in the Time field. Use the format hh:mm:ss to specify the time (using a 24-hour clock). For example, if you want Trading Networks to execute the service at 1:00:00 a.m., specify 1:00:00; if you want Trading Networks to execute the service at 1:00:00 p.m., specify 13:00:00. If you leave this field blank, Trading Networks uses 00:00:00 (midnight). For more information about using this option, see Using the Run Once Option on page 385. Simple Interval The number of seconds that you want Trading Networks to wait between executions of the service in the Interval field. If you want Trading Networks to wait for a delivery service to complete execution before it starts the next scheduled execution of the service, check Do not overlap task. For example, suppose your delivery service is scheduled to run every minute, but sometimes takes longer than that to complete. By default, Trading Networks will start the next execution even though the previous one has not yet completed. If you check the Do not overlap task box, Trading Networks will wait for the service to complete before beginning its next scheduled execution. When you add or update a simple interval schedule for a queue that is Enabled or Draining, Trading Networks invokes the service immediately. Subsequent invokes are governed by the interval. For more information about using this option, see Using the Simple Interval Option on page 385.
389
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
Specify... When you want the first execution of this service by specifying a beginning date and time in the Start Date and Start Time fields. For Start Date, use the format yyyy/mm/dd. For Start Time, use the format hh:mm:ss (using a 24-hour clock). For example, if you want the time period in which to run this service to begin be on May 3, 2002 at 1:00:00 p.m., specify 2002/05/03 for Start Date and 13:00:00 for Start Time. If you omit the Start Date, the first execution occurs on the first date as indicated by the Run Mask parameters. If you omit Start Time, Trading Networks uses 00:00:00 (midnight). When you want the last execution of this service to run by specifying an ending date and time in the End Date and End Time fields. For End Date, use the format yyyy/mm/dd. For the End Time, use the format hh:mm:ss (using a 24-hour clock). For example, if you want the time period in which to run this service to end on June 4, 2002 at 2:00:00 a.m., specify 2002/06/04 for End Date and 02:00:00 for End Time. Omitting End Date indicates that you want this service to execute for an indefinite period of time. If you omit End Time, Trading Networks uses 00:00:00 (midnight). Use the Run Mask parameters to indicate when you want Trading Networks to execute the service. For examples of setting these parameters, see Using the Complex Interval Option on page 386.
Click Save.
Disabled
390
State Drained
Meaning Trading Networks cannot place delivery tasks into the queue, but Trading Networks can invoke the scheduled delivery service to deliver the documents that are associated with the delivery tasks in the queue. Trading Networks can place delivery tasks into the queue, but Trading Networks cannot deliver documents that are associated with delivery tasks that are in the queue.
Suspended
The procedure you use to enable, disable, drain, or suspend a queue depends on whether the queue is a public queue or a private queue.
Disabled
391
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
Meaning Drained Drain a queue when you do not want Trading Networks to add additional delivery tasks into a queue, but you do want Trading Networks to continue to invoke the scheduled delivery service that is associated with the queue to deliver the documents that correspond to the delivery tasks. Drain a queue if you want to empty it, so you can delete it. You can also drain a queue to perform maintenance changes (e.g., change queue settings, update delivery services). When the Deliver Document By processing action of a processing rule specifies to use a queue that is drained, the delivery fails because Trading Networks cannot place the delivery task in the queue. In this situation, Trading Networks sets the delivery task status to FAILED and logs a message to the activity log. Suspended Suspend a queue when you want Trading Networks to be able to add additional delivery tasks into a queue, but you do not want Trading Networks to invoke the scheduled delivery service that is associated with the queue to deliver the documents that correspond to the delivery tasks. You might suspend a queue if a trading partner indicates that it is temporarily unable to accept documents. All delivery tasks that are in the queue when you suspend it remain in the queue. If you enable or drain the queue, Trading Networks will once again invoke the scheduled delivery service that is associated with the queue to deliver the documents that correspond to those delivery tasks.
In the Public Queues screen, select the queue that you want to change from the Queue Name list on the left side of the screen. Click Edit Selected .
392
For Queue State, select the queue state you want: Enable Queue, Disable Queue, Drain Queue, or Suspend Delivery. 6 Click Save.
Note: Trading Networks displays the last query run on the Trading Networks Console. 4 Perform one of the following to identify partner with which the private queue is associated: To select from all partners: Select a partner from the Profiles table on the bottom portion of the screen. To narrow down the list of partners from which to choose: Perform a profile search. For more information, see Finding and Viewing Profiles on page 168. 5 6 7 8 9 Select the Delivery Method tab of the partner profile. Click Edit Destination to update the New Protocol sub-tab.
Next to the Use Private Queue option, click the Edit button. Select the Settings tab. For Queue State, select the queue state you want: Enable Queue, Disable Queue, Drain Queue, or Suspend Delivery.
393
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
To set up Queue for polling 1 Define the polling method and polling frequency. The polling method specifies how your Trading Networks system accesses a partners system to request queued documents. The polling frequency specifies how often your Trading Networks system polls one of your partners system for documents. These settings are defined on a per partner basis. You specify them on the Delivery Method tab of the partners profile. For more information, see Information on the Partners Delivery Method Tab on page 137. 2 Optionally, indicate that the preferred way you want to receive documents is through polling by setting the Preferred Protocol in your profile to Queue for polling. For more information, see Information on Your Delivery Method Tab on page 111.
394
Note: Note: If the watt.server.partner property is missing or set incorrectly, the partner server will be unable to request the documents queued for it on the hub server. If the property exists but is set incorrectly, the partner server will throw an exception when attempting to request queued documents. If the watt.server.partner property is missing or incorrect, add or update the property. To do so, you need to first shut down the Integration Server running webMethods for Partners. After you add or update the property, restart the Integration Server.
395
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
Click the Basic Criteria tab and fill in the fields to specify basic search criteria. To specify that you want to view documents that are queued for delivery, select the Processing Status check box, and select QUEUED from the list. Fill in any other basic criteria to refine your search as you want. For more information on what you can specify see step 4 on page 442.
5 6
To use custom search criteria to refine your search, click the Custom Criteria tab and fill in the fields. For more information on what you can specify see step 5 on page 445. To specify the columns you want displayed in the detail view, click the Detail View tab and fill in the fields. For more information on how to use this tab see step 6 on page 445.
396
Select Run Query on the toolbar. Trading Networks updates the Transactions table in the bottom panel.
Click the Basic Criteria tab and fill in the fields to specify basic search criteria. To specify that you want to view pollable documents, select the Processing Status check box, and select POLLABLE from the list. Fill in any other basic criteria to refine your search as you want. For more information on what you can specify see step 4 on page 442.
5 6
To use custom search criteria to refine your search, click the Custom Criteria tab and fill in the fields. For more information on what you can specify see step 5 on page 445. To specify the columns you want displayed in the detail view, click the Detail View tab and fill in the fields. For more information on how to use this tab see step 6 on page 445. Select Run Query on the toolbar. Trading Networks updates the Transactions table in the bottom panel.
397
CH A P T E R 1 5 Q ue u es in Tr ad in g N et w o r ks
398
CHAPTER
16
399
C H A P T E R 1 6 Q u e r i e s i n Tr a d i n g N e t w o r k s
Queries List
400
The following table lists the query functions that correspond with the Trading Networks Console toolbar, along with a description of each function. This query toolbar item...
Represents... Show Query. Displays the query panels for a screen. Hide Query. Removes the query panels from a screen. Run Query. Runs the query using the settings you specified on the query panels.
[Queries List]
Queries List. Drop-down list of all saved queries. Trading Networks displays the last query run on the Console Save Query. Updates the current query by saving the changes you have made to the query criteria Save Query As. Creates a new saved query by saving the query criteria that you specified. Revert to Saved Query. Reverts the query information and resets it to the saved query settings in the database. Delete Query. Deletes the currently selected query.
Trading Networks lists all of the saved queries in the Queries List on the toolbar.
401
C H A P T E R 1 6 Q u e r i e s i n Tr a d i n g N e t w o r k s
Display area showing only the query results table (e.g,. Profiles table)
Use the following buttons on the very left of the toolbar to display the query tabs and panels. Can you see query panels? No Yes Click this button... Show Query Hide Query To perform this action... Display the query panels. Remove/Hide the query panels.
402
So, to view the above Trading Partners screen with the query tabs, click Show Query the toolbar.
Trading Partners screen displayed with query tabs
on
... and the query results table (e.g, Profiles table) below
Using the Query panel of the toolbar, you can perform basic search functions: create and save a query, select and run a query, revert back to the original query, and delete a query.
403
C H A P T E R 1 6 Q u e r i e s i n Tr a d i n g N e t w o r k s
For the Custom Criteria query tab: If it appears on this screen Trading Partners Transaction Analysis Activity Log For more information to fill out this tab, see: Step 4b of About Querying and Viewing Profiles on page 166 Step 5 of Transaction Analysis Custom Search Criteria on page 437 Step 5 of Viewing Entries that Relate to Enterprise or a Partner on page 498
404
For the Detail View query tab: If it appears on this screen Trading Partners Processing Rules Transaction Analysis For more information to fill out this tab, see: Step 4c of About Querying and Viewing Profiles on page 166 Step 7 of Finding and Viewing Processing Rules on page 367 Step 6 of Transaction Analysis Custom Search Criteria on page 437
A query function is available for the TPAs and tasks. For these elements... Agreements (TPAs) Delivery Tasks Service Execution Tasks For more information about the query pane, see: Finding and Viewing TPAs on page 185 Finding and Viewing Delivery Tasks on page 472 Finding and Viewing Service Execution Tasks on page 485
To run the query, select Run Query on the toolbar. Trading Networks displays the query results table in the bottom panel. For more information, see Navigating Through the Results Table below. To save the query, select Save As... on the toolbar.
4 5 6
In the Save as dialog box, type the name you want to give the query in the Query Name field. Click OK. Trading Networks adds the query to the list of saved queries, which is located on the toolbar.
405
C H A P T E R 1 6 Q u e r i e s i n Tr a d i n g N e t w o r k s
To run the query, select Run Query on the toolbar. Trading Networks displays the query results in the results table in the bottom panel.
406
5 6
In the Save as dialog box, type the name you want to give the query in the Query Name field. Click OK. Trading Networks adds the query to the list.
407
C H A P T E R 1 6 Q u e r i e s i n Tr a d i n g N e t w o r k s
408
CHAPTER
17
Delivery Services
What is a Delivery Service? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410 Creating an Immediate Delivery Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .411 Creating a Scheduled Delivery Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413 Adding and Registering New Delivery Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
409
410
have delivery schedules associated with them. Trading Networks invokes the scheduled delivery service at the times dictated by the delivery schedule. Trading Networks places delivery tasks in the queues. When the Deliver Document By processing action indicates to use scheduled delivery (i.e., a queue name or Receivers Queue), Trading Networks creates a delivery task for the document that is to be delivered and places the delivery task into the queue. When the schedule associated with the queue indicates, Trading Networks invokes the scheduled delivery service. The scheduled delivery service retrieves the list of delivery tasks that are in the queue. It is the responsibility of the scheduled delivery service to retrieve the document, attempt to deliver the document, and update the status of the delivery task to indicate whether the delivery was successful or not. Note: The queue is not a queue in the traditional sense. It is a set of rows in the Trading Networks database. Each queued delivery task that is associated with a document is a row in the same table of the Trading Networks database. webMethods provides a single scheduled delivery service, the wm.tn.transport:batchFtp service, which uses FTP to deliver documents to a single destination. This service opens a connection, delivers all the documents, and then closes the connection. If you want to deliver batches of documents in a different way, you can create custom scheduled delivery services and register them with Trading Networks. After you add new scheduled delivery services, you can define your delivery queues to use your custom scheduled delivery services; Trading Networks displays the scheduled delivery services in the lists of services that you can associate with a queue. For more information about queues, see Chapter 15, Queues in Trading Networks.
411
Specify Whether the service executed successfully or unsuccessfully. Your service must provide one of the following values: Value
success fail
Meaning The delivery of the document was successful. The delivery of the document failed.
Optional. A delivery-specific message about the outcome of the delivery. Optional. The number of milliseconds it took for the service to deliver the document. Optional. Return information from the delivery service, for example, response bytes received from an HTTP post.
For information about creating the service, see the webMethods Developer Users Guide. Important! Do not save your immediate delivery service in the WmTN package or any other webMethods package that contains webMethods software. If you do, when you upgrade the webMethods software, your service will be lost. Note: If you are using large document processing, see Creating Services that Recognize Large Document Handling on page 544.
412
413
Description Define any other input variables that your scheduled delivery service requires. Other variables that you need to define typically depend on the transport protocol your service will use to deliver the documents. For example, for a service that uses FTP, an additional input variable would be the directory in which to place the documents that are being delivered. When you define a public or private queue, Trading Networks allows you to set these variables. When Trading Networks invokes your delivery service, it will supply the inputs you specify when you defined the queue. For more information about defining public queues, see Defining Public Queues on page 380.
414
The task that is returned includes the document to be delivered. For more information about the wm.tn.rec:Task IS document type, see the webMethods Trading Networks Built-in Services Reference. For more information about the com.wm.app.tn.delivery.GuaranteedJob object, see the webMethods Trading Networks Java API Reference documentation. Note: The wm.tn.queuing:getQueuedTask service places the timeDequeued variable in the pipeline. Trading Networks uses this variable to calculate the amount of time it takes to transmit the document. Do not update or drop this variable from the pipeline. Typically, your scheduled delivery service should invoke the wm.tn.queuing:getQueuedTask service and process delivery tasks until the queue is empty; that is, until you have processed each of the QUEUED delivery tasks in the queue. When the queue is empty, the wm.tn.queuing:getQueuedTask service returns null for the task variable.
415
Built-in service to use Use one of the built-in services in the pub.client folder or one of 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.
wn.tn.queuing:updateQueuedTask After your scheduled delivery service attempts to deliver the document that is associated with a delivery task, the service must update the task to indicate whether the delivery was successful or not. To indicate the outcome of the delivery, set the following input variables to the wm.tn.queuing:updateQueuedTask service: Variable status Setting If the delivery attempt was successful, set the status variable to success If the delivery attempt was unsuccessful, set the status variable to fail statusMsg If the transport protocol that your scheduled delivery service uses returns a text string message, set statusMsg to the value of the returned text string.
The wm.tn.queuing:updateQueuedTask service uses the returned status to update the delivery task status: If status is success, the service updates the task status to the DONE. If status is fail, the service updates the tasks retry count. If the maximum retry count has not been reached, the service updates the task status to QUEUED, which indicates that the next time the queue schedule invokes your delivery service, this delivery task will be available to retrieve and re-attempt to deliver the document. If the maximum retry count has been reached, the service updates the task status to FAILED. The wm.tn.queuing:updateQueuedTask service also takes care of logging the results of the delivery to the activity log.
416
417
Handling Exceptions
When the queue schedule dictates, the wm.tn.queuing:deliverBatch service is invoked. The wm.tn.queuing:deliverBatch 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 built-in 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
The above flow operation causes the wm.tn.queuing:deliverBatch service to increment the current delivery tasks retry count and log the exception to the activity log. You provide the information that Trading Networks logs to the activity log. To provide this information, be sure you specify meaningful information in: failure-message property of the EXIT flow operation logMsg variable in Pipeline out; map meaningful text to this variable
418
1 2
3 4
5
6 7 8
9 10 11 12
13
419
Flow Operations
1
Description The INVOKE flow operation invokes the wm.tn.queuing:getQueuedTask service to retrieve the first delivery task from the queue. The service returns the task information in the task variable. If the variable, task, is null, the queue is empty. In this case, map text to the output variable, logMsg, and exit the service. If the queue contains delivery tasks, attempt to log in to the remote FTP server. An input to the wm.tn.transport:batchFtp service is the variable, directory. If this variable was specified, cd to the specified directory. If the cd to the specified directory fails, map a message to the output variable, logMsg, and exit the service. The REPEAT flow operation causes the service to loop over the delivery tasks in the queue. The INVOKE flow operation invokes wm.tn.doc:getDeliveryContent to retrieve the document content to be delivered. Note that this service is for all files regardless of whether Trading Networks considers a document large. For more information, see Appendix C, Large Document Handling. The operations in the SEQUENCE flow operation form the file name to use for the document being delivered. The file name will be internalID.ext, where internalID is the webMethods generated internal ID for the document and ext is the file extension. The first INVOKE flow operation in the sequence invokes the pub.string:concat service to append a period to the internal ID. The BRANCH flow operation determines the file extension. An input to the wm.tn.transport:batchFtp service is the variable, fileExtension. If this variable was not specified, the file extension defaults to xml. Otherwise, the file extension is the value specified for the fileExtension variable.
2 3 4 5 6 7
9 10
This INVOKE flow operation invokes the pub.client.ftp:put service that transmits the file using FTP. If the return code from the pub.string:concat service is 226, the file was transmitted 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.
420
Flow Operations
11
Description The first INVOKE flow operation invokes the wm.tn.queuing:updateQueuedTask service to update the status of the delivery task. One of the inputs to the service is status that was set to either success or fail. The second INVOKE flow operation invokes the wm.tn.queuing:getQueuedTask service to retrieve the next delivery task from the delivery queue.
12
If the wm.tn.queuing:getQueuedTask service returned a delivery task, continue in the REPEAT loop. If the service returned null, the queue is empty; exit the REPEAT loop. After looping through all delivery tasks, log out of the remote FTP server.
13
Note that 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, wm.tn.queuing:deliverBatch. The wm.tn.transport:batchFtp service will be invoked again for the delivery queue, according to the queues schedule.
421
To add a new delivery service, perform the following procedure: To add and register a new delivery service 1 Use the webMethods Developer (or your own Java development environment) to create the delivery service. For immediate delivery services, see Creating an Immediate Delivery Service on page 411 For scheduled delivery services, see Creating a Scheduled Delivery Service on page 413 For large document processing, see Creating Services that Recognize Large Document Handling on page 544. For general information about creating services, see the webMethods Developer Users Guide. When you create the service, you must place it in a package. Do not place it in the WmTN or WmTNWeb packages because it will be overwritten when you upgrade Trading Networks. Note: If you use your own Java development environment, you need to use a jcode utility to put the Java code into the webMethods IS namespace; that is, place it in a package and folder. webMethods provides the jcode utility. For more information, see the webMethods Developer Users Guide. 2 Execute the wm.tn.delivery:registerService built-in service to register your new delivery service. For more information about this service, see the webMethods Trading Networks Built-in Services Reference. One of the input variables of the wm.tn.delivery:registerService built-in service is serviceName. The value you specify for serviceName becomes the name of the delivery method that the Trading Networks Console displays in lists that contain all delivery methods. You can execute the wm.tn.delivery:registerService built-in service from the webMethods Developer to register your new delivery service. To execute the service from the Developer, perform the following steps: a b Select the wm.tn.delivery:registerService service from the Navigation Panel. Select Test Run. The webMethods Developer displays a dialog box for you to enter input:
422
Specify... The name you want to assign to the delivery service, e.g., Message Queue. This is the name that Trading Networks displays in lists in the Trading Networks Console. Note: Do not use the same serviceName as any existing immediate or scheduled delivery service.
host
The host name of the Integration Server. If you leave host blank, Trading Networks uses localhost. If the delivery service resides on the local machine, specify localhost or leave host blank. When you leave host blank or specify localhost, Trading Networks assumes that the delivery service is on the local server.
423
Specify... When you specify any other value for host, Trading Networks assumes the delivery service is on a remote server. This is true even if the value you specify is the host name for the local machine. Important! A host value other than localhost or blank will cause Trading Networks to open an HTTP connection to the host for every document delivered. If the delivery service is on the local machine, this will consume resources unnecessarily. To invoke a delivery service on a remote server, Trading Networks opens an HTTP connection and posts the document to be delivered.
port user
The port number for the Integration Server. If you leave host blank, do not specify a value for port. A user name of a User account that has the authority to execute the wm.tn.delivery:registerService service. Trading Networks ignores user if host is localhost or left blank. The password for the user account identified in user. Trading Networks ignores user if password is localhost or left blank. Note: The password will be securely managed by the Integration Servers Password Manager. For details, see Appendix B, "Security within Trading Networks" in the webMethods Trading Networks Concepts Guide.
password
The fully-qualified folder name of the new delivery service you want to use, e.g., TNCustomize.deliveryServices. The service name of the new delivery service you want to use, e.g., messageQueue. Whether you are adding an immediate or scheduled delivery service. For this type Immediate Scheduled Specify
false (default) true
Click OK.
424
Note: To make changes to the parameters you specified when adding the delivery service (e.g., to specify a different service): First, remove the service using wm.tn.delivery:removeService Then, follow this To add and register a new delivery service procedure again on to re-register the service specifying your changes.
425
426
CHAPTER
18
427
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
428
429
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Descriptions Use to: Select all documents that have a specified sender. You specify a partner in your network (or your own enterprise) as the sender. You can also select all documents that have an unknown sender. How Trading Networks selects the documents if you specify a partner: Trading Networks matches the partner you specify to the sender of the documents it has stored in the database. When Trading Networks saves a document to its database, it also maintains information about the partner that is identified as the sender within the document. Trading Networks determines the sender of a document by using the SenderID system attribute that it extracted from the document. Trading Networks matches the value of the SenderID attribute along with its associated ID type (e.g., DUNS) against ID type information stored in partner profiles on your system. For example, if the value of the SenderID attribute is 123456789 and the ID type is DUNS, Trading Networks looks at profiles to find a profile that specifies the ID type DUNS equal to 123456789. When it finds a matching profile, it associates that partner as the sender of the document. Reasons Trading Networks might not select a document: If Trading Networks did not associate a sender with a document, it cannot select the document in a query even when a document was sent by the sender you specify. The following lists reasons a query might not discover documents that were sent by a specified sender: Trading Networks could not extract the SenderID system attribute from the document because the TN document type definition did not instruct Trading Networks to do so or because the XQL query specified in the TN document type definition was invalid. The TN document type of the document is unknown. (Trading Networks does not extract attributes for unknown TN document types.) The ID type for the SenderID attribute is not specified in the partner profile of the corresponding partner. The document contains the incorrect external ID, for example, the D-U-N-S number in the document is incorrect. How Trading Networks selects the documents if you specify an unknown sender: Trading Networks selects documents for which it did not associate a sender (See Reasons Trading Networks might not select a document above).
430
Descriptions Use to: Select all documents that have a specified receiver. You specify a partner in your network (or your own enterprise) as the receiver. You can also select all documents that have an unknown receiver. How Trading Networks selects the documents if you specify a partner: Trading Networks matches the partner you specify to the receiver of the documents it has stored in the database. When Trading Networks saves a document to its database, it also maintains information about the partner that is identified as the receiver within the document. Trading Networks determines the receiver of a document by using the ReceiverID system attribute that it extracted from the document. Trading Networks matches the value of the ReceiverID attribute along with its associated ID type (e.g., DUNS) against ID type information stored in partner profiles on your system. For example, if the value of the ReceiverID attribute is 123456789 and the ID type is DUNS, Trading Networks looks at profiles to find a profile that specifies the ID type DUNS equal to 123456789. When it finds a matching profile, it associates that partner as the receiver of the document. Reasons Trading Networks might not select a document: If Trading Networks did not associate a receiver with a document, it cannot select the document in a query even when a document has the receiver that you specify. The following lists reasons a query might not discover documents with the specified receiver: Trading Networks could not extract the ReceiverID system attribute from the document because the TN document type definition did not instruct Trading Networks to do so or because the XQL query specified in the TN document type definition was invalid. The TN document type of the document is unknown. (Trading Networks does not extract attributes for unknown TN document types.) The ID type for the receiver attribute is not specified in the partner profile of the corresponding partner. The document contains the incorrect external ID, for example, the D-U-N-S number in the document is incorrect. How Trading Networks selects the documents if you specify an unknown receiver: Trading Networks selects documents for which it did not associate a receiver. (See Reasons Trading Networks might not select a document above).
431
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Descriptions Use to: Select all documents that have a specified TN document type. You specify the name of a TN document type that you have defined for your Trading Networks system. For example, if you have a TN document type that identifies cXML purchase orders, you can search for all documents that Trading Networks determined was the TN document type for cXML purchase orders. You can also search for all documents for which the TN document type is unknown. How Trading Networks selects documents with the specified TN document type: Trading Networks stores the TN document type with each document it stores in its database. It selects all documents with the TN document type that you specify. Reasons Trading Networks might not select a document: You might have documents of the specified TN document type that Trading Networks does not have marked as such in its database. The following lists reasons a query might not discover documents with the specified TN document type: Trading Networks received the document before the TN document type you specified was defined. Because the TN document type did not exist when the document was received, Trading Networks could not identify it as that type of document. The identifying queries specified in the TN document type definition did not identify the document. How Trading Networks selects documents with an unknown TN document type: If Trading Networks was unable to determine a TN document type when it received the document, it saved the document and the TN document type as unknown. Trading Networks selects documents that have an unknown TN document type.
432
Descriptions Use to: Select all documents that have the specified processing status. Select one of the processing statuses from the list. NEW PENDING QUEUED Trading Networks has received the document but has not recognized the document yet. Trading Networks has recognized the document but has not completed processing the document. Trading Networks has received the document and placed it in a scheduled delivery queue. The document has not yet been successfully delivered. Trading Networks has completed document recognition and processing. The following processing actions (if specified in the processing rule) might not be completed yet: Execute a serviceIf Trading Networks invoked the service asynchronously, the service might not have finished execution yet. Deliver documentThe document might not be delivered to the receiving partner yet. DONE W/ ERRORS Trading Networks has completed document recognition and processing. However, errors occurred during document recognition and/or document processing. For example, Trading Networks might have been unable to match the document to a TN document type, or Trading Networks might have been unable to extract a document attribute that was marked as required in a TN document type. The following processing actions (if specified in the processing rule) might not be completed yet: Execute a serviceIf Trading Networks invoked the service asynchronously, the service might not have finished execution yet. Deliver documentThe document might not be delivered to the receiving partner yet. POLLABLE Trading Networks queued the document for the receiving partner. The receiving partner has not picked up the document yet.
DONE
433
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Descriptions ACCEPTED Trading Networks queued the document for the receiving partner. The receiving partner has picked up the document and successfully performed document recognition and routing for the document. Trading Networks queued the document for the receiving partner. The receiving partner has picked up the document and encountered errors when processing the document. Trading Networks encountered a fatal error before completing the processing specified by the processing rule. Trading Networks typically uses this status in one of the following situations: Trading Networks detected an infinite loop in the processing rules. That is, a document triggers a processing rule that creates and submits a new document that triggers the same processing rule again. In this situation, Trading Networks completes the processing for the original document, but sets the processing status of the new document to ABORTED. Trading Networks encountered an internal error. In addition, user-defined services can abort processing by invoking the wm.tn.route:abort built-in service. For more information about this service, see the webMethods Trading Networks Built-in Services Reference. How Trading Networks selects documents: As Trading Networks processes a document, it updates the processing status that is associated with a document. Trading Networks matches the processing status you specify to the processing statuses that are associated with the documents. Note: The processing (system) status is not a system attribute. You should not modify it as it is for Trading Networks internal use only.
ACCEPTED W/ ERRORS
ABORTED
434
Descriptions Use to: Select all documents that have the specified user status. Type the user status in the text box. How Trading Networks selects documents: You can set a user status for a document by extracting the User Status system attribute from the document, using the change user status action in a processing rule, or by using the wm.tn.doc:changeStatus built-in service. Trading Networks matches the user status you specify to the user statuses associated with the documents.
Internal ID
Use to: Select the document that has the specified internal ID. Type the internal ID in the text box. How Trading Networks selects documents: Trading Networks searches the database for a document that has the Trading Networks internal ID you specified. Trading Networks assigns each document an internal ID when it processes the document.
Document ID
Use to: Select all documents that have a specified document ID. How Trading Networks selects documents: Trading Networks matches the document ID you specify to the value of the DocumentID system attribute that it extracted from the document. Reasons Trading Networks might not select a document: If Trading Networks cannot determine the document ID of a document, it cannot select the document in a query even when a document has the document ID that you specify. The following lists reasons a query might not discover documents with the specified document ID: Trading Networks did not extract the DocumentID system attribute from the document. The TN document type of the document is unknown. (Trading Networks.
435
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Descriptions Use to: Select all documents that have a specified group ID. How Trading Networks selects documents: Trading Networks matches the group ID you specify to the value of the GroupID system attribute that it extracted from the document. Reasons Trading Networks might not select a document: If Trading Networks cannot determine the group ID of a document, it cannot select the document in a query even when a document has the group ID that you specify. The following lists reasons a query might not discover documents with the specified group ID: Trading Networks did not extract the GroupID system attribute from the document. The TN document type of the document is unknown. (Trading Networks does not extract attributes for unknown TN document types.)
Conversation ID
Use to: Select all documents that have a specified conversation ID; that is, you can view all documents that Trading Networks has received that are part of the conversation you identify by the conversation ID that you specify. Note: If you are using an OEM version of the Trading Networks, this Trading Networks feature is unavailable. Trading Networks will gray out this selection. How Trading Networks selects documents: Trading Networks matches the conversation ID you specify to the value of the ConversationID system attribute that it extracted from the document. Reasons Trading Networks might not select a document: If Trading Networks cannot determine the conversation ID of a document, it cannot select the document in a query even when a document has the conversation ID that you specify. The following lists reasons a query might not discover documents with the specified conversation ID: Trading Networks did not extract the ConversationID system attribute from the document. The TN document type of the document is unknown. (Trading Networks does not extract attributes for unknown TN document types.)
436
Descriptions Use to: Select all documents that Trading Networks received on a specific day or during a specified time period. (Date Received is the date Trading Networks processed the document.) How Trading Networks selects documents: When Trading Networks receives a document, it records the timestamp when the document is received. If the document is saved to the database, Trading Networks stores the timestamp with the document. Trading Networks selects documents that have timestamps from the day or time period that you specify.
Note: Trading Networks saves information about the document from when the document was first received and processed. This means to find specific transactions, you need to specify information from when the document was first received. For example, if a partners D-U-N-S number has changed since the document was received, you need to specify the original D-U-N-S number.
437
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Operator Is null
Matches when the attribute extracted from a document Has no value. The attribute value has no value if: XQL query (defined in the TN document type) that Trading Networks used to extract the attribute failed. The TN document type does not instruct Trading Networks to extract the attribute. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Matches exactly the value that you specify. Has a value that does not match the value that you specify. Contains the character string that you specify for the value. Has no value. The attribute value has no value if: XQL query (defined in the TN document type) that Trading Networks used to extract the attribute failed. The TN document type does not instruct Trading Networks to extract the attribute. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Includes the value that you specify.
438
Operator Is null
Matches when the attribute extracted from a document Has no value. The attribute value has no value if: XQL query (defined in the TN document type) that Trading Networks used to extract the attribute failed. The TN document type does not instruct Trading Networks to extract the attribute. You do not need to specify a value when you specify this operator.
Is not null Equals Not equals Greater than or equals Less than or equals Less than Greater than NUMBERLIST Is null
Has any value. You do not need to specify a value when you specify this operator. Matches exactly the value that you specify. Has a value that does not match the value that you specify. Has a value that is greater than or equal to the value that you specify. Has a value that is less than or equal to the value that you specify. Has a value that is less than the value that you specify. Has a value that is greater than the value that you specify. Has no value. The attribute value has no value if: XQL query (defined in the TN document type) that Trading Networks used to extract the attribute failed. The TN document type does not instruct Trading Networks to extract the attribute. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Includes the value that you specify.
439
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Operator Is null
Matches when the attribute extracted from a document Has no value. The attribute value has no value if: XQL query (defined in the TN document type) that Trading Networks used to extract the attribute failed. The TN document type does not instruct Trading Networks to extract the attribute. You do not need to specify a value when you specify this operator.
Has any value. You do not need to specify a value when you specify this operator. Matches exactly the value that you specify. Is a date that is before the date that you specify. Is a date that is after the date that you specify. Has no value. The attribute value has no value if: XQL query (defined in the TN document type) that Trading Networks used to extract the attribute failed. The TN document type does not instruct Trading Networks to extract the attribute. You do not need to specify a value when you specify this date list.
Is not null
Has any value. You do not need to specify a value when you specify this date list.
Value, along with the operator, instructs Trading Networks how to select documents based on the value of the attribute stored with documents. Even when a document contains the attribute information that you specify, Trading Networks might not select the document for the following reasons: Trading Networks did not extract the attribute from the document. Trading Networks was not instructed to save the attribute. The TN document type of the document is unknown. (Trading Networks does not extract attributes for unknown TN document types.) You can specify you want Trading Networks to search for documents that have specified information for multiple custom attributes. Trading Networks searches for documents
440
that meet all the criteria you specifyall the custom search criteria and basic search criteria, if specified.
441
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
To view documents in your system 1 2 3 4 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Click Transaction Analysis.
Click the Basic Criteria tab and fill in the fields to specify basic search criteria. To indicate that you want to use one or more of the basic search criteria, select the checkbox next to each criterion you want to use. Then fill out the corresponding information as follows: For this Basic Criteria tab parameter Sender Receiver Type
Specify The name of the partner who sent the documents you want to view. Select the sender from the list. The name of the partner who is the receiver of the documents you want to view. Select the receiver from the list. The name of the TN document type that Trading Networks identified this document as. Select the TN document type from the list. The processing status of the documents that you want to view. Select the status from the list.
Processing Status
442
Specify The user status of the documents that you want to view. Type the user status in the text box. This field is case-sensitive; be sure to use the exact combination of upper- and lowercase letters. You can use the following pattern matching characters: Character % (percent) _ (underscore) Example: _t_p D%t matches: Stop, stop, step but not: sstop, stoop matches: Document, Document Test but not: Documents, Polled Document Matches Zero or more characters A single character
To search for an entry that contains the % or _ characters, enclose the string you specify in quotes. For example, if you want to search for entries with the user status Pending_Approval, specify Pending_Approval. Document ID The document ID that Trading Networks extracted from the document. This field is case-sensitive; be sure to use the exact combination of upper- and lowercase letters. You can use the following pattern matching characters: Character % (percent) _ (underscore) Matches Zero or more characters A single character
To search for an entry that contains the % or _ characters, enclose the string you specify in quotes. For example, if you want to search for entries with the document ID 5f_4%32, specify 5f_4%32.
443
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Specify The group ID that Trading Networks extracted from the document. This field is case-sensitive; be sure to use the exact combination of upper- and lowercase letters. You can use the following pattern matching characters: Character % (percent) _ (underscore) Matches Zero or more characters A single character
To search for an entry that contains the % or _ characters, enclose the string you specify in quotes. For example, if you want to search for entries with the group ID 5f_4%32, specify 5f_4%32. Conversation ID The conversation ID that Trading Networks extracted from the document. This field is case-sensitive; be sure to use the exact combination of upper- and lowercase letters. You can use the following pattern matching characters: Character % (percent) _ (underscore) Matches Zero or more characters A single character
To search for an entry that contains the % or _ characters, enclose the string you specify in quotes. For example, if you want to search for entries with the conversation ID 5f_4%32, specify 5f_4%32. Date Received The date Trading Networks received the document. Select an entry from the list. To specify a date range, select Custom from the list. Then specify dates in the Beginning and Ending fields. You can type in a date value, or click to open a dialog that allows you to select the date from a calendar. If you decide you do not want to use a criterion that you have filled out, uncheck the check box for that criterion. For more information, see Transaction Analysis Basic Search Criteria on page 429.
444
Click the Custom Criteria tab and fill in the fields to specify custom search criteria. For each custom attribute that you want to use to query documents, specify the following: For this Custom Criteria tab parameter Attribute Operator
Specify The custom attribute that you want Trading Networks to use to select documents. Select an attribute from the list. The operator you want Trading Networks to use with the value you specify. For example, select Equals if you want Trading Networks to select all documents that have the exact value you specify for Value. Specify the value you want Trading Networks to use when querying for documents. To specify a string, type the characters in the string. Be sure to use the exact combination of upper- and lowercase letters because Trading Networks performs a casesensitive search. To specify a number, type the numeric value. To specify a date, either type in the date or click to open a dialog that allows you to select the date from a calendar. If you type a date, use the format yyyy-mm-dd hh:mm:ss. (Use a 24-hour clock for the hour field, hh.). For example, if you want to specify the date/time August 29, 2000 at 2:30 pm, specify 2000-08-29 14:30:00. You do not need to specify a value if you select Is null or Is not null for Operator.
Value
For more information, see Transaction Analysis Custom Search Criteria on page 437. 6 Click the Detail View tab and fill in the fields to specify how Trading Networks displays information in the Detail view. In the Standard Attributes section, check each standard attribute field that you want Trading Networks to include in the Detail view. Trading Networks displays a column for each checked field.
445
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
In the Custom Attributes section, select fields that you want Trading Networks to include in the Detail view. Trading Networks displays a column for each field in the Selected Attributes list. To move attributes to the Selected Attributes list: Select this... To do this... To move all custom attributes to the Selected Attributes list To move some but not all attributes to the Selected Attributes list, select one or more fields in the Available Attributes list and then click .
If you decide you do not want Trading Networks to display information for attributes in the Selected Attributes list, move the attributes back to the Available Attributes list: Select this... To do this... To remove some but not all attributes from the Selected Attributes list, select the attributes you do not want included in the display from the Selected Attributes list and then click To remove all custom attributes from the Selected Attributes list. For more information about the Detail View tab, see Detail View of Documents on page 441. For more information about the attributes, see Viewing Document Attributes and Document Content on page 448. In the Sort By section, indicate how you want Trading Networks to sort the information it displays in the Detail view. Select the Attribute on which Trading Networks is to sort from the list. Then, select Ascending or Descending. Note: Trading Networks can only sort attributes if they are selected for the view. Trading Networks cannot view or sort array-type attributes (STRING LIST, NUMBER LIST, or DATETIME LIST) in Transaction Analysis. For more information about changing the table format Trading Networks displays, see Working with Tables on page 33. 7 Click the Run Query button on the toolbar. Trading Networks updates the Transactions table on the bottom portion of the screen with the query results.
446
For more information about the different query functions that you can perform for document queries, see the following table: Query Function Updating the Search Criteria for a Saved Query Saving a New Query Based on an Existing Query Reverting to a Saved Query Deleting Saved Queries See page... page 406 page 407 page 407 page 408
Use the Select... button to select the partner with which you want to associate the document query. Select the partner from the Partner Selection Dialog. For more information about the Select... button, see Selecting a Partner on page 34.
4 5
Select the sender from the Partner Selection Dialog. Select View Transaction Analysis.
447
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
6 7
If the query panels are not displayed, select Transactions the query panels.
To create the document query and view the documents, perform step 4 through step 7 from the procedure Viewing Documents in Your System on page 442.
2 3 4
To view the document attributes, select the Attributes tab. Note: You cannot view array-type attributes (STRING LIST, NUMBER LIST, or DATETIME LIST) in the Detail view of the query panel.
448
To view the document content, select the Content tab. If the document contains multiple parts, at the top of the screen, select the name of the part that you want to view. Note: You can click also the Activity Log tab and Tasks tab to view the activity log entries and tasks that are associated with this document. For more information, see The Activity Log on page 495, Delivery Tasks on page 465, and Service Execution Tasks on page 481.
449
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Select Transactions
450
Perform the following procedure to export the information that Trading Networks displays in the Detail view to a text file. To export the Detail view information to a file 1 2 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Perform the procedures in either Viewing Documents in Your System on page 442 or Viewing Documents Using the Trading Partners Selection on page 447 to list the information you want to export. If you are currently using the Summary view, select Transactions to switch to the Detail view. Select Transactions Export Query Results. View Detail/Summary
3 4 5 6
In the Export Query Results as Comma-Separated Values dialog box, specify the file to which you want to save the exported information from the Detail view. Click Save. Trading Networks displays a dialog specifying the amount of data saved. Click OK.
451
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
452
453
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Note: If you are resubmitting a flat file document, the document gateway service must have already set the $receiveSvc variable within TN_parms (/Tn_parms/$receiveSvc) to the fully-qualified service name of the gateway service. For example, if your service is named gateway1 and is located in the partners.east folder, the fully qualified name of the service would be partners.east:gateway1. For more information about setting up a document gateway service, see Defining Document Gateway Services on page 276 in Chapter 13, TN Flat File Document Types. 4 5 Select Transactions Resubmit.
454
which Trading Networks saved the document content but not the attributes, Trading Networks will not match processing rules that use extended criteria (route based on custom attributes). Instead, Trading Networks will match to another processing rule, for example the default processing rule, and perform the processing actions identified in that matching rule. When to use reprocess: Use reprocess if the document did not trigger the appropriate processing rule when it was originally received. Create or modify the processing rules so the document triggers the correct rule. Then, process the document again. Another situation is if you change the user status of the document and want to advance the document to the next step of processing. Prerequisite for reprocessing: Document content must be saved. Note: If you are using extended criteria in your processing rules, the custom attributes must also be saved. When you reprocess the document, the extended criteria of the processing rule will fail if Trading Networks does not have the custom attributes saved. Trading Networks does not perform document recognition again and therefore does not re-extract the attributes. For more information about the Save Document to Database pre-processing action, see Specifying Pre-Processing Actions for TN XML Document Type on page 227, PreProcessing Actions in the TN Flat File Document Type on page 294, and Pre-Processing Actions on page 327.
455
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
4 5
Select Transactions
Reprocess.
Archiving Documents
When Trading Networks archives a document, it moves document information into archival tables. The archival tables mirror the tables that Trading Networks uses for its normal operation: Corresponding table that Trading Networks uses for normal operation BizDoc BizDocContent BizDocAttribute BizDocArrayAttribute BizDocRelationship DeliveryJob ActivityLog BizDocUniqueKeys EDITracking
Archival Table ARCHIVE_BizDoc ARCHIVE_BizDocContent ARCHIVE_BizDocAttribute ARCHIVE_BizDocArrayAttribute ARCHIVE_BizDocRelationship ARCHIVE_DeliveryJob ARCHIVE_ActivityLog ARCHIVE_BizDocUniqueKeys ARCHIVE_EDITracking
Data in the archival tables is identical to the data in the normal, non-archival Trading Networks tables except that the archival tables do not contain primary keys, foreign keys or unique column constraints. When Trading Networks archives a document, it removes the document information and the references to the document from all non-archival tables in the database. After a
456
document is archived, the archived information is no longer available from the Trading Networks Console or Web Manager. For example, after a document is archived, you will no longer be able to view information about it on the Transaction Analysis, Tasks, or Activity Log screens.
Deleting Documents
When Trading Networks deletes a document, it removes all document information (whether in the archival tables or non-archival tables) from the database. Note: The configurable deletion feature will delete all documents from archival tables; you cannot alter this behavior.
Setting How Many Days to Retain Documents before Archival and Deletion
Set the tn.archive.archiveAfterDays system property to specify how many days Trading Networks should keep a document from the time it is received before archiving it. Set the tn.archive.deleteAfterDays system property to specify how many days Trading Networks should keep a document from the time it was received before deleting it. If you want Trading Networks to only delete documents and not archive them, specify only the tn.archive.deleteAfterDays system property. To set the archival and deletion system properties 1 2 Open the Server Administrator if it is not already open. In the Solutions menu of the navigation panel, click Trading Networks. The Server Administrator opens a new browser window to display Trading Networks-specific pages. In the Settings menu of the navigation panel, click TN Properties. Click Edit TN Properties Settings.
3 4
457
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Add or update the following properties: For this system property tn.archive.archiveAfterDays Specify How many days after Trading Networks receives the document that Trading Networks should archive it. Specify a value from 0 through 730365. If you do not specify this property or if you specify 0 for this property, Trading Networks does not archive documents. Example: If you want Trading Networks to archive documents 30 days after they are received, add the following:
tn.archive.archiveAfterDays=30
tn.archive.deleteAfterDays
How many days after Trading Networks receives the document that Trading Networks should delete it. Specify a value from 0 through 730365. If you do not specify this property or if you specify 0 for this property, Trading Networks does not delete documents. Example: If you want Trading Networks to delete documents 60 days after they are received, add the following:
tn.archive.deleteAfterDays=60
458
Set the Service Information parameters as follows: For this parameter folder:subfolder:service Run As User Persistence Specify wm.tn.archive:archive Administrator That you want the server to maintain this user task in the event that the server is restarted by selecting the Persist after restart checkbox. Whether you want the task to run anywhere in your cluster of servers. For more information on clusters, see the webMethods Integration Server Clustering Guide.
Clustering
In the Schedule Type and Details section of the screen, specify that you want the service to be executed periodically, by selecting either Repeating or Complex. Then, specify the additional parameters to indicate when and how often you want the archival and deletion service to run. If you select Repeating Specify The number of seconds that you want the server to wait between executions of the service in the Interval field. 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 checkbox to indicate that if the current occurrence of the task is not complete when the interval elapses, that you want the server to wait until the current occurrence of the task completes before repeating the task. Note: The service executes for the first time immediately after you schedule the user task. Complex Repeating The date and time of the first execution of the service in the Start Date and Start Time fields and how often after the initial execution that you want the service to run using the parameters in the Run Mask field. Example: To specify that you want the service to execute daily at 10 p.m. starting on March 15, 2001, specify the following parameters:
459
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
If you select
Specify Start Date Start Time End Date End Time Months Days Weekly Days Hours Minutes 2001/3/15 22:00:00 leave blank leave blank no selection no selection no selection 22 0
Note: Note: Omitting the End Date and End Time indicates that the service is to run indefinitely.
Note: For more information about these parameters, see information about scheduling services in the webMethods Integration Server Administrators Guide. 6 Click Save Tasks.
Specify values for the input parameters of the wm.tn.archive:extendedArchive service, which are described in the webMethods Trading Networks Built-in Services Reference. Save the values.
460
Clustering
In the Schedule Type and Details section of the screen, specify that you want the service to be executed periodically, by selecting either Repeating or Complex. Then, specify the additional parameters to indicate when and how often you want the archival and deletion service to run.
461
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
Specify The number of seconds that you want the server to wait between executions of the service in the Interval field. 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 checkbox to indicate that if the current occurrence of the task is not complete when the interval elapses, that you want the server to wait until the current occurrence of the task completes before repeating the task. Note: The service executes for the first time immediately after you schedule the user task.
Complex Repeating
The date and time of the first execution of the service in the Start Date and Start Time fields and how often after the initial execution that you want the service to run using the parameters in the Run Mask field. Example: To specify that you want the service to execute daily at 10 p.m. starting on March 15, 2001, specify the following parameters: Start Date Start Time End Date End Time Months Days Weekly Days Hours Minutes 2001/3/15 22:00:00 leave blank leave blank no selection no selection no selection 22 0
Note: Note: Omitting the End Date and End Time indicates that the service is to run indefinitely.
462
Note: For more information about these parameters, see information about scheduling services in the webMethods Integration Server Administrators Guide. 8 Click Save Tasks.
463
C H A P T E R 1 8 M a n a g i n g a n d Tr a c k i n g D o c u m e n t s
464
CHAPTER
19
Delivery Tasks
What is a Delivery Task? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466 About Viewing Delivery Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467 Finding and Viewing Delivery Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472 Running Delivery Tasks Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475 Stopping a Delivery Task for Immediate Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476 Restarting an Immediate Delivery Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477 Deleting Delivery Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478 Reassigning a Delivery Task to Another Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
465
C H A P T E R 1 9 D e l i v e r y Ta s k s
466
Description A unique identifier that Trading Networks assigns to the delivery task. The type of task. For a delivery task, Task Type is Delivery. Timestamp from when Trading Networks created the delivery task. Timestamp from the last time Trading Networks updated the delivery task. This is usually the last time Trading Networks attempted to deliver the document. Status of the delivery task. For a description of task statuses, see Delivery Task Statuses on page 469. Delivery method that Trading Networks is to use to deliver the document. For example, for an immediate delivery, Delivery Method might be Primary HTTP or Secondary HTTPS. For a scheduled delivery, Trading Networks displays Scheduled Delivery Service and provides additional information about the scheduled delivery service, including the name of the service. Maximum number of times Trading Networks is to attempt to re-deliver the document as defined in the partners profile. The factor Trading Networks uses to calculate how long to wait before making the second and subsequent attempts to re-deliver a document when using an immediate delivery method. Trading Networks calculates the time to wait by multiplying the last wait time by Retry Factor. Trading Networks uses the Time To Wait value along with the Retry Factor to calculate how long to wait for subsequent retry attempts.
467
C H A P T E R 1 9 D e l i v e r y Ta s k s
Description Number of times Trading Networks has already attempted to redeliver the document. Number of milliseconds Trading Networks is to wait before making its first attempt to redeliver the document when using an immediate delivery method. Trading Networks uses the Time To Wait value along with the Retry Factor to calculate how long to wait for subsequent retry attempts. For scheduled delivery, Trading Networks does not use Time To Wait and Retry Factor because it does not need to determine how long to wait before the next retry. For scheduled delivery, Trading Networks attempts to deliver as dictated by the schedule that is associated with the queue.
Status
Whether the last attempt to deliver the document was successful or not. The value of Status can be: success after Trading Networks has delivered the document successfully fail if Trading Networks has not yet delivered the document successfully blank if Trading Networks is using a schedule delivery and has not yet made an attempt to deliver the document
Status Message
The status message returned with the response from the last attempt Trading Networks made to deliver the document. For example, if the delivery method is HTTP, Status Message might be 200 OK. On the last attempt to deliver the document, number of milliseconds it took the delivery service to send the document to the receiving partner and wait for a response. For example, if the delivery method is HTTP, Transport Time is the number of milliseconds it took Trading Networks to post the document until it received a response from the post. The response can indicate the document was sent successfully (e.g., 200 OK) or unsuccessfully (e.g., 404 Authorization required). Identification of the Integration Server that is processing this delivery task. The Server ID is useful when the Integration Server is in a clustered environment. The Server ID is the host name of the machine on which the Integration Server is installed. For more information on server configuration parameters, see the appendix defining the server configuration parameters in the webMethods Integration Server Administrators Guide. For more information on clusters, see the webMethods Integration Server Clustering Guide.
Transport Time
Server ID
468
Description If Trading Networks queued this document for scheduled delivery, this is the name of the queue in which the document resides. For private queues, Trading Networks displays the internal partner ID. The data, if any, returned from a successful delivery of a document. For example, if the delivery method is Primary HTTP, and the post returns output (e.g., an XML document), then Task Output would contain the XML document.
Task Output
Delivery tasks remain in the Trading Networks system until you delete them or until the document with which the delivery task is associated is archived or deleted. For more information about archiving and deleting documents, see Archiving and Deleting Documents on page 456.
PENDING
469
C H A P T E R 1 9 D e l i v e r y Ta s k s
Meaning Trading Networks has stopped the delivery due to a manual user request. Trading Networks has reached the maximum retry limit for the document and was unable to deliver the document. Note: If you want to be notified when tasks fail, you need to create an Integration Server trigger that subscribes to the wm.tn.rec:TaskFailure IS document type. For more information, see the PublishSubscribe Developers Guide.
Next Status PENDINGif the delivery task is restarted PENDINGif the delivery task is restarted
FAILED
470
Meaning The scheduled delivery service is currently working with this delivery task to attempt to deliver the corresponding document.
Next Status DONEif the delivery completes successfully QUEUEDif the delivery is unsuccessful, but the maximum retry limit has not been exceeded FAILEDif the delivery is unsuccessful, and the maximum retry limit has been exceeded
DONE
The scheduled delivery service successfully delivered the document that is associated with the delivery task. The scheduled delivery service was unable to deliver the document that is associated with the delivery task and the maximum retry limit has been exceeded Note: If you want to be notified when tasks fail, you need to create an Integration Server trigger that subscribes to the wm.tn.rec:TaskFailure IS document type. For more information, see the PublishSubscribe Developers Guide.
n/a
FAILED
471
C H A P T E R 1 9 D e l i v e r y Ta s k s
To see detailed information about a specific delivery task, double click on the row containing the task you want more detailed information about. Trading Networks displays the Task Details screen. If you cannot find the delivery task you are looking for, you can use the search criteria on the Tasks screen to query for specific tasks. a b Select Show Query criteria. on the toolbar to have Trading Networks display the search
.To specify the delivery tasks that you want to view, select the checkbox associated with each criterion that you want to use and fill in the corresponding information as described below: For this parameter... Task Type Specify The type of task. To indicate that you want to view delivery tasks, select: Delivery from the list.
472
Specify The partner that is to receive the document that is being delivered by the delivery tasks that you want to view. Type in the name of the partner or click the Select... button to select a partner from the Partner Selection Dialog. For more information about how to select a partner, see Selecting a Partner on page 34.
Task Status
The status of the delivery tasks you want to view. Select the status from the list. To view delivery tasks of all statuses, do not use this criterion.
Delivery Method
How Trading Networks is to deliver the document to the partner. Select the delivery method from the list. Immediate delivery To view delivery tasks for immediate deliveries that use the same delivery method (e.g., Primary HTTP), select an immediate delivery method from the list. Scheduled delivery To view delivery tasks for scheduled delivery that use the same scheduled delivery service, select the name of the schedule delivery service from the list. The list that Trading Networks returns in response to your query might contain delivery tasks in several queues because a single schedule delivery service can be associated with multiple queues. To view delivery tasks regardless of the delivery method being used, do not use this criterion.
Time Created
The date Trading Networks created the delivery task. Select an entry from the list. To specify a date range, select Custom from the list. Then specify dates in the Beginning and Ending fields. You can type in a date value, or click to open a dialog that allows you to select the date from a calendar. To view delivery tasks regardless of the date that Trading Networks created them, do not use this criterion.
If you decide you do not want to use a criterion that you have filled out, uncheck the checkbox for that criterion.
473
C H A P T E R 1 9 D e l i v e r y Ta s k s
5 6
Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results. To view the details for a delivery task, double click the row containing that delivery task. Trading Networks displays the Tasks Details screen.
2 3 4 5
Perform a delivery task query. For instructions how to fill out the fields in the query panel to select the delivery tasks that you want to view, see step 4 on page 472. Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results. To view the details for a delivery task, double click the row containing that delivery task.
c d
474
applications. For example, if you export the data to a .csv file, you can open the file in Microsoft Excel allowing you to create charts and reports based on the data. Another example is that you can open a .csv file in Microsoft Access allowing you to further analyze the data. Perform the following procedure to export the delivery task information that Trading Networks displays to a text file. To export the delivery task information to a file 1 2 3 4 5 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Perform the procedures in Finding and Viewing Delivery Tasks on page 472 to list the information you want to export. Select Tasks Export Query Results.
In the Export Query Results as Comma-Separated Values dialog box, specify the file to which you want to save the exported delivery task information. Click Save. Trading Networks displays a dialog specifying the amount of data saved. Click OK.
475
C H A P T E R 1 9 D e l i v e r y Ta s k s
Note: If you want to stop a scheduled delivery task, disable or suspend the queue where the task resides. When you want to restart the delivery, enable the queue. Perform the following procedure to stop a delivery task for immediate delivery: To stop a delivery task for immediate delivery 1 2 3 4 5 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Select View Tasks. on the toolbar to display the query panels if they are not already
To indicate that you want to work with delivery tasks, click the Task Type checkbox, and select Delivery from the list. Select the Partner field and select the partner that is to receive the document you want to stop. Type in the name of the partner or click the Select... button to select the partner from the Partner Selection Dialog. For more information about how to select a partner, see Selecting a Partner on page 34.
6 7 8
Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results. Select the task you want to stop by clicking the row for the delivery task. Select Tasks Stop to stop the delivery task.
476
To indicate that you want to work with delivery tasks, click the Task Type checkbox, and select Delivery from the list. Select the Partner field and select the partner that is to receive the document you want to restart. Type in the name of the partner or click the Select... button to select a partner from the Partner Selection Dialog. For more information about how to select a partner, see Selecting a Partner on page 34.
Select the Task Status check box. To list stopped delivery tasks, set the Task Status field to STOPPED. To list failed delivery tasks, set the Task Status field to FAILED.
477
C H A P T E R 1 9 D e l i v e r y Ta s k s
7 8 9
Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results. Select the task you want to restart by clicking the row for the delivery task. Select Tasks Restart to restart the delivery task.
To indicate that you want to work with delivery tasks, select the Task Type checkbox, and select Delivery from the list. To find the delivery task that you want to delete, perform a delivery task query. a For instructions how to fill out the fields in the query panel to select the delivery tasks that you want to view, see step 4 on page 472. Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results.
478
Select Tasks Delete to delete the displayed delivery tasks. When Trading Networks prompts you to verify that you want to remove all displayed delivery tasks; click Yes.
To indicate that you want to work with delivery tasks, click the Task Type checkbox, and select Delivery from the list. To find the delivery task that you want to reassign, perform a delivery task query. a For instructions how to fill out the fields in the query panel to select the delivery tasks that you want to view, see step 4 on page 472. Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results.
479
C H A P T E R 1 9 D e l i v e r y Ta s k s
6 7 8 9
Select the delivery task you want to reassign by clicking the row for the delivery task. Select Tasks Reassign. Trading Networks displays a dialog box.
Specify the server ID of the server to which you want to reassign the task in the Server ID to assign the task to field. Click OK.
480
CHAPTER
20
481
C H A P T E R 2 0 S e r v i c e E x e c u t i o n Ta s k s
Description A unique identifier that Trading Networks assigns to the task. The type of task. For a service execution task, Task Type is Service execution. Timestamp from when Trading Networks created the service execution task.
482
Description Timestamp from the last time Trading Networks updated the service execution task. This is usually the last time Trading Networks attempted to re-execute the service. Status of the service execution task. It will be one of the following: NEWTrading Networks just created the service execution task and has not attempted to execute the service yet. PENDINGTrading Networks has attempted to execute the service one or more times, but the service has not been completed successfully. DONETrading Networks has successfully executed the service. Trading Networks considers a service execution successful when the service return values include Status set to success. FAILEDTrading Networks has reached the maximum retry limit for the task and was unable to successfully execute the service. In other words, Trading Networks executed the service the maximum times and each time the service was executed, the return values indicated that the service failed. Trading Networks considers an attempt to execute a service failed when the service return values include Status set to fail. STOPPEDTrading Networks has stopped the task due to a manual user request. Note: The QUEUED and DELIVERY task statuses are not applicable for service execution tasks. These task statuses are only applicable to delivery tasks.
Task Status
Delivery Method
Delivery Method is not applicable for service execution tasks. Internally, Trading Networks sets the Delivery Method to wm.tn.route:invokeWrapper for service execution tasks. Maximum number of times Trading Networks is to attempt to re-execute the service as defined in the reliable execution configuration settings.
Retry Limit
483
C H A P T E R 2 0 S e r v i c e E x e c u t i o n Ta s k s
Description The factor Trading Networks uses to calculate how long to wait before making the second and subsequent attempts to re-execute the service. Trading Networks calculates the time to wait by multiplying the last wait time by Retry Factor. Number of times Trading Networks has already attempted to re-execute the service. Number of milliseconds Trading Networks is to wait before making its first attempt to re-execute the service. (Trading Networks uses the Time To Wait value along with the Retry Factor to calculate how long to wait for subsequent retry attempts.) Whether the last attempt to execute the service was successful or not. Status is success if service executed successfully. Status is fail if service failed. The value the service returned for Status Message. If the service does not return a value for this field, it will be blank. The time it took to execute the service on its last attempt to execute the service. The service must provide this value. Identification of the Integration Server that is processing this service execution task. The Server ID is useful when the Integration Server is in a clustered environment. The Server ID is the host name of the machine on which the Integration Server is installed. For more information on server configuration parameters, see the appendix defining the server configuration parameters in the webMethods Integration Server Administrators Guide. For more information on clusters, see the webMethods Integration Server Clustering Guide. Queue Name is not applicable for service execution tasks. The service output from the last attempt to execute the service.
Status
Service execution tasks remain in the Trading Networks system until you delete them or until the document with which the service execution task is associated is archived or deleted. For more information about archiving and deleting documents, see Archiving and Deleting Documents on page 456.
484
To see detailed information about a specific service execution task, double click on the row containing the task you want more detailed information about. Trading Networks displays the Task Details screen. If you cannot find the service execution task you are looking for, you can use the search criteria on the Tasks screen to query for specific tasks. a b Select Show Query criteria. on the toolbar to have Trading Networks display the search
.To specify the service execution tasks that you want to view, select the checkbox associated with each criterion that you want to use and fill in the corresponding information as described below: For this parameter... Task Type Specify The type of task. To indicate that you want to view delivery tasks, select: Execution service from the list.
485
C H A P T E R 2 0 S e r v i c e E x e c u t i o n Ta s k s
Specify The partner that is to receive the document that triggered the execution of this service. Type in the name of the partner or click the Select... button to select a partner from the Partner Selection Dialog. For more information about how to select a partner, see Selecting a Partner on page 34.
Task Status
The status of the service execution tasks you want to view. Select the status (NEW, PENDING, DONE, STOPPED, or FAILED) from the list. To view service execution tasks of all statuses, do not use this criterion. Note: If you select QUEUED or DELIVERING, the query will not return any service execution tasks because these task statuses do not apply to service execution tasks. (These task statuses only apply to delivery tasks.)
Nothing. This field is not applicable to service execution tasks; do not select the checkbox for Delivery Method. The date Trading Networks created the service execution task. Select an entry from the list. To specify a date range, select Custom from the list. Then specify dates in the Beginning and Ending fields. You can type in a date value, or click to open a dialog that allows you to select the date from a calendar. To view service execution tasks regardless of the date that Trading Networks created them, do not use this criterion.
If you decide you do not want to use a criterion that you have filled out, uncheck the checkbox for that criterion. 5 6 Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results. To view the details for a service execution task, double click the row containing that service execution task. Trading Networks displays the Tasks Details screen.
486
2 3 4 5 6
Perform a service execution task query. For instructions how to fill out the fields in the query panel to select the service execution tasks that you want to view, see step 4 on page 485. Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results. To view the details for a service execution task, double click the row containing that service execution task.
c d
487
C H A P T E R 2 0 S e r v i c e E x e c u t i o n Ta s k s
In the Export Query Results as Comma-Separated Values dialog box, specify the file to which you want to save the exported service execution task information. Click Save. Trading Networks displays a dialog specifying the amount of data saved. Click OK.
488
To indicate that you want to work with service execution tasks, select the Task Type checkbox, and select Service execution from the list.
489
C H A P T E R 2 0 S e r v i c e E x e c u t i o n Ta s k s
5 6 7
Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results. Select the task you want to stop by clicking the row for the service execution task. Select Tasks Stop to stop the service execution task.
To indicate that you want to work with service execution tasks, select the Task Type checkbox, and select Service execution from the list. To list stopped tasks, select the Task Status check box, and set the Task Status field to STOPPED. To list failed tasks, select the Task Status check box, and set the Task Status field to FAILED. Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results.
490
7 8
Select the task you want to restart by clicking the row for the service execution task. Select Tasks Restart to restart the service execution task.
To indicate that you want to work with service execution tasks, select the Task Type checkbox, and select Service execution from the list. To find the service execution task that you want to delete, perform a service execution query. a For instructions how to fill out the fields in the query panel to select the service execution tasks that you want to view, see step 4 on page 485. Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results.
Select Tasks Delete to delete the displayed service execution tasks. When Trading Networks prompts you to verify that you want to remove all displayed service execution tasks; click Yes.
491
C H A P T E R 2 0 S e r v i c e E x e c u t i o n Ta s k s
To indicate that you want to work with service execution tasks, select the Task Type checkbox, and select Service execution from the list. To find the service execution task that you want to reassign, perform a service execution task query. a For instructions how to fill out the fields in the query panel to select the service execution tasks that you want to view, see step 4 on page 485. Select Run Query on the toolbar. Trading Networks updates the Tasks table on the bottom portion of the screen with the query results.
492
6 7 8 9
Select the service execution task you want to reassign by clicking the row for the service execution task. Select Tasks Reassign. Trading Networks displays a dialog box.
Specify the server ID of the server to which you want to reassign the task in the Server ID to assign the task to field. Click OK.
493
C H A P T E R 2 0 S e r v i c e E x e c u t i o n Ta s k s
494
CHAPTER
21
495
496
Description The user name of the current webMethods user when the activity occurred. For example, when a Trading Networks client sends a document to your Integration Server to be processed, if the Trading Networks client was authenticated by your Integration Server, it either supplied a user name and password of a webMethods user account or presented a client certificate. In this case, User Name is the user name that the client supplied or the value from the client certificate that represents the user name. A shortened version of the full message that identifies the type of message in the entry. For example, if the full message is describing an error that Trading Networks encountered executing an XQL query, Brief Message is Query Failed. The complete message that Trading Networks records in the activity log to describe the activity.
Brief Message
Full Message
497
To specify basic search criteria, click the Basic Criteria tab. Then, select the checkbox next to each criterion that you want to use and fill in the corresponding information as described below:
498
Specify The partner whose activity log entries you want to view. Select a partner name from the list. To view the entries that are related to the local partner (Enterprise), select the partner name of the local partner from the list. To view the entries associated with another partner, select that partners name from the list. The activity class associated with the entries you want to view. To specify an activity class that Trading Networks uses, select an activity class from the Activity Class list. For descriptions of the values that Trading Networks uses for activity class, see Activity Class Values on page 497. To specify an activity class that your site has defined, type the activity class in the Activity Class field. This field is case-sensitive; be sure to use the exact combination of upper- and lowercase letters.
Activity Class
The type of entry you want to view. Select Error, Warning, or Message. A character string that identifies the text of the brief message of the entries you want to view. This field is case-sensitive; be sure to use the exact combination of upper- and lowercase letters. You can use the following pattern matching characters: Character % (percent) _ (underscore) Example: _t_p D%t matches: Stop, stop, step but not: sstop, stoop matches: Document, Document Test but not: Documents, Polled Document Matches Zero or more characters A single character
To search for an entry that contains the % or _ characters, enclose the string you specify in quotes. For example, if you want to search for entries that have a brief message that contains Doc_ignored, specify Doc_ignored. Note: There is no way to do an exact character match.
499
Specify The date Trading Networks added the entry to the activity log. To specify a date range, select Custom from the list. Then specify dates in the Beginning and Ending fields. You can type in a date value, or click to open a dialog that allows you to select the date from a calendar.
If you decide you do not want to use a criterion that you have filled out, deselect the checkbox for that criterion. 5 To specify advanced search criteria, click the Advanced tab. Then, select the checkbox next to each criterion that you want to use and fill in the corresponding information as described below: For this Advanced tab parameter User Name Full Message
Specify The user name of the current webMethods user when the activity occurred. Select a user from the list. A character string that identifies the text of the full message of the entries you want to view. This field is case-sensitive; be sure to use the exact combination of upper- and lowercase letters. You can use the following pattern matching characters: Character % (percent) _ (underscore) Matches Zero or more characters A single character
To search for an entry that contains the % or _ characters, enclose the string you specify in quotes. For example, if you want to search for entries with the full message that contain Documents_persisted 100%, specify Documents_persisted 100%. Note: There is no way to do an exact character match.
If you decide you do not want to use a criterion that you have filled out, deselect the checkbox for that criterion.
500
Select Run Query on the toolbar. Trading Networks updates the Log table on the bottom portion of the screen with the query results. Note: You can also view activity log entries that relate to any partner on your network when you use the Partner selection in the Selector Panel. The selection criteria in the query panel of the Activity Log screen are identical whether using the Enterprise or Trading Partners selection of the Selector Panel.
Note: If you are using an OEM version of the Trading Networks, the Transactions Analysis feature is not available through the Trading Networks Console. To view documentrelated activity log entries, use Trading Networks Web Manager.
To view activity log entries that relate to a document 1 2 Start the Trading Networks Console. If you need procedures for this step, see Starting the Trading Networks Console on page 22. Perform the steps described in Viewing Documents in Your System on page 442 to have Trading Networks list information about the document for which you are interested. Click the row containing the document for which you want to view activity log entries. Select Transactions View Document.
3 4 5 6
Select the Activity Log tab. To further refine the list of entries, perform the following steps.
501
a b
Click
Perform an activity log query. For instructions how to fill out the fields in the query panel to select the delivery tasks that you want to view, see step 4 on page 498. Select Run Query on the toolbar. Trading Networks updates the Log table on the bottom portion of the screen with the query results. To view the details for an activity log entry, double click the row containing that entry.
c d
In the Export Query Results as Comma-Separated Values dialog box, specify the file to which you want to save the exported activity log information. Click Save. Trading Networks displays a dialog specifying the amount of data saved. Click OK.
502
503
504
APPENDIX
505
506
507
Note: The Import Data dialog box shows some, but not all of the dependencies. For example, the Import Data dialog box cannot display the IS Service dependencies because these dependencies are not recorded in the exported file.
508
Migrating Profiles
type that references the custom attribute, Trading Networks will use the internal ID of the custom attribute to associate it with the TN document type. As a result, when you migrate a Trading Networks object that requires other Trading Networks objects, you should migrate the dependent objects using export/import as well. For example, if you have a TN document type that references a custom attribute and you migrate the TN document type, you should also migrate the custom attribute. If you recreate the custom attribute on the target system, the target Trading Networks system generates a different internal ID for the custom attribute. The TN document type that you migrated references the internal ID generated on the source system and will not match the internal ID generated for the custom attribute that you recreated on the target system.
Migrating Profiles
To migrate profiles, use the following items in the Export Data and Import Data dialog boxes: Items in Export/Import Data Dialog box Partner Data
Use to migrate... Data for: Standard profile fields Extended profile fields Certificate information on the Security tab of the profile. For more information, see Partner Data on page 510.
Dependencies Profile Groups Delivery Methods External ID Types Contact Types For more information, see Partner Data Dependencies on page 511. None
External ID Types
External ID types referenced by the profiles on your system. Trading Networks lists all external ID types defined in the database. These include all the standard external ID types (e.g., DUN, DUNS+4) that are installed with Trading Networks and all custom external ID types that you add using the wm.tn.dictionary:addIDType service.
509
Use to migrate... Contact types referenced by the profiles on your system. Trading Networks lists all contact types defined in the database. These include both the standard contact types (i.e., Technical and Administrative) that are installed with Trading Networks and all custom contact types that you add using the wm.tn.dictionary:addContactType service.
Dependencies None
Profile Groups
Profile groups that you have registered on your Trading Networks system.
None
Important! You cannot use export/import to share your profile with a partner. When you export your (Enterprise) profile, Trading Networks records that the profile is the Enterprise profile. Trading Networks does not allow you to import the Enterprise system from your system into a partner's system.
Partner Data
Trading Networks lists each partner by its corporation name under the Partner Data item.
Partner Data in the Export Data or Import Data dialog box
Note: The Enterprise profile is also listed by its corporation name. It is not listed under Enterprise.
510
Migrating Profiles
For each partner that is listed under Partner Data, Trading Networks lists the following elements: Profile. Select this item to migrate the data for the standard profile fields for the specific partner. Security Data. Select this item to migrate the certificate information from the Security tab of the partner's profile. If the profile has no information on the Security tab, the Security Data element will not be listed under Partner Data in the tree. One element for each extended profile field. Select these items to migrate the data for the extended profile fields for the specific partner. If you have not defined extended fields, no extended field elements will be listed under Partner Data in the tree.
Description The profile groups that are identified in the partners profile. Use the Profile Groups tree element to migrate the profile groups.
Delivery Methods
The delivery methods that are defined in the profile. The profile can only contain standard delivery methods that are installed with Trading Networks (e.g., Primary HTTP), so no action is needed.
External ID Types
The external ID types that are used by the profile. If the profile uses custom external ID types that you added using the wm.tn.dictionary:addIDType service, migrate the those external ID types using the External ID Types item. Trading Networks also lists standard external ID types. You do not need to migrate these unless they have been deleted from the target system.
511
Description The contact types that are used by the profile. If the profile uses custom contact types that you added using the wm.tn.dictionary:addContactType service, migrate those contact types using the Contact Types item. Trading Networks also lists standard contact types. You do not need to migrate these unless they have been deleted from the target system.
Security Data
Profile
The partners profile. You migrate the profile when you select the Profile element under Partner Data. The profile field definition for the extended profile field. Use the Field Definitions item to migrate the definition for the extended profile field. For more information, see Migrating Profile Fields on page 513.
Field Definition
Profile
The partners profile. You migrate the profile when you select the Profile element under Partner Data.
Profiles that Use Queues Although the Dependencies does not list queues (public or private), they are also required if referenced by the Receivers Queue delivery method in a profile. Review the profiles you want to export/import and migrate the queues if needed. To create the queues on the target system, you can do one of the following: Use the tnexport and tnimport utilities to export all public and private queues. For more information, see Using the tnexport and tnimport Utilities on page 526. Manually create the required queue on the target system. Be sure to use the exact queue name with the same combination of upper and lowercase letters when defining the queue on the target system. Note: Although Trading Networks typically associates related items by internal IDs that it generates (as described in Dependencies For Trading Networks Objects on page 508), for queues Trading Networks relates the queue to the profile by its name. In addition to migrating the queue, ensure you move the scheduled delivery services that are associated with the queues to the target system.
512
Use to migrate... Definitions for standard and extended profile fields. Note: To migrate the data for profile fields, use the Partner Data item. For more information, see Partner Data on page 510.
Dependencies Field Group For more information, see Field Definitions Dependencies on page 513. None
Field Groups
Profile field groups that you added to your system on the Extended Field group of a profile or by using the wm.tn.dictionary:addFieldGroup service. Trading Networks lists all field groups, including the standard field groups that are installed with Trading Networks (e.g., Corporation, Delivery, Contact). You only need to migrate custom field groups that you add.
513
Dependencies IS Services Attributes For more information, see Document Type Dependencies on page 514.
Categories of documents (e.g., XML and Flat File). All Trading Networks systems will have the TN document type categories. You do not need to migrate them.
None
514
Dependencies Attributes
Description The custom document attributes that are associated with the TN document type. Use the Attributes item to migrate the custom attributes for the TN document type. For more information, see Migrating Custom Document Attributes on page 515.
Dependencies None
Dependencies IS Services Delivery Methods For more information, see Processing Rules Dependencies on page 516.
When you select to export and import processing rules, be aware of the order of the processing rules. Trading Networks maintains processing rules in a specific order. This is
515
the order in which Trading Networks selects a processing rule to use for processing an incoming document. (Trading Networks uses the first processing rule that matches.) When you select processing rules to export and import, the order is not necessarily maintained. Trading Networks maintains the list of processing rules that you want to export and import in the order you select them; in other words, in the order the processing rules appear in the Selected items list of the Export Data and Import Data dialog boxes. When you import processing rules, you can select to: Append the imported processing rules to the end of the existing list of processing rules in the target Trading Networks system Replace all the processing rules in the target Trading Networks system with the imported processing rules
516
Although the Dependencies does not list the following Trading Networks objects, they are also required if referenced in a processing rule. Review the processing rules you want to export/import and migrate the following if appropriate. Profiles for senders identified in the Sender criterion on the Criteria tab of the processing rule, see Migrating Profiles on page 509. Profiles for the receivers identified in the Receiver criterion on the Criteria tab of the processing rule, see Migrating Profiles on page 509. TN document types identified in the Document Type criterion on the Criteria tab of the processing rule, see Migrating TN Document Types on page 514. Custom document attributes identified on the Extended Criteria tab of the processing rule, see Migrating Custom Document Attributes on page 515. Queues referenced by a Scheduled Delivery used by the Deliver Document By processing action. To create the queues on the target system, you can do one of the following: Use the tnexport and tnimport utilities to export all public and private queues. For more information, see Using the tnexport and tnimport Utilities on page 526. Manually create the required queue on the target system. Be sure to use the exact queue name with the same combination of upper and lowercase letters when defining the queue on the target system. Note: Although Trading Networks typically associates related items by internal IDs that it generates (as described in Dependencies For Trading Networks Objects on page 508), for queues Trading Networks relates the queue to the profile by its name. In addition to migrating the queue, ensure you move the scheduled delivery service that are associated with the queue to the target system.
517
Dependencies Profiles IS Services IS Document Types For more information, see Agreements Dependencies on page 518.
Agreements Dependencies
The following table shows the dependencies for Agreements. For more information about dependencies, see Dependencies For Trading Networks Objects on page 508. Dependencies Profiles Description The profiles that are associated with the TPA. A TPA is associated with two trading partners on your system, one that acts as the sender and one that acts as the receiver. Migrate the profiles for the sender and receiver. For more information, see Migrating Profiles on page 509. The fully-qualified names of the following types of services that you can specify in a TPA: Initialization service Export service If a TPA that you are migrating uses either or both of these types of services, ensure that you move the IS services to the target Trading Networks system. IS document types The fully-qualified name of the IS document type that defines the structure of the TPA data. Ensure that you migrate this IS document type to the target Trading Networks system.
IS Services
518
Migrating Queries
Migrating Queries
You can migrate all the queries you have defined for the Trading Networks Console screens (e.g., queries you defined for the Transaction Analysis screen to search for specific documents). To migrate all of your queries, use the following item in the Export Data and Import Data dialog boxes. Items in Export/Import Data Dialog box Query (a sub-item under Binary Data)
Use to migrate... All queries that you have defined for all screens of the Trading Networks Console: Trading Partners Document Types Processing Rules Agreements Transaction Analysis Tasks Activity Log
Dependencies None
519
Select the items that you want to export by populating the Selected Items list. To move all items: To move some but not all items: Click to move all items from the Available Items list to the Selected Items list. Select one or more items from the Available Items list; then click .
To select an item in the tree along with all of its child elements, select the parent element and click . For example, if you want to move all processing rules, select the Processing Rule item and click .
When you select one of the following types of items in the Available Items list, check the Dependencies to determine whether there are other items you should export as well. Item Partner Data Field Definitions Document Types Processing Rules 4 5 Click OK. In the Save File dialog box, specify the file to which you want Trading Networks to write the database information. Then, click Save. Note: The file that contains the exported data is a binary-encoded file. For more information about dependencies, see... Partner Data Dependencies on page 511 Field Definitions Dependencies on page 513 Document Type Dependencies on page 514 Processing Rules Dependencies on page 516
520
Trading Networks... Displays the Overwrite dialog box. For more information about how to use this dialog box, see Using the Overwrite Dialog Box on page 522. For information about how to force the overwrite of identically named items without displaying the Overwrite dialog box, see Suppressing the Overwrite Dialog Box and Forcing the Overwrite of Items on page 523.
521
For the following items in the Import Data dialog box: Field Definitions External ID Types Agreements Binary Types Partner Data: Security Data Extended Field Data Processing Rules
Trading Networks... Does not display the Overwrite dialog box. Attempts to add the identically named item to the target database.
Uses the Overwrite Rules option to determine how to import the processing rules. For more information, see Specifying How to Import Processing Rules on page 524.
Important! Although Trading Networks does not prompt you to overwrite when you import field definitions, external ID types, and agreements, the import process will throw an exception if it encounters an identically named item in the target database that is assigned a different internal ID. For more information about internal IDs, see Dependencies For Trading Networks Objects on page 508.
522
The Overwrite dialog box allows you to select one of the following options: Overwrite dialog option Yes Description Selecting Yes grants Trading Networks permission to overwrite only the Trading Networks object described in the Overwrite dialog box. Selecting Yes to All grants Trading Networks permission to overwrite the Trading Networks object described in the Overwrite dialog box and all subsequent identically named items that Trading Networks might encountered during the import process. When you select Yes to All Trading Networks no longer displays the Overwrite dialog box for identically named items. Selecting No denies Trading Networks the permission to overwrite the Trading Networks object described in the Overwrite dialog box. Trading Networks does not import the item described in the Overwrite dialog box. Selecting No to All denies Trading Networks the permission to overwrite the Trading Networks object described in the Overwrite dialog box and all subsequent identically named items that Trading Networks might encountered during the import process. When you select No to All Trading Networks no longer displays the Overwrite dialog box for identically named items. No identically named items are imported.
Yes to All
No
No to All
Suppressing the Overwrite Dialog Box and Forcing the Overwrite of Items
If you want Trading Networks to automatically overwrite identically named items in the target database, select the Force Import checkbox on the Import Data dialog box. When you select the Force Import checkbox, Trading Networks does not display the Overwrite dialog box. It overwrites identically named items without prompting for confirmation.
523
Click the Select File icon to open the Select File dialog box to identify the file that contains the database information that you want to import. Then, click Open. Trading Networks populates the Available Items list with the items contained in the file you select.
524
If you want Trading Networks to automatically import identically named items that exist in the target database without prompting for confirmation, select the Force Import checkbox. For more information, see Importing Items that Have the Same Name as Existing Items on page 521 and Suppressing the Overwrite Dialog Box and Forcing the Overwrite of Items on page 523. If you do not select the Force Import checkbox, see Using the Overwrite Dialog Box on page 522 for how to use the Overwrite dialog box.
If you want to import processing rules, and you want Trading Networks to replace all the processing rules in the target database with the processing rules that you import, select the Overwrite Rules checkbox. For more information, see Specifying How to Import Processing Rules on page 524. Select the items that you want to export by populating the Selected Items list. To move all items: To move some but not all items: Click to move all items from the Available Items list to the Selected Items list. Select one or more items from the Available Items list; then click .
To select an item in the tree along with all of its child elements, select the parent element and click . For example, if you want to move all processing rules, select the Processing Rule item and click .
When you select one of the following types of items in the Available Items list, check the Dependencies to determine whether there are other items you should import as well. Item Partner Data Field Definitions Document Types Processing Rules 7 Click OK. Note: If there are any import errors, Trading Networks displays the Import Errors dialog. This dialog lists each item that has an error. To see more details of the error, select the item in the Name column. For more information about dependencies, see... Partner Data Dependencies on page 511 Field Definitions Dependencies on page 513 Document Type Dependencies on page 514 Processing Rules Dependencies on page 516
525
Use these utilities to perform a bulk transfer of data from one Trading Networks system to another.
tnexport Utility
Use the tnexport utility to export all objects of the selected types. For example, if you specify you want to export processing rules, all processing rules defined in the Trading Networks database are exported. The format of the tnexport command line is as follows:
tnexport outfile options
where:
outfile is one of the following: -bin binfile
Use the -bin option to export the data to a binary file. binfile is the path and file name to which you want to export the data. The directory in which you want the output file placed must already exist. If you specify a relative path, Trading Networks uses a directory relative to the directory from which you are running the tnexport utility. If the file already exists, Trading Networks overwrites it. Note: Binary output is much smaller than the XML output, but cannot be read by humans.
-xml xmlfile
Use the -xml option to export the data to an XML file. xmlfile is the path and file name to which you want to export the data. The directory in which you want the output file placed must already exist. If you specify a relative path, Trading Networks uses a directory relative to the directory from which you are running the tnexport utility. If the file already exists, Trading Networks overwrites it.
Indicates you want to export all the document attributes. Indicates you want to export all the TN document types.
526
Indicates you want to export all the processing rules. Indicates you want to export all the profiles. Indicates you want to export the values for the extended fields that are in the profiles. Indicates you want to export all the definitions for field groups and all the definitions for the profile fields in those groups. Indicates you want to export all the definitions for contact types, external ID types, and profile groups that you might have added. Indicates you want to export all public and private queues. Indicates the you want to export all certificate information from the Security tabs of all profile. Indicates you want to export all the trading partner agreements (TPAs). Indicates that you want to export all objects, that is, all attributes, TN document types, processing rules, profiles, extended field values, profile field groups, field definitions, custom contact types, custom extended fields, public queue, and TPAs.
-flddefs
-lkup
-queues -securityData
-tpas
-all
Examples
You want to export all profiles, all extended field values in the profiles, and all the extended field definitions to the XML file \TradingNetworks\ExportedData.xml. Use the following command line:
tnexport -xml \TradingNetworks\ExportedData.xml -profiles -extflds -flddefs
You want to export all data in the Trading Networks database to the binary file ExportedData.bin, and you want the utility to create the ExportedData.bin file in the same directory as where you are running the utility. Use the following command line:
tnexport -bin ExportedData.bin -all
527
tnimport Utility
Use the tnimport utility to import all data in a specified file. The file you specify must contain data that you previously exported from a Trading Networks database using either the tnexport utility or the Trading Networks Console. Note: After using the tnimport utility, you must reload the WmTN package to be able to use the imported data. The format of the tnexport command line is as follows:
tnimport infile options
where:
infile is one of the following: -bin binfile
Use the -bin option to import the data from a binary file. binfile is the path and file name of the binary file that contains the data 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. Use the -xml option to import the data from an XML file. xmlfile is the path and file name of the XML file that contains the data 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.
-xml xmlfile
Indicates that you actually want to import the information and write it to the Trading Networks database. If you do not specify this option, the tnimport utility will only load and print information about the data in your file. This is useful for testing purposes.
528
-force
Indicates whether you want the tnimport utility to overwrite existing data with the same ID that already exists in the Trading Networks database. This option only applies when importing document attributes, TN document types, profiles, profile field groups, profile field definitions, and TPAs. If you do not specify this option and an object with the same ID already exists in the Trading Networks database, the import fails.
-rrappend
Indicates whether you want the tnimport utility to append the processing rules in the input file to the current list of processing rules. This applies only to importing processing rules. If you do not specify this option, the tnimport utility completely replaces the current processing rules in your database.
Examples
You want to import the data in the XML file \TradingNetworks\ExportedData.xml. You want the tnimport utility to overwrite objects that have the same name as those in the input file, and you want to completely overwrite the current list of processing rules. Use the following command line:
tnimport -xml \TradingNetworks\ExportedData.xml -db -force
You want to view information about the data in the input file ExportedData.bin that resides in the same directory as the tnimport utility. You do not want to import it into your database. Use the following command line:
tnimport -bin ExportedData.bin
You want to import all data in the binary file ExportedData.bin that resides in the same directory as the tnimport utility. You do not want to overwrite objects that have the same name as those in the input file, and you want the tnimport utility to append the imported processing rules to the existing list of processing rules rather than overwrite the processing rules. Use the following command line:
tnimport -bin ExportedData.bin -db -rrappend
529
530
APPENDIX
XQL Reference
XQL Reference Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532 Sample XML File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532 Example XQL Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533 Extracting Custom Attributes From XML Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
531
532
<price intl='canada' exchange='0.7'>6.50</price> <excerpt> <p>It was a dark and stormy night.</p> <p>But then all nights in Trenton seem dark and stormy to someone who has gone through what <emph>I</emph> have.</p> <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>
Description To find the root element (bookstore) of the document Find all author elements anywhere within the current document. Find all first-name elements within an author element anywhere in the current document. Find all title elements that are grandchildren of bookstore elements. Find all style attributes anywhere within the current document. Find the exchange attributes of price elements that are contained inside book elements that are contained in a bookstore element. Anywhere within the current document, find all book elements containing at least one child excerpt element.
//author
//author/first-name
bookstore/*/title
//@style
bookstore/book/price/@exchange
//book[excerpt]
533
XQL Query
//book[excerpt]/author[degree]
Description Anywhere within the current document, find all author elements containing at least one child degree element that are contained inside a book element that has at least one excerpt element. Anywhere within the current document, find all book elements containing at least one excerpt element and at least one title element. Anywhere within the current document, find all author elements that contain at least one degree element or award element and at least one publication element. Anywhere within the current document, find all degree elements where the from attribute is not equal to Harvard. Anywhere within the current document, find the last author element from the entire set of author elements that are contained within book elements. Anywhere within the current document, find all book elements with the namespace my. Find the title element with a my prefix within a book element with a my prefix that is a child of the root node of the document. Find the first two books anywhere within the current document. Anywhere within the current document, find all author elements that contain more than one publication element. Find all author elements where at least one of the last-name elements is "Bob" anywhere within the current document.
//book[excerpt][title]
//(book/author)[end()]
//my:book
/*/my:book/my:title
//book[index() $le$ 1]
//author[publication!count() $gt$ 1]
534
XQL Query
//book $union$ //book/author
Description Anywhere within the current document, find all book elements and all author elements that are children of book elements. Find all the author elements that have last-name elements that contain the string "Bo." and another single character. Find all the book elements that have a style attribute that contains the regular expression pattern "no.*" Find the first comment element starting from the root of the current document.
/bookstore/book/author[lastname/regex('Bo.')]
//book[@style/regex("no.*")]
/comment()[0]
535
STRING
null null
<node> <item>value</item> </node> <node> <item>value</item> <item></item> </node> <node> <item></item> <item>value</item> </node>
536
STRING
null
valuea
NUMBER
null null
<node> <item>123</item> </node> <node> <item>123</item> <item></item> </node> <node> <item></item> <item>123</item> </node>
123
123
537
NUMBER
null
123
DATETIME
null null
{2004/12/31}
(Datetime List with one element) {2004/12/31, null} (Datetime List with two elements)
2004/12/31
2004/12/31
538
DATETIME
null
{, } (String List with two elements) {2004/12/31, ,,2006/01/31} (String List with four elements)
2004/12/31
539
540
APPENDIX
541
542
Code custom services to recognize when a document is large and take the appropriate actions based on whether the document content is in memory or written to hard disk drive space. This affects the following services that you create: Services specified with the Execute a service processing action Immediate and scheduled delivery services that you add For more information see, Creating Services that Recognize Large Document Handling on page 544. Ensure IS clients (trading partners) do not use the $xmldata variable to send large XML documents to Trading Networks.
543
544
service, it must take appropriate actions to obtain the document content whether the document content is in memory or on hard disk drive space.
545
546
Use the following fields in bizdoc to determine whether the document is stored in memory or on the hard disk drive space: LargePart?This field that is within the ContentParts field, indicates whether the content part is considered large. Its value is true if Trading Networks considers the content part large; otherwise it is false. LargeDocument?This field indicates whether any of the content parts of the document are large. If at least one of the content parts is considered large, its value is true. If all content parts are not considered large, its value is false. If a content part is considered large, Trading Networks sets StorageType to tspace and leaves the Content variable null. If the document is not considered large, Trading Networks stores the document content in the Content variable and leaves StorageType null.
InputStream object startIndex If you specified bytes for getAs, specify the index into the document where you want Trading Networks to start retrieving content. For example, to retrieve document content from the beginning, specify 0. If you specified bytes for getAs, specify the number of bytes of content that you want Trading Networks to retrieve.
byteCount
If you indicate that you want the wm.tn.doc:getContentPartData service to retrieve a specified number of bytes, the service returns a byte array that contains the retrieved bytes of the document content. If you indicate that you want the
547
Java InputStream object. Note that you can invoke this service for all documents, that is 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.
548
Click
549
550
Index
Index
Symbols
"Any document type in processing rule query 370 $contentEncoding variable 278, 282 $contentType variable 282 $receiveSvc variable 282, 454 /invoke/wm.tn/receive URL for your profile 112, 124, 138 on partner profile 154 defined 496 error logged to, for XML document 228 exporting information as comma-separated values 502 from to a file 502 full message 497, 500 list of fields for each entry 496 printing 502 queries 503 saving data 502 saving queries 503 selector panel button 28 timestamp 496, 500 user name 497, 500 viewing entries 498 for partner 499 using Enterprise 498 using Partner 498 activity type on activity log 496, 499 adding address for your profile 119 address on a partner profile 148 CA certificates to partner profile 161 CA certificates to your profile 127 certificates to partner profile 161 certificates to your profile 126 contact 121, 151, 153 corporation information 147 default processing rule last 314, 348 delivery method 123, 153 delivery service 422 extended fields 98 external ID 118, 120 external ID type 148 identifying queries to XML document types not using sample document 248, 262 using sample document 235, 257
A
ABORTED processing status 434 ACCEPTED processing status 434 and queue for polling 397 ACCEPTED W/ERRORS processing status 434 and queue for polling 397 ACL, Administrators group 23 actions pre-processing, See pre-processing actions processing rules, See processing rules, actions Active profile status for partner profile 164 change status to 176 for your profile 116 change status to 129 activity class case-sensitive 499 error messages 497 on activity log 496, 499 values 497 activity log activity class, See activity class Activity Log tab 501 activity type 496, 499 Advanced tab 500 and Tasks tab 449 Basic Criteria tab 498 brief message 497, 499
551
Index
partners planning for 82 profile 132, 146 to webMethods for Partners 145 private key in partner profile 162 private key to your profile 128 processing rules, and order of 313 profile group 55 public queues 55, 380 address adding for your profile 119 adding on partner profile 148 deleting for your profile 119 deleting on partner profile 152 editing 119 administrators ACL and user name 23 Trading Networks 37 Advanced tab, on Activity Log 500 agreed agreement status 188 and data status 180 cannot delete TPA with this status 192 changes you can make 188 Agreement Details screen 181 Agreement ID TPA 178 TPA query 186 agreement status agreed 188 changing 188 disabled 188 list of changes you can make 188 proposed 188 TPA query 186 updating 189 Agreements screen See also TPA selector panel button 27 Alert e-mail action 90, 338 e-mail address as recipient of message 339 prerequisites for processing rule action 338
recipient 338 receiver 339 sender 338 webMethods Administrator 339 aliases identifying servers in a cluster 49 remote server for clustered environment 48 tn.cluster.sync.remoteAliases server property 44, 45 ambiguous document, defined 268 Anonymous ACL 479, 492 any document type criteria in processing rule 319 receiver criteria in processing rule 318 sender criteria in processing rule 318 API, Java 319 archiving clustering 459, 461 documents 456 and delivery tasks 469 persistence 459, 461 properties, list of 458 repeating 459, 462 scheduling of 458, 461 tn.archive:archiveAfterDays system property 458 tn.archive:deleteAfterDays system property 458 wm.tn.archive:archive service 459 wm.tn.archive:deleteAfterDays system property 458 array byte, delivery content returned 412 of numbers 218 flat file document 290 for XML document 214 associating documents 449 IS document type with TN XML document type 77, 226 IS schema with TN XML document type 226 parsing schema with TN flat file document type 279, 295 profiles with profile groups 109, 120, 135, 150 query with trading partner 447 schema with TN document type 77 asynchronous, execute a service as 331, 357, 433
552
Index
attributes See also document attributes Attributes tab 448 custom, See custom attributes Custom Criteria tab 445 data type, in search 167, 437 Extended Criteria tab 353 how to sort 446 search criteria for documents 437 search criteria for profiles 167 system, See system attributes average saving value for document attributes 218 for flat file document 290 for XML document 214
B
B2B Developer, See webMethods Developer B2B Integration Server, See webMethods Integration Server (IS) Basic Criteria tab See also basic search critera activity log 498 for documents 429 processing rules 366, 368 profiles 167 transaction analysis 429, 442 basic operations for Console 31 basic search criteria, See Basic Criteria tab batch delivery tasks 413 batch documents scheduled delivery 344 queue 378 service 410 single destination 417 viewing 450 wm.tn.queuing:deliverBatch service 418 wm.tn.transport:batchFtp service 413, 417, 419 Batch FTP scheduled delivery service, See wm.tn.transport:batchFtp service 381 bizdoc for FTP delivery location 124 for your profile 112, 138 for FTPS delivery location 124 for your profile 112, 138
large documents 545 wm.tn.doc.xml:bizdocToRecord 226 brief message on activity log 497, 499 built-in services 327 pub.schema:validate 228 wm.tn.delivery:registerService 422 wm.tn.dictionary:addContactType 109, 136 wm.tn.dictionary:addFieldGroup 113, 143 wm.tn.dictionary:addIDType 108 wm.tn.dictionary:addIDTypes 108 wm.tn.doc.xml:bizdocToRecord 226 wm.tn.doc:changeStatus 319 wm.tn.doc:relateDocuments 449 wm.tn.queuing:getQueuedTask 415 wm.tn.queuing:updateQueuedTask 416 buttons arrows to reposition custom attributes 35, 171, 446 processing rule search order 371 processing rules 364 Console, list of 26 data input for IS document type 190 selector panel, list of 26 selector panel, on Console 26 to navigate the Results table from a query 406
C
CA certificates adding to partner profile 161 adding to your profile 127 and webMethods Integration Servers list of trusted CA certificates 113, 144 case string value, altering 216, 289 XQL queries 212 case-sensitive activity class 499 ConversationID 444 DocumentID 443 GroupID 444 IS password 23 IS user name 23 password, IS 23
553
Index
password, on Proxies tab 64, 65 query values 208 user name, for server preferences 62 user name, IS 23 user name, on Proxies tab 64 user name, when starting Console 23 user status, on Basic Criteria tab 443 Value, Custom Criteria tab 171 Value, Extended Criteria tab 353 XQL queries 207 Certificate Chain field for partner profile 145, 161 for your profile 114, 126 certificates See also digital certificates adding to partner profile 161 adding to your profile 126 CA, See CA certificates default certificate sets 114 deleting from partner profile 162 deleting from your profile 127 digitally sending documents 144, 160 viewing, in partner profile 161 viewing, in your profile 126 changing agreement status 188 IS document type inputs 190 private queue state 393 profile status to Active 129 profile status to Inactive 129 public queue state 392 scheduled delivery queue states 391 table format 33 processing rules 371 TPA data inputs 190 user status, processing rule action 341 Check for Duplicate Document pre-processing action See also duplicate document check flat file document 296 processing rules 327 XML document 228 check uniqueness, See duplicate document check
closing sessions close Console 37 session on the server 19 on other servers 24 clustered environment 44 clustering, when archiving and deleting 459, 461 configuring Trading Networks for 48 notifying when change in cached memory 49 Trading Networks properties change 49 user accounts created 49 properties 48 reassigning delivery task in 479 reassigning service execution task in 492 setting up servers 44, 312 tn.cluster.notifyPropertyChange property 42 tn.cluster.sync.remoteAliases property 49, 312 columns, Detail View documents 441 processing rules 367, 371 profiles 168 columns, how to reposition and sort information in 33 com.wm.app.tn.db.BizDocStore.changeStatus(BizDocEnvelope, String,String) 319 com.wm.app.tn.doc.BizDocEnvelope.setUserStatus(String) 319 comma-separated values, exporting activity log as 502 service execution task to a file 488 Complex Interval examples of how to use 387 on Schedule tab 157, 386, 390 Run Mask settings 386 scheduling delivery service 386 settings 386 complex repeating, when archiving and deleting 459, 462 components of Trading Networks Console 25 configuration database 43 document delivery 51 for clustered environment 48
554
Index
settings other tasks 61 overriding when starting server 19 profile 50 Trading Networks and Integration Server (IS) 20 configuration properties 42 connecting to Console, shared database in non-clustered environment 46 database 43 Integration Server 23 load balancer 46 remote server 417 secure connection 62 using wm.tn.transport:batchFtp service 413 via proxy server 63 connection pools, configuring 43 Console basic operations 31 closing 37 components of 25 customizing preferences 61 diagram of 25 processing rules ordering 314 display area 29 familiarizing yourself with 25 menu bar 26 panes 31 proxy server 63 refreshing 30 screen name 29 selector panel buttons, list of 26 starting 22 tables 33 toolbar 30, 401 user and Retrieve SenderID from session 287, 453 contact adding 121, 151, 153 deleting 123 editing 121, 151, 153 Contact tab fields for partner 151 fields for your profile 121
content types and Respond with processing action 347 control number of TPA 179 conventions used in this document 15 ConversationID Basic Criteria tab 444 case-sensitive 444 document search criteria 436 that you want to view 444 extracting for flat file 288 for flat file documents 281 extracting for XML documents 210 search criteria 444 system attribute 194 converting pub.flatfile:convertToValues service 278, 295 TPA and exporting to industry-standard 180 copying See also duplicating document attributes 182, 196 document content to database 355 not copying data to new database 43 public queues 380 Corporate tab external ID types 120, 149 fields for partner 147 fields for your profile 118 corporation information adding 147 logo, See corporate logo name, standard field 89 profile 106 creating duplicate document check 329 immediate delivery service 411 profile group profile 55 partner 146 your own 115 scheduled delivery service 413
555
Index
Criteria tab list of fields 349 processing rules document errors 352 document types 351 receiver 350 sender 349 user status 352 custom attributes, See custom attributes Console setting preferences 61 scheduled delivery service and wm.tn.transport:batchFtp delivery service 413 search criteria documents 437, 445 profiles 167, 170 transaction analysis 437, 445 custom attributes 194 changing the order of 35, 171, 446 Custom Criteria tab 445 custom document search criteria 437 Detail View tab 35, 446 Extended Criteria tab in processing rules 322, 353 extracting for flat file 285 for XML documents 211 moving in Detail view 35, 446 processing rule criteria 322 Custom Criteria tab list of fields profiles 170 transaction analysis 445 profiles attribute 170 operator 171 value, for queries 171 trading partner profiles 170 transaction analysis attribute 445 operator 445 value, for queries 445
custom service duplicate document check 328, 329 large document handling 543
D
data status modifiable 180 non-modifiable 180 only when agreement status is Agreed 180 data types DATETIME for flat file 289 for flat file document 289 for XML document 214, 215 DATETIME LIST for flat file document 289 for XML document 214, 215 in search criteria 167, 437 NUMBER for flat file document 290 for XML document 214, 218 NUMBER LIST for flat file document 291 for XML document 218 STRING extended profile field 97 for flat file 289 for flat file document 289 for XML document 214, 216 STRING LIST for flat file document 289 for XML document 214, 216 database and delivery queue 411 clustered environment 44 exporting data from command line 526 information 506 using tnexport utility 526 exporting and importing 507 identifying services sharing database 49
556
Index
importing data from command line 526 information 506 using tnimport utility 526 migrating to another database 506 non-clustered environment 45 password for 43 properties 43 saving flat file documents to 297 saving XML documents to 230 separate database for each instance of Trading Networks 47 URL and location of 43 user name for 43 date range delivery task query 473 service execution task query 486 TPA query 187 date received Basic Criteria tab 444 defined 437 document search criteria 437 DATEIMTELIST data type 325 DATETIME data type 325 documents search 440 for XML document 214 specifying detail information for attributes 215 for flat file document 289 transaction analysis custom search 440 DATETIME LIST data type documents search 440 for flat file document 289 for XML document 214, 215 transaction analysis custom search 440 Days, Run Mask setting 386 deactivating vs. permanently deleting processing rules 375 debug mode, Integration Server 19 Decrypt/Encrypt sub-tab (on Security tab) for partner profiles 144, 160 for your profile 113, 126 list of trusted CA certificates 113, 144 default data type 100 delivery service, alternative to 421
extended field value 97 namespaces 222 port number for FTP 123 on partner profile 137 on your profile 111 port number for FTPS 123 on partner profile 137 on your profile 111 port number for HTTP 123 on partner profile 137 on your profile 111 port number for HTTPS 123 on partner profile 137 on your profile 111 processing rule 316, 317 Add Last option 314, 348 listed last 363 profile field value 100 server 61 string data type 97, 100 values for properties.cnf parameters, See online help from TN Properties page defining document attributes 196 document gateway service outputs 276, 280 document types 72, 80 processing rules 81, 347 based on a saved document 362 public queue 380 scheduled delivery service inputs 413 scheduled delivery service outputs 414 TPA 181 XML document types 232 definitions, Refer to the Glossary in the Trading Networks Concepts Guide Delete Query toolbar button 401 deleting address 119, 152, 155 certificates, from partner profile 162 certificates, from your profile 127 contact 123 delivery method 124 delivery tasks, manually 478 disabled extended fields 103
557
Index
external ID 121, 149 flat file document types 308 partners profile 175 private key 128 in partner profile 163 processing rules 374 profile 174 referenced by TPA 192 profile group association 150 public queues 384 saved document queries 408 scheduling of archival and deletion service 458, 461 TPA 192 XML document types 266 deliver document immediate delivery methods and reliable delivery 343, 344 large documents, See large documents maximum retries 141, 158, 343, 345 multiple times 343 polling frequency 142 polling method 142, 159 processing rule action 341, 433 prerequisites for 342 protocol 111, 137 queue for polling 112, 141 retry factor 142, 159, 343 wait between retries 53, 141, 158, 343 delivering task status 471 delivery See also document delivery and deliver document activity class 497 jobs, See delivery tasks location 124 for your profile 112, 138 on partner profile 154 method, See delivery method polling, See queue for polling queue, See delivery queue schedule, See scheduled delivery service service, See delivery service tab, See Delivery Method tab tasks, See delivery tasks
Delivery Maximum Retries 141 delivery method 158, 343, 345 delivery method adding 123, 153 deleting 124 on partner profile 155 delivery task 467 query 473 search criteria 473 editing 123, 153 maximum retries 141, 158, 343, 345 preferred, See preferred protocol protocol 123 on partner profiles Delivery Method tab 137, 153 on your profiles Delivery Method tab 111, 123 queue for polling 112, 141 retry factor 142, 159, 343 service execution task, not applicable to 483, 484 service name 421 tab, See Delivery Method tab Trading Networks, out-of-box 111 use as preferred protocol for your profile 112, 124 on partner profile 141, 155 viewing 472 wait between retries 158 Delivery Method tab Delivery Maximum Retries, on partner profile 141, 158 Delivery Maximum Retries, processing rules 343, 345 e-mail address 139 for your profile 112 on partner profile 139 fields, for your profile 123 fields, on partner profile 153 host 111, 137 location for your profile 124 Location field 112, 138 on partner profile 154 password, for partner to update your profile to the partners system 166 password, your TN system to supply when connecting to partners system 139 polling 142, 159
558
Index
port 123 port, for your profile 111 port, on partner profile 137 protocol 123 on partner profile 137, 153 on your profile 111, 123 Queue for delivery, partners profile 155 Retry Factor 142, 159, 343 Use as preferred protocol, for your profile 112, 124 Use as preferred protocol, on partner profile 141, 155 use public queue 139 user name 138 Wait Between Retries, configuration 53 Wait Between Retries, on partner profile 141, 158 Wait Between Retries, processing rules 343 delivery queue defined in Trading Networks 411 delivery schedule 410 scheduled delivery service 410 delivery service adding and registering 422 adding new service 421 Batch FTP 381 defined 410 executing 422 execution task queries 489 host name of Integration Server 423 immediate, See immediate delivery service input parameters, list of 423 Java code 422 password 424 port number of Integration Server 424 private queue 156 registering 421, 422 re-registering 425 schedule complex options (Complex Interval) 386 to repeat (Simple Interval) 385 to run once 385 scheduled, See scheduled delivery service service name 421, 424 name of delivery method 423 serviceOutput IS document type 411
user name of User account 424 webMethods Developer 422 wm.tn.delivery:registerService built-in service 422 delivery tasks and reliable delivery 343, 345 cannot stop for scheduled delivery 476, 477, 478 configuration settings 52 defined 466 deleting manually 478 delivering task status 471 delivery method 467 done task status 469, 471 exporting as comma-separated values 475 exporting information to a file 474 failed task status 470, 471 finding 472, 485 immediate deliveries, task statuses 469 information, list of 467 managing 466 new task status 469 pending task status 469 printing 474 queries 475 query 472 queued task status 470 reassigning to another server 479 reliable delivery 466 restarting 477 retries 468, 484 retry factor 467, 484 retry limit 467 saving queries 475 scheduled delivery queue 378 scheduled delivery, task statuses 470 search criteria for 472 viewing task 472 server ID 468, 479 status 468, 484 delivery task query 473 message 468, 484 viewing 472 stop for immediate delivery 476, 477 stopped task status 470
559
Index
task ID 467 task manager 52 task output 469 task status 469 task type 467 time created 467, 472 time to wait before retry 468 time updated 467 tracking 466 transport time 468 viewing 472, 485 in your system 472 tasks associated with a document 474 when automatically deleted 469 Detail View after search 367, 441 buttons, navigation arrows 406 columns documents 441 processing rules 367, 371 profiles 168 custom attributes 35, 446 defined 428 exporting information to a file 450 moving selected custom attributes 35, 446 profile 171 repositioning attributes 35, 171, 446 rows 367 sorting attributes 446 standard attributes 35, 445 Transaction Analysis screen 448 Developer, See webMethods Developer diagram of document attributes and how it relates to TN document types 195 processing rules ordering 314 Query tabs displayed 30, 403 hidden 29, 402 Query toolbar buttons for the Trading Partners screen 400 location on Console screen 400 Trading Networks Console 25
user status and processing 320 Using fields in bizdoc to determine location of document content 546 wm.tn.transport:batchFtp service 419 digital certificates, See certificates digital signatures verifying 144, 160 digital signatures, verifying for flat file 294 for flat file document 294 for XML document 227 pre-processing action 354 disable action 391 Disable Queue, public queue state 382 disabled agreement status 188 document attributes 198, 199 hiding 199 extended fields 98, 102, 103 displaying 101 flat file document types 306, 308 inactive status of TPA 188 state of scheduled delivery queue 390 XML document types 255, 266 disabled extended fields 103 disabling a profile 129, 175 document attributes 199 extended fields 102 flat file document types 308 partners profile 175 permanently removing flat file document type from database 308 permanently removing XML document type from database 266 processing rules 373 vs. permanently removing extended fields 103 XML document types 266 your profile 129 disconnecting Trading Networks Console from Integration Server 19 display area on Trading Networks screen 29 Display Column panel processing rules query 375
560
Index
Display Column panel, processing rules query 371 displaying, See viewing DOCTYPE identifier 206, 208 Identify tab 236, 248, 258, 263 DoctypeID, extracting for flat file documents 280 DoctypeName, extracting for flat file documents 280 document attributes custom, See also custom attributes copying 182, 196 custom 194 DATETIME data type 325 for flat file 289 for XML document 214 DATETIME LIST data type 440 DATETIMELIST data type 325 defining 196 detail information for XML documents 214 determining TN document type dependencies 201 disabled 198 disabling 199 enabling 200 generating reports 196 list of 197 lowercase 216, 289 managing 198 new with empty fields 146, 196, 235, 247, 348, 349 NUMBER data type 218, 324 for flat file document 290 for XML document 214 NUMBERLIST data type 324 purchase order, as example of extracted string attributes 216, 289 requiring extraction from flat file document types 285 requiring extraction from XML documents 213 saving average value of 218, 290 for XML document 214 maximum value of 218, 291 for flat file document 291 minimum value of 218 for flat file document 290 sum value of 218 for flat file document 291
STRING data type 323 for flat file 289 for XML document 214 string substitution 217, 290 STRINGLIST data type 323 system attributes, See also system attributes TN_parms 276, 280 transform for XML document 214 updating 199 uppercase 216, 289 using as search criteria 195 viewing 198, 448 related activity log entries 449 document delivery action, See deliver document and processing rules configuration 51 deliver document by processing rule action 341 delivery tasks, See delivery tasks from email address 51 immediate delivery methods and reliable delivery 343, 344 large documents, See large documents processing rules, See deliver document and processing rules reliable delivery 466 and immediate delivery 343 and scheduled delivery 344 screen, to view delivery tasks 472 selector panel button 28 task manager 52 tn.mail.from property 51 tn.mail.subject property 51 tn.task.sweepTime property 52 via e-mail, configuration settings 51 viewing delivery tasks in your Trading Networks system 472 document errors Criteria tab 352 criterion 321, 352 has criteria 322 has no criteria 322 may have criteria 322 processing rule criterion 321, 352 list of 322
561
Index
document gateway service $contentEncoding variable for flat file document 278 $receiveSvc variable for resubmitting flat file document 454 defined 70, 272 inputs and outputs 276 outputs, list of 276, 280 overview 272 resubmitting flat file document 454 service signature for 276 wm.tn.doc.ff:routeFlatFile 277 wm.tn.samples.gateway:gateway 276 wm.tn:receive 277 document types See also IS document types See also TN document types See also flat file document types See also XML document types DOCTYPE identifier 236 processing rule criterion 319, 351 selector panel button 27 documentation additional 16 conventions used 15 feedback 16 DocumentID Basic tab 443 case-sensitive 443 duplicate document for flat file document 296 for XML document 229 pre-processing action 327 extracting for flat file documents 280 extracting for XML documents 210 of document that you want to view 443 search criteria 435, 443 system attribute 194 documents 542 ACCEPTED status, change to 397 ACCEPTED W/ERRORS status, change to 397 ambiguous 268 archiving 456 archiving properties, list of parameters 458
attributes, See document attributes basic search criteria, list of 366, 429 batch, and scheduled delivery queue 378 deleting saved queries 408 delivery, See document delivery digitally signing 144, 160 DONE status, change to 396 DONE W/ERRORS status, change to 396 errors, See document errors extracting attributes for processing 71 flat files, See flat file documents gateway service, See document gateway service large, See large documents managing 428 matching to flat file document type 294 matching to XML document type 226 partner as receiver 431 as sender 430 pollable 450 POLLABLE status, change to 397 printing information about 450 processing a saved document again 452 reprocessing 454, 455 resubmitting 452, 454 queue for polling 397 QUEUED status, change to 396 recognition, See recognition retrieving content with wm.tn.doc:getDeliveryContent service 412 reverting to saved queries 407 saving queries 404 scheduled delivery queue 396 search criteria basic list 429 custom 437 SQL query 451 tracking 428 types, See document types types, See TN document types
562
Index
unknown receiver 431 sender 430 TN document type 432 updating saved queries 406 viewing 428 activity log entries related to 449 content 448 delivery tasks associated with 474 in a queue 396 in your system using Partner 447 pollable documents 397 related documents 449 scheduled delivery documents 396 service execution tasks associated with 487 XML, See XML document done delivery task status 469, 471 service execution task status 483 DONE processing status 433 and scheduled delivery queue 396 DONE W/ERRORS processing status 433 and scheduled delivery queue 396 draft status of TPA, proposed 188 drain action, scheduled delivery queue 392 Drain Queue, public queue state 383 drained state, scheduled delivery queue 391 D-U-N-S number, as ID type 120, 149 duplicate See also copying document, See duplicate document check flat file document type 300 XML document type 233 duplicate document check 327 Check for Duplicate Document processing action 327 custom services 328 DocumentID for XML document 229, 296 pre-processing action 327 for flat file document 296 ReceiverID 327 SenderID 327 TN document type 327
E
ebXML wm.ip.ebMXL.cpa.rec:tpaDataSchema 179 wm.ip.ebxml.cpa:initTPA 181 e-delivery service, example of scheduling times 385 EDI control number and TPA 179 wm.b2b.editn.TPA:EDITPA 179 wm.b2b.editn.TPA:initService 181 Edit menu option 26 editing address 119 contact 121, 151, 153 delivery method 123, 153 extended field 125 external ID 118, 120 public queues 380 e-mail address 90 address as recipient of e-mail message 339 Alert action 90, 338 configuration settings for document delivery 51 delivery location for partner 139 for your profile 112, 124 example of message body 340 from address 51 partner to deliver to 139 pipeline information 340, 347 recipients, list of 338 standard field 90 subject when delivering document 51 enable, See enabling enabled document types, See also disabled document types flat file document types 309 state, scheduled delivery queue 390 XML document types 267
563
Index
enabling a profile 129, 176 document attributes 200 extended fields 103 flat file document types 309 partners profile 164, 176 processing rules 374 public queue state 382 queue state 382 scheduled delivery queue state 391 toolbar button for showing just enabled 199, 201 XML document types 267 your profile 129 encoding, $contentEncoding variable for flat file document 278 Encrypt sub-tab See Decrypt/Encrypt sub-tab End Date, Complex Interval setting 386 End Time, Complex Interval setting 386 Enterprise in processing rule 318 profile 106 profile query 166 query for profile 166 selector panel icon 26 viewing activity log entries using Enterprise 498 vs. Trading Partners view, for Sent and Received queries 447 envelope activity class 497 error messages Activity class 497 limit number of 228, 296 logged to activity log for XML document 228 profile fields 116, 163 errors document recognition, processing rule criterion 352 document, See document errors import database 525 invalid e-mail 339 OutOfMemory when parsing 278, 295 parsing (OutOfMemory) 278, 295 undefined webMethods administrator 339 unknown receiver in e-mail address 339 unknown sender in e-mail address 338
example of CBL document and XQL query and NUMBER data type 219 Complex Interval delivery service settings 387 e-mail message body 340 namespace affecting XQL queries 223 in XML document 221 mappings 223 processing rules ordering 314 purchase order as example of extracted string attributes 216 purchase order, as example of extracted string attributes 289 scheduling delivery service times 385 service execution task parameters 53 standard profile field entries 89 uses for processing rules 81 execute a service asynchronously 331, 357, 433 delivery 422 how often task manager runs 52 prerequisites for processing rule action 330 processing rule action 330, 433 reliable execution 331 service execution task 331 setting input values 336 synchronously 331, 357 EXIT flow operation 418 export service of TPA 180 vs. export function 184 exporting activity log information 502 database information 506 from Console 519 items you can export 507 tnexport utility 526 delivery task information 475 detail view information 450 query results, activity log 502 service execution task information 488 extended criteria attributes you can select 322 operator 322 tab, See Extended Criteria tab value of custom attribute 325
564
Index
Extended Criteria tab 353 attribute 353 operator 353 value 353 extended fields adding 98 custom profiles search criteria 167 defined 84, 88 disabled 98, 102 disabling 102 editing 125 enabling 103 Group 125 managing 101 permanently remove vs. disable 103 profile 97 tab, See Extended Fields tab viewing 164 for your profile 101, 125 on partner profile 159, 163 extended profile fields, See extended fields external ID information adding 118, 120 deleting 121, 149 editing 118, 120 external ID type adding 148 Corporate tab on Profile screen 120, 149 ReceiverID for flat file 215 for flat file documents 286, 288 for XML document 214 required type 50 SenderID for flat file documents 286, 288 for XML document 214, 215 tn.required.idType to specify required type 50 extracting attributes from documents 71 information for TN document type 214
custom attributes for flat file 285 for XML document 211 information for XML document 210, 214 system attributes for XML document 210
F
failed delivery task status 470, 471 service execution task status 483 failure and exiting scheduled delivery service 418 message, EXIT flow operation 418 ffdata, output for flat file document 276, 280 fields extended, See also extended fields extended, See extended fields profile, See also profile fields required 88 standard 84, 88 that you define 84, 88 webMethods-defined 84, 88 File menu option 26 File Screen function 26 files .csv file 450, 475, 488, 502 .txt file 450, 475, 488, 502 exporting delivery information to 474 detail view information to 450 service execution information to 488 sample XML 532 script 18 server.sh script file 18 Trading Networks properties file 42 final status of TPA, agreed 188 finding delivery tasks 472, 485 processing rules 366, 367 profiles 166 TPAs 185
565
Index
flat file document types See also flat file documents 539 associated with parsing schema 279, 295 attributes in the definition 283 defining 283 definition of 272 disabled 306 disabling 308 document gateway service, See document gateway service duplicate 300 enabling 309 Extract panel 301 Identify panel 300 new with empty fields 300 non-matching 284 options 294 Options tab 304 parsing schema 304 permanently removing from database 308 requiring extraction of attributes 285 schema, see flat file schema unknown 284 viewing 306 flat file documents converting the input stream to an IS document 278, 295 defined 272 digital signature, verifying flat file document 294 document gateway service 454 See also document gateway service document types 283 See also flat file document types duplicate document check 296 ffdata 276, 280 reading the input stream 278 resubmitting 454 saving document to database 297 TN_parms 276, 280 wm.tn.doc.ff:routeFlatFile 277 wm.tn.samples.gateway:gateway 276 wm.tn:receive 277 flat file schema and flat file document structure validation 295 associated with document type 279, 295
flow services delivery task 415 writing document gateway services as flow services 276 flow services, writing document gateway services as flow services 278 FTP delivery location, for your profile 112, 124, 138 delivery location, on partner profile 154 port number 123 port number, for your profile 111 port number, on partner profile 137 protocol, on partners profile 137 protocol, on your profile 111 wm.tn.transport:batchFtp delivery service 411 FTPS delivery location, for your profile 112, 124, 138 delivery location, on partner profile 154 port number 123 port number, for your profile 111 port number, on partner profile 137 protocol, on partners profile 137 protocol, on your profile 111 full message on activity log 497, 500
G
gateway service, See document gateway service group Administrators ACL 23 Extended Fields tab 125 profile group, defining 135, 150 profile group, deleting 150 GroupID Basic Criteria tab 444 case-sensitive 444 document search criteria 436 extracting for flat file documents 281 extracting for XML documents 211 of document that you want to view 444 search criteria 444 system attribute 194
566
Index
H
handling exceptions, and wm.tn.queuing:deliverBatch service 418 hard disk drive space, and storing large documents 547 has errors processing rule criteria 322 has no errors processing rule criteria 322 Help menu option 26 Hide query toolbar button 401 hiding disabled document attributes 199 flat file document types 306 XML document types 255 queries panels 448 toolbar button for 401 high availability environment 44 host delivery service 423 Hours, Run Mask setting 386 HTTP delivery location, for your profile 112, 124, 138 delivery location, on partner profile 154 password 64 port number 123 port number, on partner profile 137 port number, on your profile 111 primary delivery method 342 Primary/Secondary 165 protocol, on partners profile 137 protocol, on your profile 111 proxy server address 64 user name 64 user name, for primary/secondary fields 165 HTTPS delivery location, for your profile 112, 124, 138 delivery location, on partner profile 154 password 65 port number 123 port number, on partner profile 137 port number, on your profile 111 Primary/Secondary 165 protocol, on partners profile 137
protocol, on your profile 111 proxy server address 64 secure 64 user name 64 user name, for primary/secondary fields 165 hub Enterprise local partner 349 Integration Server for queue for polling 395
I
icons Activity Log 28 Agreements 27 Delete Query 401 Document Types 27 Hide query 401 Processing Rules 27 Profile 26 Revert to Saved Query 401 Run Query 401 Save Query 401 Save Query As 401 Show Enabled 199, 201 Show query 401 Tasks 28 Transaction Analysis 28 ID type Corporate tab on Profile screen 120, 149 D-U-N-S number 120, 149 external 50, 120, 149 required type 50 tn.required.idType to specify required type 50 identification information for XML document types, list of items 206 identification of flat file documents 283 identifier DOCTYPE, See DOCTYPE identifier system, See system identifier Identify panel See also Identify tab list of flat file fields 300 root tag, flat file document type 301
567
Index
Identify tab See also Identify panel DOCTYPE identifier 236, 248, 258, 263 list of fields 234, 247 root tag 236, 248, 258, 263 identifying queries 207 See also XQL queries 206 adding to XML document type 235, 248 defined for XML document 206 updating in XML document types 257, 262 immediate delivery reliable delivery 343, 344 service, See immediate delivery service stopping delivery tasks 476, 477 task query 473 immediate delivery service creating 411 defined 410 do not save in WmTN package 412 input and output variables 411 name of new 421 output, serviceOutput IS document type, variable 412 retrieving document content 412 status, serviceOutput IS document type, variable 412 statusMessage, serviceOutput IS document type, variable 412 transportTime, serviceOutput IS document type, variable 412 wm.tn.rec:DeliveryServiceSignature defined input and output variables 411 implicit matching of senders/receivers in processing rule queries, See Perform Implicit Matching option import/export feature, instances of Trading Networks 47 importing database information 506 from console 524 items you can import 507 tnimport utility 526 inactive change status to 129, 175 profile status 116, 164, 173, 256 status of TPA, disabled 188 information activity log, exporting 502 delivery task, list of 467 delivery, exporting 474 detail for attribute, for XML document 214
detail view, exporting 450 display in detail view 367, 441 document attributes and content, viewing 448 document attributes, extracting 71 extraction, for XML documents 210 namespaces, for XML document types 221 options,for XML document types 226 partners planning 80 planning to add 82 service execution task exporting 488 list of 482 initialization service, TPA 181 input stream converting a flat file to an IS document 278, 295 reading flat file 278 input stream of flat file document 278, 295 inputs defined by wm.tn.rec:DeliveryServiceSignature 411 immediate delivery service, variables for 411 scheduled delivery service, list of 413 setting values for executing a service 336 Integration Server (IS) 18 clustered environments 44 configuring Trading Networks for clustered environment 48 connecting to 23 debug mode 19 document types, See IS document types host name, for delivery service 423 logging on to 23 opening session on 23 port number, for delivery service 424 predefining list of 61, 62 proxy server 63 schema, See IS schema server ID for delivery task 468 reassigning delivery task 479 reassigning service execution task 492 service execution task 484 shutting down 19 starting from the command line 19
568
Index
starting on UNIX 18 starting on Windows NT 18 trusted CA certificates list 113, 144 wm.tn.rec:TaskFailure 52, 470, 471 Integration Server (IS) schema, See IS schema InternalID 435 IS document types associated with TN XML document type 240, 252 associated with TN XML document types 226 associated with XML document types 226, 231 changing data inputs 190 data input dialog buttons 190 data tree on Agreement details screen 181 initialization service 181 TPA 179 TPA query 186 wm.b2b.editn.TPA:EDITPA 179 wm.ip.ebMXL.cpa.rec:tpaDataSchema 179 IS document, converting flat file input stream to 278, 295 IS schema and XML document structure validation 228 associated with XML document type 227, 240, 252 pub.schema:validate built-in service 228
J
Java API 319 GUI, starting 22 jcode utility and delivery service 422 services, writing as document gateway services 276, 278 java.io.InputStream class 278 JDBC driver and database 43
L
large documents bizdoc 545 creating services 544 features not available for 543 handling 542 hard disk drive space 547 nodes 548 overview 542 processing 548
retrieving document content with wm.tn.doc:getDeliveryContent service 412 sending for processing 548 stored in memory 547 viewing on Transaction Analysis screen 549 wm.tn.doc:getContentPartData service 547 wm.tn.doc:getDeliveryContent service 548 XML document types 544 XOL queries 544 large, See large documents Last Modified Time, processing rules query 371 licensed seat 24 load sample XML document 233 local partner See also Enterprise as sender/receiver, for processing rule criteria 318 location /invoke/wm.tn/receive 112, 124, 138, 154 database 43 of attribute in TN document type 195 URL for delivery for your profile 124 on partner profile 154 on your profile 112, 138 logging off of current server 24 Trading Networks Console 37 logging on to Integration Server 23 Trading Networks Console 22 logic required in scheduled delivery service 415 typical to include in scheduled delivery service 417 lowercase document attribute values 216, 289
M
managing delivery tasks 466 document attributes 198 documents 428 extended fields 101 partners 131 processing rules 372
569
Index
profiles, your own 117 scheduled delivery queue 390 service execution tasks 482 TPAs 185 your profile 105 manually adding profile user name 443 deleting delivery tasks 478 deleting service execution tasks 491 mappings, namespace defining from xmlns attribute in sample document 225 description 223 guidelines for defining 225 in XML document types 221 matching TN document types 319 XML document types 209, 268 maximum retries for service execution task 53 retry limit, for delivery 467 saving value for document attributes 218, 291 for flat file document 291 for XML document 214 may have errors processing rule criteria 322 memory, large documents 547 menu bar, Console 26 menu options Edit 26 File 26 Help 26 Screen function 26 Tools 26 View 26 menus Console 26 on screen 34 right-click on screen 34 Trading Networks 26 messages brief, activity log 497, 499 content type 347 error, See error messages full, activity log 497, 500
respond with (processing rule action) 346 status delivery message 468, 484 migrating database information 506 data you can migrate 507 minimum saving value for document attributes 218 for flat file document 290 for XML document 214 Minutes, Run Mask setting 386 modifiable TPA data status 180 Months, Run Mask setting 386 multiple custom attributes, in search 440 instances of Trading Networks 44 panes 31, 32
N
name of new immediate delivery service 421 of scheduled delivery service 421 processing rules query 370 public queues 381 namespace mappings defining from xmlns attribute in sample document 225 description 223 guidelines for defining 225 namespaces and XQL queries 223 default 222 defining 222 description 221 elements in 221 example, in XML document 221 example, mappings 223 example, with XQL queries 223 guidelines when defining namespace mappings 225 in XML document types 221 mappings, See namespace mappings prefix 222 default namespace 222 URI 222 network planning 68
570
Index
new delivery task status 469 document attribute 146, 182, 196, 235, 247, 348, 349 extended profile field, adding 98 flat file document type 300 processing status 433 public queues 380 server, adding 62 service execution task status 483 XML document type 233 New Document Type screen, sample XML document from 233 NEW processing status 433 New Protocol tab delivery service, private queue 156 fields, partners profile 155 private queue 156 public queue 155 queue state, private queue 156 node in large documents 548 in XML document 207 viewing 236, 239 non-clustered environment and shared database 45 non-matching flat file document types 284 TN document types 319 XML document types 209, 268 non-modifiable TPA data status 180 non-root user 19 notification notifying servers in cluster change to cached memory 49 change to Trading Networks properties 49 new user accounts 49 tn.cluster.notifyCacheChange 49 tn.cluster.notifyProfileAddUser 49 tn.cluster.notifyPropertyChange 49 notification when required attributes not extracted 213 null user status 319, 320, 341 NUMBER data type 218, 324 documents search 439 for flat file document 290
for XML document 214 transaction analysis custom search 439 NUMBER LIST data type for flat file document 291 for XML document 218 NUMBER, sample of CBL document 219, 291 NUMBERLIST data type 324 documents search 439 transaction analysis custom search 439
O
online help for TN Properties page, accessing 42 opening sessions on Integration Server 23 on servers 24 operator Custom Criteria tab 445 custom search criteria 437 profile fields 167 extended criteria in processing rules 322 Extended Criteria tab 353 options flat file document types 294 pre-processing for XML document 226 XML document types 226, 240, 252 list of 226 Options tab, list of fields 240, 252 order of processing rules 313, 363 search 371 ordinals processing rule order 313 processing rules query 371 other servers, opening/closing sessions on 24 OutOfMemory errors, parsing 278, 295 output delivery task 469, 484 outputs defined by wm.tn.rec:DeliveryServiceSignature 411 document gateway service, list of 276, 280 ffdata for flat file document 276, 280 immediate delivery service, variables for 411, 412 scheduled delivery service, list of 414 template tags 340, 347
571
Index
overview document gateway service 70 document gateway service and flat files 272 exporting and importing database information 506 Trading Partner Agreement (TPA) 178
P
panes multiple 31 resizing 32 single 31 split 31, 32 tabs 32 parsing 278, 295 flat file documents 295 flat file schema 279, 295 flat file schema associated with flat file document type 279, 295 OutOfMemory errors 278, 295 pub.flatfile:convertToValues 278, 295 schema associated with flat file document type 304 partner authority, Web Manager 451 Partner Connect Express 39 partners See also trading partners activity log 499 adding 145 adding profile 145 and delivery task 472 and TPA 178 as receiver for document 431 as sender for document 430 certificate information 144, 160 Contact tab 151 Corporate tab 147 creating a partners profile 132 deleting profile 175 Delivery Method tab 153 delivery task query 473 delivery task search criteria 473 disabling profile 175 enabling profile 164, 176 Extended Fields tab 159
indicating you want to poll their systems for documents 142, 159 management, See trading partner management managing 131 NEW QUEUE tab 155 partner passwords, protecting 139 passwords, protecting 424 planning for adding partners 82 to work with partners 80 polling for documents 394 profile 84, 85, 132 creating 132 information 132 profile group 150 Profile screen 132 receiver of documents to view 442 Security tab 144, 160 sender of documents to view 442 service execution task query 486 service execution task search criteria 486 unknown 318 updating profile 173 user name 138 when manually creating a profile 443 viewing activity log entries 499 activity log entries using Enterprise 498 documents in a partners system 451 information for 26 partner receiving document 472 password case-sensitive, on Proxies tab 64, 65 database 43 Delivery Method tab 139, 166 delivery service 424 for accessing Web Manager 451 for user account 23 informing partner of 165 partner passwords, protecting 424 partner, protecting 139 profile 139 Proxies tab 64, 65
572
Index
to access HTTP proxy server 64 to access HTTPS proxy server 65 viewing when hidden 139 Web Manager 451 when logging in 23 Password Manager, role of 139, 424 pattern-matching characters, on Basic Criteria Tab 443 pending delivery task status 469 service execution task status 483 PENDING processing status 433 Perform Implicit Matching option specifying receiver in processing rule query 370 specifying sender in processing rule query 369 persistence, when archiving and deleting 459, 461 pipeline information in body of e-mail address 340, 347 output template tags 340, 347 TN_parms 276, 280 pipeline matching variable for XML document 206, 208 planning business document exchange 68 document information for processing 71 extracting document attributes 71 network 68 partner information 80 processing rules 81 profiles, creating 81 TN document types 72 Trading Networks 67 trading partner management 68, 80, 82 transaction types 69 pollable documents, viewing 450 POLLABLE processing status 433 status and queue for polling 397 polling for documents 394 frequency that Trading Networks polls partners system 142 how receiving partners poll for documents 394 method to retrieve queued documents from partners 142, 159 on Delivery Method tab on partners profile 142, 159 queue for, processing rule action 359
requesting list of queued documents 394 specifying you want to poll partners system 142 port delivery service 424 port number default 123 default, on partner profile 137 default, on your profile 111 FTP 123 FTP, on partner profile 137 FTP, on your profile 111 FTPS 123 FTPS, on partner profile 137 FTPS, on your profile 111 HTTP 64, 123 HTTP, on partner profile 137 HTTP, on your profile 111 HTTPS 64, 123 HTTPS, on partner profile 137 HTTPS, on your profile 111 preferences proxy servers 63 servers Console can open sessions on 62 preferred delivery method See also delivery method See also preferred protocol See also Use as preferred protocol receivers 359 standard field 89 preferred protocol See also Use as preferred protocol exception 155 for your profile 112, 124 on partner profile 141, 155 receivers, processing rule action 359 prefix for namespace 222 pre-processing actions, See pre-processing actions tab, See Pre-Processing tab pre-processing actions defined 312, 327 duplicate document check of an XML document 228 duplicate document check of flat file document 296 list of 327
573
Index
for flat file 226 for XML document 226 saving document to database 355 flat file document to database, flat file document 297 XML document to database 230 XML document type to database 228 tab, See Pre-Processing tab validating the structure of document 354 flat file document 295 XML document 228 verifying digital signature of document 354 flat file document 294 XML document 227 Pre-Processing tab list of fields 354 validate 354 verify 354 prerequisites for adding a profile 146 Alert e-mail processing rule action 338 check duplication of documentID 327 documentID and SenderID 327 documentID, SenderID, and document type 327 documentID, SenderID, and ReceiverID 327 deliver document processing rule action 342 execute a service processing rule action 330 reprocessing a saved document 455 resubmitting a saved document 452 printing activity log information 502 delivery tasks information 474 information about documents 450 service execution tasks information 488 transaction analysis 450 private key adding 114 adding in partner profile 162 adding to your profile 128 deleting 128
deleting in partner profile 163 viewing in partner profile 162 viewing in your profile 127 Private Key field, on Security tab for partner profile 145, 162 for your profile 114, 127 private queue cannot use as preferred protocol 155 changing state of 393 defined 379 delivery service, See also scheduled delivery service on NEW QUEUE tab 156 preferred protocol, cannot use as 155 queue state on NEW QUEUE tab 156 on Settings sub-tab 156 Schedule tab 157 scheduling delivery 384 Settings tab 156 using 156 processing actions, See processing rules, actions activity class 497 document again flat file document 454 reprocessing 454, 455 resubmitting 452, 454 documents, See business document exchange large documents, See large documents planning for 81 reprocess function 454, 455 resubmit function 452, 454 rules, See processing rules saved document again 452 transaction types 69 processing rules ABORTED status 434 ACCEPTED status 434 ACCEPTED W/ ERRORS status 434 action Change user status 341 Deliver document 433 Deliver the Document to the Receiver 341
574
Index
Execute a service 330, 433 list of 329 Respond with a message 346 Send an Alert E-mail 338 adding and order of 313 and pre-processing actions 312, 327 any document type 319 any receiver 318 any sender 318 based on a saved document 362 Basic Criteria tab 366 change order of rules 364 user status 341 Check for Duplicate Document pre-processing action 327 criteria 317 custom attributes 322 example of 317 Criteria tab 349 custom attribute 322 default 316, 317 listed last 363 defined 312 defining 347 one based on a saved document 362 deleting 374 deliver document by (action) 341, 433 Detail View tab 371 disabling 373 document errors criterion 321, 352 type criterion 319, 351 DONE status 433 DONE W/ERRORS, as search criteria 433 duplicate document check 327 enabling 374 Enterprise 318 execute a service (action) 330, 433 extended criteria 322 Extended Criteria tab 353 finding 367 local partner as sender/receiver 318
lookup 312 bypassing lookup 326 ordering rules for lookup 313 reordering rules for lookup 316 managing 372 NEW status 433 order of 313 ordering 313, 363 example of 314 ordinal 313 PENDING status 433 permanently deleting vs. deactivating 375 planning 81 POLLABLE status 433 Pre-Processing tab 354 queries 367 "Any" document type 370 function 366 implicit matching of receiver 370 implicit matching of sender 369 QUEUED status 433 receiver criteria 317, 350 receiver, preferred protocol (action) 359 reprocess function 454, 455 prerequisites for 455 respond with a message (action) 346 resubmit function 452, 454 prerequisites for 452 results table 367 changing display format 371 saving 360 search 367 search criteria, basic list 366 search order 371 selected document type 319 receiver 318 sender 318 selector panel button 27 send an alert e-mail (action) 338 sender criteria 317, 349 stateless 81
575
Index
summary information 367 table 367 changing display format 371 testing order of 365 unknown document type 319 receiver 318 sender 318 user status criterion 319, 352 viewing 366, 367 Processing Rules screen selector panel button 27 processing status Basic Criteria tab 442, 443 for document to be viewed 433, 442, 443 list of 433, 442, 443 search criteria 433, 442, 443 processingRuleID, extracting, for flat file documents 282 processingRuleName, extracting, for flat file documents 282 profile adding partners 85, 132 assistant, See Profile Assistant Basic Criteria tab 167 basic search criteria, list of 167 configuration settings 50 Contact tab partners profile 151 your profile 121 Corporate tab partners profile 147 your profile 118 creating a partners profile 132 planning for 81 defined 106, 132 deleting 174 one referenced by TPA 192 partners 175 Delivery Method tab partners profile 153 your profile 123 disabling partners profile 175 your profile 129
enabling partners profile 164, 176 your profile 129 Enterprise 106 error message 116, 163 Extended Fields tab partners profile 55, 143, 159 your profile 113 fields, See profile fields managing 105 partners profile 131 your profile 117 New Protocol tab 155 partners profile 84, 85, 132 Profile screen 132 planning to create 81 Profile screen, See Profile screen query function 166 results table 168 search 168 search criteria basic list 167 custom 167 custom list 167 Security tab 144 partners profile 144, 160 your profile 126 selector panel button 26 status Active 116, 164, 173, 256 Inactive 116, 164, 173, 256 list of, for your partner 164 list of, for your profile (Enterprise) 116 table 168 tn.required.idType to specify required external ID type 50 updating partners profile 173 your profile 117 user name for 138, 443 viewing 166, 168 your corporations Profile screen 106 your profile on partners system 117
576
Index
your corporations Profile screen 106 Profile Assistant adding your profile 115 updating user name and password 165, 166 profile fields data types, See also data types error message 116, 163 extended 55, 84, 88, 97, 113, 143 See also extended fields required 88 saving 116 standard 84, 88 See also standard fields example of entries 89 profile group associating partner profile with 150 associating your profile with 120 creating 55 defined 55 profile group membership 150 Profile screen See also profile adding partner profile 146 partners profile 132 selector panel button 26 tab screens, partners profile 132 tab screens, your corporation 106 your profile 106 Profile tab, See Profile screen program code conventions in this document 15 properties .cnf, See properties.cnf archiving and deleting documents 458 database 43 Trading Networks 42 See online help from TN Properties page tn.archive.archiveAfterDays 458 tn.archive.deleteAfterDays 458 tn.cluster.notifyCacheChange 49 tn.cluster.notifyProfileAddUser 49 tn.cluster.notifyPropertyChange 49 tn.cluster.sync.remoteAliases 44, 45, 49, 312 tn.mail.from 51
tn.mail.subject 51 tn.required.idType 50 tn.task.attempt.notPersisted 298 tn.task.maxRetries 53 tn.task.notifyFailure 55 tn.task.sweepTime 52 tn.task.ttw 53 properties.cnf accessing online help for 42 description of settings See online help from TN Properties page file location 42 tn.archive.archiveAfterDays 458 tn.archive.deleteAfterDays 458 tn.cluster.notifyCacheChange 48, 49 tn.cluster.notifyProfileAddUser 48, 49 tn.cluster.notifyPropertyChange 48, 49 tn.cluster.sync.remoteAliases 49 tn.mail.from 51 tn.mail.subject 51 tn.required.idType 50 tn.task.attempt.notPersisted 298 tn.task.maxRetries 53 tn.task.notifyFailure 55 tn.task.sweepTime 52 tn.task.ttw 53 wm.tn.admin:setProperties 45, 46 proposed agreement status agreement status 188 changes you can make 188 protocol, delivery method 111, 123, 137, 153 Proxies tab Host:Port 64 password 64, 65 user name 64 proxy server 23, 63 HTTP 64 HTTPS 64 pub.flatfile:convertToValues 278, 295 pub.io folder, services for reading flat file input streams 278 pub.schema:validate built-in service 228, 327 public identifier 206, 208, 236, 248, 258, 263
577
Index
public queue adding 55, 380 batch FTP scheduled delivery service 381 batch scheduled delivery service 381 changing state of 392 copying 380 defined 379 defining 380 deleting 384 delivery service 381 See also scheduled delivery service scheduling 384 Disable Queue state 382 Drain Queue state 383 editing 380 Enable Queue state 382 inputs for delivery service 381 name 381 new 380 on NEW QUEUE tab 155 partner to deliver to 139 registry setting 55 Schedule tab 389 scheduled delivery service 381 scheduling delivery 384 execution of delivery service 388 Settings tab 384 state 382 Suspend Delivery state 383 using 155 purchase order as example of extracted string attributes 289 in example of user status and processing 319 purchase order, as example of extracted string attributes 216
Q
queries "Any" document type 370 activity log 503 Basic Criteria tab processing rules 366 profiles 167
Custom Criteria tab, trading partners 170 deleting a query, toolbar button for 401 deleting a saved document queries 408 delivery tasks 472, 475 diagram of hidden query tabs 29, 402 diagram of query tabs 30, 403 Enterprise vs. Trading Partners, for Sent and Received queries 447 exporting Detail view results as comma-separated values 451 results of, from activity log 502 hiding query, toolbar button for 401 identifying, See identifying queries list of toolbar items 401 panel 401 processing rules 366, 367 profiles 166 results processing rules 367 profiles 168 reverting to saved document queries 407 running a query, toolbar button for 401 saving activity log queries 503 delivery task queries 475 document queries 404 service execution task queries 489 selector button for Transaction Analysis 28 Sent and Received queries for Enterprise vs. Trading Partners 447 service execution tasks 485, 489 Show/Hide Query panels 448 showing query, toolbar button for 401 SQL 451 testing XQL 245 TPA 185 updating saved document queries 406 using document attributes 195 value for, on Custom Criteria tab 445 values are case-sensitive 208 viewing panels with Show/Hide Query 448 XQL, See XQL queries queue document polling, See queue for polling Queue for delivery, cannot use as preferred protocol 155
578
Index
queue for polling 394 ACCEPTED processing status 397 ACCEPTED W/ERRORS processing status 397 defined 394 delivery method 112, 141 documents 397 POLLABLE processing status 397 queue name, public queue, on Settings tab 381 queue state private queue on NEW QUEUE tab 156 private queue on Settings sub-tab 156 public queue, on Settings tab 382 queued delivery task status 470 QUEUED processing status and scheduled delivery queue 396 QUEUED processing status 433 queues and trading partners 378 defined 378 delivery 410 See also delivery queues private, See private queues public, See public queues scheduling delivery 384 scheduling execution of delivery service 388 Settings tab 384 state, See queue state viewing documents in 396 wm.tn.queuing:getQueuedTask 415 wm.tn.queuing:updateQueuedTask 416
R
RDBMS, See relational database reassigning delivery tasks to another server 479 service execution tasks to another server 492 received queries 447 receiver any criteria 318 Basic Criteria tab 442 criteria for processing rule 350 Criteria tab 350
document search criteria 431 implicitly matching receivers in processing rules query 370 local partner as, for processing rule criteria 318 partner who receives documents to view 442 preferred protocol, processing rule action 359 processing rule criteria 317 processing rules query 370 recipient of e-mail message 339 search criteria 442 selected criteria 318 TPA 178 TPA query 186 unknown criteria 318 unknown, in e-mail address 339 ReceiverID duplication of for flat file document 296 for XML document 229 pre-processing action 327 extracting for flat file documents 280 for XML documents 210 extracting from flat file 286 specifying detail information for extraction 215 system attribute 194 transforming value before storing in database, for flat file documents 286, 288 XML document 214 recipient e-mail address 339 of e-mail message 338 receiver 339 sender 338 webMethods Administrator 339 recognition activity class 497 and reprocessing a document 326 document gateway service 70, 272 errors criterion 321 in processing rule 319 of flat file documents 70, 272 of OAG documents, example of 206 of XML documents 204
579
Index
refresh Console 30 registering defined 421 delivery service 421, 422 reliable delivery and delivery maximum retries 141, 158 and delivery tasks 343, 345 and retry factor 141, 158 configuration settings 52 defined 343, 344 delivery tasks 466 how often task manager runs 52 immediate delivery method 343 multiple times 343 scheduled delivery queue 378 reliable execution and service execution tasks 53, 482 configuration settings 52 defined 333 how often task manager runs 52 view service execution tasks 485 remote aliases 45 removing delivery service with wm.tn.delivery:removeService 425 extended fields 103 flat file document type from database 308 partner and disabling profile 175 XML document type from database 266 repeating complex, archiving 459, 462 when archiving and deleting 459, 462 reports and User Status action 341 exporting data to create 450, 475, 488, 502 from document attributes 196 repositioning attributes 446 columns 33 custom attributes 35, 171, 446 order of processing rules 364 reprocess function 454, 455 prerequisites 455
required attributes for flat file 285 attributes for XML document 213 fields, defined 88 logic in scheduled delivery service 415 profile fields 88 re-registering with wm.tn.delivery:removeService 425 resizing panes 32 respond with a message processing rule action 346 processing rule action, example of 347 restarting delivery task 477 service execution task 490 resubmit function 452, 454 prerequisites 452 resubmitting $receiveSvc variable for flat file document 454 flat file document 454 Retrieve SenderID from session option 287 retrieving delivery task and wm.tn.queuing:getQueuedTask 415 retrieving document content and wm.tn.doc:getDeliveryContent service 412 of immediate delivery service 412 of scheduled delivery service 414 retry limit, delivery task 467 number of, delivery task 468, 484 Retry Factor delivery method 142, 343 delivery task 467, 484 on Delivery Method tab, partners profile 159 service execution task 53 Revert to Saved Query toolbar button 401 reverting saved document queries 407 right-click menus 34 root tag Identify panel for flat file document type 301 tab 236, 248, 258, 263 XML document 206, 208, 236, 248, 258, 263, 301 routing rules, See processing rules
580
Index
rows, Detail View 367 Run Mask settings, Complex Interval 386 Run Once on Schedule tab 157, 389 scheduling delivery service 385 Run Query toolbar button 401
S
sample service, wm.tn.samples.gateway:gateway sample service 276 Save Document to Database pre-processing action, flat file document 297 Save Query As toolbar button 401 Save Query toolbar button 401 saving activity log data 502 entry 497 queries 503 delivery task queries 475 document content to database 355 query 404 to the database, for flat file document 297 flat file document to database 297 immediate delivery service not in WmTN package 412 pre-processing action 355 for XML document 228 processing rules 360 profile fields 116 query as button 401 query button 401 scheduled delivery service not in WmTN package 413 service execution task queries 489 XML document to database 230 Schedule tab Complex Interval 157, 386, 390 private queues 157 public queues 389 Run Once 157, 389 Simple Interval 157, 385, 389
scheduled delivery delivery task query 473 service, See scheduled delivery service stopping delivery tasks 476, 477, 478 scheduled delivery queue and reliable delivery 378 defined 378 delivery tasks 378 disable action 391 disabled state 390 documents 396 DONE processing status 396 DONE W/ERRORS processing status 396 drain action 392 drained state 391 enable action 391 enabled state 390 managing 390 QUEUED processing status 396 states of and public and private queue 391 changing to action 391 suspend action 392 suspended state 391 scheduled delivery service See also scheduled delivery and handling exceptions 418 and wm.tn.queuing getQueuedTask 415 updateQueuedTask 416 associated with delivery queues 410 Batch FTP 381 creating 413 custom and wm.tn.transport:batchFtp service 413 defined 410 do not save in WmTN package 413 how to schedule 384 inputs, list of 413 name of 421 outputs, list of 414 public queues 381 required logic to include in 415
581
Index
retrieving document content 414 typical logic to include in 417 wm.tn.transport:batchFtp service 411 scheduling archiving and deleting 458, 461 Complex Interval 386 delivery service execution 388 delivery service for queues 384 private queues on New Protocol tab, partners profile 157 Run Once 385 Simple Interval 385 wm.tn.archive:archive service 459 schema, flat file associated with document type 279, 295 parsing 279, 295 using to validate documents 295 schema, IS schema and XML document structure validation 228 associated with XML document type 227, 240, 252, 304 screen display area 29 name corresponding to selector panel function on Console 29 Query toolbar 401 right-click menu 34 tables 33 toolbar 30 toolbar buttons 401 script file, server.sh 18 search See also queries attribute 437 profile fields 167 Basic Criteria tab partner profiles 169 processing rules 368 Transaction Analysis 442 ConversationID 436 custom attributes 437 Custom Criteria tab and specifying custom search criteria 445 Partner Profile 170 data types, in custom searches 167, 437 date received 437
delivery tasks 472 document attributes 429 DocumentID 435 documents basic criteria 429 custom 437 extended profile fields 167 GroupID 436 InternalID 435 multiple custom attributes 440 operator 437 profile fields 167 order of processing rules 371 pattern-matching characters, Basic Criteria tab 443 processing rules 366, 367 basic criteria 366 processing status 433 profiles 167, 168 basic criteria 167 custom criteria 167, 170 receiver 431 sender 430 service execution tasks 485 TN document type 432 TPA 185 user status 435 value 440 Search Order panel, processing rule query 371 secure connection, HTTPS 64 Secure Sockets Layer (SSL), when logging in 23 security of partner passwords 424 Security tab Certificate Chain field for partner profile 145, 161 for your profile 114, 126 Decrypt/Encrypt sub-tab 113, 126, 144, 160 fields for partners profile 144, 160 your profile 126 Private Key field for partner profile 162 for your profile 114, 127 on partners profile 145
582
Index
Sign/Verify sub-tab 113, 126, 144, 160 SSL Client sub-tab 114, 126, 144, 160 selected document type criteria in processing rule 319 receiver criteria in processing rule 318 sender criteria in processing rule 318 selector panel 447 buttons on Console 26 sender any criteria 318 Basic Criteria tab 442 criteria for processing rule 349 Criteria tab 349 document search criteria 430 ID, See SenderID implicitly matching senders in processing rules query 369 local partner as, for processing rule criteria 318 partner who sent documents to view 442 processing rule criteria 317 processing rules query 369 recipient of e-mail message 338 search criteria 442 selected criteria 318 TPA 178 TPA query 186 unknown 318 unknown criteria 318 unknown, in e-mail address 338 SenderID duplicate document for XML document 229 duplication of 327 for flat file document 296 extracting for flat file documents 280 extracting from flat file 286 extracting, for XML documents 210 for XML document 214 Retrieve SenderID from session option 287 specifying detail information for extraction 215 system attribute, XML document 194 transforming value before storing in database, for flat file documents 286, 288
sending an alert e-mail, processing rule action 338 See also Alert e-mail action documents digitally 144, 160 documents, See sending documents large documents 548 sent queries 447 separate database for each instance of Trading Networks 47 server ID delivery task 468 reassigning 479 service execution task 484 reassigning 492 server.sh script file 18 serverName, on Servers tab 62 servers closing sessions on 24 clustered environment 44, 312 licensed seat 24 network, See Trading Networks Network Server opening sessions on 24 opening/closing sessions on 24 proxy 23, 63 reassigning a delivery task to another server 479 reassigning a service execution task to another server 492 shutting down 19 starting 18 tn.cluster.sync.remoteAliases property 44, 312 Trading Networks, See Integration Server with multiple user names 62 Servers tab serverName 62 user name 62 service execution tasks and reliable execution 53, 482 configuration settings 52 defined 333, 482 deleting manually 491 delivery method, not applicable to 483, 484 done task status 483 exporting 488 failed task status 483
583
Index
information, list of 482 managing 482 maximum retries 53 new task status 483 pending task status 483 printing 488 query 485, 486 reassigning to another server 492 restarting 490 retry factor 53 saving queries 489 search criteria 485 search criteria, for viewing task 485 server ID 484, 492 status 486 stopped task status 483 stopping 489 task ID 482 task manager 52 task output 484 task status 483 time created 482 time to wait before retry 484 time updated 483 tn.task.maxRetries property 53 tn.task.retryFactor property 53 tn.task.ttw property 53 tracking 482 transport 484 transport time 484 viewing 485 in your system 485 tasks associated with a document 487 wait between retries 53 when automatically deleted 484 serviceName delivery service 421, 423 name of new delivery method 421 serviceOutput IS document type, list of variables 411 services and service execution tasks 482 built-in, See built-in services delivery service name 424
large documents, creating for 544 reliable execution 482 screen, to view service execution tasks 485 TPA, export service to industry-standard format 180 TPA, initialization service for IS document type 181 viewing service execution tasks in your Trading Networks system 485 wm.server:connect 479, 492 wm.server:ping 479, 492 sessions closing session on the server 19 opening on Integration Server 23 opening on servers 24 stopping all active 19 Set Inputs public queue delivery service 381 setting up document archival and deletion basic archival and deletion 457 configurable archival and deletion 460 settings Complex Interval 386 Console preferences 61, 62 document delivery via e-mail 51 of input values for executing a service 336 other configuration 61 private queues 156 profile 50 public queues 384 Run Mask 386 server list 62 tasks 52 Settings tab delivery service, private queue 156 private queues 156 public queues 384 queue state, private queue 156 queues 384 shared database in clustered environment 44 Show Enabled toolbar button 199, 201 show node 236, 239 Show query toolbar button 401 Show/Hide Query 448 showing, See viewing shutting down Integration Server (IS) 19
584
Index
Sign/Verify sub-tab (on Security tab) for partner profiles 144, 160 for your profile 113, 126 signature digital, See also digital signatures system attribute 194 Signature, extracting for XML documents 211 SignedBody, extracting for XML documents 211, 227 Simple Interval on Schedule tab 157, 385, 389 scheduling delivery service 385 Simple Mail Transfer Protocol (SMTP), See SMTP SMTP See also e-mail protocol, on partners profile 137 protocol, on your profile 111 server address 338 sorting attribute information 446 column information 33 custom attributes 35, 171, 446 split panes 31, 32 SQL query 451 SSL Client sub-tab (on Security tab) for partner profiles 144, 160 for your profile 114, 126 standard attributes on Detail View tab 35, 445 standard fields corporation name 89 defined 84, 88 e-mail address 90 example of entries 89 list of 88 preferred delivery method 89 profile 88 required 88 viewing 95 standard profile fields, See standard fields Start Date, Complex Interval setting 386 Start Time, Complex Interval setting 386 starting Console 22 delivery task again 477
Integration Server from the command line 19 Integration Server on UNIX 18 Integration Server on Windows NT 18 server, overriding configuration settings 19 service execution task again 490 state, See queue state stateless processing rules 81 states of private queue, changing 393 of public queue, changing 392 of scheduled delivery queue, changing to action 391 of scheduled delivery queue, public vs. private queue 391 status ABORTED 434 ACCEPTED 434 ACCEPTED W/ ERRORS 434 Active 116, 164, 173, 256 change to Active 129, 176 change to Inactive 129, 175 delivering delivery task 471 delivery task 469 DONE 433 done delivery task 469, 471 done service execution task 483 DONE W/ ERRORS 433 failed delivery task 470, 471 failed service execution task 483 immediate delivery service, variable for 412 Inactive 116, 164, 173, 256 message, delivery task 468, 484 NEW 433 new delivery task 469 new service execution task 483 of delivery attempt, delivery task 468, 484 of user as processing rule criterion 319, 352 PENDING 433 pending delivery task 469 pending service execution task 483 POLLABLE 433 profile, See also profile, status QUEUED 433 queued delivery task 470 service execution task 483
585
Index
stopped delivery task 470 stopped service execution task 483 stopped task status 470 task for scheduled deliveries 470 statusMessage immediate delivery service variable 412 stopped delivery task status 470 service execution task status 483 stopping active sessions 19 delivery task for immediate delivery 476 server 19 service execution task 489 STRING data type 216, 323 altering case value of 216 altering case value of, for flat file document 289 documents search 438 extended profile field 97 for flat file document 289 for XML document 214 profiles search 168 specifying detail information for attribute 216 specifying detail information for attribute, for flat file document 289 string substitution 216, 217, 290 for flat file document 289 transaction analysis custom search 438 STRING LIST data type for flat file document 289 for XML documents 214, 216 STRINGLIST data type 323 documents search 438 transaction analysis custom search 438 structure flat file and document gateway service 70 verify for flat file document 295 structure of flat file and document gateway service 272 sum saving value for document attributes 218 for flat file document 291 summary actions you can take against sample document 243 information, Processing Rules screen 367 View Detail/Summary display 362
suspend action 392 Suspend Delivery, public queue state 383 suspended state, scheduled delivery queue 391 synchronous, execute a service as 331, 357 system attributes ConversationID for flat file 288 for flat file documents 281 for XML documents 210 DATETIME 215 for flat file documents 289 DoctypeID for flat file documents 280 DoctypeName for flat file documents 280 DocumentID for flat file documents 280 for XML documents 210, 229, 296 pre-processing action 327 GroupID for flat file documents 281 for XML documents 211 list of 194 for XML documents 210 processingRuleID, for flat file documents 282 processingRuleName, for flat file documents 282 ReceiverID 215, 286, 327 for flat file documents 280, 286, 288 for XML documents 210, 214, 229, 296 SenderID 215, 286, 327 for flat file documents 280, 286, 288 for XML documents 210, 214, 229, 296 Signature, for XML documents 211, 227 SignedBody, for XML documents 211, 227 STRING 216 for flat file document 289 UserStatus for flat file documents 281 for XML documents 211 system attributes, extracting for XML documents 210 system identifier 206, 208, 236, 248, 258, 263
586
Index
T
table columns, how to reposition 33 Detail View tab, processing rules 371 processing rules 367 changing display format 371 profiles 168 reposition columns, how to 33 tabs Activity Log 501 and viewing document attributes and content 449 Advanced tab on Activity Log 500 Attributes on Detail view of Transaction Analysis screen 448 Basic Criteria tab Activity Log 498 Processing Rules screen 368 Transaction Analysis screen 170, 442 Contact tab for partners profile 151 for your profile 121 Corporate tab for partners profile 147 for your profile 118 Criteria tab on Processing Rule Details screen 349 Custom Criteria on Transaction Analysis screen 445 Decrypt/Encrypt sub-tab for partner profiles 144, 160 for your profile 113, 126 Delivery Method tab for partners profile 153 for your profile 123 Detail View on Processing Rules screen 367 Detail View on Transaction Analysis screen 35, 171, 371, 441, 445 Extended Criteria tab on Processing Rule Details screen 353 Extended Fields tab for partners profile 159 Extract panel on Flat File Document Types screen 301 Extract tab on XML Document Types screen 237, 249 Identify panel on Flat File Document Types screen 300 Identify tab on XML Document Types screen 234, 247 Namespaces tab on XML Document Types screen 240, 251 New Protocol tab for partners profile 155
Options tab on Document Types screen 240, 252 on Flat File Document Types screen 304 on XML Document Types screen 240, 252 Schedule tab 157 Security tab for partners profile 144, 160 for your profile 126 selecting 32 Settings tab 156 Sign/Verify sub-tab for partner profiles 144, 160 for your profile 113, 126 SSL Client sub-tab for partner profiles 144, 160 for your profile 114, 126 Tasks and viewing document attributes and content 449 tab on Transaction Analysis screen 474, 487 task manager 52 how often it runs 52 interval (secs) 52 task type delivery task query 472 service execution task query 485 tasks delivery, See delivery tasks failure notification 54 ID, delivery task 467 ID, service execution task 482 output, delivery task 469, 484 service, See service execution tasks status delivery task 469 delivery task search criteria 473 service execution task 483 service execution task search criteria 486 Tasks query panel 474, 487 Tasks tab and Activity tab 449 and viewing document attributes and content 449 on Transaction Analysis screen 474, 487 type, delivery task 467
587
Index
type, service execution task 482 viewing delivery task status 472 wm.tn.rec:TaskFailure 52, 470, 471 Tasks screen selector panel button 28 testing order of processing rules 365 XML document types 268 XQL queries 245 text/plain content type 278 time created delivery task 467 delivery task query 473 delivery task search criteria 473 service execution task 482 service execution task query 486 service execution task search criteria 486 viewing for delivery task 472 delivery task query 473 processing rules query 371 service execution query 486 to wait, delivery task 468, 484 TPA query 187 transport, delivery task 468, 484 updated delivery task 467 service execution task 483 timestamp activity log 496, 500 TPA query 187 TN document types "Any" in processing rules query 370 and pre-processing actions 312, 327 any criteria 319 Basic Criteria tab 442 Criteria tab 351 criterion, list of 319 defining 72 document search criteria 432 duplication check of 327 for document to be viewed 442 large documents 544
listing those dependent on an attribute 201 matching multiple 319 planning 72 processing rules query 370 search criteria 442 selected criteria 319 unknown 319 TN flat file document types defining 283 definition of 272 TN Properties page accessing online help for 42 tn.archive.archiveAfterDays 458 tn.archive.deleteAfterDays 458 tn.cluster.notifyCacheChange 49 tn.cluster.notifyProfileAddUser 49 tn.cluster.notifyPropertyChange 49 tn.cluster.sync.remoteAliases 49 tn.mail.from 51 tn.mail.subject 51 tn.required.idType 50 tn.task.maxRetries 53 tn.task.notifyFailure 55 tn.task.sweepTime 52 tn.task.ttw 53 TN XML document types, defined 204 tn.archive.archiveAfterDays 458 tn.archive.deleteAfterDays 458 tn.cluster.notifyCacheChange 48, 49 tn.cluster.notifyProfileAddUser 48, 49 tn.cluster.notifyPropertyChange 48, 49 clustered environment 42 tn.cluster.sync.remoteAliases 44, 45, 49, 312 tn.doc.validate.max_errs 228 tn.mail.from 51 tn.mail.subject 51 tn.required.idType 50 tn.task.maxRetries 53 tn.task.notifyFailure 55 tn.task.sweepTime 52 tn.task.ttw 53
588
Index
TN_parms $contentEncoding variable for flat file document 278 $contentEncoding variable for resubmitting flat file document 282 $contentType variable for resubmitting flat file document 282 $receiveSvc variable for resubmitting flat file document 282, 454 tnexport utility 526 tnimport utility 526 TNPartners group user account 138 webMethods User account 138 toolbar buttons 401 Console 30, 401 Tools menu option 26 TPA Agreement ID 178 Agreements Detail screen 181 changing agreement status 188 changing data inputs 190 control number 179 data inputs, to variables on IS document type 181 data status 180 defined 178 defining 181 deleting 192 export service 180 finding 185 initialization service 181 IS document type 179 data tree 181 list of fields 182 managing 185 new with empty fields 182 query 185 receiver 178 search 185 search criteria for 186 selector panel button 27 sender 178 updating 187 viewing 185 wm.b2b.editn.TPA:EDITPA IS document type 179
wm.b2b.editn.TPA:initService 181 wm.ip.ebxml.cpa.rec:tpaDataSchema 179 wm.ip.ebxml.cpa:initTPA 181 tracking delivery tasks 466 documents 428 service execution tasks 482 Trading Network Partner Agreement (TPA) See TPA Trading Networks activity log 496 adding partners 145 adding partners, planning for 82 administrators 37 clients, See Trading Networks clients closing the Console 37 clustered environment 44 configuring 20, 41 Console 25, 61 See also Console database, See database database properties 43 delivery tasks, managing and tracking 466 diagram of Console 25 diagram of processing rules ordering 314 digital signature, verifying, flat file documents 294 display area 29 document attributes 193 documents, managing and tracking 428 Enterprise view 26 flat file document types 203, 271 flat file documents digital signature, verifying 294 duplicate documents, checking for 296 saving to database 297 validating structure of 278, 295 Java API 319 large document handling 542 managing your profile 105 menu bar 26 multiple instances 44 non-clustered environment 45 partners, managing 131
589
Index
planning your network 67 processing rules 312 processing saved document again 452 profiles 105, 131 properties files, list of parameters Refer to the online help from TN Properties page saving activity log queries 503 delivery task queries 475 document query 404 flat file documents to database 297 service execution task queries 489 XML documents to database 230 screen name 29 searches 428 selector panel buttons, list of 26 separate database for each instance of 47 Server, See Integration Server (IS) service execution tasks, managing and tracking 482 starting the Console 22 toolbar 30, 401 TPAs 178 validating flat file document structure 295 viewing activity log entries 498 delivery tasks in your system 472 documents 428 documents in a partners system 451 documents in your system 442 documents in your system using Partner 447 service execution tasks in your system 485 Web Manager 39 XML document types 203 your profile 105 Trading Networks Web Manager access to partners system 451 user interface 39 viewing documents in a partners system 451 viewing documents with 451 Trading Partner Agreement (TPA) See TPAs
trading partner management planning 68, 80, 82 task checklist 85 trading partners See partners and queues 378 management, See trading partner management Trading Partners view information for 27 vs. Enterprise, for Sent and Received queries 447 Transaction Analysis screen large documents 549 printing information in Detail view 450 selector panel button 28 Tasks tab 474, 487 viewing documents 428 transaction types, identifying 69 transforming attribute values flat file documents 288 XML documents 214 transport time message, delivery task 468, 484 transportTime immediate delivery service variable 412 troubleshooting information 16 type search criteria 432 typical logic in scheduled delivery service 417 typographical conventions in this document 15
U
uniqueness See duplicate document check of an XML document 228 ReceiverID, for XML document 229, 296 SenderID, for XML document 229, 296 XML document type 229, 296 UNIX starting Integration Server 18 from the command line 19 unknown ambiguous document 268 document type criteria in processing rule 319 flat file document type 284
590
Index
multiple matching TN document types 319 XML document types 209, 268 non-matching flat file document type 284 TN document type 319 XML document type 209, 268 partner, defined 318 receiver for document 431 in e-mail address 339 in processing rule 318 sender 318 criteria in processing rule 318 for document 430 in e-mail address 338 TN document type 319 for document 432 XML document type 209, 268 updating delivery task and wm.tn.queuing:updateQueuedTask 416 document attributes 199 partners profile 173 saved document queries 406 TPA agreement status 189 TPA fields 187 XML document types 255 your profile 117 uppercase document attribute values 216, 289 URI, for namespace and xmlns attribute 222 URL /invoke/wm.tn/receive 112, 124, 138, 154 database location 43 Use as preferred protocol See also preferred delivery method cannot be Queue for delivery 155 Use Private Queue delivery method 155 Use Public Queue delivery method 155 delivery method for your profile 124 on partner profile 141, 155 receivers, See also preferred protocol
Use as preferred protocol, delivery method for your profile 112 Use Private Queue delivery method, cannot use as preferred protocol 155 Use Public Queue delivery method, cannot use as preferred protocol 155 user name associated with profiles 138 case-sensitive 23 case-sensitive, for server preferences 62 case-sensitive, on Proxies tab 64 database 43 Delivery Method tab 138 delivery service 424 for accessing Web Manager 451 for profile, when manually creating a profile 443 HTTP proxy server 64 HTTPS proxy server 64 informing partner of 165 multiple, on same server 62 on activity log 497, 500 on server 23 on user account of Integration Server 62 partners to webMethods Trading Networks 138 Primary/Secondary, HTTP 165 Primary/Secondary, HTTPS 165 profile 138 Proxies tab 64 Servers tab 62 user for activity log 500 Web Manager 451 when logging in 23 when manually creating a profile 443 user status as processing rule criterion 319 Basic Criteria tab 443 case-sensitive 443 changing 341 criterion in processing rules 319 document search criteria 435 null 319, 320, 341 of documents that you want to view 443 on Criteria tab 352 processing rules
591
Index
criterion, list of 321 query 370 purchase order, in example of user status and processing 319 search criteria 443 system attribute 194 user, non-root 19 username, See user name UserStatus extracting for flat file documents 281 extracting for XML documents 211
V
validate document structure 354 flat file document structure 295 Pre-Processing tab 354 pub.schema:validate built-in service 327 tn.doc.validate.max_errs 228 XML document structure 228 validation activity class 497 value search criteria 440 variables, pipeline matching for XML document 206, 208 verification activity class 497 verify digital signature document 354 of flat file document 294 of XML document 227 Pre-Processing tab 354 Verify Digital Signature pre-processing action flat file document 294 Verify sub-tab, See Sign/Verify sub-tab View menu option 26 viewing activity log 498 entries for Enterprise or Partner 498 entries related to a document 449 delivery method 472 delivery task 472, 485 associated with a document 474 in your system 472 status 472 time created 472 detailed list 367, 441
digital certificate information in partner profile 161 in your profile 126 disabled document attributes 198 flat file document types 306 XML document types 255 documents 428 attributes 198 attributes and document content 448 in a partners system 451 in queue 396 in scheduled delivery queue 396 in your system 442 in your system using Partner 447 related 449 types 255 with Web Manager 451 extended field 101, 125, 159, 163, 164 hub information 26 large documents 549 node 236, 239 partner information 26 receiving document 472 password when hidden 139 pollable documents 397, 450 private key in partner profile 162 in your profile profile 127 processing rules 366, 367 profile your Enterprise 117 your profile on partners system 117 profiles 166 query panels, Show/Hide Query 448 related documents 449 scheduled delivery documents 396 service execution tasks associated with a document 487 in your system 485 standard fields 95 time created, delivery task 472
592
Index
TN flat file document types 306 TN XML document types 255 TPAs 185 your profile on a partners system 117
W
Wait Between Retries delivery method 53, 141, 343 on Delivery Method tab, partners profile 158 Web Manager, See Trading Networks Web Manager webMethods Administrator, as recipient of e-mail message 339 webMethods B2B Developer, See webMethods Developer webMethods Developer, to create delivery service 422 webMethods for Partners adding partners 145 user name 138 webMethods Integration Server (IS), starting 18 webMethods Trading Networks Web Manager Administrators Guide 39 Weekdays, Run Mask setting 386 Windows NT and starting Integration Server 18 wm.b2b.editn.TPA:EDITPA IS document type 179 wm.b2b.editn.TPA:initService service 181 wm.ip.ebxml.cpa.rec:tpaDataSchema IS document type 179 wm.ip.ebxml.cpa:initTPA service 181 wm.server:connect service 479, 492 wm.server:ping service 479, 492 wm.tn.admin:setProperties 46 wm.tn.admin:setProperties service 45 wm.tn.archive:archive service 459 wm.tn.delivery:registerService service 422 wm.tn.delivery:removeService service 425 wm.tn.dictionary:addContactType service 109, 136 wm.tn.dictionary:addFieldGroup service 113, 143 wm.tn.dictionary:addIDTypes service 108 wm.tn.doc.ff:routeFlatFile service 277 wm.tn.doc.xml:bizdocToRecord service 226 wm.tn.doc:changeStatus built-in service 319 wm.tn.doc:getContentPartData service, large documents 547 wm.tn.doc:getDeliveryContent service 412 wm.tn.doc:getDeliveryContent service, large documents 548 wm.tn.doc:relateDocuments service 449 wm.tn.queuing:deliverBatch service 418
wm.tn.queuing:getQueuedTask service 415 wm.tn.queuing:updateQueuedTask service 416 wm.tn.rec:DeliveryServiceSignature specification 411 wm.tn.rec:DupCheckService specification 329 wm.tn.rec:GatewayService service, standard input and output values 276 wm.tn.rec:TaskFailure IS document type 52, 470, 471 wm.tn.transport:batchFtp service diagram of service 419 reference for creating custom scheduled delivery service 413 scheduled delivery service 381, 411 typical logic to include in scheduled delivery service 417 wm.tn:receive service document gateway service 277 flat file documents 277 WmFlatFile package, services to read flat file input streams 278 WmTN package not saving immediate delivery service in 412 not saving scheduled delivery service in 413
X
XML document 206, 235, 248, 257, 262 DOCTYPE, See DOCTYPE identifier duplicate document check 228 example, namespace in 221 example. with sample XQL queries 532 load sample 233 namespaces 221 node information 207 See also node root tag 206, 208 See also root tag sample document 233 saving to database pre-processing action 230 sending, See sending documents specifying content type, example of 347 xmlns attribute 222 XML document types adding identifying queries 235, 248 associated with IS document types 226, 240, 252 associated with IS schema 226, 227, 240, 252, 304 checking uniqueness of 228 defining 232
593
Index
definition, determining 209 determining 209 disabled 255 disabling 266 DOCTYPE identifier 208, 248, 258, 263 duplicate XML doc type 233 duplication of for flat file document 296 for XML document 229 enabling 267 Extract tab 237, 249 extraction information 210 Identify tab 234, 247 large documents 544 matching exactly one defined 268 multiple 209, 268 multiple, ambiguous 268 namespace mappings 221 Namespaces tab 240, 251 new with empty fields 233 non-matching 209, 268, 319 options 205, 226, 240, 252 Options tab 240, 252 permanently removing from database 266 requiring extraction of attributes 213
root tag 208 testing 268 unknown 209, 268 updating 255 identifying queries 257, 262 viewing 255 xmlns attribute and namespaces 222 using from sample document to define namespace mappings 225 XQL queries and namespaces 223 case-sensitive 207, 212 example, list of sample queries 533 example, with namespaces 223 example, XQL queries in XML file 532 for XML document 206 identifying queries 207 with sample document 235, 257 without sample document 248, 262 large documents 544 reference information 532 testing 245 with namespace prefixes 223 XML document type and invalid location of SenderId/Receiver ID 318
594