DX 901 Developer Guide en
DX 901 Developer Guide en
DX 901 Developer Guide en
1)
Developer Guide
Informatica B2B Data Exchange Developer Guide Version 9.0.1 July 2010 Copyright (c) 1998-2010 Informatica. All rights reserved. This software and documentation contain proprietary information of Informatica Corporation and are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright law. Reverse engineering of the software is prohibited. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise) without prior consent of Informatica Corporation. This Software may be protected by U.S. and/or international Patents and other Patents Pending. Use, duplication, or disclosure of the Software by the U.S. Government is subject to the restrictions set forth in the applicable software license agreement and as provided in DFARS 227.7202-1(a) and 227.7702-3(a) (1995), DFARS 252.227-7013(1)(ii) (OCT 1988), FAR 12.212(a) (1995), FAR 52.227-19, or FAR 52.227-14 (ALT III), as applicable. The information in this product or documentation is subject to change without notice. If you find any problems in this product or documentation, please report them to us in writing. Informatica, Informatica Platform, Informatica Data Services, PowerCenter, PowerCenterRT, PowerCenter Connect, PowerCenter Data Analyzer, PowerExchange, PowerMart, Metadata Manager, Informatica Data Quality, Informatica Data Explorer, Informatica B2B Data Transformation, Informatica B2B Data Exchange and Informatica On Demand are trademarks or registered trademarks of Informatica Corporation in the United States and in jurisdictions throughout the world. All other company and product names may be trade names or trademarks of their respective owners. Portions of this software and/or documentation are subject to copyright held by third parties, including without limitation: Copyright DataDirect Technologies. All rights reserved. Copyright Sun Microsystems. All rights reserved. Copyright Isomorphic Software. All rights reserved. Copyright International Business Machines Corp. All rights reserved. Copyright Cleo Communications Inc. All rights reserved. Copyright Acresso Software Inc. All rights reserved. Copyright Tanuki Software, Ltd. All rights reserved. This product includes software developed by the Apache Software Foundation (http://www.apache.org/), and other software which is licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. This product includes software which is copyright JBoss/Red Hat Inc., all rights reserved; and other software which is licensed under the GNU Lesser General Public License Agreement, which may be found at http://www.gnu.org/licenses/lgpl.html. The materials are provided free of charge by Informatica, "as-is", without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. The product includes software copyright 2001-2005 MetaStuff, Ltd. All Rights Reserved. Permissions and limitations regarding this software are subject to terms available at http://www.dom4j.org/ license.html. This product includes software copyright The Eclipse Foundation. All Rights Reserved. Permissions and limitations regarding this software are subject to terms available at http:// www.eclipse.org/org/documents/epl-v10.php. This product includes software copyright 2003-2008, Terence Parr, all rights reserved. See the License http://www.antlr.org/license.html for the specific language governing permissions and limitations. This product includes software copyright 2000-2005 INRIA, France Telecom, all rights reserved. See the License http://www.asm.ow2.org/license.html for the specific language governing permissions and limitations. This product includes software licensed under the terms at: http://fusesource.com/downloads/license-agreements/fuse-message-broker-v-5-3-license-agreement. See the license for the specific language governing permissions and limitations. This product includes software licensed under the Common Public License http://www.eclipse.org/legal/cpl-v10.html. See the License for the specific language governing permissions and limitations. Source code is available at http://sourceforge.net/projects/wsdl4j. This product includes software licensed under the BSD License (http://www.opensource.org/licenses/bsd-license.php). This Software is protected by U.S. Patent Numbers 5,794,246; 6,014,670; 6,016,501; 6,029,178; 6,032,158; 6,035,307; 6,044,374; 6,092,086; 6,208,990; 6,339,775; 6,640,226; 6,789,096; 6,820,077; 6,823,373; 6,850,947; 6,895,471; 7,117,215; 7,162,643; 7,254,590; 7,281,001; 7,421,458; and 7,584,422, international Patents and other Patents Pending. DISCLAIMER: Informatica Corporation provides this documentation "as is" without warranty of any kind, either express or implied, including, but not limited to, the implied warranties of non-infringement, merchantability, or use for a particular purpose. Informatica Corporation does not warrant that this software or documentation is error free. The information provided in this software or documentation may include technical inaccuracies or typographical errors. The information in this software and documentation is subject to change at any time without notice. NOTICES This Informatica product (the Software) includes certain drivers (the DataDirect Drivers) from DataDirect Technologies, an operating company of Progress Software Corporation (DataDirect) which are subject to the following terms and conditions: 1. THE DATADIRECT DRIVERS ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 2. IN NO EVENT WILL DATADIRECT OR ITS THIRD PARTY SUPPLIERS BE LIABLE TO THE END-USER CUSTOMER FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR OTHER DAMAGES ARISING OUT OF THE USE OF THE ODBC DRIVERS, WHETHER OR NOT INFORMED OF THE POSSIBILITIES OF DAMAGES IN ADVANCE. THESE LIMITATIONS APPLY TO ALL CAUSES OF ACTION, INCLUDING, WITHOUT LIMITATION, BREACH OF CONTRACT, BREACH OF WARRANTY, NEGLIGENCE, STRICT LIABILITY, MISREPRESENTATION AND OTHER TORTS. Part Number: DX-DVG-90100-0001
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Informatica Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv Informatica Customer Portal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv Informatica Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv Informatica Web Site. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv Informatica How-To Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv Informatica Knowledge Base. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v Informatica Multimedia Knowledge Base. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v Informatica Global Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Table of Contents
DX_Aggregate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Input Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 DX_Complete_Correlation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Input Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 DX_Create_Event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Input Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 DX_Event_Attribute. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 DX_Event_Details. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 DX_Generate_Temporary_File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 DX_Get_Document_File_Path. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Input Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 DX_Increment_Profile_Parameter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Input Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 DX_Initiate_Correlation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Input Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 DX_Profile_Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 DX_Release_Delayed_Events. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Input Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 DX_Resolve_Profile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Input Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Input/Output Ports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Data Exchange Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
ii
Table of Contents
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Table of Contents
iii
Preface
The B2B Data Exchange Developer Guide provides information about the tasks required to develop workflows in PowerCenter to process B2B Data Exchange documents. It assumes that you have a working knowledge of PowerCenter and are familiar with the format and requirements of the documents processed in B2B Data Exchange.
Informatica Resources
Informatica Customer Portal
As an Informatica customer, you can access the Informatica Customer Portal site at http://mysupport.informatica.com. The site contains product information, user group information, newsletters, access to the Informatica customer support case management system (ATLAS), the Informatica How-To Library, the Informatica Knowledge Base, the Informatica Multimedia Knowledge Base, Informatica Product Documentation, and access to the Informatica user community.
Informatica Documentation
The Informatica Documentation team takes every effort to create accurate, usable documentation. If you have questions, comments, or ideas about this documentation, contact the Informatica Documentation team through email at infa_documentation@informatica.com. We will use your feedback to improve our documentation. Let us know if we can contact you regarding your comments. The Documentation team updates documentation as needed. To get the latest documentation for your product, navigate to Product Documentation from http://mysupport.informatica.com.
iv
Standard Rate Belgium: +32 15 281 702 France: 0805 804632 Germany: +49 1805 702 702 Netherlands: +31 306 022 797
Preface
vi
CHAPTER 1
Server Plug-In
When you install the Data Exchange server plug-in, the installer copies the server plug-in file named dxplugin.xml to the following directory:
<DXInstallationDir>/powercenter/plugin<VERSION>/dxplugin.xml
Use the PowerCenter Administration Console to register the plug-in to the repository where you plan to build mappings and workflows for B2B Data Exchange. The Data Exchange transformations in PowerCenter are disabled until you register the server plug-in. For more information about registering the plug-in, see the PowerCenter Administrator Guide.
Client Plug-In
When you install the Data Exchange client plug-in, the installer registers the plug-in file with the PowerCenter Client tools.
Source Definition
After you create the JMS source, you can add ports to the JMS source to store Data Exchange properties needed to run the workflow. To add ports to the JMS source, edit the source definition and add properties in the JMS Message Property Columns tab. The Designer adds the property to the list of ports in the JMS source. By default, the Designer adds the prefix Prop_ to the port name. Use the PowerCenter designer to define the batch workflow mapping parameters for the PowerCenter mapping.
accountNumber
application
DXDataByReference
profileId
profileName
If an event monitor executed your profile, you will have additional properties, in addition to those shown above. For a regular delivery monitor, B2B Data Exchange adds the following properties:
DXSentEventId contains the list of event Ids DXMonitorId the monitor Id DXMonitorName the monitor name DXUser the recipient users
For a batch delivery monitor, B2B Data Exchange adds the following properties:
DXSentEventIds contains the list of event Ids DXMonitorId the monitor Id DXMonitorName the monitor name
Target Definition
After you create the JMS target, edit the target definition and add Data Exchange properties in the JMS Message Property Columns tab. The Designer adds the property to the list of ports in the JMS target. By default, the Designer adds the prefix Prop_ to the port name.
DXEventId
DXParentEventId
DXStatusName
endpointName
sendToAccount
You can also add properties to the JMS target to store other Data Exchange values that you want to send back to B2B Data Exchange. If you add a property to the JMS target, the Data Exchange configuration file must define how B2B Data Exchange handles the value of the property. Include a definition of the property in the JMS endpoint for inbound documents received from the workflow. Note: If you need to send an output message to more than one target, it is strongly recommended that you create a child event for each target, in order to be able to follow the transferring status of each message separately. Set the DXParentId property in the JMS target for this purpose. If you do not follow this procedure, all targets will update (overwrite) the same event status field and you will be unable to track the delivery status of any target.
If sendToAccount is set to True, then send the message to the endpoint associated with the given accountNumber/ partnerName, which must be unique for the specified accountNumber/partnerName. - ORIf sendToAccount is not set (or set to False) then the profile is determined by the application, account, and partner. Note: If you want to route to an endpoint instead of a profile, it is strongly recommended that you use the accountNumber/partnerName routing method with sendToAccount set to True.
Workflow Parameters
Use the DX_Profile_Parameters transformation in the mapping to get profile parameter values at runtime.
Transformations
You can use Data Exchange transformations and Unstructured Data transformations to add specific Data Exchange functionality to the mapping. You can also add other PowerCenter transformations to the mapping.
JNDI Connection
Create a JNDI application connection object for the B2B Data Exchange JMS server. Set the attributes required for B2B Data Exchange. The following table describes the attributes of the JNDI connection object that you must configure:
Attribute JNDI Context Factory Description Name of the context factory specified for the B2B Data Exchange JMS provider. Set this attribute to the following value: com.informatica.b2b.dx.jndi.DXContextFactory URL for the JNDI provider in B2B Data Exchange. The host name and port number must match the host name and port number in the jndiProviderURL attribute of the JMS endpoints in the B2B Data Exchange configuration file. In case of a single node installation, the JNDI provider URL is, by default, failover:tcp://localhost:18616, In case of an ActiveMq cluster, you can provide multiple hosts here.
JMS Connection
Create one JMS application connection object for the input queue of each JMS source in each Data Exchange workflow. The input queue configuration must match the workflow name in B2B Data Exchange that represents the PowerCenter workflow.
Create one JMS application connection object for the B2B Data Exchange JMS server. All JMS targets in Data Exchange workflows use the same JMS application connection object for the output queue. The configuration of the output queue can use the configuration for the default inbound JMS endpoint defined in the B2B Data Exchange configuration file. The following table describes the attributes of the JMS connection object that you must configure:
Attribute JMS Destination Type Description Type of JMS destination for the Data Exchange messages. Set this attribute to QUEUE. Name of the connection factory in the JMS provider. Set this attribute to the following value:
connectionfactory.local
JMS Destination
Name of the destination. The destination name must have the following format:
queue.<DXWorkflowName>
DXWorkflowName is the name of the workflow in B2B Data Exchange that represents the PowerCenter workflow.
4. 5. 6.
Click the Mapping tab. In the Sources section on the left pane, select the JMS source. In the Properties section on the right pane, set the values for the following attributes:
Attribute Real-time Flush Latency JMS Queue Reader Mode Value 1 Message Consumer
7.
For more information about real-time sessions, see the PowerCenter Advanced Workflow Guide. Test the workflow to ensure that it works correctly and processes documents as expected.
CHAPTER 2
DX_Throw_Error
server plug-in.
Data Exchange client plug-in for PowerCenter. You can use the B2B Data Exchange installer to install and
register the client plug-in. If the Data Exchange transformations are disabled in the PowerCenter Designer, the plug-ins are not properly registered. Verify that you have installed and registered the plug-ins correctly. For more information, see the B2B Data Exchange Installation and Configuration Guide.
same configuration options as other custom transformations. You can use them as you use other PowerCenter transformations.
All Data Exchange transformations are connected transformations. All Data Exchange transformations are passive except the DX_Aggregate transformation.
If a port in the transformation has a corresponding Data Exchange property, the value of the port takes
precedence over the value of the property at runtime. When the session runs, if the value of the port is not null, the Integration Service uses the value of the port for processing. If the value of the port is null, the Integration Service uses the value of the Data Exchange property for processing.
Port names are case insensitive and prefix insensitive. DXEventID, dxEVENTid, and eventid are all the same.
transaction properties, and the runtime location. The properties displayed on this tab are the same as the properties for other PowerCenter Custom transformations. For more information about the Properties tab, see the PowerCenter Transformation Guide.
DX Properties tab. You can set the default values for the ports in the transformation. You can also set the
Error Handling
Each Data Exchange transformation uses the following ports in error handling:
DXErrorCode. When a transformation fails, the transformation sets the DXErrorCode to a value greater than
zero.
DXErrorMessage. When a transformation fails, the transformation stores an error message in the
DXErrorMessage port to describe the failure. When a transformation generates an error, the transformation performs the following tasks:
The transformation writes the error to the PowerCenter session log. The error log includes the exception class,
description, cause, and stack trace. The logging level is based on the PowerCenter configuration. Up to 1K of the document associated with the error will be included in the log.
If the option to set the event status to error when a transformation fails is set to true, the transformation sets
DX_Add_Document_To_Event
This transformation attaches a document to an event. For example, you can use this transformation to attach a log to an event.
10
Input Ports
The DX_Add_Document_To_Event transformation has the following input ports:
Port DXDescription DXMIMEType DXEncoding Type string string string Description Description of the document to attach to the event. MIME type of the document to attach to the event. Character encoding of the document to attach to the event. This is the character set to use to when converting strings to byte arrays. Optional. Path and file name generated by the DX_Generate_Temporary_File transformation where the workflow stores a new file. The DX_Add_Document_To_Event transformation saves the file as a new document reference in B2B Data Exchange and attaches the file to the event. You can set this port or set the DXData and DXDataByReference ports. If this port and the DXData and DXDataByReference ports are not set, the transformation creates an empty document and adds it to the event.
DXTemporaryFilePath
string
Input/Output Ports
The DX_Add_Document_To_Event transformation has the following input/output ports:
Port DXEventId DXData Type string string binary text Description ID of the event to which a document will be attached. Required. Document to attach to the event. This port can contain the data of the document or a reference to the document. If this port is null, the transformation creates an empty document and adds the document to the event. To attach a document with text data, set the datatype of the port to string or text. To attach a document with binary data, change the datatype of the port to binary. Indicates whether the DXData port contains the document data or a document reference. If the value is true, the DXData port contains a document reference. If the value is null or the value is false, the DXData port contains the document data. ID of the document to attach to the event. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DXDataByReference
string
DX_Add_Document_To_Event
11
DX_Aggregate
This transformation groups segments of data together for processing. For example, you previously split a large document so the workflow processes it in row sets. You can use the DX_Aggregate transformation to aggregate the row sets back into a single document to send to a partner. The data going into the DX_Aggregate transformation must be sorted by the DXParentEventId and DXGroupByKey ports. The transformation groups rows by the DXParentEventId and DXGroupByKey ports. The DX_Aggregate transformation is an active transformation. The DX_Aggregate transformation groups rows in the following manner: 1. 2. 3. 4. 5. 6. When the transformation reads the first row in the group, it creates a temporary file and writes the content of the DXData port to the file. On each subsequent row, the transformation appends the DXDelimiter and the content of the DXData port to the file. Then it increments the number of rows in the DXRowCount port. When the transformation reads the last row in the group, it closes the temporary file and increments the number of groups in the DXGroupSequence port. Then it passes the output to the pipeline. If the DXData port for a row is null, the transformation does not pass the row to the pipeline. The DX_Aggregate transformation drops rows that contain null values in the DXData port. It does not pass them out to the pipeline. For pass-through ports, the transformation sends the value from the last row of the group to the pipeline. It does not pass error and null rows to the pipeline.
The DX_Aggregate transformation uses indicators to determine the end of the group. If the following indicators are true, the transformation has reached the end of the data to aggregate:
End of data.
12
The value of the DXParentEventID port differs from the value in the previous row. The value of the DXGroupByKey port differs from the value in the previous row. The row count for the group has reached the value in the DXMaxRowsInGroup port. The value in the DXLastInGroup port is true.
Input Ports
The DX_Aggregate transformation has the following input ports:
Port DXParentEventId Type string Description ID of the parent event associated with the data. This is the primary GROUP BY key. Used with the parent event ID to group rows. Delimiter string to add between segments of data that indicates the end of a segment and the start of another segment. Data segment to aggregate. This port can contain the data segment or a document reference.
DXGroupByKey DXDelimiter
string string
DXData
DXDataByReference
Indicates whether the DXData port contains data or a document reference. If the value is true, the DXData port contains a document reference. If the value is null or the value is false, the DXData port contains data. Indicates that the row is the last row in a group. Indicates the maximum number of rows in a group.
DXLastInGroup DXMaxRowsInGroup
string integer
Input/Output Ports
The DX_Aggregate transformation has the following input/output ports:
Port DXGroupSequence Type integer Description Number of groups the transformation has processed since the Integration Service was started. The transformation increments the value of this port every time a group is processed. When the Integration Service starts, the value is set to zero. Number of rows successfully processed and added to the group. Path and file name for the temporary file where the transformation stores the grouped data. You can use this temporary file in subsequent transformations to create a B2B Data Exchange document. Number of rows that generated errors and were not added to the group.
DXRowCount DXTemporaryFilePath
integer string
DXErrorCount
integer
DX_Aggregate
13
Description Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DX_Complete_Correlation
This transformation completes the correlation for an event. The transformation requires the correlation ID generated when you used the DX_Initiate_Correlation transformation to initiate the correlation.
Input Ports
The DX_Complete_Correlation transformation has the following input ports:
Port DXCorrelationId Type string Description Required. ID of the correlation to complete.
Input/Output Ports
Port DXEventId DXErrorMessage DXErrorCode Type string string string Description Required. ID of the event that completes the correlation. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
14
Indicates whether to set the status of the event to ERROR when the transformation generates an error. Default is true.
DX_Create_Event
This transformation creates an event in the Data Exchange repository and set the properties of the event.
Input Ports
The DX_Create_Event transformation has the following input ports:
Port DXParentEventId Type string Description ID of parent event. If the DXParentEventId port is not null, the transformation creates a child event of the DXParentEventId event. If the DXParentEventId port is null, the transformation creates a root event. Name of the partner associated with the new event. Optional if the account number is unique across all partners or if the DXProfileId port is not null. ID of the profile associated with the new event. Optional if you use the application and partner name or account number to identify the profile. If the profile ID is not null, the transformation associates the profile ID with the event created by the transformation. If the profile ID is null, the transformation uses the DXApplication, DXAccountNumber, and DXPartnerName ports to determine the profile ID to associate with the event created by the transformation. Name of the application associated with the event. Required if the DXProfileId port is null. Account number associated with the event. Optional if the DXProfileId port is not null. Subject of the event to create. Can be up to 255 bytes long. Status of the event to create. If the value is not null, the transformation sets the status for the event. Type of the event to create.
DXPartnerName
string
DXProfileId
string
DXApplication
string
DXAccountNumber
string
DXSubject DXStatusName
string string
DXTypeName
string
DX_Create_Event
15
Input/Output Ports
The DX_Create_Event transformation has the following input/output ports:
Port DXNewEventId DXErrorMessage DXErrorCode Type string string string Description Event ID for the generated event. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DX_Event_Attribute
You use the DX_Event_Attribute transformation to get or set event attribute values. To use this transformation, you must first configure an event attribute in the Operation Console, then use this transformation to set or get its value. You can add ports to DX_Event_Attribute that represent the event attributes you want to get or set. The port name must match the event attribute name exactly. If you set a value for the port, the transformation sets the event attribute to this value. If the port is value is Null, then DX_Event_Attribute gets (retrieves) the value of the event attribute. Note: The DXValue port, DXAttributeKey, and Event attribute name properties, used in pervious versions of B2B Data Exchange, are optional. Use the <attribute> port instead.
16
Input/Output Ports
The DX_Event_Attribute transformation has the following input/output ports:
Port DXEventId <Attribute> port Type string string Description ID of the event associated with the attribute to get or update. Represents an event attribute. The port name must match the event attribute name. The developer can define multiple attribute ports. If the port value is not null, the transformation sets the event attribute to this value. If the port value is null, the transformation gets the value of the event attribute. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DXErrorMessage DXErrorCode
string string
DX_Event_Details
This transformation gets or sets multiple properties of an event. The ports represent the properties of an event. The transformation sets the property of the event with the value passed to the transformation through an input port. The transformation passes the value of the property through an output port.
DX_Event_Details
17
Input/Output Ports
The DX_Event_Details transformation has the following input/output ports:
Port DXStatusName Type string Description Status of the event. Note: The DXStatusName property provides progress information on the various steps that the event passed through during its "journey" through the B2B Data Exchange processing cycle. B2B Data Exchange sets event status to "Transferring" when writing a message to a target. Status is changed to "Complete" or "Error", depending on whether the transfer was successful, or not. If you want B2B Data Exchange to use a different status other than "Complete", use the DXStatusName in the JMS Target definition property to change it. ID of the event associated with the properties to get or update. Type of the event. Subject of the event. Number of child events associated with the event. ID of the parent event for this event. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DX_Generate_Temporary_File
This transformation gets the path and file name for a document in the Data Exchange document store.
18 Chapter 2: B2B Data Exchange Transformations
This transformation generates a unique file name in a temporary directory in the B2B Data Exchange document store. The transformation does not create a file. For example, you use an Unstructured Data transformation to write data to a temporary file. You can use this transformation to generate a file name for a file in the Data Exchange document store and write the data from the Unstructured Data transformation.
Input/Output Ports
The DX_Generate_Temporary_File transformation has the following input/output ports:
Port DXEventId DXTemporaryFilePath DXErrorMessage DXErrorCode Type string string string string Description ID of the event to associate with the generated file path. Path and file name of the temporary file. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DX_Get_Document_File_Path
This transformation determines the path and file name of a document based on a document reference.
Input Ports
The DX_Get_Document_File_Path transformation has the following input ports:
Port DXDocumentReference Type string Description Document reference to a document stored in a file in B2B Data Exchange document store.
DX_Get_Document_File_Path
19
Input/Output Ports
The DX_Get_Document_File_Path transformation has the following input/output ports:
Port DXEventId Type string Description Event associated with the document reference. Optional. If the value is not null, the transformation logs the event ID for tracking. Path and file name of the document identified by a document reference. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DX_Increment_Profile_Parameter
This transformation increments the value of a parameter associated with a profile. The parameter to be incremented must be numeric.
Input Ports
The DX_Increment_Profile_Parameter transformation has the following input ports:
Port DXApplication DXPartnerName Type string string Description Application associated with the profile. Required if the DXProfileId port is null. Name of the partner associated with the profile. Optional if the DXProfileId port is not null. Account number associated with the profile. Optional if the DXProfileId port is not null.
DXAccountNumber
string
20
Input/Output Ports
The DX_Increment_Profile_Parameter transformation has the following input/output ports:
Port DXProfileId DXValue DXErrorMessage DXErrorCode Type string string string string Description ID of the profile associated with the parameter to increment. Value by which to increment the parameter. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DX_Initiate_Correlation
This transformation initiates a reconciliation for an event. Use this transformation in a workflow that processes a document that requires reconciliation. When a reconciliation is initiated, it needs to be completed. In a workflow, use the DX_Initiate_Correlation transformation to initiate a reconciliation. In another workflow, use the DX_Complete_Correlation transformation to complete the reconciliation. For more information, see Initiating and Completing an Event Reconciliation on page 28.
Input Ports
The DX_Initiate_Correlation transformation has the following input ports:
Port DXCorrelationType Type string Description Description of the type of correlation to initiate. Optional. The description can be a maximum of 255 bytes. The correlation type does not need to be defined in B2B Data Exchange. ID of the correlation to be initiated. Required. The time interval in seconds within which the correlation must be completed.
DXCorrelationId DXTimeWindow
string integer
DX_Initiate_Correlation
21
Input/Output Ports
The DX_Initiate_Correlation transformation has the following input/output ports:
Port DXEventId DXErrorMessage DXErrorCode Type string string string Description ID of the event associated with the correlation to be initiated. Required. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
Indicates whether to set the status of the event to ERROR when the transformation generates an error. Default is true.
DX_Profile_Parameters
You can use this transformation to get the parameter values defined for a profile.
Input/Output Ports
The DX_Get_Profile_Parameters transformation has the following input/output ports:
Port DXProfileID DXEventId Type string string Description Profile Id. Mandatory port. Event Id EventId is optional. It is possible to provide EventId together with ProfileId. If EventId is provided, it looks up the parameter values from the Event Context. In case of excepitons, the associated event status will be set to Error.
22
Port DXParametersXML
Type string
Description Contains all the parameters defined for the profile, wrapped in an XML string that holds the parameter names and values. Each required parameter should have a port. In case of a value that represets multi-selection, it will be represented as a string containing a semicolon separated list of values.
<parameters> <parameter name="" isnull={true/false}" isdefault="{true/false}"> ...CDATA value... </parameter>
Note: B2B Data Exchange generates the XML only if the output port is connected.
<Parameter>port
string When a developer imports the PowerCenter workflow (or mapping) files into B2B Data Exchange. B2B Data Exchange parses all occurrences of DX_Profile_Parameters transformations. All the ports in these transformations that are not B2B Data Exchange built-in ports (for example, eventId, profileId, and so on) will be populated as profile parameters. Note: Ports are identified by name. Ports with the same name are treated as a single parameter. If a parameter port does not match a defined parameter, B2B Data Exchange logs a debug message. All <parameter> ports are strings. You can change types in the B2B Data Exchange Operation Console using the Form Designer. Boolean: {true | false} (case insensitive). Multi-selection: semicolon (;) separated list of strings Date format: MM/DD/YYYY HH24:MI:SS.US. See PowerCenter Dates appendix.
DXErrorMessage DXErrorCode
string string
Error message generated by the transformation. Error code generaed by the transformation. If the tgransformation fails, the alue of the DXError post is greater than zero.
DX_Release_Delayed_Events
This transformation releases the events delayed by a specific profile. Generally speaking, delayed events are released according to defined release rules. DX_Release_Delayed_Events overrides the release rules.
Input Ports
The DX_Release_Delayed_Events transformation has the following input ports:
Port DXProfileId Type string Description ID of the profile associated with the delayed processing rule used to determine which events to release. EventId to release. Comma-separated list for multiple events.
EventId list
string
DX_Release_Delayed_Events
23
Input/Output Ports
The DX_Release_Delayed_Events transformation has the following input/output ports:
Port DXErrorMessage DXErrorCode Type string string Description Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DX_Resolve_Profile
This transformation determines the profile ID based on an application and a partner or account number. This transformation returns an error if the combination of an application and a partner or account number is not associated with any profile.
Input Ports
The DX_Resolve_Profile transformation has the following input ports:
Port DXApplication DXPartnerName DXAccountNumber Type string string string Description Application associated with the profile. Name of the partner associated with the profile. Required. Account number associated with the profile. Required if you use account numbers for partners.
24
Input/Output Ports
The DX_Resolve_Profile transformation has the following input/output ports:
Port DXProfileId Type string Description ID of the profile associated with the application and partner or account number. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DXErrorMessage DXErrorCode
string string
DX_Throw_Error
This transformation handles errors in the workflow. It generates an error when the transformation fails. It performs the following tasks:
Sets the status of the associated event to ERROR. Creates the error message from value of the DXDescription port. Attaches the error message to the associated event. Logs the error in the session log.
Input Ports
The DX_Throw_Error transformation has the following input ports:
Port DXDescription Type string Description Description of the error. This is the error message added to the session log. This is also used as the description for the log document attached to the event. Type of the error event. Optional. Alphanumeric value to associate with the event. Any value is valid. MIME type of the document to attach to the event.
DXMessageType
string
DXMIMEType
string
DX_Throw_Error
25
Input/Output Ports
The DX_Throw_Error transformation has the following input/output ports:
Port DXEventId DXData Type string string binary text Description ID of the event associated with the error. Log document to attach to the event. This port can contain the data of the document or a file path to the document. If the value of the parameter is null, the transformation creates an empty document and adds the document to the event. To attach a document with text data, set the datatype of the port to string or text. To attach a document with binary data, change the datatype of the port to binary. Indicates whether the DXData port contains the document data or a document reference. If the value is true, the DXData port contains a document reference. If the value is null or the value is false, the DXData port contains the document data. Error message generated by the transformation. Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero.
DXDataByReference
string
DXErrorMessage DXErrorCode
string string
26
CHAPTER 3
27
document that requires reconciliation, use this transformation to initiate the reconciliation.
DX_Complete_Correlation. Completes the reconciliation for an event. In the workflow to process the
acknowledgment document, use this transformation to complete the reconciliation. This transformation requires the correlation ID defined by the workflow that initiates the reconciliation. The B2B Data Exchange API also provides methods to initiate and complete a reconciliation. In the workflow to process a document that requires an acknowledgment, call the initiateCorrelation method to initiate a reconciliation. In the workflow to process the acknowledgment document, call the completeCorrelation method to complete the reconciliation. You must set a time limit within which the acknowledgment must be received. The Data Exchange Server sets the reconciliation status to indicate whether the acknowledgment was processed within the time limit. You can create a reconciliation monitor for the Data Exchange Server to set the status and to notify you when a reconciliation does not complete or completes after the time limit. For more information, see B2B Data Exchange Operator Guide.
28
Reconciliation Status
A reconciliation can have one of the following statuses:
Pending reconciliation. No acknowledgment is received for a document and the timeout limit is not reached.
When you initiate a reconciliation, the Data Exchange Server sets the reconciliation status to Pending reconciliation. When you change the timeout interval, the Data Exchange Server can reset the reconciliation status to Pending reconciliation.
Timed out. Time limit for acknowledgment is reached and no acknowledgment is processed for the document. Reconciled after timeout. acknowledgment for the document is processed after the time limit. When you
complete a reconciliation after the time limit, the Data Exchange Server sets the reconciliation status to Reconciled after timeout.
Reconciliation complete. acknowledgment for the document is processed within the time limit. When you
complete a reconciliation, the Data Exchange Server sets the reconciliation status to reconciliation complete. You can also manually set the reconciliation status to Reconciliation Complete on the Operation Console. The following diagram shows the process that the Data Exchange Server follows to set the reconciliation status:
When an event has multiple reconciliations, the Data Exchange Server sets the reconciliation status of the event based on the status of all reconciliations associated with the event and its child events. The reconciliation status of the event is equivalent to the status of the reconciliation that is furthest from completion or requires operator action.
Reconciliation Status
29
B2B Data Exchange ranks the reconciliation statuses in the following order: 1. Timed out. One or more of the reconciliations associated with the event and its child events have not received an acknowledgment within the time limit. This status can indicate a problem with the acknowledgment and require immediate operator action. Pending reconciliation. All reconciliations associated with the event and its child events have been initiated but no reconciliation has completed or timed out. Reconciled after timeout. All reconciliations associated with the event and its child events have completed but one or more of the reconciliations completed after the timeout This status can indicate a problem with the acknowledgment process and require operator action. Reconciliation complete. All reconciliations associated with the event and its child events are complete. This status indicates that the event reconciliation process worked as expected.
2. 3.
4.
The reconciliation status of the event is equivalent to the highest ranked status of any of the reconciliations associated with the event and its child events. The following table shows examples of the event reconciliation status based on the status of the reconciliations associated with the event:
Event Status of the Reconciliations Associated with an Event Reconciliation Status of the Event Pending reconciliation
Event 01
Child event 101 Reconciliation 001: Pending reconciliation Reconciliation 002: Reconciliation complete Reconciliation 003: Pending reconciliation Child event 102 Reconciliation 011: Reconciliation complete Reconciliation 012: Reconciled after timeout Reconciliation 013: Reconciliation complete
Event 02
Child event 201 Reconciliation 021: Reconciliation complete Reconciliation 022: Pending reconciliation Reconciliation 023: Reconciled after timeout Reconciliation 024: Pending reconciliation Child event 202 Reconciliation 031: Timed out Reconciliation 032: Reconciled after timeout
Timed out
Event 03
30
CHAPTER 4
Forms Designer
This chapter includes the following topics:
Overview of the Forms Designer , 31 Using the Forms Designer, 32 Creating a Dependency between Fields, 34
You use the Forms Designer to arrange the screen layout, and to configure the individual fields. The Forms Designer lets you set up the following form properties:
Labels Descriptions Mandatory flags Read-only flags Parameter types Parameter representations Default values Valid values Relationships between fields User interface screen groups, such as tabs, columns, and headings
In the next section, Using the Forms Designer, we present a instructions for using the tool.
31
The following table explains the actions you can take on this screen:
Button Edit Create Tab Create Column Description Allows editing the properties of an element. Creates a tab. A tab is a group of elements contained in a screen tab. Creates a column. A column is a group of elements that you can display beside another column, across the width of the form you are designing. Creates a header element. A header allows you to create a header above a group of parameters Create a disclosure group. A disclosure group is a group of parameters that the operator can display or hide by clicking the name of the group. Deletes a group. The elements in the deleted group remain in the workflow. Move elements from one group (tab, column, header, or disclosure) to another.
Create Header
Create Disclosure
The screen contains a grid display of the workflow elements. The following table describes the grid columns:
Attribute Id Label Type Representation Description The unique identifier of the element. The label of the element, as it appears in the form. The data type of the element, such as text or date. The representation of the element in the form, for example, entry field, radio button, or drop-down list.
32
Description If selected, the element is mandatory. If selected, the element is read-only. If the element depends upon another element, the name of the other element appears here.
4.
Mandatory
No
Read Only
No
Hidden
No
No No No No No
Maximum
No
Enable/disable condition
No
33
5.
To create a tab on the form: a. Click Actions> Create Tab. Enter the tab properties and click OK. The tab properties are:
Attribute Label Type Enable/Disable Condition Mandatory Yes Yes No Description The tab's label as it appears in the form. Tab. Allows you to enable or disable all the fields in the tab based on the value of another parameter in the form. To enable or disable a group, select the checkbox and fill in the parameters defining the enable/disable condition. For more information on enable/disable conditions, see Creating a Dependency between Fields on page 34
The tab appears in the workflow elements grid. b. 6. Drag and drop the elements that should appear in the tab to the new tab element.
To arrange elements in a column, click Actions > Create Column and enter the properties for the column. Click Enter. Drag and drop the parameters to the new column. Create two or more columns to display them side by side. The column element appears in the element grid.
7. 8. 9.
To create a header, click Actions > Create Header. Enter the header text in the Label field. Drag and drop the elements that should appear under the Header. To create a disclosure group, click Actions > Create Disclosure. Enter a label for the disclosure and drag and drop elements to it. Define the enabled/disabled condition if required. Click Save to save the workflow and the form.
The following screen image shows the final design of the Workflow Parameters screen:
34
2. 3. 4. 5. 6.
Check the "This group/parameter should be" checkbox. Select "enabled" or "disabled" from the list. Select "when" from the list. Select "specific" or "any". If you chose specific in the preceding step, fill in the specific value. The following figure illustrates the complete expression definition:
35
CHAPTER 5
account details, and a link to the event. If you are logged on to the B2B Data Exchange console, clicking on the link displays event details.
Log details. The message includes a list of all log entries for this event, including document attachments. Reconciliation details. acknowledgment details received from the partner for this event.
36
You can use the built-in email format for event notifications, or you can customize it, as explained below.
dx_email_body_file
dx_email_body_field
37
Description This string becomes the "from field" of the email. A comma-separated list of recipient email addresses. These recipients are added to the addressees defined in the monitor. Default is "text/html"; charset=UTF-8. For more information about mime types, see http://www.mimetype.org. For more information about character sets, see http://en.wikipedia.org/wiki/Character set. Subject field of the email. A comma-separated list of recipient email addresses. These recipients are added to the list of addressees defined in the monitor.
dx_email_mimetype
dx_email_subject_field dx_email_to_field
the dx_email_body_file event property. This file must be accessible to all Data Exchange Server instances.
Provide a text string that will replace the built-in body text. Assign this string to the dx_email_text event
property. The customized body of an email message can contain variables that are set during runtime, when the email notification is created. The following variables are built-in:
Variable $DXMonitorName $DXPartnerInfo Description The name of the monitor. Partner name, account name, and account number.
You can use event attributes in the customized body of an email. For example, you can define an event attribute called MyAttribute and embed it in the body of an email as $MyAttribute, meaning the value of the attribute MyAttribute. The developer assigns a value to MyAttribute using the DX_Event_Attribute transformation.
38
APPENDIX A
All B2B Data Exchange API methods that create a database transaction commit the transaction. For more information about the B2B Data Exchange API methods, see the online API reference:
<DXInstallationDir>\powercenter\javadoc\apidocs\com\informatica\b2b\dx\client\DXClient901.html
Then, use the DXClient object when you call an API method. For example:
dxClient.flowEntry(profileId, reuseEventId);
By default, the DXClientFactory returns the latest version of the B2B Data Exchange API. To use the previous version of the API, you can perform one of the following tasks:
Modify your client code. Use the following lines of code in your client application code: DXClient861 dxClient = (DXClient861) DXClientFactory.getClient(DXClientTypes.POWERCENTER_CLIENT); Add the API 8.6.1 jar file to the Java SDK Classpath of the Integration Service. In the PowerCenter
Administration Console, edit the Integration Service that runs the Data Exchange workflows. Add the following jar file before all the other jar files in the Java SDK Classpath:
<DataExchangeInstallationDir>/powercenter/lib/dx-iface-api-8.6.1-9.0.1.jar;
39
For more information about the methods in the previous version of the B2B Data ExchangeAPI, see the online API reference:
<DXInstallationDIR>\powercener\javadoc\apidocs\com\informatica\b2b\dx\client\DXClient861.html
The online reference for B2B Data Exchange API 8.6.1 contains information about how to upgrade your code to use B2B Data Exchange API 9.0.1.
API Reference
The following table lists the methods available in the B2B Data Exchange API:
Method addEventDocument ( String eventId, Document document ) completeCorrelation ( String eventId, String correlationId ) completeCorrelations ( String eventId ) createChildEvent ( String parentEventId, String profileId ) createChildEvent ( String parentEventId, String profileId, String eventStatusName, String eventTypeName, String subject ) createDocument ( String temporaryFilePath, String eventId ) flowEntry ( String profileId ) flowEntry ( String profileId, String reuseEventId ) flowExit ( String eventId ) Return Value String Description Attaches a document to an event and returns the document ID for the document attached to the event.
String
Completes a reconciliation process and returns the ID of the event that initiated the reconciliation process.
void
String
Creates a child event based on a profile ID and returns the event ID of the child event.
String
Creates a child event based on a profile ID and sets the properties of the child event. Returns the event ID of the child event.
Document
Moves a file into the B2B Data Exchange document store and returns the associated document reference.
String
Indicates the start of a workflow. This method creates an event and returns the event ID. Indicates the start of a workflow. You can specify the event ID to use.
String
String
Indicates the end of a workflow. This method updates the status of the event with the system default status and returns the event ID. Indicates the end of a workflow. This method updates the status of the event with the given status and returns the event ID.
String
40
Description Creates a unique file name in the B2B Data Exchange temporary document directory and returns the path and file name. Returns the number of child events for a parent event.
getChildrenCount ( String parentEventId ) getDocumentData ( Document document, Long offset, Long count, String eventId ) getDocumentFilePath ( Document documentReference, String eventId ) getEventAttribute ( String eventId, String attributeKey ) getEventContext ( String eventId ) getEventDocuments ( String eventId ) getEventInfo ( String eventId ) getEventParentEventId ( String eventId ) getEventStatusName ( String eventId ) incrementProfileSequenceValue ( String profileId, String parameterSequenceId ) incrementProfileSequenceValue ( String profileId, String parameterSequenceId, String incrementBy ) initiateCorrelation ( String eventId, String correlationId, String correlationType, long timeWindowSeconds ) releaseDelayedEvents ( String profileId, List<String> eventIds )
Integer
byte[]
String
Returns the path and file name of the file associated with a document reference.
String
Map
List<Document>
Returns information about all documents associated with an event. Returns the information associated with an event, including event status, event type. Returns the event ID of the parent event.
Properties
String
String
String
String
void
void
API Reference
41
Method resolveProfileId ( String accountNumber, String application, String partnerName, String profileName ) setEventAttribute ( String eventId, String attributeKey, String attributeValue ) setEventStatus ( String eventId, String eventStatus ) setEventStatus ( String eventId, String eventStatusId, String comments ) setEventSubject ( String eventId, String subject ) setEventType ( String eventId, String eventType ) setProfileSequenceValue ( String profileId, String parameterSequenceId, Object newValue )
Description Returns the profile ID associated with an application and an account number or partner.
String
void
void
void
void
String
42
INDEX
B
B2B Data Exchange PowerCenter mappings 5 PowerCenter workflows 6
C
client plug-in for PowerCenter installing Data Exchange transformations 2 connection objects Data Exchange workflows 5
DX_Generate_Temporary_File Data Exchange transformation 18 DX_Get_Document_File_Path Data Exchange transformation 19 DX_Increment_Profile_Parameter Data Exchange transformation 20 DX_Initiate_Correlation Data Exchange transformation 21 DX_Release_Delayed_Events Data Exchange transformation 23 DX_Resolve_Profile Data Exchange transformation 24 DX_Throw_Error Data Exchange transformation 25
D
Data Exchange plug-ins client plug-in for PowerCenter 2 server plug-in for PowerCenter 2 Data Exchange transformations configuring 10 DX_Add_Document_To_Event 10 DX_Aggregate 12 DX_Complete_Correlation 14 DX_Create_Event 15 DX_Event_Details 17 DX_Generate_Temporary_File 18 DX_Get_Document_File_Path 19 DX_Increment_Profile_Parameter 20 DX_Initiate_Correlation 21 DX_Release_Delayed_Events 23 DX_Resolve_Profile 24 DX_Throw_Error 25 error handling 10 guidelines 9 installing plug-ins 2, 9 Data Exchange workflows configuring real-time session 6 connection objects 5 JNDI connection 5 mapping 5 target definition 3 designer forms 32 DX_Add_Document_To_Event Data Exchange transformation 10 DX_Aggregate Data Exchange transformation 12 DX_Complete_Correlation Data Exchange transformation 14 DX_Create_Event Data Exchange transformation 15 DX_Event_Details Data Exchange transformation 17
E
email monitor notification 36 email for monitor notification configuring 36 event reconciliation overview 27
F
forms designer using 32
I
Index Term 6
J
JNDI connection Data Exchange workflows 5
M
mappings Data Exchange workflows 5 for B2B Data Exchange 5 monitor notification email 36
P
pending reconciliation reconciliation status 29
43
PowerCenter creating mappings for B2B Data Exchange 5 creating workflows for B2B Data Exchange 6 sources and targets for B2B Data Exchange 2
initiating 28
S
server plug-in for PowerCenter installing Data Exchange transformations 2
R
real-time session configuring Data Exchange workflows 6 reconciled after timeout reconciliation status 29 reconciliation complete reconciliation status 29 reconciliation status ranking 29 reconciled after timeout 29 reconciliation complete 29 reconciliation correlation 29 timed out 29 reconciliations completing 28 definition 27
T
target definition Data Exchange workflows 3 for B2B Data Exchange 3 timed out reconciliation status 29
W
workflows for B2B Data Exchange 6
44
Index