tibco business works - palette reference - nov 2002

374
TIBCO BusinessWorks™ Palette Reference Software Release 2.0.0 November 2002

Upload: naveen

Post on 18-Nov-2014

134 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: TIBCO Business Works - Palette Reference - Nov 2002

TIBCO BusinessWorks™

Palette ReferenceSoftware Release 2.0.0November 2002

Page 2: TIBCO Business Works - Palette Reference - Nov 2002

Important Information

SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITED ADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLED SOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FOR ANY OTHER PURPOSE.

USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF A LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE AGREEMENT, OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER LICENSE AGREEMENT WHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE SOFTWARE (AND WHICH IS DUPLICATED IN THE TIBCO BUSINESSWORKS CONCEPTS). USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS AND CONDITIONS, AND YOUR USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN AGREEMENT TO BE BOUND BY THE SAME.

This document contains confidential information that is subject to U.S. and international copyright laws and treaties. No part of this document may be reproduced in any form without the written authorization of TIBCO Software Inc.

Technologies described herein are covered by existing patents and pending patent applications. TIBCO technology is protected under US patent number 6,003,011.

TIB, TIBCO, Information Bus, The Power of Now, TIBCO Rendezvous, TIBCO AlertServer, TIBCO Adapter SDK, TIBCO AdapterAdministrator, TIBCO Repository, and TIBCO Hawk are either registered trademarks or trademarks of TIBCO Software Inc. in the United States and/or other countries.

EJB, J2EE, JMS and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

All other product and company names and marks mentioned in this document are the property of their respective owners and are mentioned for identification purposes only.

THIS DOCUMENT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.

THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS DOCUMENT AT ANY TIME.

Copyright © 2001-2002 TIBCO Software Inc. ALL RIGHTS RESERVED.

TIBCO Software Inc. Confidential Information

Page 3: TIBCO Business Works - Palette Reference - Nov 2002

| iii

Contents

Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv

Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix

Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxTIBCO BusinessWorks Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxOther Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xx

How to Contact TIBCO Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi

Chapter 1 Deployment Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Deployment Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Installed Components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Disk. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Process Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Process Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Recovery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Custom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Fault Tolerance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Recovery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Custom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Any Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

TIBCO BusinessWorks Palette Reference

Page 4: TIBCO Business Works - Palette Reference - Nov 2002

iv |

Component failure event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Suspend Process Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Log Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Restart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Alert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Custom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Chapter 2 Process Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

Process Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

Chapter 3 ActiveEnterprise Adapter Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Adapter Request-Response Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35RV Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Adapter Subscriber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37RV Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Invoke an Adapter Request-Response Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40RV Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

Publish to Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44RV Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

Respond to Adapter Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

TIBCO BusinessWorks Palette Reference

Page 5: TIBCO Business Works - Palette Reference - Nov 2002

| v

Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

Wait for Adapter Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49RV Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49Event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

Wait for Adapter Request. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53RV Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53Event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

Chapter 4 BusinessConnect Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

Overview of TIBCO BusinessConnect Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

Receive Misc Msg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Receive Request/Notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

Receive Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

Send Misc Msg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Send Request/Notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

Send Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

TIBCO BusinessWorks Palette Reference

Page 6: TIBCO Business Works - Palette Reference - Nov 2002

vi |

Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

Chapter 5 FTP Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

FTP Get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

FTP Put . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

Chapter 6 File Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

Create File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

File Poller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

Read File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

Remove File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Wait for File Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

Write File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90

Chapter 7 General Activities Palette. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

Call Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

TIBCO BusinessWorks Palette Reference

Page 7: TIBCO Business Works - Palette Reference - Nov 2002

| vii

Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93Checkpoints and Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94Called Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94Recovering After a Crash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

Confirm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

External Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96Long-Running Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

Generate Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101

Java Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103Passing Java Objects Between Java Code Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

Mapper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107Output Schema. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108

Notify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

Null . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

Receive Notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

Sleep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

TIBCO BusinessWorks Palette Reference

Page 8: TIBCO Business Works - Palette Reference - Nov 2002

viii |

Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

Write To Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118

Chapter 8 HTTP Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

HTTP Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

Send HTTP Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123Input Headers/Output Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

Send HTTP Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

Wait for HTTP Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

Chapter 9 JDBC Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

JDBC Call Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

JDBC Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

JDBC Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

TIBCO BusinessWorks Palette Reference

Page 9: TIBCO Business Works - Palette Reference - Nov 2002

| ix

Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

Query Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

SQL Direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

Chapter 10 JMS Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159

JMS Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

JMS Queue Receiver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166

JMS Queue Requestor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170Input Data/Output Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

JMS Queue Sender . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

JMS Topic Publisher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

JMS Topic Requestor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183Input Data/Output Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

JMS Topic Subscriber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187

TIBCO BusinessWorks Palette Reference

Page 10: TIBCO Business Works - Palette Reference - Nov 2002

x |

Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

Reply To JMS Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

Wait for JMS Queue Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199

Wait for JMS Topic Message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

Chapter 11 Mail Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

Receive Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208

Send Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211

Chapter 12 Manual Work Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213

Overview of Manual Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

Working With Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217

Working With Tasks Assigned to a Role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218Acquiring Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221Working with Tasks in the Acquired List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221Working with the Completed List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222Administering Tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222

Interaction With TIBCO InConcert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223

TIBCO BusinessWorks Palette Reference

Page 11: TIBCO Business Works - Palette Reference - Nov 2002

| xi

Assign Work. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227

Download Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231

Get Work Status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233

Modify Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238

Wait for Completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

Chapter 13 Parse Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247

Parse Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251Parsing a Large Number of Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

Render Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254

Chapter 14 Rendezvous Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255

Publish Rendezvous Message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256Input Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258

Rendezvous Subscriber. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258Output Schema. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

TIBCO BusinessWorks Palette Reference

Page 12: TIBCO Business Works - Palette Reference - Nov 2002

xii |

Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260

Reply to Rendezvous Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260Output Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262

Send Rendezvous Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262Input/Ouput Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265

Wait for Rendezvous Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265Output Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268

Chapter 15 SOAP Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269

Retrieve Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270Using Retrieve Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270Retrieving a WSIL File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

SOAP Event Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275Input Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276Output Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277Service Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277

SOAP Request Reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282Error Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283

SOAP Send Fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286

SOAP Send Reply. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286

TIBCO BusinessWorks Palette Reference

Page 13: TIBCO Business Works - Palette Reference - Nov 2002

| xiii

Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

Chapter 16 XML Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289

Parse XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290Parsing Date and Datetime Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

Render XML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292Rendering Date and Datetime Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294

Transform XML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296Example of Transforming XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297

Chapter 17 Shared Configuration Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301

BusinessConnect Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303

Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307Field Offsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307

FTP Connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308

HTTP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309

Java Custom Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312Example Java Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314

JDBC Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315

JMS Application Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318

TIBCO BusinessWorks Palette Reference

Page 14: TIBCO Business Works - Palette Reference - Nov 2002

xiv |

JMS Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320

Notify Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321

Proxy Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322

Rendezvous Transport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322Advanced . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

Trusted CA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326Trusted Certificate & CAs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326

Schema Definition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326

Workflow Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327Output View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328

Workflow Server Connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328

WSDL File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332Using WSIL and UDDI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332

XML Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336

XSLT File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336Editing an XSLT File Resource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337

Appendix A Specifying Data Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341

Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347

TIBCO BusinessWorks Palette Reference

Page 15: TIBCO Business Works - Palette Reference - Nov 2002

| xv

Figures

Figure 1 An Adapter Request-Response Server activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Figure 2 An Adapter Subscriber activity receiving a message and starting a process. . . . . . . . . . . . . . . . . 37

Figure 3 An Invoke an Adapter Request-Response Service activity sending a request . . . . . . . . . . . . . . . 39

Figure 4 A Publish to Adapter activity sending a message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

Figure 5 A Respond to Adapter Request sending a response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

Figure 6 A Publish to Adapter activity sending a message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

Figure 7 A Wait for Adapter Request activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Figure 8 TIBCO BusinessWorks communicating with TIBCO BusinessConnect . . . . . . . . . . . . . . . . . . . . . 58

Figure 9 Using the Generate Error activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

Figure 10 Passing objects between Java Code activities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

Figure 11 The query designer wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152

Figure 12 An example business process with manual work. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

Figure 13 Task lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220

Figure 14 Task detail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220

Figure 15 Process definition using the Retrieve Resources activity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

Figure 16 A process definition using the Transform XML activity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297

Figure 17 Input for the example Transform XML activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298

Figure 18 Input for the example Parse XML activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299

Figure 19 Parsing a text string into a data schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

Figure 20 Fixed-width text strings and field offsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308

Figure 21 The WSIL and UDDI Registry Browser dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333

TIBCO BusinessWorks Palette Reference

Page 16: TIBCO Business Works - Palette Reference - Nov 2002

xvi |

TIBCO BusinessWorks Palette Reference

Page 17: TIBCO Business Works - Palette Reference - Nov 2002

| xvii

Tables

Table 1 Properties for JMS Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

Table 2 Shared configuration resources for manual work activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

Table 3 Description of activities in the Manual Work palette. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216

Table 4 Task list columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219

Table 5 Datatypes allows for Java custom functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311

Table 6 Datatypes for schema items. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343

TIBCO BusinessWorks Palette Reference

Page 18: TIBCO Business Works - Palette Reference - Nov 2002

xviii |

TIBCO BusinessWorks Palette Reference

Page 19: TIBCO Business Works - Palette Reference - Nov 2002

| xix

Preface

TIBCO BusinessWorks is a standards-based, easy-to-deploy solution for companies looking to integrate their enterprise computing environment and automate their business processes. This manual describes how to create process definitions using TIBCO BusinessWorks.

Topics

• Related Documentation, page xx

• How to Contact TIBCO Customer Support, page xxi

TIBCO BusinessWorks Palette Reference

Page 20: TIBCO Business Works - Palette Reference - Nov 2002

xx | Preface

Related Documentation

You may find the following documentation resources useful.

TIBCO BusinessWorks DocumentationIn addition to this manual, the following documents are part of the TIBCO BusinessWorks documentation set:

• TIBCO BusinessWorks Concepts Read this manual before reading any other manual in the documentation set. This manual describes terminology and concepts of TIBCO BusinessWorks, and the other manuals in the documentation set assume you are familiar with the information in this manual.

• TIBCO BusinessWorks Quick Start This manual steps you through a very simple example of designing, deploying, and monitoring a TIBCO BusinessWorks process.

• TIBCO BusinessWorks Business Process Design Guide This manual describes how to create, edit, and test business processes using TIBCO BusinessWorks.

• TIBCO BusinessWorks Installation Read this manual for information on installing one or more components of TIBCO BusinessWorks and setting up a TIBCO BusinessWorks domain.

• TIBCO BusinessWorks Release Notes Read the release notes for a list of new and changed features. This document also contains lists of known issues and closes issues for this release.

Other DocumentationTIBCO BusinessWorks is bundled with other products. You will therefore find the documentation for those products useful:

• TIBCO Designer documentation. TIBCO Designer is an easy to use graphical user interface for design-time configuration of TIBCO applications. TIBCO Designer includes online help for each palette.

• TIBCO Administrator documentation. TIBCO Administrator is the monitoring and managing interface for new-generation TIBCO products such as TIBCO BusinessWorks.

• TIBCO Adapter product documentation

TIBCO BusinessWorks Palette Reference

Page 21: TIBCO Business Works - Palette Reference - Nov 2002

How to Contact TIBCO Customer Support | xxi

How to Contact TIBCO Customer Support

For comments or problems with this manual or the software it addresses, please contact TIBCO Product Support at:

http://support.tibco.com

Entry to this site requires a username and password. If you do not have a username, you can request one. You must have a valid maintenance or support contract to use this site.

TIBCO BusinessWorks Palette Reference

Page 22: TIBCO Business Works - Palette Reference - Nov 2002

xxii | Preface

TIBCO BusinessWorks Palette Reference

Page 23: TIBCO Business Works - Palette Reference - Nov 2002

| 1

Chapter 1 Deployment Palette

The Deployment palette contains resources for deploying your project to its intended environment. See TIBCO BusinessWorks Concepts for more information on deployment concepts and see TIBCO BusinessWorks Process Design Guide for more information on how to deploy a project.

This chapter describes the resources available in the Deployment palette.

Topics

• Deployment Configuration, page 2

• Machine, page 3

• Process Engine, page 9

• Adapter, page 17

• Any Failure, page 20

• Component failure event, page 21

• Restart, page 25

• Alert, page 26

• Email, page 28

• Custom, page 29

TIBCO BusinessWorks Palette Reference

Page 24: TIBCO Business Works - Palette Reference - Nov 2002

2 | Deployment Palette

Deployment Configuration

The deployment configuration is a description of what adapters and process engines to run, which machines they should be run on, and what action to take in case a running adapter or process engine fails. The deployment configuration also stores any monitoring conditions you wish to place on a machine.

ConfigurationThe configuration tab has the following fields.

You can have only one deployment configuration per project, but the configuration can describe any number of machines and components to run.

Field Description

Name The name to appear as the label for the deployment within TIBCO Designer and the TIBCO Administrator GUI.

Description Short description of the deployment.

Variables button Allows you to view and change the global variables defined for this project.

TIBCO BusinessWorks Palette Reference

Page 25: TIBCO Business Works - Palette Reference - Nov 2002

Machine | 3

Machine

Once you create a deployment configuration, you can drag and drop machine resources into the deployment. You can have as many machines as there are in your TIBCO administration domain. You can only configure one copy of each machine.

Initially, only the Machine field is shown. Once you select a machine from the drop-down list and click the Apply button, the other fields on the dialog are shown.

ConfigurationThe configuration tab has the following fields. None of these fields are editable.

Field Description

Machine A selection list of the available machines in the administration domain. You can configure each machine once.

Note: Once a machine is configured, you can change the configuration, but you can add a machine to the deployment only once.

Machine Name Once a machine is selected, this field displays the name of the machine.

Description Short description of the machine.

IP Address IP address of the machine.

Operating System Operating system installed on the machine.

OS Version Version of the operating system installed on the machine.

TIBCO BusinessWorks Palette Reference

Page 26: TIBCO Business Works - Palette Reference - Nov 2002

4 | Deployment Palette

Installed ComponentsThe installed components tab describes the components installed on the machine.

Field Description

Installed Component Name of the installed component. This list contains all of the TIBCO adapter products and TIBCO BusinessWorks products installed on the machine.

Version Version of the installed component.

TIBCO BusinessWorks Palette Reference

Page 27: TIBCO Business Works - Palette Reference - Nov 2002

Monitor | 5

Monitor

The Monitor resource allows you to create conditions for monitoring the machine’s CPU, disk, and process usage. You access the Monitor resource by clicking on a Machine resource in the deployment configuration, then click on the "Monitor" tab above the palette panel. You can then drag and drop monitors into the machine resource.

Once you drag and drop a monitor into a machine, you must choose what type of monitor it is: CPU, Disk, or Process. Each type of monitor has its own tab for specifying the condition to monitor. For example, in a CPU monitor, you can specify a condition of the machine’s CPU usage is over 80%.

You can create more than one monitor of each type. Each monitor you create will monitor for the specified condition, and the actions placed within the monitor are taken when the condition is reached. You can double click on a Monitor resource in the design panel to open it, and then you can place any of the following actions to take into the monitor:

• Alert — send an alert to the administration server.

• Email — send an email to a user or list of users.

• Custom — execute an operating system command or script.

ExampleYou may have the following rules in your organization:

• If the CPU usage goes above 80%, send an email to the operations supervisor and an alert to the administration server.

• If the CPU usage goes above 98%, reboot the machine.

• If the disk usage goes above 85%, execute a script that writes a form for ordering more disks and send an email to the operations supervisor.

• If there are more than 75 processes on the machine, execute commands to kill some of the running processes.

To implement those rules, follow this procedure:

1. Select the machine on which to implement the rules within a deployment configuration in the project panel.

2. Click on the Monitor tab and drag a Monitor resource from the palette panel to the design panel.

3. In the Monitoring Type field, select CPU.

TIBCO BusinessWorks Palette Reference

Page 28: TIBCO Business Works - Palette Reference - Nov 2002

6 | Deployment Palette

4. Click the Apply button.

5. Click the CPU tab.

6. In the Processor field, type the number of the processor that you wish to apply the rule to. Processors are numbered starting at zero. Use the default value of zero if your machine has only one processor.

7. In the CPU Usage field, use the drop down list to select the greater than sign (>), then type the number 80 in the percentage field.

8. Double click on the Monitor resource in the design panel. The action resources should appear in the palette panel.

9. Drag and drop the Email resource into the design panel.

10. Specify the fields of the Email resource. See Email on page 28 for more information on the Email resource.

11. Drag and drop the Alert resource into the design panel.

12. Specify the fields of the Alert resource. See Alert on page 26 for more information on the Email resource.

13. Click on the machine within the deployment configuration in the project panel, and drag and drop another monitor.

14. Repeat steps 3 to 10 for the other three conditions you wish to monitor.

ConfigurationThe configuration tab has the following fields.

Field Description

Monitoring Type The type of the monitor. The monitor can be one of the following types, each type corresponds to an aspect of the machine you wish to monitor:

• CPU

• Disk

• Process

Name The name to appear as the label for the monitor.

Description Short description of the monitor.

TIBCO BusinessWorks Palette Reference

Page 29: TIBCO Business Works - Palette Reference - Nov 2002

Monitor | 7

CPUThe CPU tab is available for monitors of type CPU and has the following fields.

DiskThe Disk tab is available for monitors of type Disk and has the following fields.

Field Description

Processor The numeric identifier of the processor on the machine you wish to monitor. For machines with multiple CPUs, the first processor is zero, and subsequent processors are numbered sequentially.

CPU Usage The condition you wish to monitor. You can specify either equal to, not equal to, greater than, greater than or equal to, less than, or less than or equal to as the condition. You then must specify a percentage value for the CPU usage.

For example, you can specify greater than 95%, which means the actions specified for the monitor will be taken when the CPU usage is greater than 95%.

Field Description

Logical Disk The numeric identifier of the disk on the machine you wish to monitor. For machines with multiple disks, the first disk is zero, and subsequent disks are numbered sequentially.

Disk Usage The condition you wish to monitor. You can specify either equal to, not equal to, greater than, greater than or equal to, less than, or less than or equal to as the condition. You then must specify a percentage value for the disk usage.

For example, you can specify greater than 95%, which means the actions specified for the monitor will be taken when the disk usage is greater than 95%.

TIBCO BusinessWorks Palette Reference

Page 30: TIBCO Business Works - Palette Reference - Nov 2002

8 | Deployment Palette

ProcessThe Process tab is available for monitors of type Process and has the following fields.

Field Description

Process Count The condition you wish to monitor. You can specify either equal to, not equal to, greater than, greater than or equal to, less than, or less than or equal to as the condition. You then must specify the limiting number for the total number of processes executing on the machine.

Note that this number does not refer to TIBCO BusinessWorks processes but to machine processes.

For example, you can specify greater than 128, which means the actions specified for the monitor will be taken when the number of processes executing on the machine is greater than 128.

TIBCO BusinessWorks Palette Reference

Page 31: TIBCO Business Works - Palette Reference - Nov 2002

Process Engine | 9

Process Engine

Within a machine resource in a deployment configuration, you can place one or more process engines. The Process Engine resource allows you to configure your process engine.

Process engines create process instances that execute process definitions created with TIBCO Designer. See TIBCO BusinessWorks Process Design Guide for more information about process engines and process instances.

ConfigurationThe Configuration tab has the following fields.

Field Description

Name The name of the process engine. Give a unique name to each process engine in your deployment configuration.

Description Short description of the process engine.

Run as NT Service

Specifies that the process engine should be run as a Windows Service. You can then manage the engine as you would any other service, and you can specify that it starts automatically when the machine reboots.

Start on reboot Specifies that the process engine should be started whenever the machine restarts.

TIBCO Username

User ID under which the process engine should run on the machine.

This user must have been defined in the TIBCO Administrator user management module and have appropriate privileges. See TIBCO BusinessWorks Administrator’s Guide for more information.

TIBCO Password

Password for the specified user ID.

Note: If no username and password are assigned, no one can start this process engine.

Fault Tolerant Specifies that this process engine is to participate in a fault tolerant group. See TIBCO BusinessWorks Process Design Guide for more information about configuring fault-tolerant process engines.

TIBCO BusinessWorks Palette Reference

Page 32: TIBCO Business Works - Palette Reference - Nov 2002

10 | Deployment Palette

Process DefinitionsThe Process Definitions tab contains a list of the process definitions that this engine will load. By default, the "Select All" checkbox is checked, and all process definitions are loaded.

To load a specific process model or set of models, uncheck the "Select All" checkbox and use the Browse Resources button at the top of the tab. When specific process definitions are loaded, the engine can then only create process instances of the specified process definitions.

Only process models with process starters can be loaded. All subprocesses called by the loaded process are automatically loaded. See TIBCO BusinessWorks Process Design Guide for more information about process starters and subprocesses.

You can also modify or delete any loaded process models with the Modify and Delete buttons.

The process definitions tab is a table of process models. The table has the following column.

Is Master (Secondary if Unchecked)

Specifies whether the process engine is the master or a secondary engine in the fault-tolerant group. There can be only one master process engine in a fault-tolerant group.

Master Engine Reference

When the FT Configuration field specifies this is a secondary engine, this field specifies the master engine for the group.

Copy Values from Master Configuration

When the FT Configuration field specifies this is a secondary engine, this field specifies that field values for all tabs should be copied from the master engine for this fault-tolerant group. You can change the configuration of the secondary engine after this field is enabled.

View Command Button

Allows you to view the command that will be used to start the process engine. This command is view-only and not available for editing.

Field Description

Column Description

Enabled Enables the process definition upon startup.

Process Definitions The name of the process definition to load.

TIBCO BusinessWorks Palette Reference

Page 33: TIBCO Business Works - Palette Reference - Nov 2002

Process Engine | 11

Process Starter The name of the process starter for the process definition.

Max Jobs The number of process instances for this process starter that can be in memory concurrently. When the threshold is reached, the data for new or paused process instances is paged out and will not consume memory resources.

This limits the amount of memory resources consumed, but not the number of seemingly active processes.

If you wish to specify that there should be an unlimited number of process instances in memory, specify 0 in this field. This can increase performance slightly because the check for the maximum number of process instances is not performed when a new process instances is created.

See TIBCO BusinessWorks Process Design Guide for more information about controlling process instance execution.

Activation Limit Specifies that process instances should remain in memory until they are completed. Normally, process sentences are paged out if they are waiting for incoming events. Checking this option keeps the process instance active and in memory until it reaches its End activity.

See TIBCO BusinessWorks Process Design Guide for more information about controlling process instance execution.

Column Description

TIBCO BusinessWorks Palette Reference

Page 34: TIBCO Business Works - Palette Reference - Nov 2002

12 | Deployment Palette

RecoveryThe Recovery tab has the following fields.

AdvancedThe Advanced tab has the following fields.

Field Description

Reset Failure Count Specifies how many failures occur before the failure count is reset to zero.

You can specify actions to perform on the first, second, subsequent (any after the second), or any (all) failures. Setting this field allows you to reset the failure count to zero after a specified number of failures. For example, after the fifth failure, you may wish to return to the actions performed for the first failure.

See Any Failure on page 20 and Component failure event on page 21 for more information about specifying actions to perform upon failure.

Reset Failure Interval Specifies the time (in seconds or minutes) to elapse before the failure count is reset to zero.

For example, you may wish to set the failure count to zero each day, so that the first failure of the day causes one set of actions to be performed, and any subsequent failures result in a different set of actions.

Field Description

Thread Count This specifies the number of active threads to use for executing process instances. The number of threads effectively limits the number of process instances that can be executing concurrently.

Set this to a value that is appropriate for your operating system and your physical machine configuration.

Default is 8.

Verbose Trace on Startup

Specifies that detailed tracing messages should be given when the engine starts.

TIBCO BusinessWorks Palette Reference

Page 35: TIBCO Business Works - Palette Reference - Nov 2002

Process Engine | 13

Java The Java tab has the following fields.

Max Log Files Specifies the maximum number of log files to use. When log files reach the size specified in the Max Log File Size field, the engine switches to the next log file. When the maximum number of log files have been written, the engine begins writing to the first log file again.

Max Log File Size (KB) Specifies the maximum size (in Kilobytes) a log file can reach before the engine switches to the next log file.

Use Database for Storage (File if Unchecked)

When checked, this field specifies that process engine information (for example, checkpoint data and other configuration information) should be stored in a database. If this field is unchecked, the process engine stores the information in files.

Checking this field allows the information to be shared among all process engines that specify the same JDBC Connection. There are several advantages to using a database for process engine storage. See TIBCO BusinessWorks Process Design Guide for more information about specifying process engine storage.

Select a JDBC Configuration

Specifies a JDBC Connection shared configuration resource to use for writing process engine information to a database. This field is only available when the Use Database for Storage field is checked.

Field Description

Field Description

Extra ClassPath The items you supply here are prepended to your CLASSPATH environment variable. You may specify a Java code editor, or the jar file from a JNDI provider if you wish to use TIBCO BusinessWorks to receive and process JMS messages.

TIBCO BusinessWorks Palette Reference

Page 36: TIBCO Business Works - Palette Reference - Nov 2002

14 | Deployment Palette

CustomThe Custom tab allows you to specify custom properties for the process engine. These properties are used in specific circumstances, and only under the direction of TIBCO Support. Do not attempt to add or modify custom properties unless specifically told to do so by TIBCO Support.

Initial JVM Size Initial size for the JVM used for the process engine. Default is 32 MB.

Maximum JVM Size Maximum size for the JVM used for the process engine. Default is 128 MB.

Thread Stack Size Size for the thread stack. Default is 128 KB.

Field Description

TIBCO BusinessWorks Palette Reference

Page 37: TIBCO Business Works - Palette Reference - Nov 2002

Process Engine | 15

Fault ToleranceThe Fault Tolerance tab allows you to specify the fault-tolerance characteristics of the process engine.

Field Description

Member Weight of Master/Secondary as a:

Specifies the setting for the member weight of this process engine. The possible values are:

• Peer — specifies a constant weight for all engines. If all engines are specified as peers, a random secondary is selected in the event of a failure. Also, when a peer takes over during failover, the peer becomes the master until it experiences a failure.

• Primary — only available for the master engine. Specifies the weight of the master.

• Secondary — specifies this secondary engine as a lower weight than the engines specified as "peer". Secondary engines resume operation during a failover until the master engine is once again available. Once the master engine is available, the secondary engine shuts down and the master engine starts up.

• Custom — signifies that you want to specify a custom value in the Member Weight field. The Member Weight field is only available when the Advanced field is checked.

Advanced Checking the checkbox in this field enables the Advanced fault tolerant configuration options (listed below). In most circumstances, these advanced options should not be changed from the default.

Heartbeat Interval (ms) The master engine of a fault-tolerant group broadcasts heartbeat messages to inform the other group members that it is still active. The heartbeat interval determines the time (in milliseconds) between heartbeat messages.

TIBCO BusinessWorks Palette Reference

Page 38: TIBCO Business Works - Palette Reference - Nov 2002

16 | Deployment Palette

Activation Interval (ms) Secondary process engines track heartbeat messages from the master engine. This field specifies the amount of time since the last heartbeat from the master that before the secondary restarts the process starters and process instances.

Activation Delay (ms) When a master engine resumes operation, the secondary engine shuts down and returns to standby mode. For some situations, it may be necessary to ensure that the secondary engine has completely shut down before the master engine resumes operation.

This field allows you to specify a delay before the master engine restarts.

Member Weight The weight of the member. The engine with the highest weight is the master engine. You can only edit this field if you specify Custom in the first field on this tab.

Field Description

TIBCO BusinessWorks Palette Reference

Page 39: TIBCO Business Works - Palette Reference - Nov 2002

Adapter | 17

Adapter

You can use the Adapter resource inside the Machine resource to specify that one or more adapters should run on that machine, and configure the adapter instance(s).

Adapter instances are operating system processes that execute pre-configured adapter services. See your adapter documentation for more information about configuring adapter services and runtime adapter instances.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name of the adapter instance.

Description Short description of the adapter instance.

Adapter Type The type of adapter instance to create. This is a drop-down list of the available adapter components installed on the machine.

Adapter Configuration

The adapter configuration to load when starting the adapter instance. This is a drop-down list of the adapter configurations in your project created for the specified adapter.

See your adapter documentation for more information about creating adapter configurations.

Start on reboot Specifies that the adapter should be started whenever the machine restarts.

Run as NT Service Specifies that the adapter should be run as a Windows Service. You can then manage the adapter as you would any other service, and you can specify that it starts automatically when the machine reboots.

TIBCO BusinessWorks Palette Reference

Page 40: TIBCO Business Works - Palette Reference - Nov 2002

18 | Deployment Palette

RecoveryThe recovery tab has the following fields.

User ID User ID under which the process engine should run on the machine.

This user must have been defined by way of the TIBCO Administrator user management module have appropriate privileges. See TIBCO BusinessWorks Administrator’s Guide for more information about creating and managing users.

Password Password for the specified user ID.

NOTE: If no user name and password are defined for this adapter, noone can start the adapter from TIBCO Administrator.

View Command Allows you to view the command that will be used to start the process engine. This command is view-only and not available for editing.

Field Description

Field Description

Reset Failure Count Specifies how many failures occur before the failure count is reset to zero.

You can specify actions to perform on the first, second, subsequent (any after the second), or any (all) failures. Setting this field allows you to reset the failure count to zero after a specified number of failures. For example, after the fifth failure, you may wish to return to the actions performed for the first failure.

See Any Failure on page 20 and Component failure event on page 21 for more information about specifying actions to perform upon failure.

TIBCO BusinessWorks Palette Reference

Page 41: TIBCO Business Works - Palette Reference - Nov 2002

Adapter | 19

CustomThe custom tab allows you to specify custom properties for the adapter. See the adapter manual for more information about properties you can add on the custom tab.

Reset Failure Interval Specifies the time (in seconds or minutes) to elapse before the failure count is reset to zero.

For example, you may wish to set the failure count to zero each day, so that the first failure of the day causes one set of actions to be performed, and any subsequent failures have a different set of actions.

Field Description

TIBCO BusinessWorks Palette Reference

Page 42: TIBCO Business Works - Palette Reference - Nov 2002

20 | Deployment Palette

Any Failure

Within a process engine or adapter resource in a deployment configuration, there is an Any Failure resource. This resource specifies the action to take when the process engine or adapter instance fails. The specified actions are performed for every failure of the process engine or adapter instance.

You specify the actions to take by dragging and dropping one of the following actions into the Any Failure resource. The Any Failure resource is like a folder, because it can hold multiple actions.

• Restart — Restart the process engine or adapter instance.

• Alert — Send an alert to the administration server.

• Email — Send an email to a specified user.

• Custom — Perform an operating system command.

The Restart action is specified by default within the Any Failure resource. You can delete that action, if you do not wish to restart the process engine or adapter automatically after every failure.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the failure resource.

Description Short description of the failure resource.

TIBCO BusinessWorks Palette Reference

Page 43: TIBCO Business Works - Palette Reference - Nov 2002

Component failure event | 21

Component failure event

Within a process engine or adapter resource in a deployment configuration, there is a Component failure event resource. This resource specifies the action to take when the process engine or adapter instance fails.

Dragging and dropping the Component failure event resource into the process engine or adapter instance resource causes the configuration tab to display one field, the Failure Type field. You must then select one of the following failure types for this resource:

• First Failure

• Second Failure

• Subsequent Failure

Once the failure type is selected, you can specify the description of the Component failure event resource and drag and drop recovery actions to perform in the event of a failure. The specified actions are performed when the failure type occurs. That is, the first time the process engine or adapter instance fails, the actions specified in the First Failure resource are performed. The second time the process engine or adapter fails, the actions specified in the Second Failure resource are performed. Any time after the second failure, the actions in the Subsequent Failure resource are performed.

The first, second, and subsequent failures are determined by the options set on the Recovery tab of the Process Engine or Adapter resources. The options on this tab specify when the recovery count is reset to zero. You can reset the recovery count after a certain number of failures or after a certain amount of time. See Process Engine on page 9 or Adapter on page 17 for more information about resetting the failure count.

You specify the actions to take by dragging and dropping one of the following actions into the Component failure event resource. The Component failure event resource is like a folder, because it can hold multiple actions.

• Restart — Restart the process engine or adapter instance.

• Alert — Send an alert to the administration server.

• Email — Send an email to a specified user.

• Custom — Perform an operating system command.

Only actual failures are counted by the failure count. Manually stopping and restarting the process is not considered a failure.

TIBCO BusinessWorks Palette Reference

Page 44: TIBCO Business Works - Palette Reference - Nov 2002

22 | Deployment Palette

ConfigurationThe configuration tab has the following fields.

Field Description

Failure Type The type of failure that occurred. This can be one of the following:

• First Failure

• Second Failure

• Subsequent Failure

You can have only one resource for each type of failure. Once the failure type is set, the Name and description fields appear.

Name The name to appear as the label for the Component failure event resource. This field is fixed, based on the failure type.

Description Short description of the Component failure event resource.

TIBCO BusinessWorks Palette Reference

Page 45: TIBCO Business Works - Palette Reference - Nov 2002

Suspend Process Event | 23

Suspend Process Event

Within a process engine resource in a deployment configuration, there is a Suspend Process Event resource. This resource specifies the action to take when a process engine suspends due to a Repeat On Error Until True loop. Process instances are suspended if the Suspend option is checked on the loop and an unhandled error continues to occur within the loop. The administrator can specify what action to take in this event, and also attempt to fix the cause of the problem before resuming execution of the loop. See TIBCO BusinessWorks Process Design Guide for more information about Repeat On Error Until True loops and suspended processes.

You specify the actions to take by dragging and dropping one of the following actions into the Suspend Process Event resource. The Suspend Process Event resource is like a folder, because it can hold multiple actions.

• Alert — Send an alert to the administration server.

• Email — Send an email to a specified user.

• Custom — Perform an operating system command.

TIBCO BusinessWorks Palette Reference

Page 46: TIBCO Business Works - Palette Reference - Nov 2002

24 | Deployment Palette

Log Event

Within a process engine or adapter resource in a deployment configuration, there is a Log Event resource. When a line is written to the log of the process engine or adapter, this resource can check the contents of the line for a specific string and perform an action if the string is present in the log entry.

You can have more than one Log Event resource within each process engine or adapter, and each Log Event resource can specify actions to perform when different strings are found in the log entries. This allows administrators to have automatic actions take when log entries with a certain content are written. For example, send an alert when a log entry containing the text "Error" occurs.

You specify the actions to take by dragging and dropping one of the following actions into the Log Event resource. The Log Event resource is like a folder, because it can hold multiple actions.

• Alert — Send an alert to the administration server.

• Email — Send an email to a specified user.

• Custom — Perform an operating system command.

If you are using an Alert as the log event, you can use the variable ${nextLine} in the Alert’s message field. In this case, ${nextLine} is replaced by the text of a new line as it is added to the log.

For example, assume you specify a Log Event and use an alert which uses Log:${nextLine} in the message. If logfile has the following text appended to it:

"Error 1351 - message expired"

then the following LogEvent message will appear in the TIBCO Administrator GUI:

"Log Error 1351 - message expired"

If you use ${nextLine}, each log event is considered a separate event and is sent even if Once is selected as the Performance Policy.

TIBCO BusinessWorks Palette Reference

Page 47: TIBCO Business Works - Palette Reference - Nov 2002

Restart | 25

Restart

The Restart resource specifies that the process engine or adapter instance should be restarted in the event of a failure.

You can drag and drop this resource into the Any Failure resource or one of the Component failure event resources within a Process Engine or Adapter in a deployment configuration. When the specified failure occurs, the machine is restarted.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name of the resource. This name is fixed as "Restart".

Description Short description of the restart resource.

TIBCO BusinessWorks Palette Reference

Page 48: TIBCO Business Works - Palette Reference - Nov 2002

26 | Deployment Palette

Alert

The Alert resource specifies that an alert should be sent to the administration server.

You can drag and drop this resource into the following resources:

• Any Failure

• Component failure event

• Suspend Process Event

• Log Event

• Monitor

When the condition of the resource occurs (for example, a process instance is suspended or a Monitor condition is met), the alert is sent and is displayed in the TIBCO Administrator interface.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name of the resource. This name is fixed as "Alert".

Description Short description of the alert resource.

Perform Policy Frequency of the alert. If you choose Once, the action is performed only once even if the condition for the event is met multiple times. If you choose Always, multiple alerts are sent.

Choosing Always is useful for situations where the alert does not become visible because the refresh rate of TIBCO Administrator is 30 seconds.

TIBCO BusinessWorks Palette Reference

Page 49: TIBCO Business Works - Palette Reference - Nov 2002

Alert | 27

Level The alert level of the alert to send. This level appears in the TIBCO Administrator interface. The level can be one of the following:

• High

• Medium

• Low

Message The alert message to send to the administration server.

Field Description

TIBCO BusinessWorks Palette Reference

Page 50: TIBCO Business Works - Palette Reference - Nov 2002

28 | Deployment Palette

Email

The Email resource specifies that an email should be sent to the specified user(s).

You can drag and drop this resource into the following resources:

• Any Failure

• Component failure event

• Suspend Process Event

• Log Event

• Monitor

When the condition of the resource occurs (for example, a process instance is suspended or a Monitor condition is met), the alert is sent and is displayed in the TIBCO Administrator interface.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name of the resource. This name is fixed as "Email".

Description Short description of the email resource.

Perform Policy Frequency of the email. If you choose Once, one email is sent even if the condition for the event is met multiple times. If you choose Always, multiple emails are sent.

To A comma-separated list of email addresses to which you would like to send the message.

Cc A comma-separated list of email addresses to which you would like to send copies of the message.

Subject The subject of the email message.

Message The text of the email message.

SMTP Server The mail server to use to send the message. You may specify the host name or the host IP address.

TIBCO BusinessWorks Palette Reference

Page 51: TIBCO Business Works - Palette Reference - Nov 2002

Custom | 29

Custom

The Custom resource specifies that an operating system command or script should be executed.

You can drag and drop this resource into the following resources:

• Any Failure

• Component failure event

• Suspend Process Event

• Log Event

• Monitor

When the condition of the resource occurs (for example, a process instance is suspended or a Monitor condition is met), the alert is sent and is displayed in the TIBCO Administrator interface.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name of the resource. This name is fixed as "Custom".

Description Short description of the custom resource.

Perform Policy Frequency of the custom action. If you choose Once, the action is performed only once even if the condition for the event is met multiple times. If you choose Always, the command is executed multiple times.

Command The command or script to execute.

Arguments The argument list for the command.

TIBCO BusinessWorks Palette Reference

Page 52: TIBCO Business Works - Palette Reference - Nov 2002

30 | Deployment Palette

TIBCO BusinessWorks Palette Reference

Page 53: TIBCO Business Works - Palette Reference - Nov 2002

| 31

Chapter 2 Process Palette

The Process palette allows you to create process definitions.

Topics

• Process Definition, page 32

TIBCO BusinessWorks Palette Reference

Page 54: TIBCO Business Works - Palette Reference - Nov 2002

32 | Process Palette

Process Definition

The Process Definition resource allows you to define business processes. Drag and drop the Process Definition resource into the design panel to create a new process definition.

Select a process definition in the project tree panel to edit a process definition. When editing process definitions, the palette panel changes to a list of activity palettes that you can use within a process definition. The activity palettes are described in subsequent chapters of this manual.

See TIBCO BusinessWorks Process Design Guide for more information about creating and editing process definitions.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the process.

Description Short description of the process.

Custom Icon File You can chose your own custom icon for the process, if you desire. Use the Browse button to locate an image file (GIF, JPEG, and so on) to use as the icon for this process.

TIBCO BusinessWorks Palette Reference

Page 55: TIBCO Business Works - Palette Reference - Nov 2002

| 33

Chapter 3 ActiveEnterprise Adapter Palette

The ActiveEnterprise Adapter palette contains activities for communicating with configured TIBCO ActiveEnterprise adapters. This chapter assumes you are familiar with the concepts and features of TIBCO ActiveEnterprise adapter products. For more information about configuring adapters, see the documentation for your adapter product.

Topics

• Adapter Request-Response Server, page 34

• Adapter Subscriber, page 36

• Invoke an Adapter Request-Response Service, page 39

• Publish to Adapter, page 42

• Respond to Adapter Request, page 45

• Wait for Adapter Message, page 47

• Wait for Adapter Request, page 52

You can use these activities to communicate with adapters that are supported by TIBCO BusinessWorks. See your adapter documentation for information on whether BusinessWorks is supported.

TIBCO BusinessWorks Palette Reference

Page 56: TIBCO Business Works - Palette Reference - Nov 2002

34 | ActiveEnterprise Adapter Palette

Adapter Request-Response Server

Starts a process based on the receipt of a request from an adapter. The adapter sends a request by way of a pre-configured request-response invocation service, and the process that is started acts as the implementation of the request. The process sends any required responses back to the adapter’s service.

Adapter request-response invocation services are configured during adapter configuration, and the activity uses the information in the adapter configuration to fill in most of the fields of this activity. See your adapter documentation for more information about creating adapter configurations and creating adapter services.

Figure 1 illustrates an Adapter Request-Response Server activity starting a business process to handle an incoming request from an adapter request-response invocation service. At a later point in the business process, the Respond to Adapter Request activity is used to perform the response.

Figure 1 An Adapter Request-Response Server activity

Application

Request

AdapterRequest-Response

Server

Business Process

AdapterRequest-ResponseInvocationService

TIBCO BusinessWorks Palette Reference

Page 57: TIBCO Business Works - Palette Reference - Nov 2002

Adapter Request-Response Server | 35

ConfigurationThe configuration tab has the following fields.

AdvancedThe advanced tab lists information based on the Adapter Service selected on the Configuration tab. This information is supplied when the adapter configuration is created. You should not normally need to change information on the advanced tab. See your adapter documentation for more information on these fields.

The advanced tab has the following fields.

RV SessionThe RV Session tab allows you to override any of the TIBCO Rendezvous session parameters for the specified adapter service. See your adapter documentation for more information about TIBCO Rendezvous session parameters.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Adapter Service The pre-configured adapter request-response invocation service. You must specify the adapter service when configuring the adapter.

Use the Browse button to locate the appropriate service for this activity.

Field Description

Client The publisher for the specified Adapter Service.

Session The session for the specified Adapter Service.

Subject The subject for the specified Adapter Service.

Operation Class The class for the specified Adapter Service.

Operations The operation for the specified Adapter Service. You can select from a list of available operations, if the operation class has more than one operation.

TIBCO BusinessWorks Palette Reference

Page 58: TIBCO Business Works - Palette Reference - Nov 2002

36 | ActiveEnterprise Adapter Palette

OutputThe output for the activity is the following.

Adapter Subscriber

Starts a process based on the receipt of a message from the publication service of the specified adapter.

Publication services are configured during adapter configuration, and the activity uses the information in the adapter configuration to fill in most of the fields of this activity. See your adapter

documentation for more information about creating adapter configurations and creating adapter publication services.

Figure 2 illustrates an adapter publishing service publishing a message and the Adapter Subscriber process starter starting a business process.

Output Item Datatype Description

ProcessStarterOutput Object The root class for the output of the Adapter Request-Response Server activity. This class contains all output items for the activity.

body Object The class specified for the client service of the specified adapter configuration.

TIBCO BusinessWorks Palette Reference

Page 59: TIBCO Business Works - Palette Reference - Nov 2002

Adapter Subscriber | 37

Figure 2 An Adapter Subscriber activity receiving a message and starting a process

ConfigurationThe configuration tab has the following fields.

AdvancedThe advanced tab lists information based on the Adapter Service selected on the Configuration tab. This information is supplied when the adapter configuration is created. You should not normally need to change information on the advanced tab. See your adapter documentation for more information on these fields.

Application

Publish

AdapterSubscriber

Business Process

AdapterPublishingService

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Adapter Service The pre-configured adapter publishing service. You must specify the adapter service when configuring the adapter.

Use the Browse button to locate the appropriate service for this activity.

TIBCO BusinessWorks Palette Reference

Page 60: TIBCO Business Works - Palette Reference - Nov 2002

38 | ActiveEnterprise Adapter Palette

The advanced tab has the following fields.

RV SessionThe RV Session tab allows you to override any of the TIBCO Rendezvous session parameters for the specified adapter service. See your adapter documentation for more information about TIBCO Rendezvous session parameters.

OutputThe output for the activity is the following.

Field Description

Publisher The publisher for the specified Adapter Service.

Session The session for the specified Adapter Service.

Subject The subject for the specified Adapter Service.

Schema The class for the specified Adapter Service.

Output Item Datatype Description

ProcessStarterOutput Object The root class for the output of the Adapter Subscriber activity. This class contains all output items for the activity.

body Object The class specified for the publication service of the specified adapter configuration.

TIBCO BusinessWorks Palette Reference

Page 61: TIBCO Business Works - Palette Reference - Nov 2002

Invoke an Adapter Request-Response Service | 39

Invoke an Adapter Request-Response Service

The Invoke an Adapter Request-Response Service activity is used to communicate with an adapter’s request-response service. This service invokes an operation with input and output by way of the adapter. Request-response services are configured during adapter configuration, and the activity uses the information in the adapter configuration to fill in most of the

fields of this activity. See your adapter documentation for more information about creating adapter configurations and creating adapter request-response services.

Figure 3 illustrates an Invoke an Adapter Request-Response Service activity sending a request to an adapter request-response service.

Figure 3 An Invoke an Adapter Request-Response Service activity sending a request

ConfigurationThe configuration tab has the following fields.

Application

Request

Invoke an AdapterRequest-Response

Service

Business Process

AdapterRequest-ResponseService

Field Description

Name The name to appear as the label for the activity in the process definition.

TIBCO BusinessWorks Palette Reference

Page 62: TIBCO Business Works - Palette Reference - Nov 2002

40 | ActiveEnterprise Adapter Palette

AdvancedThe advanced tab lists information based on the Adapter Service selected on the Configuration tab. This information is supplied when the adapter configuration is created. You should not normally need to change information on the advanced tab. See your adapter documentation for more information on these fields.

The advanced tab has the following fields.

Description Short description of the activity.

Adapter Service The pre-configured adapter request-response invocation service. You must specify the adapter service when configuring the adapter.

Use the Browse button to locate the appropriate service for this activity.

Field Description

Field Description

Server The server for the specified Adapter Service.

Session The session for the specified Adapter Service.

Subject The subject for the specified Adapter Service.

Operation Class The operation class for the specified Adapter Service.

Pre-register Listener When using TIBCO Rendezvous Certified Messaging (RVCM), this field specifies the cmname(s) of the RVCM subscriber(s). This allows the publisher to pre-register with any expected listeners. If multiple cmnames are specified, separate each cmname with a comma.

See the TIBCO Rendezvous documentation for more information about RVCM.

Operations The operation for the specified Adapter Service. You can select from a list of available operations, if the operation class has more than one operation.

TIBCO BusinessWorks Palette Reference

Page 63: TIBCO Business Works - Palette Reference - Nov 2002

Invoke an Adapter Request-Response Service | 41

RV SessionThe RV Session tab allows you to override any of the TIBCO Rendezvous session parameters for the specified adapter service. See your adapter documentation for more information about TIBCO Rendezvous session parameters.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

aeRequestInputType Object The root class for the input of the Invoke an Adapter Request-Response Service activity. This class contains all input items for the activity.

subject string The subject to send the request on. The default subject is displayed on the advanced tab, but you can override the default by supplying a subject here.

requestTimeout integer The time to wait for the synchronous request-reply operation to complete. An error is returned if the operation does not complete within this time limit.

body Object The input parameters for the specified operation. The input parameters are defined by the operation class for the specified Adapter Service for this activity.

TIBCO BusinessWorks Palette Reference

Page 64: TIBCO Business Works - Palette Reference - Nov 2002

42 | ActiveEnterprise Adapter Palette

OutputThe output for the activity is the following.

Publish to Adapter

The Publish to Adapter activity publishes a message that can be received by an adapter’s subscription service. Subscription services are configured during adapter configuration, and the activity uses the information in the adapter configuration to fill in

most of the fields of this activity. See your adapter documentation for more information about creating adapter configurations and creating adapter subscription services.

Figure 4 illustrates a Publish to Adapter activity sending a message to a pre-configured adapter subscription service.

Output Item Datatype Description

aerequestOutputType Object The root class for the output of the Invoke an Adapter Request-Response Service activity. This class contains all output items for the activity.

body Object The reply schema for the specified operation. The reply schema is defined by the operation class for the specified Adapter Service for this activity.

TIBCO BusinessWorks Palette Reference

Page 65: TIBCO Business Works - Palette Reference - Nov 2002

Publish to Adapter | 43

Figure 4 A Publish to Adapter activity sending a message

ConfigurationThe configuration tab has the following fields.

Application

Publish

Publish toAdapter

Business Process

AdapterSubscriptionService

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Adapter Service The pre-configured adapter subscription service. You must specify the adapter service when configuring the adapter.

Use the Browse button to locate the appropriate service for this activity.

TIBCO BusinessWorks Palette Reference

Page 66: TIBCO Business Works - Palette Reference - Nov 2002

44 | ActiveEnterprise Adapter Palette

AdvancedThe advanced tab lists information based on the Adapter Service selected on the Configuration tab. This information is supplied when the adapter configuration is created. You should not normally need to change information on the advanced tab. See your adapter documentation for more information on these fields.

RV SessionThe RV Session tab allows you to override any of the TIBCO Rendezvous session parameters for the specified adapter service. See your adapter documentation for more information about TIBCO Rendezvous session parameters.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

Field Description

Subscriber The subscriber for the specified Adapter Service.

Session The session for the specified Adapter Service.

Subject The subject for the specified Adapter Service.

Schema The class for the specified Adapter Service.

Pre-register Listener When using TIBCO Rendezvous Certified Messaging (RVCM), this field specifies the cmname(s) of the RVCM subscriber(s). This allows the publisher to pre-register with any expected listeners. If multiple cmnames are specified, separate each cmname with a comma.

See the TIBCO Rendezvous documentation for more information about RVCM.

TIBCO BusinessWorks Palette Reference

Page 67: TIBCO Business Works - Palette Reference - Nov 2002

Respond to Adapter Request | 45

The input for the activity is the following.

OutputThis activity produces no output.

Respond to Adapter Request

The Respond to Adapter Request activity is used to send a response to an adapter for a previously received request. For example, you may have a Wait for Adapter Request activity within a process definition. The incoming adapter request may require a response from your process. The Respond to Adapter

Request is used to send that response.

Figure 5 illustrates a Respond to Adapter Request activity sending a response to a previously received request from an adapter.

Input Item Datatype Description

aePubInputType Object The root class for the input of the Publish to Adapter activity. This class contains all input items for the activity.

subject string The subject to send the request on. The default subject is displayed on the advanced tab, but you can override the default by supplying a subject here.

replySubject string The subject that replies to this message should be sent to.

body Object The schema definition for the specified adapter service. This can be overridden by specifying a different schema on the Advanced tab.

TIBCO BusinessWorks Palette Reference

Page 68: TIBCO Business Works - Palette Reference - Nov 2002

46 | ActiveEnterprise Adapter Palette

Figure 5 A Respond to Adapter Request sending a response

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

Application

Reply

Respond to AdapterRequest

Business Process

AdapterRequest-ResponseInvocationService

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Reply For Drop-down list of activities that this activity can send a response for.

TIBCO BusinessWorks Palette Reference

Page 69: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Adapter Message | 47

The input for the activity is the following.

OutputThis activity produces no output.

Wait for Adapter Message

Waits for the receipt of a message from the publication service of the specified adapter.

Publication services are configured during adapter configuration, and the activity uses the information in the adapter configuration to fill in most of the fields of this activity. See your adapter

documentation for more information about creating adapter configurations and creating adapter publication services.

Figure 6 illustrates an adapter publishing service publishing a message and the Wait for Adapter Message activity receiving the message within a business process.

Input Item Datatype Description

aerequestOutputType Object The root class for the input of the Respond to Adapter Request activity. This class contains all input items for the activity.

body Object The schema definition for the response. This is taken from the adapter service of the activity this is a response for.

TIBCO BusinessWorks Palette Reference

Page 70: TIBCO Business Works - Palette Reference - Nov 2002

48 | ActiveEnterprise Adapter Palette

Figure 6 A Publish to Adapter activity sending a message

ConfigurationThe configuration tab has the following fields.

Application

Publish

Wait forAdapter

Message

Business Process

AdapterPublishingService

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Adapter Service The pre-configured adapter publishing service. You must specify the adapter service when configuring the adapter.

Use the Browse button to locate the appropriate service for this activity.

TIBCO BusinessWorks Palette Reference

Page 71: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Adapter Message | 49

AdvancedThe advanced tab lists information based on the Adapter Service selected on the Configuration tab. This information is supplied when the adapter configuration is created. You should not normally need to change information on the advanced tab. See your adapter documentation for more information on these fields.

RV SessionThe RV Session tab allows you to override any of the TIBCO Rendezvous session parameters for the specified adapter service. See your adapter documentation for more information about TIBCO Rendezvous session parameters.

Field Description

Publisher The publisher for the specified Adapter Service.

Session The session for the specified Adapter Service.

Subject The subject for the specified Adapter Service.

Schema The class for the specified Adapter Service.

TIBCO BusinessWorks Palette Reference

Page 72: TIBCO Business Works - Palette Reference - Nov 2002

50 | ActiveEnterprise Adapter Palette

Event The Event tab has the following fields.

Field Description

Candidate Event Key Expression built from the data of the incoming message. This expression should evaluate to a string and it is compared to the "key" field of the activity’s input. If the Candidate Event Key and the activity’s key match, then the process accepts the incoming message.

For example, you may have a Publish to Adapter activity that sends a message with a particular ID. You are expecting a reply message that contains that same ID so that you can determine the message is a response to your sent message. You would specify the field of the incoming message that contains your ID in the Candidate Event Key. You would then use the message ID of the message you sent earlier in the process as the "key" field in the input.

This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO BusinessWorks Process Design Guide for more information about XPath expressions.

Event Timeout (msec) A message may arrive before this activity is executed. This field specifies the amount of time (in milliseconds) a message will wait if it is received before this activity is reached. If the event timeout expires, an error is logged and the event is discarded.

When building an expression in the Candidate Event Key field, only data from the incoming event is available. The idea is that you want to place an expression containing incoming event data in the Candidate Event Key field. When the results of this expression match the results of the expression in the "key" item on the Input tab, the Wait For Adapter Message activity proceeds.

TIBCO BusinessWorks Palette Reference

Page 73: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Adapter Message | 51

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

input Object The root class for the input of the Wait for Adapter Message activity. This class contains all input items for the activity.

key string The value that is compared to the Candidate Event Key field of the Event tab to determine if this message applies to this process. See Event on page 50 for an example of using the Candidate Event Key field with the key input item.

timeout integer The time (in milliseconds) to wait for the incoming message. An error is returned if the message is not received within this time limit.

Output Item Datatype Description

ProcessStarterOutput Object The root class for the output of the Adapter Subscriber activity. This class contains all output items for the activity.

body Object The class specified for the publication service of the specified adapter configuration.

TIBCO BusinessWorks Palette Reference

Page 74: TIBCO Business Works - Palette Reference - Nov 2002

52 | ActiveEnterprise Adapter Palette

Wait for Adapter Request

Waits for the receipt of a request from an adapter request-response invocation service. The adapter sends a request by way of a pre-configured service, and the process definition acts as the implementation of the request. The process sends any required responses back to the adapter’s service by placing the Respond to

Adapter Request activity at a later point in the process definition.

Adapter request-response invocation services are configured during adapter configuration, and the activity uses the information in the adapter configuration to fill in most of the fields of this activity. See your adapter documentation for more information about creating adapter configurations and creating adapter services.

Figure 7 illustrates a Wait for Adapter Request activity waiting for a request from an adapter request-response invocation service. At a later point in the business process, a Respond to Adapter Request activity sends the response.

Figure 7 A Wait for Adapter Request activity

Application

Request

Wait forAdapterRequest

Business Process

AdapterRequest-ResponseInvocationService

TIBCO BusinessWorks Palette Reference

Page 75: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Adapter Request | 53

ConfigurationThe configuration tab has the following fields.

AdvancedThe advanced tab lists information based on the Adapter Service selected on the Configuration tab. This information is supplied when the adapter configuration is created. You should not normally need to change information on the advanced tab. See your adapter documentation for more information on these fields.

RV SessionThe RV Session tab allows you to override any of the TIBCO Rendezvous session parameters for the specified adapter service. See your adapter documentation for more information about TIBCO Rendezvous session parameters.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Adapter Service The pre-configured adapter request-response invocation service. You must specify the adapter service when configuring the adapter.

Use the Browse button to locate the appropriate service for this activity.

Field Description

Client The server for the specified Adapter Service.

Session The session for the specified Adapter Service.

Subject The subject for the specified Adapter Service.

Operation Class The operation class for the specified Adapter Service.

Operations The operation for the specified Adapter Service. You can select from a list of available operations, if the operation class has more than one operation.

TIBCO BusinessWorks Palette Reference

Page 76: TIBCO Business Works - Palette Reference - Nov 2002

54 | ActiveEnterprise Adapter Palette

Event The Event tab has the following fields.

Field Description

Candidate Event Key Expression built from the data of the incoming message. This expression should evaluate to a string and it is compared to the "key" field of the activity’s input. If the Candidate Event Key and the activity’s key match, then the process accepts the incoming message.

For example, you may have a Invoke an Adapter Request-Response activity that sends a request with a particular ID. You are expecting a response message that contains that same ID so that you can determine the message is a response to your sent message. You would specify the field of the incoming reply that contains your ID in the Candidate Event Key. You would then use the message ID of the request you sent earlier in the process as the "key" field in the input.

This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO BusinessWorks Process Design Guide for more information about XPath expressions.

Event Timeout (msec) A message may arrive before this activity is executed. This field specifies the amount of time (in milliseconds) a message will wait if it is received before this activity is reached. If the event timeout expires, an error is logged and the event is discarded

When building an expression in the Candidate Event Key field, only data from the incoming event is available. The idea is that you want to place an expression containing incoming event data in the Candidate Event Key field. When the results of this expression match the results of the expression in the "key" item on the Input tab, the Wait For Adapter Request activity proceeds.

TIBCO BusinessWorks Palette Reference

Page 77: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Adapter Request | 55

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

input Object The root class for the input of the Wait for Adapter Request activity. This class contains all input items for the activity.

key string The value that is compared to the Candidate Event Key field of the Event tab to determine if this message applies to this process. See Event on page 54 for an example of using the Candidate Event Key field with the key input item.

timeout integer The time (in milliseconds) to wait for the incoming message. An error is returned if the message is not received within this time limit.

Output Item Datatype Description

ProcessStarterOutput Object The root class for the output of the Wait for Adapter Request activity. This class contains all output items for the activity.

body Object The class specified for the client service of the specified adapter configuration.

TIBCO BusinessWorks Palette Reference

Page 78: TIBCO Business Works - Palette Reference - Nov 2002

56 | ActiveEnterprise Adapter Palette

TIBCO BusinessWorks Palette Reference

Page 79: TIBCO Business Works - Palette Reference - Nov 2002

| 57

Chapter 4 BusinessConnect Palette

The BusinessConnect palette contains activities for creating a private process that interacts with a TIBCO BusinessConnect server. This chapter assumes that you are familiar with the concepts and features of TIBCO BusinessConnect. See the TIBCO BusinessConnect documentation for more information.

Topics

• Overview of TIBCO BusinessConnect Activities, page 58

• Receive Misc Msg, page 59

• Receive Request/Notification, page 60

• Receive Response, page 62

• Send Misc Msg, page 63

• Send Request/Notification, page 64

• Send Response, page 65

TIBCO BusinessWorks Palette Reference

Page 80: TIBCO Business Works - Palette Reference - Nov 2002

58 | BusinessConnect Palette

Overview of TIBCO BusinessConnect Activities

Using TIBCO BusinessWorks, you can create process definitions that serve as private processes for a TIBCO BusinessConnect installation. TIBCO BusinessWorks can either send requests by way of a TIBCO BusinessConnect server, or receive replies from a TIBCO BusinessConnect server. Figure 8 illustrates TIBCO BusinessWorks operating in conjunction with TIBCO BusinessConnect.

Figure 8 TIBCO BusinessWorks communicating with TIBCO BusinessConnect

In Figure 8, Company A implements a private process in TIBCO BusinessWorks and uses the Send Request/Notification activity to invoke a pre-configured operation on a TIBCO BusinessConnect server. TIBCO BusinessConnect sends the request to the correct partner and it’s received by a TIBCO BusinessConnect server at Company B. TIBCO BusinessWorks has a process definition with the

Legend

Request

Reply

TIBCOBusinessConnect

TIBCO BusinessWorks

Send Request-Response/Notification

Private ProcessOutbound Request

Company A

TIBCOBusinessConnect

TIBCO BusinessWorks

Receive Request/Notification

Send Response

Private ProcessInbound Request

Company B

Internet

TIBCO BusinessWorks Palette Reference

Page 81: TIBCO Business Works - Palette Reference - Nov 2002

Receive Misc Msg | 59

Receive Request/Notification process starter. This process definition receives the incoming request, processes it, and sends a response back to the TIBCO BusinessConnect server using the Send Response activity. TIBCO BusinessConnect then routes the reply back to the original requestor.

It is not necessary for TIBCO BusinessWorks to be used to implement the private process at both Company A and Company B. A different application can be used to send the request or receive the request. It is however, necessary for TIBCO BusinessConnect to be used at any site where TIBCO BusinessWorks is used to send or receive TIBCO BusinessConnect messages.

See the TIBCO BusinessConnect documentation for more information about using TIBCO BusinessConnect to implement integrated business-to-business communication.

Receive Misc Msg

Any message that is not an inbound or outbound request is a miscellaneous message. Each protocol supported by TIBCO BusinessConnect has different types of miscellaneous messages. For example, the tibXML protocol has Error and Response

Acknowledgement messages. The Receive Misc Msg process starter is used to start a process when a miscellaneous message is received from TIBCO BusinessConnect.

Not all TIBCO BusinessConnect protocols have miscellaneous messages. This process starter requires a BusinessConnect Connection shared configuration resource that is configured for a specific protocol. If there are no miscellaneous messages for the specified protocol, the Receive Misc Msg process starter cannot be used for that protocol.

See Overview of TIBCO BusinessConnect Activities on page 58 for more information about using TIBCO BusinessWorks activities with TIBCO BusinessConnect. See the TIBCO BusinessConnect documentation for more information about using TIBCO BusinessConnect.

TIBCO BusinessWorks Palette Reference

Page 82: TIBCO Business Works - Palette Reference - Nov 2002

60 | BusinessConnect Palette

ConfigurationThe configuration tab has the following fields.

Input This activity requires no input.

OutputThe output tab lists output schema information. The schema that displays is based on the input of the message selected in the Configuration tab for this process starter.

Receive Request/Notification

The Receive Request/Notification process starter can be used to do the following:

•Process an incoming synchronous request/reply message forwarded by the TIBCO BusinessConnect server.

•Process an incoming notify message forwarded by the TIBCO BusinessConnect server.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Server Details The BusinessConnect Connection shared configuration resource used to connect to the TIBCO BusinessConnect server. See BusinessConnect Connection on page 302 for more information.

Message Name A drop-down list of miscellaneous message types available for the protocol of the specified BusinessConnect Connection shared configuration resource.

TIBCO BusinessWorks Palette Reference

Page 83: TIBCO Business Works - Palette Reference - Nov 2002

Receive Request/Notification | 61

See Overview of TIBCO BusinessConnect Activities on page 58 for more information about using TIBCO BusinessWorks activities with TIBCO BusinessConnect. See the TIBCO BusinessConnect documentation for more information about using TIBCO BusinessConnect.

ConfigurationThe configuration tab has the following fields.

Input This activity requires no input.

OutputThe output tab lists output schema information. The schema that displays is based on the input of the operation selected in the Configuration tab for this activity.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Server Details The BusinessConnect Connection shared configuration resource used to connect to the TIBCO BusinessConnect server. See BusinessConnect Connection on page 302 for more information.

Operation Name A drop-down list of pre-configured operations that are available for the protocol associated with the server configuration.

TIBCO BusinessWorks Palette Reference

Page 84: TIBCO Business Works - Palette Reference - Nov 2002

62 | BusinessConnect Palette

Receive Response

The Receive Response activity is used to receive a response to a previously sent request from the Send Request/Notification activity.

See Overview of TIBCO BusinessConnect Activities on page 58 for more information about using TIBCO BusinessWorks activities with TIBCO BusinessConnect. See the TIBCO BusinessConnect documentation for more information about using TIBCO BusinessConnect.

Configuration The configuration tab has the following fields.

Input The input tab lists input schema information. The schema that displays is based on the input of the operation selected in the Configuration tab for this activity.

OutputThe output tab lists output schema information. The schema that displays is based on the output of the operation selected in the Configuration tab for this activity.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Server Details The BusinessConnect Connection shared configuration resource used to connect to the TIBCO BusinessConnect server. See BusinessConnect Connection on page 302 for more information.

Operation Name A drop-down list of pre-configured operations that are available for the protocol associated with the server configuration.

TIBCO BusinessWorks Palette Reference

Page 85: TIBCO Business Works - Palette Reference - Nov 2002

Send Misc Msg | 63

Send Misc Msg

Any message that is not an inbound or outbound request is a miscellaneous message. Each protocol supported by TIBCO BusinessConnect has different types of miscellaneous messages. For

example, the tibXML protocol has Error and Response Acknowledgement messages. The Send Misc Msg activity is used to send a miscellaneous message to TIBCO BusinessConnect.

Not all TIBCO BusinessConnect protocols have miscellaneous messages. This activity requires a BusinessConnect Connection shared configuration resource that is configured for a specific protocol. If there are no miscellaneous messages for the specified protocol, the Send Misc Msg activity cannot be used for that protocol.

See Overview of TIBCO BusinessConnect Activities on page 58 for more information about using TIBCO BusinessWorks activities with TIBCO BusinessConnect. See the TIBCO BusinessConnect documentation for more information about using TIBCO BusinessConnect.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Server Details The BusinessConnect Connection shared configuration resource used to connect to the TIBCO BusinessConnect server. See BusinessConnect Connection on page 302 for more information.

Message Name A drop-down list of miscellaneous message types available for the protocol of the specified BusinessConnect Connection shared configuration resource.

TIBCO BusinessWorks Palette Reference

Page 86: TIBCO Business Works - Palette Reference - Nov 2002

64 | BusinessConnect Palette

Input The input tab lists input schema information. The schema that displays is based on the input of the miscellaneous message selected in the Configuration tab for this activity.

OutputThe output tab lists output schema information. The schema that displays is based on the input of the message selected in the Configuration tab for this activity.

Send Request/Notification

The Send Request/Notification activity can be used to do the following:

•Send an outgoing asynchronous request/reply message to the TIBCO BusinessConnect server.

•Send an outgoing notify message to the TIBCO BusinessConnect server.

You can receive the response to the request in a different process instance by using the Receive Response process starter.

See Overview of TIBCO BusinessConnect Activities on page 58 for more information about using TIBCO BusinessWorks activities with TIBCO BusinessConnect. See the TIBCO BusinessConnect documentation for more information about using TIBCO BusinessConnect.

Configuration The configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 87: TIBCO Business Works - Palette Reference - Nov 2002

Send Response | 65

Input The input tab lists input schema information. The schema that displays is based on the input of the operation selected in the Configuration tab for this activity.

OutputThe output tab lists output schema information. This is used only for a synchronous request/reply operation. The schema that displays is based on the output of the operation selected in the Configuration tab for this activity.

Send Response

The Send Response activity sends an outgoing asynchronous notify message to the local TIBCO BusinessConnect server.

See Overview of TIBCO BusinessConnect Activities on page 58 for more information about using TIBCO BusinessWorks activities with

TIBCO BusinessConnect. See the TIBCO BusinessConnect documentation for more information about using TIBCO BusinessConnect.

Server Details The BusinessConnect Connection shared configuration resource used to connect to the TIBCO BusinessConnect server. See BusinessConnect Connection on page 302 for more information.

Operation Name A drop-down list of pre-configured operations that are available for the protocol associated with the server configuration.

Wait for Response Specifies that the activity should wait for a response from the TIBCO BusinessConnect server.

Response Wait Time Specifies the amount of time to wait for a response from the TIBCO BusinessConnect server. This field only appears when the Wait for Response field is checked.

Field Description

TIBCO BusinessWorks Palette Reference

Page 88: TIBCO Business Works - Palette Reference - Nov 2002

66 | BusinessConnect Palette

Configuration The configuration tab has the following fields.

Input The input tab lists input schema information. The schema that displays is based on the input of the operation selected in the Configuration tab for this activity.

Output This activity produces no output.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Request Name A drop-down list of Receive Request/Notification operations and custom requests. If you choose a non-custom request, the Server Details and Operation Name fields are filled automatically.

If you choose <Custom Request>, you must set the values for the Server Details and Operation Name fields.

Server Details The BusinessConnect Connection shared configuration resource used to connect to the TIBCO BusinessConnect server. See BusinessConnect Connection on page 302 for more information.

Operation Name A drop-down list of pre-configured operations that are available for the protocol associated with the server configuration.

TIBCO BusinessWorks Palette Reference

Page 89: TIBCO Business Works - Palette Reference - Nov 2002

| 67

Chapter 5 FTP Palette

The FTP palette is used to issue FTP commands.

Topics

• FTP Get, page 68

• FTP Put, page 71

TIBCO BusinessWorks Palette Reference

Page 90: TIBCO Business Works - Palette Reference - Nov 2002

68 | FTP Palette

FTP Get

The FTP Get activity issues an FTP get command to the specified server. The file content is retrieved into a process variable, but you can write the file to the local disk as well by checking the Write Data to Local File field on the Configuration tab.

The following sections describe the fields on the tabs of the FTP Get activity.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

FTP Shared Connection

Path to the shared configuration resource containing the user information such as host name, user name, and password. See FTP Connection on page 308 for more information about FTP resources.

Write Data to Local File

Specifies that you would like to write contents of the file retrieved from the FTP server to a file on the local disk.

Binary Specifies whether the FTP command should be sent using binary data or text data (checked signifies binary).

Timeout (msec) Time to wait (in milliseconds) for the FTP command to complete. An error is returned if the command does not finish before the specified time.

The default timeout is 120000 (two minutes). The maximum time you can specify for the timeout is 3600000 (1 hour).

TIBCO BusinessWorks Palette Reference

Page 91: TIBCO Business Works - Palette Reference - Nov 2002

FTP Get | 69

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Firewall Indicates whether the FTP server resides inside or outside of a firewall relative to the location of the TIBCO BusinessWorks process engine. If checked, the FTP server resides outside a firewall, and therefore the Proxy fields must be specified.

Proxy Host IP address of the proxy server to access external FTP servers.

Proxy Port Port number of the proxy server used to access external FTP servers.

If no value is specified, the default value 8080 is used.

Field Description

Input Item Datatype Description

FTP_INPUT Object The root class for the input of the FTP Get activity. This class contains all input items for the activity.

RemoteFilename string The path and name of the file to retrieve on the remote server. Wildcards are not permitted within this field.

LocalFileName string This input item is available only if the Write Data to Local File field on the Configuration tab is enabled.

This input item specifies the name and path of the local file where the contents of the retrieved file should be written.

Host string The name of the FTP server. This overrides the value specified on the FTP Connection.

TIBCO BusinessWorks Palette Reference

Page 92: TIBCO Business Works - Palette Reference - Nov 2002

70 | FTP Palette

OutputThe output for the activity is the following.

Port integer Port number for incoming FTP requests on the FTP server. This overrides the value specified on the FTP Connection.

UserName string Username to use to log into the FTP server. This overrides the value specified on the FTP Connection.

Password string Password to use to log into the FTP server. This overrides the value specified on the FTP Connection.

Encoding string When the retrieved file is not binary, this specifies the character encoding of the retrieved file. This also specifies the encoding to use when writing the retrieved file to a file on the local disk, if that configuration option is specified.

Input Item Datatype Description

Output Item Datatype Description

FTP_GET_OUTPUT Object The root class for the output of the FTP Get activity. This class contains all output items for the activity.

Success boolean True or false depending upon whether the FTP get command was successfully executed by the FTP server.

Errormsg string Any error messages returned from the FTP server.

TIBCO BusinessWorks Palette Reference

Page 93: TIBCO Business Works - Palette Reference - Nov 2002

FTP Put | 71

FTP Put

The FTP Put activity issues an FTP put command to the specified server. The content of the file to put onto the remote server can be either read from a file on the local disk or it can be supplied in a process variable and mapped to the BinaryData or ASCIIData input items for this

activity.

The following sections describe the fields on the tabs of the FTP Put activity.

ConfigurationThe configuration tab has the following fields.

BinaryData binary The binary data of the file returned from the remote FTP server, if Binary field is checked on the Configuration tab.

You can use the value of this item later in the process definition, if desired.

ASCIIData string The ASCII data of the file returned from the remote FTP server, if Binary field is not checked on the Configuration tab.

You can use the value of this item later in the process definition, if desired.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 94: TIBCO Business Works - Palette Reference - Nov 2002

72 | FTP Palette

FTP Shared Connection

Path to the shared configuration resource containing the user information such as host name, user name, and password. See FTP Connection on page 308 for more information about FTP resources.

Binary Specifies whether the FTP command should be sent using binary data or text data (checked signifies binary).

Timeout (msec) Time to wait (in milliseconds) for the FTP command to complete. An error is returned if the command does not finish before the specified time.

The default timeout is 120000 (two minutes). The maximum time you can specify for the timeout is 3600000 (1 hour).

Append Specifies whether to append data to an existing file. If the specified file exists on the FTP server, append the data to the file when this field is checked. If this file is not checked, the file is overwritten if it exists on the FTP server.

Get Data from Disk Specifies that you will supply the path and name of a file on the local disk to use in the FTP Put command. If no local file is specified, you can supply the file’s data to the ASCIIData or BinaryData input items.

Firewall Indicates whether the FTP server resides inside or outside of a firewall relative to the location of the TIBCO BusinessWorks workflow engine. If checked, the FTP server resides outside a firewall, and therefore the Proxy fields must be specified.

Proxy Host IP address of the proxy server to access external FTP servers.

Proxy Port Port number of the proxy server used to access external FTP servers.

If no value is specified, the default value 8080 is used.

Field Description

TIBCO BusinessWorks Palette Reference

Page 95: TIBCO Business Works - Palette Reference - Nov 2002

FTP Put | 73

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

FTP_INPUT Object The root class for the input of the FTP Put activity. This class contains all input items for the activity.

RemoteFilename string The path and name of the file to place onto the remote server. Wildcards are not permitted within this field.

LocalFilename string The path and name of the local file to use in the FTP Put command. This item is only available if the Get Data from Disk field is enabled.

BinaryData binary The binary contents of the file to be transferred to the FTP server, if Binary field is checked on the Configuration tab.

You must map one or more process variables to this input item. The most common way to get the data for the remote file is to read a local file using the Read File activity, but you can map other data to this input item as well.

TIBCO BusinessWorks Palette Reference

Page 96: TIBCO Business Works - Palette Reference - Nov 2002

74 | FTP Palette

OutputThe output for the activity is the following.

ASCIIData string The ASCII contents of the file to be transferred to the FTP server, if Binary field is not checked on the Configuration tab.

You must map one or more process variables to this input item. The most common way to get the data for the remote file is to read a local file using the Read File activity, but you can map other data to this input item as well.

Input Item Datatype Description

Output Item Datatype Description

FTP_PUT_OUTPUT Object The root class for the output of the FTP Put activity. This class contains all output items for the activity.

Success boolean True or false depending upon whether the FTP put command was successfully executed by the FTP server.

Errormsg string Any error messages returned from the FTP server.

TIBCO BusinessWorks Palette Reference

Page 97: TIBCO Business Works - Palette Reference - Nov 2002

| 75

Chapter 6 File Palette

The file palette is used to read, write, delete, or create files. This palette also has a process starter that allows you to poll for files and start a process based on the presence of a file.

Topics

• Create File, page 76

• File Poller, page 77

• Read File, page 80

• Remove File, page 82

• Wait for File Change, page 84

• Write File, page 89

TIBCO BusinessWorks Palette Reference

Page 98: TIBCO Business Works - Palette Reference - Nov 2002

76 | File Palette

Create File

The Create File activity creates a new file with the specified file name and contents. The following sections describe the fields on the tabs of the Create File activity.

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Overwrite Overwrite existing file with the same name, if one exists.

Input Item Datatype Description

CreateActivityInputClass Object The root class for the input of the Create File activity. This class contains all input items for the activity.

fileName string The path and name of the file to create.

TIBCO BusinessWorks Palette Reference

Page 99: TIBCO Business Works - Palette Reference - Nov 2002

File Poller | 77

OutputThe output for the activity is the following.

File Poller

The File Poller process starter polls for files or directories with the given name and starts a process when a change (creation, modification, deletion) is detected.

Output Item Datatype Description

CreateActivityOutputClass Object The root class for the output of the File Poller activity. This class contains all output items for the activity.

fileInfo Object Object containing the fileName, location, type, readProtected, writeProtected, and size data.

fullName string The name of the file, including the path information.

fileName string The name of the file without the path information.

location string The path to the file.

type string Whether the created file is a file or a directory.

readProtected boolean Whether the file is protected from reading.

writeProtected boolean Whether the file is protected from writing.

size integer Size of the file (in bytes).

TIBCO BusinessWorks Palette Reference

Page 100: TIBCO Business Works - Palette Reference - Nov 2002

78 | File Palette

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

File Name The path and name of the file or directory to monitor. Use the Browse button to locate an existing file.

You can also use wildcards to monitor a directory for files that match the given specification. For example, "C:\files\*.log" would match any change to a file in the "files" directory whose extension is ".log".

Polling Interval (sec) Polling interval (in seconds) to check for the specified file.

Include Existing Files Check for the file among the files that existed before the process engine started running.

When this field is checked, if an existing file matches the specification in the File Name field when a process engine starts, then a new process instance is created.

If this field is not checked, any existing files that match the specification in the File Name field are ignored until there is some change in the file.

Exclude File Content Do not load the data from the file into this activity’s output. If this checkbox is selected, the contents of the file are not available to subsequent activities in the process definition.

Content as The type of content in the file. Can be either text or binary.

Encoding The character encoding for the file.

TIBCO BusinessWorks Palette Reference

Page 101: TIBCO Business Works - Palette Reference - Nov 2002

File Poller | 79

OutputThe output for the activity is the following.

Output Item Datatype Description

EventSourceOutputClass Object The root class for the output of the File Poller activity. This class contains all output items for the activity.

action string The event that occurred to trigger the File Poller activity. The action is either the create, remove, or modify.

timeOccured integer The time that the File Poller activity detected the change in the file.

The time is expressed as the amount of time, in milliseconds since midnight, January 1, 1970, UTC.

fileInfo Object Object containing the fileName, location, type, readProtected, writeProtected, and size data.

fullName string The name of the file, including the path information.

fileName string The name of the file without the path information.

location string The path to the file.

type string The file type.

readProtected boolean Whether the file is protected from reading.

writeProtected boolean Whether the file is protected from writing.

size integer Size of the file.

TIBCO BusinessWorks Palette Reference

Page 102: TIBCO Business Works - Palette Reference - Nov 2002

80 | File Palette

Read File

The Read File activity is used to read a file and place its contents into the process’ available data.

ConfigurationThe configuration tab has the following fields.

fileContent Object Object containing the textContent and binaryContent data.

textContent string Contents of the file (text files), if the Exclude File Contents field was not checked on the Configuration tab.

binaryContent binary Contents of the file (binary files), if the Exclude File Contents field was not checked on the Configuration tab.

encoding string The character encoding for the file.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Exclude File Content Do not load the data from the file into this activity’s output. If this checkbox is selected, the contents of the file are not available to subsequent activities in the process definition.

TIBCO BusinessWorks Palette Reference

Page 103: TIBCO Business Works - Palette Reference - Nov 2002

Read File | 81

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Read as The type of content in the file. Can be either text or binary.

Field Description

Input Item Datatype Description

ReadActivityInputClass Object The root class for the input of the Read File activity. This class contains all input items for the activity.

fileName string The path and name of the file to read.

encoding string The character encoding for the file.

Output Item Datatype Description

ReadActivityOutputClass Object The root class for the output of the Read File activity. This class contains all output items for the activity.

fileInfo Object Object containing the fileName, location, type, readProtected, writeProtected, and size data.

fullName string The name of the file, including the path information.

fileName string The name of the file without the path information.

TIBCO BusinessWorks Palette Reference

Page 104: TIBCO Business Works - Palette Reference - Nov 2002

82 | File Palette

Remove File

The Remove File activity removes the specified file.

location string The path to the file.

type string The file type.

readProtected boolean Whether the file is protected from reading.

writeProtected boolean Whether the file is protected from writing.

size integer Size of the file.

fileContent Object Object containing the textContent and binaryContent data.

textContent string Contents of the file (text files), if the Exclude File Content field was not checked on the Configuration tab.

binaryContent binary Contents of the file (binary files), if the Exclude File Content field was not checked on the Configuration tab.

encoding string The character encoding for the file.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 105: TIBCO Business Works - Palette Reference - Nov 2002

Remove File | 83

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Input Item Datatype Description

RemoveActivityInputClass Object The root class for the input of the Remove File activity. This class contains all input items for the activity.

fileName string The path and name of the file to remove.

Output Item Datatype Description

RemoveActivityOutputClass

Object The root class for the output of the Remove File activity. This class contains all output items for the activity.

fileInfo Object Object containing the fileName, location, type, readProtected, writeProtected, and size data.

fullName string The name of the file, including the path information.

TIBCO BusinessWorks Palette Reference

Page 106: TIBCO Business Works - Palette Reference - Nov 2002

84 | File Palette

Wait for File Change

The Wait for File Change activity waits for a file change (creation, modification, or deletion) to occur during process execution. When this activity is encountered, the process instance is suspended and waits for the specified file to change before resuming.

ConfigurationThe configuration tab has the following fields.

fileName string The name of the file without the path information.

location string The path to the file.

type string The file type.

readProtected boolean Whether the file is protected from reading.

writeProtected boolean Whether the file is protected from writing.

size integer Size of the file.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 107: TIBCO Business Works - Palette Reference - Nov 2002

Wait for File Change | 85

File Name The path and name of the file to poll for. You can use the Browse button to locate an existing file.

You can also use wildcards to monitor a directory for files that match the given specification. For example, "C:\files\*.log" would match any change to a file in the "files" directory whose extension is ".log".

Polling Interval (sec) Polling interval (in seconds) to check for changes in the specified file.

Include Existing Files Check for the file among the files that existed before the process engine started running.

When this field is checked, if an existing file matches the specification in the File Name field when a process engine starts, then the Wait for File Change activity accepts that file as changed and proceeds to the next activity.

If this field is not checked, any existing files that match the specification in the File Name field are ignored until there is some change in the file.

Exclude File Content Do not load the data from the file into this activity’s output. If this checkbox is selected, the contents of the file are not available to subsequent activities in the process definition.

Content as The type of content in the file. Can be either text or binary.

Encoding The character encoding for the file.

Field Description

TIBCO BusinessWorks Palette Reference

Page 108: TIBCO Business Works - Palette Reference - Nov 2002

86 | File Palette

EventThe Event tab has the following fields.

Field Description

Candidate Event Key Expression built from the data of the incoming file change event. This expression should evaluate to a string and it is compared to the "key" field of the activity’s input. If the Candidate Event Key and the activity’s key match, then the process accepts the incoming file change event.

For example, you may have created a file earlier in the process and you may want to wait for an external application to modify the file. When the external application modifies the file, it appends the word "Changed" to the filename to signify the file is ready for processing.

You should specify the $fileInfo/fileName for the Candidate Event Key field, and you should specify concat("$CreateFile/fileName", "Changed")

for the "key" field on the Input tab. $CreateFile/filename is the name of the file created earlier in the process. This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO BusinessWorks Process Design Guide for more information about XPath expressions.

Event Timeout (msec) A file change may occur before this activity is executed. This field specifies the amount of time (in milliseconds) to wait if the file change occurs before this activity is reached within the process instance. If the event timeout expires, an error is logged and the event is discarded

When building an expression in the Candidate Event Key field, only data from the incoming event is available. The idea is that you want to place an expression containing incoming event data in the Candidate Event Key field. When the results of this expression match the results of the expression in the "key" item on the Input tab, the Wait For File Change activity proceeds.

TIBCO BusinessWorks Palette Reference

Page 109: TIBCO Business Works - Palette Reference - Nov 2002

Wait for File Change | 87

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

input Object The root class for the input of the Wait for File Change activity. This class contains all input items for the activity.

key string The value that is compared to the Candidate Event Key field of the Event tab to determine if this message applies to this process. See Event on page 86 for an example of using the Candidate Event Key field with the key input item.

timeout integer The time (in milliseconds) to wait for the incoming file change event. An error is returned if the event is not received within this time limit.

Output Item Datatype Description

EventSourceOutputClass Object The root class for the output of the Wait for File Change activity. This class contains all output items for the activity.

action string The change in the file that occurred. The action is either the create, remove, or modify.

TIBCO BusinessWorks Palette Reference

Page 110: TIBCO Business Works - Palette Reference - Nov 2002

88 | File Palette

timeOccured integer The time that the Wait for File Change activity detected the change in the file.

The time is expressed as the amount of time, in milliseconds since midnight, January 1, 1970, UTC.

fileInfo Object Object containing the fileName, location, type, readProtected, writeProtected, and size data.

fullName string The name of the file, including the path information.

fileName string The name of the file without the path information.

location string The path to the file.

type string The file type.

readProtected boolean Whether the file is protected from reading.

writeProtected boolean Whether the file is protected from writing.

size integer Size of the file.

fileContent Object Object containing the textContent and binaryContent data.

textContent string Contents of the file (text files), if the Exclude File Contents field was not checked on the Configuration tab.

binaryContent binary Contents of the file (binary files), if the Exclude File Contents field was not checked on the Configuration tab.

encoding string The character encoding for the file.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 111: TIBCO Business Works - Palette Reference - Nov 2002

Write File | 89

Write File

The Write File activity writes the desired contents to the specified file.

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Append Appends contents to an existing file. If unchecked, the file is overwritten.

Write as How the content of the file is to be written. The file content can be either text or binary.

Input Item Datatype Description

WriteActivityInputClass Object The root class for the input of the Write File activity. This class contains all input items for the activity.

fileName string The path and name of the file. Wildcards are not permitted within this field.

textContent string Contents of the file (text files).

TIBCO BusinessWorks Palette Reference

Page 112: TIBCO Business Works - Palette Reference - Nov 2002

90 | File Palette

OutputThe output for the activity is the following.

binaryContent binary Contents of the file (binary files).

addLineSeparator boolean Specifies whether to add a carriage return after each input line.

encoding string The character encoding for the file.

Input Item Datatype Description

Output Item Datatype Description

WriteActivityOutputClass Object The root class for the output of the Write File activity. This class contains all output items for the activity.

fileInfo Object Object containing the fileName, location, type, readProtected, writeProtected, and size data.

fullName string The name of the file, including the path information.

fileName string The name of the file without the path information.

location string The path to the file.

type string The file type.

readProtected boolean Whether the file is protected from reading.

writeProtected boolean Whether the file is protected from writing.

size integer Size of the file.

TIBCO BusinessWorks Palette Reference

Page 113: TIBCO Business Works - Palette Reference - Nov 2002

| 91

Chapter 7 General Activities Palette

The General Activities palette contains several general-purpose activities and process starters. For example, the Timer process starter is used to start a process at a specific time. The Java Code activity is used to add custom code to your process definition. This chapter describes the activities contained in the General Activities palette.

Topics

• Call Process, page 92

• Checkpoint, page 93

• Confirm, page 95

• External Command, page 96

• Generate Error, page 99

• Java Code, page 102

• Label, page 106

• Mapper, page 107

• Notify, page 108

• Null, page 110

• Receive Notification, page 110

• Sleep, page 112

• Timer, page 113

• Wait, page 114

• Write To Log, page 117

TIBCO BusinessWorks Palette Reference

Page 114: TIBCO Business Works - Palette Reference - Nov 2002

92 | General Activities Palette

Call Process

The Call Process activity calls and executes an existing process definition. The input to the called process is defined in the Start activity of the called process. The output of the called process is defined in the End activity of the called process. See the description of the Start and End activities in TIBCO BusinessWorks Process Design

Guide for more information about specifying the input and output of a process.

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

You should only call processes that have Start activities. It is possible to call processes that have process starters, but this could cause behavior that you may not have intended in your process definition.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Process Name The process definition you would like to call. You can browse the available process definitions.

Spawn Specifies whether to spawn a new machine process for executing the called process. If this option is checked, the parent process cannot access the called process’ output. The called process is executed in a separate process instance.

TIBCO BusinessWorks Palette Reference

Page 115: TIBCO Business Works - Palette Reference - Nov 2002

Checkpoint | 93

The input for the activity is the following.

OutputThe output for the activity is the following.

Checkpoint

The Checkpoint activity performs a checkpoint in a running process instance. A checkpoint saves the current process data and state so that it can be recovered at a later time in the event of a failure. If a process engine fails, all process instances can be recovered and resume

execution at the location of their last checkpoint in the process definition.

Only the most recent state is saved by a checkpoint. If you have multiple checkpoints in a process, only the state from the last checkpoint is available for recovering the process.

This activity has a name and description specified on the Configuration tab, but there is no input or output for the activity.

Input Item Datatype Description

input The input to the called process is defined by the Output Schema tab in the called process’ Start activity. See TIBCO BusinessWorks Process Design Guide for more information.

Output Item Datatype Description

output The output of the called process is defined by the Output Schema tab in the called process’ End activity. See TIBCO BusinessWorks Process Design Guide for more information.

TIBCO BusinessWorks Palette Reference

Page 116: TIBCO Business Works - Palette Reference - Nov 2002

94 | General Activities Palette

Checkpoints and TransactionsCheckpoints cannot be taken within or in parallel to a transaction. So, place the checkpoint activity outside of any transaction group. Also, make sure that if you have multiple paths within your process definition, the checkpoint activity does not occur in parallel with a path that has a transaction group. Instead, any checkpoint activities should be placed at points that are guaranteed to be reached before or after the transaction group is reached.

See TIBCO BusinessWorks Process Design Guide for more information about creating groups for transactions.

Called ProcessesCheckpoints save the state of the entire process instance. By default when a process calls another process, the subprocess is executed in the same process instance as the calling process. If the called process spawns a new machine process, however, the called process is a new process instance.

When a checkpoint occurs in a called process, the checkpoint saves the state of the current process instance. If no called processes spawn new process instances, then a checkpoint in any called process saves the state of the process instance, including state from the parent process(es) of the current process. In the case of a called process that spawns a new process instance, only the spawned process instance is saved.

Recovering After a CrashIf a process engine crashes, all process instances are recovered up to the point of their last checkpoint. You must be careful with certain types of process starters or incoming events when placing your checkpoint within a process definition.

For example, if your process starter is waiting for an incoming HTTP request, and you take a checkpoint after the process starts, but before you’ve responded to the request, you will not be able to respond to the request once the process instance is restarted. The socket for the HTTP request is closed when the process engine crashes, therefore the HTTP Response activity in the restarted process will return an error. In this case, you should place the respond activity before the checkpoint so that any response is sent before a checkpoint is taken.

There are several examples of situations where an incoming event must be handled before the checkpoint is taken. The following lists some of these circumstances:

• A confirmable TIBCO Rendezvous or Adapter message is received.

• An email message is received, then deleted from the email server.

TIBCO BusinessWorks Palette Reference

Page 117: TIBCO Business Works - Palette Reference - Nov 2002

Confirm | 95

• An HTTP request is received.

You should exercise care in placing checkpoints within your process definitions. Make certain that the process has all of the data it needs to continue at the time of the checkpoint so that in the event of a failure, a restarted process does not attempt to access resources that no longer exist.

Confirm

The Confirm activity confirms any confirmable messages received by the process instance. For example, if a process is started because of the receipt of a RVCM message, the Confirm activity can send a confirmation message to the publisher of the RVCM message.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Confirm Event The message you wish to confirm. This is a drop-down list of any process starter or signal-in activity in the current process definition.

You will only be able to confirm messages from confirmable message sources. For example, RVCM, RVDQ, or JMS messages. You should select only the event that sent the confirmable message.

If you select an event from the list that doesn’t correspond to a confirmable message (for example, a Wait for File Change event) or if you try to confirm the same message more than once, the activity does nothing.

TIBCO BusinessWorks Palette Reference

Page 118: TIBCO Business Works - Palette Reference - Nov 2002

96 | General Activities Palette

External Command

The External Command activity allows you to execute an Operating System command. This activity waits for the command to complete before transitioning to the next activity. Optionally, the command’s output and any errors can be included in this activity’s

output schema, written to a file, or both.

Long-Running CommandsIf you wish to execute long-running commands (such as daemons), it may not be practical to execute the command directly. Because the specified command must terminate before control is passed to the next activity, the process instance must run until the external command completes. To avoid this problem, you may wish to create a script that runs the desired commands in the background.

The syntax of executing commands as background processes differs by operating system. For example, on UNIX, to run a command in the background, you append the ampersand character (&) to the command. On Microsoft Windows, you use the START command within a batch file to run a command in a different process.

After creating a script to run commands in the background, specify the script as the command to run in the External Command activity. The script runs the desired command and returns the process ID of the process it started. The return code of the script is stored in the returnCode item of the External Command activity’s output.

If you wish to start a long-running command in the background and then later terminate the background process, you should store the process ID returned by the script in a file or database table. Another process instance can then read the process ID and kill the process with the appropriate operating system command when necessary.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 119: TIBCO Business Works - Palette Reference - Nov 2002

External Command | 97

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

Command to Execute The command line to execute. You can also specify any input and command-line arguments to the command in this field.

You can specify a global variable for this configuration field. This allows you to easily specify different commands on different operating systems. For example, you may specify %%EXTERNAL_COMMAND%% as the value for this field. On MS Windows, the value of the global variable may be the following:

cmd /c dir

On UNIX, the global variable may be the following:

ls

If the external command is not defined in the PATH environment variable (on UNIX or Windows), you must specify the full path for the executable command.

Make Output Available as Activity Output

When checked, this field specifies that the output sent to standard output and standard error by the command should be available in the output schema of this activity.

For commands the produce a large amount of output, it is recommended to uncheck this field and write the output to a file. This saves memory and allows you to use other activities (for example Read File and Parse Data) to handle the output file more efficiently.

Output Filename Name and location of the file in which to store any output or errors produced by the command. If this field is blank, no output file is created.

Field Description

TIBCO BusinessWorks Palette Reference

Page 120: TIBCO Business Works - Palette Reference - Nov 2002

98 | General Activities Palette

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

cmd_input Object The root class for the input of the Command Line activity. This class contains all input items for the activity.

command string The command to execute (with any input or command-line arguments). Specifying this input item overrides the command specified on the Configuration tab.

input string An input string to supply to the command’s standard input. This schema item accomplishes the same goal as entering the command from a command prompt and then typing in input without specifying a carriage return.

For example, on UNIX, typing "sed" into a command prompt allows you to enter more text as input into the sed command.

Use &crlf; within the string for this item to specify a carriage return (that is, &crlf; simulates pressing the Enter key).

Output Item Datatype Description

cmd_output Object The root class for the output of the Command Line activity. This class contains all output items for the activity.

returnCode integer The return code returned by the command.

TIBCO BusinessWorks Palette Reference

Page 121: TIBCO Business Works - Palette Reference - Nov 2002

Generate Error | 99

Generate Error

This activity generates an error and causes an immediate transition to any error transitions, or if there are no error transitions, stops the process instance. This activity is useful within a group or within a called process. If you would like to catch and raise your own error

conditions, you can use this activity to do so.

For example, if you have a process that calls a subprocess to check the credit of a customer, you can use the Generate Error activity to raise an error if there is an error condition, such as the customer does not exist, or the customer has no credit available. Within the called subprocess, you would transition to the Generate Error activity after detecting the error condition and the called process would terminate. Processing would continue with an error in the calling process. You could have an error transition on the Call Process activity to handle the error.

Figure 9 illustrates the example described above.

output string Any output produced by the command and sent to stdout. This output item is only available if the "Make Output Available as Activity Output" field is checked on the Configuration tab.

error string Any errors returned by the command. This output item is only available if the "Make Output Available as Activity Output" field is checked on the Configuration tab.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 122: TIBCO Business Works - Palette Reference - Nov 2002

100 | General Activities Palette

Figure 9 Using the Generate Error activity

See TIBCO BusinessWorks Process Design Guide for more information about handling errors in process definitions.

ConfigurationThe configuration tab has the following fields.

. . .

CreditCheck Subprocess

. . .

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 123: TIBCO Business Works - Palette Reference - Nov 2002

Generate Error | 101

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThis activity produces no output.

Select Error Schema The process error schema to send to the parent process. - Default - specifies that the error should be propagated only in the $_error process variable.

Process error schemas are defined on the Error Schemas tab of the End activity for the process. The schema specified in this field is added to the Input schema for this activity. Data you map to the error schema is propagated to the parent process.

See TIBCO BusinessWorks Process Design Guide for more information about specifying process error schemas.

Field Description

Input Item Datatype Description

ActivityInput Object The root class for the input of the Generate Error activity. This class contains all input items for the activity.

message string The text of the error message to generate.

data Object The schema specified in the Select Error Schema field of the Configuration tab is contained in this input item. Map data from the list of process variables to this input item to propagate the data to the parent process.

TIBCO BusinessWorks Palette Reference

Page 124: TIBCO Business Works - Palette Reference - Nov 2002

102 | General Activities Palette

Java Code

You can add custom code to your process definition with the Java Code activity. This activity allows you to write a standard Java class that can manipulate any of the process data or perform any action you choose.

When you specify input and output parameters for the Java Code activity, get/set method code is automatically generated for the activity. You can use that code in your Java class, and it is displayed when you click the Show Source button on the Code tab.

The Java Code activity automatically creates an invoke() method in which you should put the code you wish to execute. This method is called when the engine processes the Java Code activity.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Input Parameters The input parameters for the Java Code activity. These parameters will appear on the Input tab after they are specified. Each input parameter has three fields:

• Field Name — Name of the parameter.

• Type — Datatype of the parameter. Specify one of the supplied Java primitive types, or specify "Object Reference" if you are accepting a Java object from another Java Code activity as input. See Passing Java Objects Between Java Code Activities on page 104 for more information about passing Java objects between Java Code activities.

• Required — Whether the parameter is required, optional, or repeating.

TIBCO BusinessWorks Palette Reference

Page 125: TIBCO Business Works - Palette Reference - Nov 2002

Java Code | 103

CodeThe code tab has the following fields/buttons.

Output Parameters The output parameters for the Java Code activity. These parameters will appear on the Output tab after they are specified. Each output parameter has three fields:

• Field Name — Name of the parameter.

• Type — Datatype of the parameter. Specify one of the supplied Java primitive types, or specify "Object Reference" if you are accepting a Java object from another Java Code activity as input. See Passing Java Objects Between Java Code Activities on page 104 for more information about passing Java objects between Java Code activities.

• Required — Whether the parameter is required, optional, or repeating.

Field Description

Field/Button Description

Code Body The source code of the Java class. Specify the code you wish to execute in the automatically generated invoke() method. The get/set methods for the input and output parameters are automatically generated and displayed when you click the Show Source button.

When the Java code is run by the engine, the automatically generated get/set methods are called, then the invoke() method within the Java class is called.

Compile Status The errors encountered during compilation.

Editor Use Edit>Preferences>Other to specify the Java editor you wish to use to edit source code.

If you do not specify an editor, a simple popup editing window is used.

TIBCO BusinessWorks Palette Reference

Page 126: TIBCO Business Works - Palette Reference - Nov 2002

104 | General Activities Palette

Passing Java Objects Between Java Code ActivitiesYou may create instances of Java objects within your Java code. You can pass these Java objects by way of an output parameter to another Java Code activity later in the process definition. The Java Code activity receiving a Java object accepts the object into an input parameter and you must map the output object from the first Java Code object to the input object of the receiving Java Code object.

Figure 10 illustrates two Java code activities. The CreateObject activity creates a Java object and passes a reference to the object in its output parameter named out_object. The UseObject activity defines an input parameter named in_object of type ObjectReference and maps the CreateObject activity’s output object reference to its input parameter of type ObjectReference.

The UseObejct activity can invoke methods on the input object as it would for any other object. For example, if you wish to call a method named m1 that returns an integer, you would use the following code within the UseObject activity:

int(in_object.m1());

Compile Button Compiles the current source code. JDK 1.3 and 1.3.1 are supported for this release.

After compilation, the source and compiled java code are placed into the lib/palettes/javaCode directory within the TIBCO BusinessWorks installation directory.

View Errors Button Displays the errors encountered when the code was compiled.

Show Source Button Displays the source code in the editor specified with the TIBCO Designer preferences. If no editor is specified, a simple popup editing window is used.

Classpath Button Displays the current CLASSPATH environment variable. You can add to the classpath by editing the values in the popup editing window.

Field/Button Description

Any objects passed by input and output parameters between Java Code activities must be serializable.

TIBCO BusinessWorks Palette Reference

Page 127: TIBCO Business Works - Palette Reference - Nov 2002

Java Code | 105

Figure 10 Passing objects between Java Code activities

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

InputParameters Object The root class for the input of the Java Code activity. This class contains all input items for the activity.

parameters varies The Input tab will have a list of whatever input parameters are specified on the Configuration tab.

TIBCO BusinessWorks Palette Reference

Page 128: TIBCO Business Works - Palette Reference - Nov 2002

106 | General Activities Palette

OutputThe output for the activity is the following.

Label

The Label allows you to create a generic label so that you can provide documentation and comments within your process definition. The Label is not actually an activity, because you cannot draw transitions to or from it, and it does not perform any action. You use the label to create a

descriptive tag that you can place anywhere within a process definition.

ConfigurationThe configuration tab has the following fields.

Output Item Datatype Description

OutputParameters Object The root class for the output of the Java Code activity. This class contains all output items for the activity.

parameters varies The Output tab will have a list of whatever output parameters are specified on the Configuration tab.

Field Description

Description Descriptive text that you would like to add to the label. You can add comments here about the process diagram. Use this field to provide documentation for the process.

Label Color Allows you to pick a color for the text of the label. Use the Color button to bring up the Choose a Label Color dialog.

TIBCO BusinessWorks Palette Reference

Page 129: TIBCO Business Works - Palette Reference - Nov 2002

Mapper | 107

Mapper

The Mapper activity adds a new process variable to the process definition. This variable can be a simple datatype, a TIBCO ActiveEnterprise schema, an XML schema, or a complex structure. You can map data values from the current list of process variables to the

elements of the variable added with the Mapper activity.

Output SchemaThe Output Schema tab defines the structure of the process variable to add to the process definition.

You can use a simple datatype, or you can define a group of data elements on this tab. You can also reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Output Schema tab becomes the output schema of the Mapper activity. This data then becomes available to other activities within the process definition.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Output Schema tab.

Input See TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is defined by the specified data elements on the Output Schema tab.

Label Font Allows you to pick a font for the text of the label. Use the Choose Font button to bring up the Font Panel dialog.

Field Description

TIBCO BusinessWorks Palette Reference

Page 130: TIBCO Business Works - Palette Reference - Nov 2002

108 | General Activities Palette

Output The output for the activity is defined by the specified data elements on the Output Schema tab.

Notify

The Notify activity allows a process instance to send data to a corresponding process instance containing a Wait activity or Receive Notification process starter. The Notify Configuration resource specified

on the Configuration tab and the key specified on the Input tab create the relationship between the Notify activity and the corresponding Wait or Receive Notification. The data specified in the Notify’s input is sent to the Wait or Receive Notification that specifies the same Notify Configuration resource and has the same value for the key.

The Wait, Receive Notification, and Notify activities allow running process instances to communicate. See TIBCO BusinessWorks Process Design Guide for more information on inter-process communication.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Shared Configuration The Notify Configuration shared configuration resource that defines a data schema for this activity. See Notify Configuration on page 321 for more information.

The Notify Configuration resource is required, but the schema can be empty if you do not wish to pass data between processes.

TIBCO BusinessWorks Palette Reference

Page 131: TIBCO Business Works - Palette Reference - Nov 2002

Notify | 109

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

input Object The root class for the input of the Notify activity. This class contains all input items for the activity.

key string The key that coordinates a Notify activity with the corresponding Wait or Receive Notification. For example, in an order handling process, the order ID might be the key that Wait and Notify use to determine which Wait activity corresponds to the Notify activity.

The key can be an XPath expression, but it must evaluate to a string.

See TIBCO BusinessWorks Process Design Guide for more information and examples of choosing the key for Wait, Notify, and Receive Notification.

timeout integer The timeout (number of milliseconds) to keep the information for this Notify activity. The activity executes immediately and transitions to the next activity, but the Notify information is kept by the engine until a corresponding Receive Notification or Wait occurs. If the corresponding activity does not occur before this timeout is reached, the Notify information is removed.

schema Object The schema specified by the Notify Configuration on the Configuration tab. This schema is used to pass data from the process instance into the process instance containing a corresponding Receive Notification or Wait.

TIBCO BusinessWorks Palette Reference

Page 132: TIBCO Business Works - Palette Reference - Nov 2002

110 | General Activities Palette

OutputThis activity produces no output.

Null

The Null activity is an activity with no action performed. This activity has a name and a description specified on the Configuration tab, but there is no input or output for the activity.

This activity is useful if you wish to join multiple process flows (that is, when you have multiple transitions out of an activity and each transition takes a different path in the process definition).

Receive Notification

The Receive Notification process starter starts a process when another process executes a Notify activity with a matching key and Notify Configuration resource. The key specified in the Key field of the

Configuration tab creates a relationship between the Receive Notification process starter and the corresponding Notify activity.

The same Notify Configuration shared configuration resource must be specified by corresponding Receive Notification and Notify so that data can be passed from the process containing the Notify activity to the process started with Receive Notification. The schema in the Notify Configuration resource can be empty, if you do not wish to pass data between processes.

The Wait, Receive Notification, and Notify activities allow running process instances to communicate. See TIBCO BusinessWorks Process Design Guide for more information on inter-process communication.

TIBCO BusinessWorks Palette Reference

Page 133: TIBCO Business Works - Palette Reference - Nov 2002

Receive Notification | 111

ConfigurationThe configuration tab has the following fields.

OutputThe output for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Shared Configuration The Notify Configuration shared configuration resource that defines a data schema for this activity. See Notify Configuration on page 321 for more information.

The Notify Configuration resource is required, but the schema can be empty if you do not wish to pass data between processes.

Key The key that coordinates a Receive Notification process starter with the corresponding Notify. For example, in an order handling process, the order ID might be the key that Receive Notification uses to determine which Notify activity corresponds to this process starter.

The key must be a fixed string. You may use global variables, but XPath expressions cannot be used.

See TIBCO BusinessWorks Process Design Guide for more information and examples of choosing the key for Wait, Notify, and Receive Notification.

Output Item Datatype Description

schema Object The schema specified by the Notify Configuration on the Configuration tab. This schema is used to pass data from the process instance containing the Notify into this process instance.

TIBCO BusinessWorks Palette Reference

Page 134: TIBCO Business Works - Palette Reference - Nov 2002

112 | General Activities Palette

Sleep

The Sleep activity suspends the process on the current transition for the given amount of time. If you have multiple control flows in your process, only the current execution branch of the process is suspended.

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Input Item Datatype Description

SleepInputSchema Object The root class for the input of the Sleep activity. This class contains all input items for the activity.

IntervalInMillisec integer The amount of time, in milliseconds, to suspend the current branch of the process.

TIBCO BusinessWorks Palette Reference

Page 135: TIBCO Business Works - Palette Reference - Nov 2002

Timer | 113

Timer

The Timer process starter starts a process at a specific time. You can also specify that processes are to be started periodically.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Start Time The day and time to start the process. If the process is to be run periodically, then the start time indicates the first time to run the process.

Run once Indicates this process should be run only once at the day and time indicated by the Start Time field. If unchecked, the Time Interval and Runs Every fields appear to allow you to specify the frequency of the process.

Time Interval Integer indicating the number of units specified in the Interval Unit field. For example, if this field is specified as "1" and the Interval Unit field is specified as "Hour", that signifies to start a new process every hour starting with the time specified in the Start Time field.

If this field is specified as "2" and the Interval Unit field is specified as Month, that signifies to start a process every other month, starting with the time specified in the Start Time field.

Interval Unit Unit of time to use in conjunction with the Time Interval field to determine how often to start a new process. The units can be: Second, Minute, Hour, Day, Week, Month, Year.

TIBCO BusinessWorks Palette Reference

Page 136: TIBCO Business Works - Palette Reference - Nov 2002

114 | General Activities Palette

OutputThe output for the activity is the following.

Wait

The Wait activity suspends execution of the process instance and waits for a Notify activity with a matching key to be executed in another process instance. The key specified in the Notify Configuration specified on the

Configuration tab and the Key field of the Input tab creates a relationship between the Wait activity and the corresponding Notify activity.

The same Notify Configuration shared configuration resource must be specified by corresponding Wait and Notify so that data can be passed from the process instance containing the Notify activity to this process instance. The schema in the Notify Configuration resource can be empty, if you do not wish to pass data between processes.

The Wait, Receive Notification, and Notify activities allow running process instances to communicate. See TIBCO BusinessWorks Process Design Guide for more information on inter-process communication.

Output Item Datatype Description

TimerOutputSchema Object The root class for the output of the Timer activity. This class contains all output items for the activity.

Time The time the process instance started. The time is represented by several items in the output schema indicating the hour, minute, second, and so on each item uses the appropriate datatype.

TIBCO BusinessWorks Palette Reference

Page 137: TIBCO Business Works - Palette Reference - Nov 2002

Wait | 115

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Shared Configuration The Notify Configuration shared configuration resource that defines a data schema for this activity. See Notify Configuration on page 321 for more information.

The Notify Configuration resource is required, but the schema can be empty if you do not wish to pass data between processes.

Input Item Datatype Description

input Object The root class for the input of the Notify activity. This class contains all input items for the activity.

TIBCO BusinessWorks Palette Reference

Page 138: TIBCO Business Works - Palette Reference - Nov 2002

116 | General Activities Palette

OutputThe output for the activity is the following.

key string The key that coordinates a Wait activity with the corresponding Notify. For example, in an order handling process, the order ID might be the key that Wait and Notify use to determine which Wait activity corresponds to the Notify activity.

The key can be an XPath expression, but it must evaluate to a string.

See TIBCO BusinessWorks Process Design Guide for more information and examples of choosing the key for Wait, Notify, and Receive.

timeout integer The timeout (number of milliseconds) for this Wait activity. If a Notify activity that has a matching key is not executed within this specified number of seconds, the Wait times out and transitions to the next activity.

Input Item Datatype Description

Output Item Datatype Description

schema Object The schema specified by the Notify Configuration on the Configuration tab. This schema is used to pass data from the process instance containing the Notify into this process instance.

TIBCO BusinessWorks Palette Reference

Page 139: TIBCO Business Works - Palette Reference - Nov 2002

Write To Log | 117

Write To Log

This activity writes a message to the log. The logs are stored within the TIBCO BusinessWorks installation directory under the logs subdirectory. There is one log file for each process engine. A process definition with the Write To Log activity will write a message to the log

of the process engine that is running the process instance corresponding to the process definition.

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Role The user-defined role name for this log entry.

Roles can be used to filter the log entries when displaying them. For example, if you set the role as "Debug", you can choose to view or not view all log entries that have the role set to "Debug".

Suppress Job Info If checked, no additional information is added to the log entry.

If unchecked, each log message has the Job number, process definition name, and activity name prepended to the message text.

TIBCO BusinessWorks Palette Reference

Page 140: TIBCO Business Works - Palette Reference - Nov 2002

118 | General Activities Palette

The input for the activity is the following.

OutputThis activity produces no output.

Input Item Datatype Description

ActivityInput Object The root class for the input of the Write To Log activity. This class contains all input items for the activity.

message string The message that you would like to appear in the log.

Logs are stored in the TIBCO BusinessWorks installation directory under the logs subdirectory.

TIBCO BusinessWorks Palette Reference

Page 141: TIBCO Business Works - Palette Reference - Nov 2002

| 119

Chapter 8 HTTP Palette

The HTTP palette allows you to send and receive HTTP requests.

Topics

• HTTP Receiver, page 120

• Send HTTP Request, page 123

• Send HTTP Response, page 129

• Wait for HTTP Request, page 133

TIBCO BusinessWorks Palette Reference

Page 142: TIBCO Business Works - Palette Reference - Nov 2002

120 | HTTP Palette

HTTP Receiver

Starts a process based on the receipt of a HTTP request.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

HTTP Connection The HTTP Connection shared resource that describes the port number on which this process starter listens for incoming HTTP requests.

See HTTP Connection on page 309 for more information about specifying shared resources.

Parse Post Method Data

Specifies that the attributes of the request should be parsed into a schema tree for the Output tab.

Attributes The attributes of the HTTP request. For each attribute, you must provide a field name, datatype for the field, and whether the field is required, optional, or repeating.

HTTP Authentication Specifies that the client sending the HTTP request must be authenticated. The user name and password specified in the incoming request must exist in the domain (users are created and managed within the domain using TIBCO Administrator).

TIBCO BusinessWorks Palette Reference

Page 143: TIBCO Business Works - Palette Reference - Nov 2002

HTTP Receiver | 121

HeadersThe headers tab describes the data structure for the headers of the HTTP request. You can use the default structure, or you can alter the structure, if the incoming request has a specific data structure for the header of the request. This tab uses the same mechanism described Appendix A, Specifying Data Schema, on page 341 in to specify the data structure for the headers. See that section for more information about creating a customized data structure.

Header structure is defined by the HTTP protocol. See the HTTP Protocol specification for more information about the fields and content of the header of a HTTP request. You can obtain this specification at www.w3.org.

The default header fields are the following.

Output Item Datatype Description

Headers Object The root class for the header structure.

Content-Type string This field indicates the media type of the entity body sent to the receiver. Media types are described in the HTTP specification. An example of the media type it "text/html; charset=ISO-8850-4".

Content-Length string This field indicates the size of the entity body (in decimal number of OCTETs) sent to the receiver.

Connection string This field allows the requestor to specify options desired for this connection. An example option is "close", which specifies that the requestor would like the connection to be closed when the request is complete.

Set-Cookie string See the HTTP specification for more information about this field.

TIBCO BusinessWorks Palette Reference

Page 144: TIBCO Business Works - Palette Reference - Nov 2002

122 | HTTP Palette

OutputThe output for the activity is the following.

Pragma string This field is used to include implementation-specific directives that might apply to the receiver. See the HTTP specification for more information about using this field.

Location string This field is used to redirect the receiver to a location other than the Request-URI for completion of the request or for identification of a new resource.

Output Item Datatype Description

Output Item Datatype Description

ProcessStarterOutput Object The root class for the output of the HTTP Receiver activity. This class contains all output items for the activity.

Method string Whether the request is a GET or POST method.

RequestURI string The address portion of the request. This is the portion before the question mark (?).

HTTPVersion string Version field of the HTTP request.

PostData string The data portion for a POST request.

Command string Command portion of the HTTP request.

QueryString string The query string portion of the request. This is the portion after the question mark (?).

Header string The header of the HTTP request.

TIBCO BusinessWorks Palette Reference

Page 145: TIBCO Business Works - Palette Reference - Nov 2002

Send HTTP Request | 123

Send HTTP Request

The Send HTTP Request activity sends a HTTP request to a web server.

ConfigurationThe configuration tab has the following fields.

Headers object The fields of the header specified on the Headers tab. See the description of the Headers tab for more information about these items.

parameters object Parameters for the incoming request. These parameters are configured in the Attributes field on the Configuration tab.

These parameters are available as a schema tree if the Parse Post Method Data checkbox is check.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Host The host machine name or IP address to send the request to. For example, www.tibco.com.

Port The port on the host machine to send the request to. The default port is 80.

TIBCO BusinessWorks Palette Reference

Page 146: TIBCO Business Works - Palette Reference - Nov 2002

124 | HTTP Palette

Use Proxy Setting Specifies that a proxy server is to be used to gain access outside of a firewall. The Proxy Configuration shared configuration resource specifies the configuration of the proxy server.

Attributes The attributes of the HTTP request. For each attribute, you must provide a field name, datatype for the field, and whether the field is required, optional, or repeating.

These attributes are sent by way of the query string in the request. For example, ?attr1=value1&attr2=val2.

Authentication Specifies that the request must first supply a valid username and password to authenticate with the HTTP server.

This activity supports only basic authentication.

User Name (HTTP Authentication)

User name to log onto the HTTP server.

Password Password to log onto the HTTP server.

Use Secure Socket (HTTPS)

Specifies to use the HTTPS (secure socket layer, or SSL) for the request. This protocol authenticates the server to the client, and optionally, the server can require that the client authenticate itself to the server.

SSL requests require that the client have the appropriate digital certificate. See the documentation from your certificate provider for more information about configuring SSL.

Enabling this field allows you to specify the Trusted Certificate Location, Client Identity, and Client Identity Password fields.

For more information about creating keystores for private keys and trusted certificate chains, see http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html.

Field Description

TIBCO BusinessWorks Palette Reference

Page 147: TIBCO Business Works - Palette Reference - Nov 2002

Send HTTP Request | 125

Trusted Certificate Location

Only available when HTTPS is enabled.

This field specifies the Trusted CA shared configuration resource. This certificate should contain the list of certificate authorities the client will accept for sever certificates. The server’s certificate is checked against this list, and if the certificate is not from a listed certificate authority, the connection is refused.

Client Identity (Keystore)

Only available when HTTPS is enabled.

This field specifies the location of the client’s digital certificate.

Client Identity Password

Only available when HTTPS is enabled.

This field specifies the client’s password for its private key.

Key Store Type Only available when HTTPS is enabled.

The file type for the trusted certificate. This file type can be Java Key Store (JKS) or PKCS12.

Verify Host Name Only available when HTTPS is enabled.

This field specifies that the host name of the HTTP server should be checked against the host name listed in the server’s digital certificate. This provides additional verification that the host name you believe you are connecting to is in fact the desired host.

If the host name specified in the Endpoint URL field on the Configuration tab is not an exact match to the host name specified in the server’s digital certificate, the connection is refused.

Note: If you specify an equivalent hostname (for example, an IP address) in the Endpoint URL field, but the name is not an exact match of the hostname in the host’s digital certificate, the connection is refused.

Field Description

TIBCO BusinessWorks Palette Reference

Page 148: TIBCO Business Works - Palette Reference - Nov 2002

126 | HTTP Palette

Input Headers/Output HeadersThe Input Headers and Output Headers tabs describe the data structure for the headers of the HTTP request and the HTTP reply message. You can use the default structure, or you can alter the structure, if the outgoing request or the reply to the request has a specific data structure for the header. This tab uses the same mechanism described Appendix A, Specifying Data Schema, on page 341 in to specify the data structure for the headers. See that section for more information about creating a customized data structure.

Header structure is defined by the HTTP protocol. See the HTTP Protocol specification for more information about the fields and content of the header of a HTTP request. You can obtain this specification at www.w3.org.

The default header fields are the following.

Output Item Datatype Description

Headers Object The root class for the header structure.

Content-Type string This field indicates the media type of the entity body sent to the receiver. Media types are described in the HTTP specification. An example of the media type it "text/html; charset=ISO-8850-4".

Content-Length string This field indicates the size of the entity body (in decimal number of OCTETs) sent to the receiver.

Connection string This field allows the requestor to specify options desired for this connection. An example option is "close", which specifies that the requestor would like the connection to be closed when the request is complete.

Set-Cookie string See the HTTP specification for more information about this field.

TIBCO BusinessWorks Palette Reference

Page 149: TIBCO Business Works - Palette Reference - Nov 2002

Send HTTP Request | 127

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Pragma string This field is used to include implementation-specific directives that might apply to the receiver. See the HTTP specification for more information about using this field.

Location string This field is used to redirect the receiver to a location other than the Request-URI for completion of the request or for identification of a new resource.

Output Item Datatype Description

Output Item Datatype Description

RequestActivityInput Object The root class for the input of the Send HTTP Request activity. This class contains all input items for the activity.

Host string The HTTP host you wish to connect to. Specifying a value for this input item overrides any value specified on the Configuration tab.

Port integer The port number that the HTTP server uses for incoming requests. Specifying a value for this input item overrides any value specified on the Configuration tab.

CertificateInfo Object The digital certificate you wish to send to the HTTP server to verify the requestor’s identity. Specifying a value for this input item overrides any value specified on the Configuration tab.

TIBCO BusinessWorks Palette Reference

Page 150: TIBCO Business Works - Palette Reference - Nov 2002

128 | HTTP Palette

Method string Whether the request is a GET or POST method.

RequestURI string The address portion of the request. This is the portion before the question mark (?).

HTTPVersion string Version field of the HTTP request.

PostData string The data portion for a POST request.

Command string Command portion of the HTTP request.

QueryString string The query string portion of the request. This is the portion after the question mark (?).

Header string The header of the HTTP request.

Timeout integer The amount of time (in milliseconds) to wait for a response from the HTTP server.

Headers Object The header fields to send for the request. This object is specified on the Input Headers tab, and you can use this input item to supply values for the header when sending the request.

parameters Object Parameters for the incoming request. These parameters are configured in the Attributes field on the Configuration tab.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 151: TIBCO Business Works - Palette Reference - Nov 2002

Send HTTP Response | 129

OutputThe output for the activity is the following.

Send HTTP Response

Sends a response to a previously received HTTP request. This activity is used in conjunction with the HTTP Receiver process starter or the Wait for HTTP Request activity.

The default status line returned by this activity is "200 OK".

Output Item Datatype Description

RequestActivityOutput Object The root class for the output of the Send HTTP Request activity. This class contains all output items for the activity.

Header string The header of the HTTP request.

binaryContent binary The binary content of the response to the request from the HTTP server.

asciiContent string The ascii content of the response to the request from the HTTP server.

Headers Object The header fields of the reply. The structure of this output item is specified on the Output Headers tab.

TIBCO BusinessWorks Palette Reference

Page 152: TIBCO Business Works - Palette Reference - Nov 2002

130 | HTTP Palette

ConfigurationThe configuration tab has the following fields.

HeadersThe headers tab describes the data structure for the headers of the HTTP response. You can use the default structure, or you can alter the structure, if the outgoing response has a specific data structure for the header of the request. This tab uses the same mechanism described Appendix A, Specifying Data Schema, on page 341 in to specify the data structure for the headers. See that section for more information about creating a customized data structure.

Header structure is defined by the HTTP protocol. See the HTTP Protocol specification for more information about the fields and content of the header of a HTTP request. You can obtain this specification at www.w3.org.

The default header fields are the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Reply For The Wait for HTTP Request activity or HTTP Receiver process starter that received the request. This is a selection list of available activities that can receive HTTP requests.

Close Connection Specifies that the HTTP connection should be closed after sending the response.

Output Item Datatype Description

Headers Object The root class for the header structure.

TIBCO BusinessWorks Palette Reference

Page 153: TIBCO Business Works - Palette Reference - Nov 2002

Send HTTP Response | 131

StatusLine string This field is the first line of a response message. This consists of the protocol version, a numeric status code, and the text phrase explaining the status code. See the HTTP specification for more information about status codes in HTTP responses.

Content-Type string This field indicates the media type of the entity body sent to the receiver. Media types are described in the HTTP specification. An example of the media type it "text/html; charset=ISO-8850-4".

By default this item is set to "text/html". If you are using this activity and the Retrieve Resources activity to retrieve a WSDL file, you should set the type to "text/xml" when specifying values on the Input tab.

Content-Length string This field indicates the size of the entity body (in decimal number of OCTETs) sent to the receiver.

Content-Encoding string This is the character encoding of the response message. See the HTTP specification for more information about specifying the content encoding.

Connection string This field allows the requestor to specify options desired for this connection. An example option is "close", which specifies that the requestor would like the connection to be closed when the request is complete.

Set-Cookie string See the HTTP specification for more information about this field.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 154: TIBCO Business Works - Palette Reference - Nov 2002

132 | HTTP Palette

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Pragma string This field is used to include implementation-specific directives that might apply to the receiver. See the HTTP specification for more information about using this field.

Location string This field is used to redirect the receiver to a location other than the Request-URI for completion of the request or for identification of a new resource.

Output Item Datatype Description

Input Item Datatype Description

ResponseActivityInput Object The root class for the input of the Send HTTP Response activity. This class contains all input items for the activity.

Header string The header of the HTTP response. The default status line for the response is "200 OK".

binaryContent binary The binary content of the response to the request.

asciiContent string The ascii content of the response to the request.

charset string The character encoding to use for this response.

TIBCO BusinessWorks Palette Reference

Page 155: TIBCO Business Works - Palette Reference - Nov 2002

Wait for HTTP Request | 133

OutputThis activity produces no output.

Wait for HTTP Request

Waits for an incoming HTTP request within a process definition. The process instance suspends until the incoming HTTP request is received.

ConfigurationThe configuration tab has the following fields.

Headers object The fields of the header specified on the Headers tab. See the description of the Headers tab for more information about these items.

Input Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

HTTP Connection The HTTP Connection shared resource that describes the port number on which this process waits for incoming HTTP requests.

See HTTP Connection on page 309 for more information about specifying shared resources.

Parse Post Method Data

Specifies that the attributes of the request should be parsed into a schema tree for the Input tab.

TIBCO BusinessWorks Palette Reference

Page 156: TIBCO Business Works - Palette Reference - Nov 2002

134 | HTTP Palette

HeadersThe headers tab describes the data structure for the headers of the HTTP request. You can use the default structure, or you can alter the structure, if the incoming request has a specific data structure for the header of the request. This tab uses the same mechanism described Appendix A, Specifying Data Schema, on page 341 in to specify the data structure for the headers. See that section for more information about creating a customized data structure.

Header structure is defined by the HTTP protocol. See the HTTP Protocol specification for more information about the fields and content of the header of a HTTP request. You can obtain this specification at www.w3.org.

The default header fields are the following.

Attributes The attributes of the HTTP request. For each attribute, you must provide a field name, datatype for the field, and whether the field is required, optional, or repeating.

Authentication Specifies that the client sending the HTTP request must be authenticated. The user name and password specified in the incoming request must exist in the domain (users are created and managed within the domain using TIBCO Administrator).

Field Description

Output Item Datatype Description

Headers Object The root class for the header structure.

Content-Type string This field indicates the media type of the entity body sent to the receiver. Media types are described in the HTTP specification. An example of the media type it "text/html; charset=ISO-8850-4".

Content-Length string This field indicates the size of the entity body (in decimal number of OCTETs) sent to the receiver.

TIBCO BusinessWorks Palette Reference

Page 157: TIBCO Business Works - Palette Reference - Nov 2002

Wait for HTTP Request | 135

Connection string This field allows the requestor to specify options desired for this connection. An example option is "close", which specifies that the requestor would like the connection to be closed when the request is complete.

Set-Cookie string See the HTTP specification for more information about this field.

Pragma string This field is used to include implementation-specific directives that might apply to the receiver. See the HTTP specification for more information about using this field.

Location string This field is used to redirect the receiver to a location other than the Request-URI for completion of the request or for identification of a new resource.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 158: TIBCO Business Works - Palette Reference - Nov 2002

136 | HTTP Palette

Event The Event tab has the following fields.

Field Description

Candidate Event Key Expression built from the data of the incoming file change event. This expression should evaluate to a string and it is compared to the "key" field of the activity’s input. If the Candidate Event Key and the activity’s key match, then the process accepts the incoming message.

For example, you may have sent an HTTP request earlier in the process, and you may be waiting for a response from the HTTP server. You may specify a requestID as an attribute of the HTTP request and responseTo attribute on the Wait for HTTP request activity. The HTTP server presumably will set the responseTo attribute of its response to the same value as the requestID attribute of the request. You would then specify the responseTo attribute as the Candidate Event Key and the requestID attribute of the HTTP request as the "key" in the Input tab.

This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO BusinessWorks Process Design Guide for more information about XPath expressions.

Event Timeout (msec) A message may arrive before this activity is executed. This field specifies the amount of time (in milliseconds) a message will wait if it is received before this activity is reached. If the event timeout expires, an error is logged and the event is discarded

When building an expression in the Candidate Event Key field, only data from the incoming event is available. The idea is that you want to place an expression containing incoming event data in the Candidate Event Key field. When the results of this expression match the results of the expression in the "key" item on the Input tab, the Wait For HTTP Request activity proceeds.

TIBCO BusinessWorks Palette Reference

Page 159: TIBCO Business Works - Palette Reference - Nov 2002

Wait for HTTP Request | 137

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

input Object The root class for the input of the Wait for HTTP Request activity. This class contains all input items for the activity.

key string The value that is compared to the Candidate Event Key field of the Event tab to determine if this message applies to this process. See Event on page 136 for an example of using the Candidate Event Key field with the key input item.

timeout integer The time (in milliseconds) to wait for the incoming message. An error is returned if the message is not received within this time limit.

Output Item Datatype Description

ProcessStarterOutput Object The root class for the output of the Wait for HTTP Request activity. This class contains all output items for the activity.

Method string Whether the request is a GET or POST method.

RequestURI string The address portion of the request. This is the portion before the question mark (?).

HTTPVersion string Version field of the HTTP request.

TIBCO BusinessWorks Palette Reference

Page 160: TIBCO Business Works - Palette Reference - Nov 2002

138 | HTTP Palette

PostData string The data portion for a POST request.

Command string Command portion of the HTTP request.

QueryString string The query string portion of the request. This is the portion after the question mark (?).

Header string The header of the HTTP request.

Headers object The fields of the header specified on the Headers tab. See the description of the Headers tab for more information about these items.

parameters object Parameters for the incoming request. These parameters are configured in the Attributes field on the Configuration tab.

These parameters are available as a schema tree if the Parse Post Method Data checkbox is checked.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 161: TIBCO Business Works - Palette Reference - Nov 2002

| 139

Chapter 9 JDBC Palette

The JDBC palette contains activities for querying, updating, or calling stored procedures within a database.

Topics

• JDBC Call Procedure, page 140

• JDBC Query, page 143

• JDBC Update, page 148

• Query Designer, page 151

• SQL Direct, page 156

TIBCO BusinessWorks Palette Reference

Page 162: TIBCO Business Works - Palette Reference - Nov 2002

140 | JDBC Palette

JDBC Call Procedure

The JDBC Call Procedure activity calls a database procedure using the specified JDBC connection.

If this activity is not part of a transaction group, it is committed after it completes. If this activity is part of a transaction group, it is committed

or rolled back with the other JDBC activities within the group at the end of the transaction. See TIBCO BusinessWorks Process Design Guide for more information about creating groups for transactions.

If you wish to override the default behavior of transaction groups for certain JDBC activities within a transaction group, you can check the Override transaction behavior field. This specifies that the activity is outside of the transaction and is committed when it completes, even if it is within a transaction group.

The Refresh button on this activity allows you to synchronize the activity with the contents of the database. This is useful if you make a change to the database while you are editing a process definition containing this activity in TIBCO BusinessWorks.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Shared Configuration Path to the shared configuration resource containing the JDBC connection information. See JDBC Connection on page 315 for more information about JDBC resources.

TIBCO BusinessWorks Palette Reference

Page 163: TIBCO Business Works - Palette Reference - Nov 2002

JDBC Call Procedure | 141

Procedure Name Name of the database procedure to call. You can use the Select Procedure button to query the database for available procedures once the JDBC Connection field is specified.

Note: The input parameters and output parameters for the procedure are displayed when you use the Select Procedure button. TIBCO Designer retrieves the signature of each stored procedure from the database once. If you change the stored procedure while editing your project, you must click the Refresh button to retrieve the changes from the database.

Catalog/Package The catalog or package in which the procedure resides. This name is used to resolve naming conflicts if more than one catalog or package in the database has the selected procedure with the same name.

This field is only applicable to databases that have more than one catalog/package. See your database documentation for more information about catalogs/packages.

Schema The schema in which the procedure resides. This name is used to resolve naming conflicts if more than one schema in the database has the selected procedure with the same name.

Timeout (sec) Time to wait for the procedure call to complete. If the call does not complete within the given time limit, an error is returned.

Override transaction behavior

Overrides the default behavior of a transaction group. If this activity is within a transaction group, the activity is normally committed or rolled back with the other JDBC activities within the transaction.

If this checkbox is checked, this activity is not part of the transaction group and is committed when it completes. Checking this option uses a separate database connection to perform the activity and commit the SQL statement.

Maximum Rows The maximum number of rows to retrieve.

Field Description

TIBCO BusinessWorks Palette Reference

Page 164: TIBCO Business Works - Palette Reference - Nov 2002

142 | JDBC Palette

InputThe input for this activity is dependent upon the input parameters of the database procedure.

OutputThe output for the activity is dependent upon the output parameters of the database procedure.

Input Item Datatype Description

inputs Object The root class for the input of the JDBC Call Procedure activity. This class contains all input items for the activity.

inputSet Object The input parameters of the database procedure. The datatype contained within this object varies depending upon the parameters specified for the database procedure.

Output Item Datatype Description

resultSet Object The root class for the output of the JDBC Call Procedure activity. This class contains all output items for the activity.

outputSet Object The output of the database procedure. The datatype contained within this object varies depending upon what the database procedure returns.

TIBCO BusinessWorks Palette Reference

Page 165: TIBCO Business Works - Palette Reference - Nov 2002

JDBC Query | 143

JDBC Query

The JDBC Query activity performs the specified SQL SELECT statement.

If this activity is not part of a transaction group, it is committed after it completes. If this activity is part of a transaction group, it is committed

or rolled back with the other JDBC activities within the group at the end of the transaction. See TIBCO BusinessWorks Process Design Guide for more information about creating groups for transactions.

If you wish to override the default behavior of transaction groups for certain JDBC activities within a transaction group, you can check the Override transaction behavior field. This specifies that the activity is outside of the transaction and is committed when it completes, even if it is within a transaction group.

The Refresh button on this activity allows you to synchronize the activity with the contents of the database. This is useful if you make a change to the database while you are editing a process definition containing this activity in TIBCO BusinessWorks. The Refresh button also is useful if you enable the Manual Refresh field on the Configuration tab.

unknownResultSets Object The output of the database procedure may return other result sets. These result sets are returned in this output item as an XML string. Create a Schema Definition shared configuration resource to describe these result sets, then use the Parse XML activity to parse the XML based on the schema. You can then use the parsed output in subsequent activities.

See the release notes for a more detailed description of this procedure.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 166: TIBCO Business Works - Palette Reference - Nov 2002

144 | JDBC Palette

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Shared Configuration Path to the shared configuration resource containing the JDBC connection information. See JDBC Connection on page 315 for more information about JDBC resources.

SQL Statement The SQL SELECT statement to perform in the database. There is a wizard available to build the query for the desired database. See Query Designer on page 151 for more information about using the Query Designer wizard.

Timeout (sec) Time (in seconds) to wait for the query to complete. If the query does not complete within the given time limit, an error is returned.

Override transaction behavior

Overrides the default behavior of a transaction group. If this activity is within a transaction group, the activity is normally committed or rolled back with the other JDBC activities within the transaction.

If this checkbox is checked, this activity is not part of the transaction group and is committed when it completes. Checking this option uses a separate database connection to perform the activity and commit the SQL statement.

Maximum Rows The maximum number of rows to retrieve.

TIBCO BusinessWorks Palette Reference

Page 167: TIBCO Business Works - Palette Reference - Nov 2002

JDBC Query | 145

Prepared parameters and their datatypes

If you wish to replace static names within the SQL statement with process variables, you must edit the SQL Statement field and replace the variable items with a question mark (?). For example, if you wish to specify a variable for the first column returned, you would specify the following SQL statement:

SELECT DEMO.ITEM.ITEM_ID FROM DEMO.ITEMWHERE DEMO.ITEM.ITEM_ID = ?

The ? replaces the value in the WHERE clause, and you can then provide input to the SQL statement from process data on the input tab.

When you add question marks to SQL statements, a list of prepared parameters appears (one parameter for each question mark). You must supply the datatype of each parameter to the SQL statement, and this datatype is used in the input schema for the statement.

At runtime, any parameters you place within the SQL statement are replaced with the mapped values for those parameters on the Input tab.

Note: Editing the SQL statement disables the Design tab of the Query Designer wizard. Make sure you have designed the query you need before editing it and inserting question marks for process variables. If your question marks are in the WHERE clause, you can put those conditions into the Design tab in the Where fields of each column. This will allow you to keep the design tab available and still have process variables in your query.

Field Description

TIBCO BusinessWorks Palette Reference

Page 168: TIBCO Business Works - Palette Reference - Nov 2002

146 | JDBC Palette

Use Nil Specifies whether NULLs are represented as optional schema elements or whether each item that can contain a NULL has sub-items.

For example, in the following schema, the NAME column can contain NULLs. If Use Nil is unchecked, the NAME element appears with a ? indicating it is optional (and if the column is NULL, the schema item is not included for that row). If Use Nil is checked, the NAME element is not optional, and it has two sub-items, @nil and Text. The @nil item indicates whether the column value for the row is NULL, the Text item contains the column value when the column is not NULL.

Field Description

Use Nil Checked Use Nil Unhecked

TIBCO BusinessWorks Palette Reference

Page 169: TIBCO Business Works - Palette Reference - Nov 2002

JDBC Query | 147

InputThe input for the activity is the following.

Manual Refresh TIBCO BusinessWorks refreshes the schema from the database when any operation may cause the input or output schema for this activity to change. For example, editing the SQL Statement may cause the output schema to change. However, not all changes actually cause a change in the input or output schemas, so you may wish to prevent automatic schema refreshing to improve performance.

Checking this field causes TIBCO BusinessWorks to stop automatically querying the database for changes in input and output schema when configuring the activity. If you want to refresh the schema from the database, you must use the Refresh button on this activity.

This field is useful if you make several changes to a query’s WHERE clause, but make no changes to the list of columns to return. For large databases, each change would require a refresh from the database, and this can dramatically slow performance. WIth manual schema refreshing, the schema is only refreshed when you click the Refresh button.

Field Description

Input Item Datatype Description

jdbcQueryActivityInput Object The root class for the input of the JDBC Query activity. This class contains all input items for the activity.

Prepared_Param_* varies The list of prepared parameters supplied in the SQL statement. Prepared parameters allow you to substitute process data for items within the SQL statement. See the description of the Prepared parameters field on the Configuration tab.

TIBCO BusinessWorks Palette Reference

Page 170: TIBCO Business Works - Palette Reference - Nov 2002

148 | JDBC Palette

OutputThe output for the activity is the following.

JDBC Update

The JDBC Update activity performs the specified SQL INSERT, UPDATE, or DELETE statement.

If this activity is not part of a transaction group, it is committed after it completes. If this activity is part of a transaction group, it is

committed or rolled back with the other JDBC activities within the group at the end of a transaction. See TIBCO BusinessWorks Process Design Guide for more information about creating groups for transactions.

If you wish to override the default behavior of transaction groups for certain JDBC activities within a transaction group, you can check the Override Transaction behavior field. This specifies that the activity is outside of the transaction and is committed when it completes, even if it is within a transaction group.

ConfigurationThe Configuration tab has the following fields:

Output Item Datatype Description

resultSet Object The root class for the output of the JDBC Query activity. This class contains all output items for the activity.

Record Object The result of the database query. The result object depends upon the columns returned by the query.

Field Description

Name The name to appear as the label for this field in the process definition.

TIBCO BusinessWorks Palette Reference

Page 171: TIBCO Business Works - Palette Reference - Nov 2002

JDBC Update | 149

Description Short description of the activity.

Shared Configuration Path to the shared configuration resource containing the JDBC connection information. See JDBC Connection on page 315 for more information.

SQL Statement The SQL INSERT, UPDATE, or DELETE statement to perform.

Timeout (sec) The time to wait for the statement to complete.

Override Transaction Behavior Overrides the default behavior of a transaction group. If this activity is within a transaction group, the activity is normally committed or rolled back with the other JDBC activities within the transaction.

If this checkbox is checked, this activity is not part of the transaction group and is committed when it completes. Checking this option uses a separate database connection to perform the activity and commit the SQL statement.

Field Description

TIBCO BusinessWorks Palette Reference

Page 172: TIBCO Business Works - Palette Reference - Nov 2002

150 | JDBC Palette

InputThe input for the activity is the following:

Prepared Parameters and Their Datatypes

If you wish to replace static names within the SQL statement with process variables, you must edit the SQL statement field and replace the variable items with a question mark (?). For example, you might specify the following statement:

UPDATE emp SET ename = ?, phone = ?WHERE id = ?

When you add question marks to SQL statements, a list of prepared parameters appears (one parameter for each question mark). You must supply the datatype of each parameter to the SQL statement, and this datatype is used in the input schema.

At runtime, any parameters you place within the SQL statement are replaced with the mapped values for those parameters.

For INSERT and DELETE statements, all prepared parameters will appear as required items in the Input tab. For UPDATE statements, all prepared parameters will appear as optional in the Input tab, but you must supply a value for at least one column in the statement or a runtime error occurs.

Field Description

Input Item Datatype Description

jdbcUpdateActivityInput Object The root class for the input of the JDBC Update activity. This class contains all input items for the activity.

TIBCO BusinessWorks Palette Reference

Page 173: TIBCO Business Works - Palette Reference - Nov 2002

Query Designer | 151

OutputThe output for the activity is the following:

Query Designer

The Query Designer is a GUI tool for building SQL queries, testing syntax, and previewing results before running the process. You can use the Query Designer in one of the following ways:

• to automatically generate SQL queries

• to manually edit and check the syntax of existing queries

Prepared_Param_* varies The list of the prepared parameters supplied in the SQL statement. Prepared parameters allow you to substitute process data for items within the SQL statement. See the description of the Prepared Parameters field on the Configuration tab.

Input Item Datatype Description

Output Item Datatype Description

jdbcUpdateActivityOutput Object The root class for the output of the JDBC Update activity. This class contains all output items for the activity.

noOfUpdates integer The number of updates performed by the statement specified on the Configuration tab.

TIBCO BusinessWorks Palette Reference

Page 174: TIBCO Business Works - Palette Reference - Nov 2002

152 | JDBC Palette

In the JDBC Query activity, you must first specify a JDBC Connection shared configuration resource to connect to a database. Once the database connection is specified in the JDBC Query activity, you can click on the Build Using Wizard button to create a query using the Query Designer wizard. Figure 11 illustrates the query designer.

Figure 11 The query designer wizard

The Query Designer window has the following elements:

• a Database Schema panel, where schema information for the specified database and user is displayed in a tree structure.

• a Table Diagram panel, where you can drag and drop tables from the Schema panel to build a SQL query.

• a SQL panel, where you can design, refine, view, and test the query. This panel has three tabs for designing, editing, and testing your queries.

You can use the Design tab of the Query Designer to automatically generate queries. You can then click on the SQL tab of the Query Designer to manually edit the query, if you wish. To manually edit the query, click the Customize checkbox on the SQL tab. On the SQL tab, you can drag and drop columns into the statement.

TIBCO BusinessWorks Palette Reference

Page 175: TIBCO Business Works - Palette Reference - Nov 2002

Query Designer | 153

After you customize a query on the SQL tab, you cannot go back to the design tab without loosing your changes. You should first create a query using the Design tab that is close to the query you want, then click the Customize checkbox on the SQL tab to further customize it as needed.

To use the Query Designer to generate a query, perform this procedure:

1. Drag tables to include in the query from the Database Schema panel to the Table Diagram panel. Any joins defined between primary keys in the database are displayed.

For example:

This example demonstrates building a query that retrieves names of customers that also have placed orders. After dragging the CUSTOMER and SALES_ORDER tables from the Database Schema panel to the Table Diagram panel, a join is automatically displayed between the CUSTOMER_ID column in each table. You can also manually add joins by dragging the cursor from one join column to the other.

Clicking the SQL tab in the SQL panel shows the automatically generated syntax:

SELECT *FROM DEMO.CUSTOMER, DEMO.SALES_ORDERWHERE (DEMO.CUSTOMER.CUSTOMER_ID = DEMO.SALES_ORDER.CUSTOMER_ID)

TIBCO BusinessWorks Palette Reference

Page 176: TIBCO Business Works - Palette Reference - Nov 2002

154 | JDBC Palette

By default, all table columns are included in the query. To constrain query syntax, click the Design tab in the SQL panel. You can drag individual columns from the Table Diagram panel to the Add Column area of this tab to refine the query. The Add Column entry is a placeholder only, and does not affect the output. It is meant to be the area where you can drag columns from the tables to add to the query.

The following example shows the results of dragging the CUSTOMER_ID, NAME, TOTAL, and SALESPERSON_ID columns to the SQL tab:

Clicking the SQL tab to view the modified syntax shows the query now selects only from the set of columns:

SELECT DEMO.CUSTOMER.CUSTOMER_ID, DEMO.CUSTOMER.NAME, DEMO.CUSTOMER.SALESPERSON_ID, DEMO.SALES_ORDER.TOTALFROM DEMO.CUSTOMER, DEMO.SALES_ORDERWHERE (DEMO.CUSTOMER.CUSTOMER_ID = DEMO.SALES_ORDER.CUSTOMER_ID)

2. To group sales by customer and show sales totals, perform the following:

— For the TOTAL column, click in the Total field and select Sum from the list. The other columns are automatically updated to select the Group By value required for this function.

— For the CUSTOMER_ID column, click the Show checkbox to deselect it. This column is necessary for the query, but can be hidden in the output.

Clicking the SQL tab to view the syntax shows the SUM function and GROUP BY clause has been added to the SQL:

SELECT DEMO.CUSTOMER.NAME, DEMO.CUSTOMER.SALESPERSON_ID, SUM(DEMO.SALES_ORDER.TOTAL)FROM DEMO.CUSTOMER, DEMO.SALES_ORDERWHERE (DEMO.CUSTOMER.CUSTOMER_ID = GROUP BY DEMO.CUSTOMER.CUSTOMER_ID, DEMO.CUSTOMER.NAME, DEMO.CUSTOMER.SALESPERSON_ID

Other criteria can be applied using the Sort, Criteria, and Or fields.

3. To check the SQL syntax, click the Check Syntax button.

A dialog displays either a success message, or a database error code and message.

TIBCO BusinessWorks Palette Reference

Page 177: TIBCO Business Works - Palette Reference - Nov 2002

Query Designer | 155

4. After checking the syntax, click the Execute button on the Test tab to preview the query results:

A representative number of rows, specified by the Max Rows value, is returned.

5. When the query returns the desired result set, click OK.

The SQL syntax is automatically entered in the SQL Statement field of the Database task.

The following usage restrictions apply to the Query Designer:

• You can build, modify, and test SQL queries only, not update statements or stored procedures.

• Only queries that are automatically generated can be manipulated and regenerated using the Design tab features. Query syntax that was manually typed in the SQL Statement field can be modified by typing or dropping column names on the SQL tab. The syntax checking and preview results features can also be used.

• After manually editing an automatically generated query on the SQL tab, your changes will be lost if you uncheck the Customize box on the SQL tab and return to the Design tab.

• If you wish to select columns with the same name from different tables, you must specify column aliases for the columns that have the same name. In SQL, you may select columns with the same name from different tables in the same SQL statement, however, TIBCO BusinessWorks requires that all names within an input or output schema be unique. Therefore, you must specify column aliases to ensure that all items within the output schema for a query are unique.

TIBCO BusinessWorks Palette Reference

Page 178: TIBCO Business Works - Palette Reference - Nov 2002

156 | JDBC Palette

SQL Direct

The SQL Direct activity executes a SQL statement that you provide. This activity allows you to build a SQL statement dynamically (using other activities), then pass the SQL statement into this activity’s input. This

activity also allows you to execute SQL statements that are not supported by other activities in the JDBC palette. For example, DDL commands (for example, CREATE TABLE) are not available by using any other activity.

If this activity is not part of a transaction group, it is committed after it completes. If this activity is part of a transaction group, it is committed or rolled back with the other JDBC activities within the group at the end of the transaction. See TIBCO BusinessWorks Process Design Guide for more information about creating groups for transactions.

If you wish to override the default behavior of transaction groups for certain JDBC activities within a transaction group, you can check the Override transaction behavior field. This specifies that the activity is outside of the transaction and is committed when it completes, even if it is within a transaction group.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Shared Configuration Path to the shared configuration resource containing the JDBC connection information. See JDBC Connection on page 315 for more information about JDBC resources.

Timeout (sec) Time (in seconds) to wait for the query to complete. If the query does not complete within the given time limit, an error is returned.

TIBCO BusinessWorks Palette Reference

Page 179: TIBCO Business Works - Palette Reference - Nov 2002

SQL Direct | 157

InputThe input for the activity is the following.

OutputThe output for the activity is the following.

Override transaction behavior

Overrides the default behavior of a transaction group. If this activity is within a transaction group, the activity is normally committed or rolled back with the other JDBC activities within the transaction.

If this checkbox is checked, this activity is not part of the transaction group and is committed when it completes. Checking this option uses a separate database connection to perform the activity and commit the SQL statement.

Maximum Rows The maximum number of rows to retrieve.

Field Description

Input Item Datatype Description

jdbcGeneralActivityInput Object The root class for the input of the SQL Direct activity. This class contains all input items for the activity.

statement string The SQL statement you wish to execute. You can use any process variables to build the statement dynamically, if desired.

Output Item Datatype Description

jdbcGeneralActivityOutput Object The root class for the output of the SQL Direct activity. This class contains all output items for the activity

TIBCO BusinessWorks Palette Reference

Page 180: TIBCO Business Works - Palette Reference - Nov 2002

158 | JDBC Palette

noOfUpdates integer The number of updates performed by the statement.

There could be more than one statement performed (for example, if a stored procedure is executed). Because of this, this item is a list of integers. Each item in the list corresponds to the number of updates performed by each statement. The first integer in the list is the number of updates performed by the first statement executed by this activity. The second integer is the number of updates performed by the second statement, and so on.

unknownResultSet Object The result of the database statement. The result object depends upon what is returned by the statement.

The result set is a list of zero or more rows with zero or more columns. Each column contains a name and a value element. You can use XPath expressions to retrieve the desired row and column from the result set.

There could be multiple result sets returned by the statements executed by this activity. Because of this, this output item is a repeatable list of result sets. The first item in the list of result sets corresponds to the result set returned by the first statement executed by this activity. The second item in the list of result sets corresponds to the result set returned by the second statement executed by this activity, and so on.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 181: TIBCO Business Works - Palette Reference - Nov 2002

| 159

Chapter 10 JMS Palette

Java Message Service (JMS) is a specification for how messages are sent and received between applications in a Java environment.

The JMS palette is used to send and receive JMS messages within a process definition. Both the JMS point-to-point (queues) and publish/subscribe (topics) models are supported.

Refer to the documentation of your JMS provider or the JMS specification for more information about JMS and its message models.

Topics

• JMS Properties, page 160

• JMS Queue Receiver, page 163

• JMS Queue Requestor, page 167

• JMS Queue Sender, page 173

• JMS Topic Publisher, page 177

• JMS Topic Requestor, page 181

• JMS Topic Subscriber, page 187

• Reply To JMS Message, page 191

• Wait for JMS Queue Message, page 195

• Wait for JMS Topic Message, page 200

TIBCO BusinessWorks Palette Reference

Page 182: TIBCO Business Works - Palette Reference - Nov 2002

160 | JMS Palette

JMS Properties

Table 1 table describes message headers and message properties used in JMS messages. MessageHeader properties are set by the JMS application sending the message and are available to view once the message is received. MessageProperties can be set on outgoing messages using the Input tab of the activity that sends the message.

Table 1 Properties for JMS Messages

Property Datatype Description

MessageHeaders

JMSDestination string Destination to where a message is sent.

JMSReplyTo string The JMS application where the reply message should be sent.

JMSDeliveryMode string The delivery mode of the message. Can be one of the following:

• PERSISTENT — signifies the messages are stored and forwarded.

• NON_PERSISTENT — messages are not stored and may be lost due to failures in transmission.

JMSMessageID string The unique ID of the message.

JMSTimestamp long The time a message was handed off to a JMS provider to be sent. The time is expressed as the amount of time, in milliseconds, since midnight, January 1, 1970, UTC.

TIBCO BusinessWorks Palette Reference

Page 183: TIBCO Business Works - Palette Reference - Nov 2002

JMS Properties | 161

JMSExpiration long The expiration time of the message. The time is expressed as the amount of time, in milliseconds since midnight, January 1, 1970, UTC. If set to 0, the message does not expire.

For outgoing messages, this is set by specifying the "Time to live" field on the activity’s configuration tab.

JMSRedelivered boolean Typically this item is set when the JMS provider has delivered the message at least once before.

JMSPriority integer The priority of the message. Priority is a value from 0-9. Higher numbers signify a higher priority (that is, 9 is a higher priority than 8).

For outgoing messages, the default priority is 4. This is set on the activity’s Advanced tab.

JMSCorrelationID string This ID is used to link a response message with its related request message. This is usually the message ID of a request message when this field is found within a reply message.

JMSType string The JMS provider-supplied string to describe the type of the message. Some JMS providers use this property to define messages in the provider’s repository. See your JMS provider documentation for more information about the use of this field.

Table 1 Properties for JMS Messages

Property Datatype Description

TIBCO BusinessWorks Palette Reference

Page 184: TIBCO Business Works - Palette Reference - Nov 2002

162 | JMS Palette

MessageProperties

JMSXUserID string The ID of the user sending the message.

This property is optionally set on incoming messages by the JMS application. This property is not set on outgoing messages.

JMSXAppID string The ID of the application sending the message.

This property is optionally set on incoming messages by the JMS application. This property is not set on outgoing messages.

JMSXProducerTIXID string The transaction identifier of the transaction within which this message was produced.

This property is optionally set on incoming messages by the JMS application. This property is not set on outgoing messages.

JMSXConsumerTXID string The transaction identifier of the transaction within which this message was consumed.

This property is optionally set on incoming messages by the JMS application. This property is not set on outgoing messages.

Table 1 Properties for JMS Messages

Property Datatype Description

TIBCO BusinessWorks Palette Reference

Page 185: TIBCO Business Works - Palette Reference - Nov 2002

JMS Queue Receiver | 163

JMS Queue Receiver

Starts a process based on the receipt of a message for the specified JMS queue.

JSMXRcvTimestamp integer The time JMS delivered the message to the consumer. The time is expressed as the amount of time, in milliseconds since midnight, January 1, 1970, UTC.

This property is optionally set on incoming messages by the JMS application. This property is not set on outgoing messages.

JMSXDeliveryCount integer The number of delivery attempts for this message.

JMSXGroupID string The identity of the message group this message is a part of.

You can set this property on outgoing messages to group messages into a numbered sequence.

JMSXGroupSeq integer The sequence number of this message within its group.

You can set this property on outgoing messages to group messages into a numbered sequence.

Table 1 Properties for JMS Messages

Property Datatype Description

TIBCO BusinessWorks Palette Reference

Page 186: TIBCO Business Works - Palette Reference - Nov 2002

164 | JMS Palette

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Queue Name of the queue of the incoming message.

The syntax of the queue name is specific to the JMS provider you are using. See your JMS provider documentation for more information about queue names.

Connection reference The JMS connection. See JMS Connection on page 318 for more information about creating a JMS connection.

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String.

• XML Text — the message is XML text.

TIBCO BusinessWorks Palette Reference

Page 187: TIBCO Business Works - Palette Reference - Nov 2002

JMS Queue Receiver | 165

Output XML Schema XML Schema that describes the data of the incoming message. This field allows you to specify an XML schema to use for validating the body of the message.

The incoming message body is parsed into an XML schema based on the schema definition specified in this field.

Output Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Output XML Schema field.

Acknowledge Mode The acknowledge mode for incoming messages. Can be one of the following:

• Auto — the message is automatically acknowledged when it is received.

• Client — the message will be acknowledged at a later point by using the Confirm activity.

• Dups OK — the message is acknowledged automatically when it is received. JMS provides this mode for lazy acknowledgement, but BusinessWorks acknowledges messages upon receipt.

Max Sessions When the Acknowledge Mode field is set to "Client", this field appears for specifying the maximum number of JMS sessions to create for incoming messages.

When a JMS queue message is received, the session is blocked until the message is acknowledged. Because the acknowledgement can come at a later time with the Confirm activity, this field allows you to specify a maximum number of new sessions to create to handle incoming messages.

Once the maximum number of sessions is reached, no new incoming messages can be processed. Once an incoming message is confirmed, the total number of active sessions is decreased and another incoming message can be processed.

Field Description

TIBCO BusinessWorks Palette Reference

Page 188: TIBCO Business Works - Palette Reference - Nov 2002

166 | JMS Palette

AdvancedThe advanced tab has the following fields.

DataThe Data tab defines the schema to use for incoming messages whose message type is "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the incoming message. Once defined, the schema on the Data tab becomes the structure used for the body of the message displayed on the Output tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

OutputThe output for the activity is the following.

Field Description

Message selector A string to determine whether a message should be received. The syntax of the message selector is determined by the JMS provider, but it is usually a subset of SQL92 (where message properties are used instead of table column names).

See your JMS provider documentation for more information and syntax for a message selector string.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

Output Item Datatype Description

ActivityOutput Object The root class for the output of the JMS Queue Receiver activity. This class contains all output items for the activity.

TIBCO BusinessWorks Palette Reference

Page 189: TIBCO Business Works - Palette Reference - Nov 2002

JMS Queue Requestor | 167

JMS Queue Requestor

The JMS Queue Requestor activity is used to send a request to a JMS queue name and receive a response back from the JMS client.

JMSHeaders Object The message header fields for the message. See JMS Properties on page 160 for more information about message header fields.

Only properties applicable to this type of message are displayed.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

Only properties applicable to this type of message are displayed.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon the message type

The body of the message.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 190: TIBCO Business Works - Palette Reference - Nov 2002

168 | JMS Palette

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Queue Name of the queue of the outgoing message.

The syntax of the queue name is specific to the JMS provider you are using. See your JMS provider documentation for more information about queue names.

Connection reference The JMS connection. See JMS Connection on page 318 for more information about creating a JMS connection.

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String.

• XML Text — the message is XML text.

TIBCO BusinessWorks Palette Reference

Page 191: TIBCO Business Works - Palette Reference - Nov 2002

JMS Queue Requestor | 169

Input XML Schema XML schema that describes the data of the outgoing request.

For XML Text messages, the body of the message is an XML schema. This field allows you to specify an XML schema to use for validating the body of the message.

The body of the outgoing request is represented as an XML schema in the Input tab.

Input Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Input XML Schema field.

Output XML Schema XML Schema that describes the data of the incoming response.

For XML Text messages, the body of the message is an XML schema. This field allows you to specify an XML schema to use for validating the body of the message.

The body of the incoming response is represented as an XML schema in the Output tab.

Output Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Output XML Schema field.

Field Description

TIBCO BusinessWorks Palette Reference

Page 192: TIBCO Business Works - Palette Reference - Nov 2002

170 | JMS Palette

AdvancedThe advanced tab has the following fields.

Input Data/Output DataThe Input Data/Output Data tabs define the schema to use for messages of type "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the outgoing request and the incoming reply. The schema defined on the Input Data tab becomes the body of the message on the Input tab. The schema defined on the Output Data tab becomes the body of the message on the Output tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

Field Description

Delivery mode The delivery mode of the message. Can be one of the following:

• PERSISTENT — signifies the messages are stored and forwarded.

• NON_PERSISTENT — messages are not stored and may be lost due to failures in transmission.

Time to live (secs) Corresponds to JMSExpiration property that specifies how long the message can remain active (in seconds).

If set to 0, the message does not expire.

This field is set in seconds, but the JMSExpiration property is displayed in milliseconds.

Priority Priority of the message. You may set the priority to a value from 0-9. The default value is 4.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

TIBCO BusinessWorks Palette Reference

Page 193: TIBCO Business Works - Palette Reference - Nov 2002

JMS Queue Requestor | 171

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

ActivityInput Object The root class for the input of the JMS Queue Requestor activity. This class contains all input items for the activity.

destinationQueue string The queue to which to send the request. This input item overrides the Queue field on the Configuration tab.

replyToQueue string The queue to which replies should be sent for this request.

requestTimeout integer Corresponds to JMSExpiration property that specifies how long the message can remain active (in seconds).

If set to 0, the message does not expire.

This item is set in seconds, but the JMSExpiration property is displayed in milliseconds.

This item overrides the timeout set on the Advanced tab.

JMSCorrelationID string This ID is used to link a response message with its related request message. This is usually the message ID of a request message when this field is found within a reply message.

TIBCO BusinessWorks Palette Reference

Page 194: TIBCO Business Works - Palette Reference - Nov 2002

172 | JMS Palette

OutputThe output for the activity is the following.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

Only properties applicable to this type of message are displayed.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon message type

The body of the message.

Input Item Datatype Description

Output Item Datatype Description

ActivityOutput Object The root class for the output of the JMS Queue Requestor activity. This class contains all output items for the activity.

JMSHeaders Object The message header fields for the message. See JMS Properties on page 160 for more information about message header fields.

Only properties applicable to this type of message are displayed.

TIBCO BusinessWorks Palette Reference

Page 195: TIBCO Business Works - Palette Reference - Nov 2002

JMS Queue Sender | 173

JMS Queue Sender

The JMS Queue Sender activity sends a message to the specified JMS queue.

ConfigurationThe configuration tab has the following fields.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

Only properties applicable to this type of message are displayed.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon message type

The body of the message.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 196: TIBCO Business Works - Palette Reference - Nov 2002

174 | JMS Palette

Queue Name of the queue of the outgoing message.

The syntax of the queue name is specific to the JMS provider you are using. See your JMS provider documentation for more information about queue names.

Connection reference The JMS connection. See JMS Connection on page 318 for more information about creating a JMS connection.

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String

• XML Text — the message is XML text.

Input XML Schema XML schema that describes the data of the outgoing message.

For XML Text messages, the body of the message is an XML schema. This field allows you to specify an XML schema to use for validating the body of the message.

The body of the outgoing message is represented as an XML schema in the Input tab.

Input Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Input XML Schema field.

Field Description

TIBCO BusinessWorks Palette Reference

Page 197: TIBCO Business Works - Palette Reference - Nov 2002

JMS Queue Sender | 175

AdvancedThe advanced tab has the following fields.

DataThe Data tab defines the schema to use for outgoing messages whose message type is "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the outgoing message. Once defined, the schema on the Data tab becomes the structure used for the body of the message displayed on the Input tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

Field Description

Reply-to destination The name of the queue to which replies should be sent. This field is optional, and replies are sent to the queue specified on the Configuration tab by default.

Delivery mode The delivery mode of the message. Can be one of the following:

• PERSISTENT — signifies the messages are stored and forwarded.

• NON_PERSISTENT — messages are not stored and may be lost due to failures in transmission.

Time to live (secs) Corresponds to JMSExpiration property that specifies how long the message can remain active (in seconds).

If set to 0, the message does not expire.

This field is set in seconds, but the JMSExpiration property is displayed in milliseconds.

Priority Priority of the message. You may set the priority to a value from 0-9. The default value is 4.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

TIBCO BusinessWorks Palette Reference

Page 198: TIBCO Business Works - Palette Reference - Nov 2002

176 | JMS Palette

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

ActivityInput Object The root class for the input of the JMS Queue Sender activity. This class contains all input items for the activity.

destinationQueue string The queue to which to send the request. This input item overrides the Queue field on the Configuration tab.

replyToQueue string The queue to which replies should be sent for this request. This input item overrides the reply to destination specified on the Advanced tab.

JMSCorrelationID string This ID is used to link a response message with its related request message. This is usually the message ID of a request message when this field is found within a reply message.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

Only properties applicable to this type of message are displayed.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

TIBCO BusinessWorks Palette Reference

Page 199: TIBCO Business Works - Palette Reference - Nov 2002

JMS Topic Publisher | 177

OutputThe output for the activity is the following.

JMS Topic Publisher

The JMS Topic Publisher sends a message to the specified JMS topic.

ConfigurationThe configuration tab has the following fields.

Body depends upon message type

The body of the message.

Input Item Datatype Description

Output Item Datatype Description

OutputClass Object The root class for the output of the JMS Queue Sender activity. This class contains all output items for the activity.

MessageID string The unique identifier of the message.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 200: TIBCO Business Works - Palette Reference - Nov 2002

178 | JMS Palette

Topic Name of the topic of the outgoing message.

The syntax of the topic name is specific to the JMS provider you are using. See your JMS provider documentation for more information about topic names.

Connection reference The JMS connection. See JMS Connection on page 318 for more information about creating a JMS connection.

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String.

• XML Text — the message is XML text.

Input XML Schema XML schema that describes the data of the outgoing message.

For XML Text messages, the body of the message is an XML schema. This field allows you to specify an XML schema to use for validating the body of the message.

The body of the outgoing message is represented as an XML schema in the Input tab.

Input Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Input XML Schema field.

Field Description

TIBCO BusinessWorks Palette Reference

Page 201: TIBCO Business Works - Palette Reference - Nov 2002

JMS Topic Publisher | 179

AdvancedThe advanced tab has the following fields.

DataThe Data tab defines the schema to use for outgoing messages whose message type is "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the outgoing message. Once defined, the schema on the Data tab becomes the structure used for the body of the message displayed on the Input tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

Field Description

Reply-to destination The name of the topic to which replies should be sent. This field is optional, and replies are sent to the topic specified on the Configuration tab by default.

Delivery mode The delivery mode of the message. Can be one of the following:

• PERSISTENT — signifies the messages are stored and forwarded.

• NON_PERSISTENT — messages are not stored and may be lost due to failures in transmission.

Time to live (secs) Corresponds to JMSExpiration property that specifies how long the message can remain active (in seconds).

If set to 0, the message does not expire.

This field is set in seconds, but the JMSExpiration property is displayed in milliseconds.

Priority Priority of the message. You may set the priority to a value from 0-9. The default value is 4.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

TIBCO BusinessWorks Palette Reference

Page 202: TIBCO Business Works - Palette Reference - Nov 2002

180 | JMS Palette

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

ActivityInput Object The root class for the input of the JMS Topic Publisher activity. This class contains all input items for the activity.

destinationTopic string The topic to which to send the request. This input item overrides the Topic field on the Configuration tab.

replyToTopic string The topic to which replies should be sent for this request. This input item overrides the Reply-to destination on the Advanced tab.

JMSCorrelationID string This ID is used to link a response message with its related request message. This is usually the message ID of a request message when this field is found within a reply message.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

Only properties applicable to this type of message are displayed.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

TIBCO BusinessWorks Palette Reference

Page 203: TIBCO Business Works - Palette Reference - Nov 2002

JMS Topic Requestor | 181

OutputThe output for the activity is the following.

JMS Topic Requestor

The JMS Topic Requestor activity is used to communicate with a JMS application’s request-response service. This service invokes an operation with input and output. The request is sent to a JMS topic and the JMS application returns the response to the request.

ConfigurationThe configuration tab has the following fields.

Body depends upon message type

The body of the message.

Input Item Datatype Description

Output Item Datatype Description

OutputClass Object The root class for the output of the JMS Topic Publisher activity. This class contains all output items for the activity.

MessageID string The unique identifier of the message.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 204: TIBCO Business Works - Palette Reference - Nov 2002

182 | JMS Palette

Topic Name of the topic of the outgoing message.

The syntax of the topic name is specific to the JMS provider you are using. See your JMS provider documentation for more information about topic names.

Connection reference The JMS connection. See JMS Connection on page 318 for more information about creating a JMS connection.

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String.

• XML Text — the message is XML text.

Input XML Schema XML schema that describes the data of the outgoing request.

For XML Text messages, the body of the message is an XML schema. This field allows you to specify an XML schema to use for validating the body of the message.

The body of the outgoing request is represented as an XML schema in the Input tab.

Input Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Input XML Schema field.

Field Description

TIBCO BusinessWorks Palette Reference

Page 205: TIBCO Business Works - Palette Reference - Nov 2002

JMS Topic Requestor | 183

AdvancedThe advanced tab has the following fields.

Output XML Schema XML Schema that describes the data of the incoming response.

For XML Text messages, the body of the message is an XML schema. This field allows you to specify an XML schema to use for validating the body of the message.

The body of the incoming response is represented as an XML schema in the Output tab.

Output Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Output XML Schema field.

Field Description

Field Description

Delivery mode The delivery mode of the message. Can be one of the following:

• PERSISTENT — signifies the messages are stored and forwarded.

• NON_PERSISTENT — messages are not stored and may be lost due to failures in transmission.

Time to live (secs) Corresponds to JMSExpiration property that specifies how long the message can remain active (in seconds).

If set to 0, the message does not expire.

This field is set in seconds, but the JMSExpiration property is displayed in milliseconds.

Priority Priority of the message. You may set the priority to a value from 0-9. The default value is 4.

TIBCO BusinessWorks Palette Reference

Page 206: TIBCO Business Works - Palette Reference - Nov 2002

184 | JMS Palette

Input Data/Output DataThe Input Data/Output Data tabs define the schema to use for messages of type "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the outgoing request and the incoming reply. The schema defined on the Input Data tab becomes the body of the message on the Input tab. The schema defined on the Output Data tab becomes the body of the message on the Output tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

Field Description

Input Item Datatype Description

ActivityInput Object The root class for the input of the JMS Topic Requestor activity. This class contains all input items for the activity.

destinationTopic string The topic to which to send the request. This input item overrides the Topic field on the Configuration tab.

replyToTopic string The topic to which replies should be sent for this request.

TIBCO BusinessWorks Palette Reference

Page 207: TIBCO Business Works - Palette Reference - Nov 2002

JMS Topic Requestor | 185

requestTimeout integer Corresponds to JMSExpiration property that specifies how long the message can remain active (in seconds).

If set to 0, the message does not expire.

This item is set in seconds, but the JMSExpiration property is displayed in milliseconds.

This item overrides the timeout set on the Advanced tab.

JMSCorrelationID string This ID is used to link a response message with its related request message. This is usually the message ID of a request message when this field is found within a reply message.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

Only properties applicable to this type of message are displayed.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon message type

The body of the message.

Input Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 208: TIBCO Business Works - Palette Reference - Nov 2002

186 | JMS Palette

OutputThe output for the activity is the following.

Output Item Datatype Description

ActivityOutput Object The root class for the output of the JMS Topic Requestor activity. This class contains all output items for the activity.

JMSHeaders Object The message header fields for the message. See JMS Properties on page 160 for more information about message header fields.

Only properties applicable to this type of message are displayed.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

Only properties applicable to this type of message are displayed.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon message type

The body of the message.

TIBCO BusinessWorks Palette Reference

Page 209: TIBCO Business Works - Palette Reference - Nov 2002

JMS Topic Subscriber | 187

JMS Topic Subscriber

Starts a process based on the receipt of a message for the specified JMS topic.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Topic Name of the topic of the incoming message.

The syntax of the topic name is specific to the JMS provider you are using. See your JMS provider documentation for more information about topic names.

Connection reference The JMS connection. See JMS Connection on page 318 for more information about creating a JMS connection.

Durable subscription Specifies a durable subscription.

You must specify a name in the Subscription name field that is registered with the JMS application as the durable subscription name.

Subscription name The subscription name registered with the JMS application for durable subscriptions. Not specified for non-durable subscriptions.

TIBCO BusinessWorks Palette Reference

Page 210: TIBCO Business Works - Palette Reference - Nov 2002

188 | JMS Palette

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String.

• XML Text — the message is XML text.

Output XML Schema XML Schema that describes the data of the incoming message. This field allows you to specify an XML schema to use for validating the body of the message.

The incoming message body is parsed into an XML schema based on the schema definition specified in this field.

Output Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Output XML Schema field.

Field Description

TIBCO BusinessWorks Palette Reference

Page 211: TIBCO Business Works - Palette Reference - Nov 2002

JMS Topic Subscriber | 189

Suppress local messages

Specifies that this process starter should not receive messages on the specified topic name when the message was sent by the JMS application on the same connection as the process engine.

If your process definition publishes and subscribes to messages with the same topic name, this option is useful if you wish to specify whether to receive messages sent by yourself (that is, the same JMS application that published the message).

Checking this field prevents the process from receiving messages sent by the same connection. Unchecking this option specifies messages sent by the same connection should be received.

Acknowledge Mode The acknowledge mode for incoming messages. Can be one of the following:

• Auto — the message is automatically acknowledged when it is received.

• Client — the message will be acknowledged at a later point by using the Confirm activity.

• Dups OK — the message is acknowledged automatically when it is received. JMS provides this mode for lazy acknowledgement, but BusinessWorks acknowledges messages upon receipt.

Max Sessions (Read Only)

When the Acknowledge Mode field is set to "Client", this read-only field appears to notify you that only one session can receive incoming topic messages until the message is confirmed.

When a JMS topic message is received, the session is blocked until the message is acknowledged. Because all sessions subscribed to JMS topics receive the same messages, only one session can be actively listening for new messages until each message is confirmed.

Field Description

TIBCO BusinessWorks Palette Reference

Page 212: TIBCO Business Works - Palette Reference - Nov 2002

190 | JMS Palette

AdvancedThe advanced tab has the following fields.

DataThe Data tab defines the schema to use for incoming messages whose message type is "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the incoming message. Once defined, the schema on the Data tab becomes the structure used for the body of the message displayed on the Output tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

OutputThe output for the activity is the following.

Field Description

Message selector A string to determine whether a message should be received. The syntax of the message selector is determined by the JMS provider, but it is usually a subset of SQL92 (where message properties are used instead of table column names).

See your JMS provider documentation for more information and syntax for a message selector string.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

Output Item Datatype Description

ActivityOutput Object The root class for the output of the JMS Topic Subscriber activity. This class contains all output items for the activity.

TIBCO BusinessWorks Palette Reference

Page 213: TIBCO Business Works - Palette Reference - Nov 2002

Reply To JMS Message | 191

Reply To JMS Message

The Reply To JMS Message activity sends a reply to a previously received JMS queue or topic message. The list of possible activities that can receive JMS messages is given on the Configuration tab. The activity that you select determines which message the reply message is in response to.

JMSHeaders Object The message header fields for the message. See JMS Properties on page 160 for more information about message header fields.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon the message type

The body of the message.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 214: TIBCO Business Works - Palette Reference - Nov 2002

192 | JMS Palette

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Reply To A drop-down list of activities that can receive JMS queue or topic messages. The activity you select determines which message this activity replies to. The reply-to queue or topic name from the message in the selected activity is used to send the reply message.

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String.

• XML Text — the message is XML text.

Input XML Schema XML Schema that describes the data of the outgoing reply. This field allows you to specify an XML schema to use for validating the body of the message.

The incoming message body is parsed into an XML schema based on the schema definition specified in this field.

TIBCO BusinessWorks Palette Reference

Page 215: TIBCO Business Works - Palette Reference - Nov 2002

Reply To JMS Message | 193

AdvancedThe advanced tab has the following fields.

Input Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Input XML Schema field.

Field Description

Field Description

Reply-to destination The name of the queue or topic to reply to. This should be automatically handled by the JMSReplyTo property of the incoming message from the activity selected in the Reply To field on the Configuration tab. If you wish the reply to go to a different queue or topic, specify the name here.

Delivery mode The delivery mode of the message. Can be one of the following:

• PERSISTENT — signifies the messages are stored and forwarded.

• NON_PERSISTENT — messages are not stored and may be lost due to failures in transmission.

Time to live (secs) Corresponds to JMSExpiration property that specifies how long the message can remain active (in seconds).

If set to 0, the message does not expire.

This field is set in seconds, but the JMSExpiration property is displayed in milliseconds.

Priority Priority of the message. You may set the priority to a value from 0-9. The default value is 4.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

TIBCO BusinessWorks Palette Reference

Page 216: TIBCO Business Works - Palette Reference - Nov 2002

194 | JMS Palette

DataThe Data tab defines the schema to use for outgoing replies whose message type is "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the outgoing message. Once defined, the schema on the Data tab becomes the structure used for the body of the message displayed on the Input tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

ActivityInput Object The root class for the input of the Reply To JMS Message activity. This class contains all input items for the activity.

JMSCorrelationID string This ID is used to link a response message with its related request message. This is usually the message ID of a request message when this field is found within a reply message.

By default, this is set to the message ID of the message in the Reply To field of the configuration tab. You can override this value, if desired with a different message ID.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

Only properties applicable to this type of message are displayed.

TIBCO BusinessWorks Palette Reference

Page 217: TIBCO Business Works - Palette Reference - Nov 2002

Wait for JMS Queue Message | 195

OutputThe activity has no output.

Wait for JMS Queue Message

The Wait for JMS Queue Message waits for the receipt of a message for the specified JMS queue.

ConfigurationThe configuration tab has the following fields.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon message type

The body of the message.

Input Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 218: TIBCO Business Works - Palette Reference - Nov 2002

196 | JMS Palette

Queue Name of the queue of the incoming message.

The syntax of the queue name is specific to the JMS provider you are using. See your JMS provider documentation for more information about queue names.

Connection reference The JMS connection. See JMS Connection on page 318 for more information about creating a JMS connection.

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String.

• XML Text — the message is XML text.

Output XML Schema XML Schema that describes the data of the incoming message. This field allows you to specify an XML schema to use for validating the body of the message.

The incoming message body is parsed into an XML schema based on the schema definition specified in this field.

Output Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Output XML Schema field.

Field Description

TIBCO BusinessWorks Palette Reference

Page 219: TIBCO Business Works - Palette Reference - Nov 2002

Wait for JMS Queue Message | 197

AdvancedThe advanced tab has the following fields.

DataThe Data tab defines the schema to use for incoming messages whose message type is "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the incoming message. Once defined, the schema on the Data tab becomes the structure used for the body of the message displayed on the Output tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

Field Description

Message selector A string to determine whether a message should be received. The syntax of the message selector is determined by the JMS provider, but it is usually a subset of SQL92 (where message properties are used instead of table column names).

See your JMS provider documentation for more information and syntax for a message selector string.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

TIBCO BusinessWorks Palette Reference

Page 220: TIBCO Business Works - Palette Reference - Nov 2002

198 | JMS Palette

Event The Event tab has the following fields.

Field Description

Candidate Event Key Expression built from the data of the incoming file change event. This expression should evaluate to a string and it is compared to the "key" field of the activity’s input. If the Candidate Event Key and the activity’s key match, then the process accepts the incoming message.

For example, you may have JMS Queue Sender activity earlier in the process diagram and you are expecting a message in response to the sent message. You would place the JMSCorrelationID from the header of the incoming message into the Candidate Event Key field. You would then place the JMSMessageID from the header of the outgoing message earlier in the process in the "key" field on the input tab.

This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO BusinessWorks Process Design Guide for more information about XPath expressions.

Event Timeout (msec) A message may arrive before this activity is executed. This field specifies the amount of time (in milliseconds) a message will wait if it is received before this activity is reached. If the event timeout expires, an error is logged and the event is discarded

When building an expression in the Candidate Event Key field, only data from the incoming event is available. The idea is that you want to place an expression containing incoming event data in the Candidate Event Key field. When the results of this expression match the results of the expression in the "key" item on the Input tab, the Wait For JMS Queue Message activity proceeds.

TIBCO BusinessWorks Palette Reference

Page 221: TIBCO Business Works - Palette Reference - Nov 2002

Wait for JMS Queue Message | 199

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

input Object The root class for the input of the Wait for JMS Queue Message activity. This class contains all input items for the activity.

key string The value that is compared to the Candidate Event Key field of the Event tab to determine if this message applies to this process. See Event on page 198 for an example of using the Candidate Event Key field with the key input item.

timeout integer The time (in milliseconds) to wait for the incoming message. An error is returned if the message is not received within this time limit.

Output Item Datatype Description

ActivityOutput Object The root class for the output of the Wait for JMS Queue Message activity. This class contains all output items for the activity.

JMSHeaders Object The message header fields for the message. See JMS Properties on page 160 for more information about message header fields.

TIBCO BusinessWorks Palette Reference

Page 222: TIBCO Business Works - Palette Reference - Nov 2002

200 | JMS Palette

Wait for JMS Topic Message

The Wait for JMS Topic Message waits for the receipt of a message for the specified JMS topic.

ConfigurationThe configuration tab has the following fields.

JMSProperties Object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon the message type

The body of the message.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 223: TIBCO Business Works - Palette Reference - Nov 2002

Wait for JMS Topic Message | 201

Topic Name of the topic of the outgoing message.

The syntax of the topic name is specific to the JMS provider you are using. See your JMS provider documentation for more information about topic names.

Connection reference The JMS connection. See JMS Connection on page 318 for more information about creating a JMS connection.

Subscription name The subscription name registered with the JMS application for durable subscriptions. Not specified for non-durable subscriptions.

Message type The type of the message. This can be one of the following:

• Simple — A message with no body portion.

• Bytes — A stream of bytes.

• Map — A set of name/value pairs. The names are strings, and the values are simple data types (Java primitives), an array of bytes, or a string. Each item can be accessed sequentially or by its name.

• Object — A serializable Java object.

• Stream — A stream of Java primitives, strings, or arrays of bytes. Each value must be read sequentially.

• Text — the message is a java.lang.String.

• XML Text — the message is XML text.

Output XML Schema XML Schema that describes the data of the incoming message. This field allows you to specify an XML schema to use for validating the body of the message.

The incoming message body is parsed into an XML schema based on the schema definition specified in this field.

Field Description

TIBCO BusinessWorks Palette Reference

Page 224: TIBCO Business Works - Palette Reference - Nov 2002

202 | JMS Palette

AdvancedThe advanced tab has the following fields.

Output Schema root element

Element within the XML schema to use when parsing the XML string. The message body is validated with respect to this particular element, instead of using the entire XML schema specified in the Output XML Schema field.

Durable subscription Specifies a durable subscription.

You must specify a name in the Subscription name field that is registered with the JMS application as the durable subscription name.

Suppress local messages

Specifies that this process starter should not receive messages on the specified topic name when the message was sent by the JMS application on the same connection as the process engine.

If your process definition publishes and subscribes to messages with the same topic name, this option is useful if you wish to specify whether to receive messages sent by yourself (that is, the same JMS application that published the message).

Checking this field prevents the process from receiving messages sent by the same connection. Unchecking this option specifies messages sent by the same connection should be received.

Field Description

Field Description

Message selector A string to determine whether a message should be received. The syntax of the message selector is determined by the JMS provider, but it is usually a subset of SQL92 (where message properties are used instead of table column names).

See your JMS provider documentation for more information and syntax for a message selector string.

TIBCO BusinessWorks Palette Reference

Page 225: TIBCO Business Works - Palette Reference - Nov 2002

Wait for JMS Topic Message | 203

DataThe Data tab defines the schema to use for incoming messages whose message type is "Map" or "Stream". Map messages are name/value pairs, and the schema allows you to define the structure of the incoming message. Once defined, the schema on the Data tab becomes the structure used for the body of the message displayed on the Output tab.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

JMS Application Properties

Any application-specific message properties that will be part of the message. This is specified by the JMS Application Properties shared configuration object.

Once specified, these properties appear on the Output tab as "OtherProperties".

Field Description

TIBCO BusinessWorks Palette Reference

Page 226: TIBCO Business Works - Palette Reference - Nov 2002

204 | JMS Palette

Event The Event tab has the following fields.

Field Description

Candidate Event Key Expression built from the data of the incoming file change event. This expression should evaluate to a string and it is compared to the "key" field of the activity’s input. If the Candidate Event Key and the activity’s key match, then the process accepts the incoming message.

For example, you may have JMS Topic Publisher activity earlier in the process diagram and you are expecting a message in response to the sent message. You would place the JMSCorrelationID from the header of the incoming message into the Candidate Event Key field. You would then place the JMSMessageID from the header of the outgoing message earlier in the process in the "key" field on the input tab.

This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO BusinessWorks Process Design Guide for more information about XPath expressions.

Event Timeout (msec) A message may arrive before this activity is executed. This field specifies the amount of time (in milliseconds) a message will wait if it is received before this activity is reached. If the event timeout expires, an error is logged and the event is discarded

When building an expression in the Candidate Event Key field, only data from the incoming event is available. The idea is that you want to place an expression containing incoming event data in the Candidate Event Key field. When the results of this expression match the results of the expression in the "key" item on the Input tab, the Wait For JMS Topic Message activity proceeds.

TIBCO BusinessWorks Palette Reference

Page 227: TIBCO Business Works - Palette Reference - Nov 2002

Wait for JMS Topic Message | 205

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

input Object The root class for the input of the Wait for JMS Topic Message activity. This class contains all input items for the activity.

key string The value that is compared to the Candidate Event Key field of the Event tab to determine if this message applies to this process. See Event on page 204 for an example of using the Candidate Event Key field with the key input item.

timeout integer The time (in milliseconds) to wait for the incoming message. An error is returned if the message is not received within this time limit.

Output Item Datatype Description

ActivityOutput Object The root class for the output of the Wait for JMS Topic Message activity. This class contains all output items for the activity.

JMSHeaders Object The message header fields for the message. See JMS Properties on page 160 for more information about message header fields.

TIBCO BusinessWorks Palette Reference

Page 228: TIBCO Business Works - Palette Reference - Nov 2002

206 | JMS Palette

JMSProperties object The message properties for the message. See JMS Properties on page 160 for more information about message properties.

OtherProperties Object If the JMS Application Properties field is specified on the Advanced tab, the OtherProperties group lists the application-specific properties in the selected JMS Application Properties shared configuration object.

Body depends upon the message type

The body of the message.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 229: TIBCO Business Works - Palette Reference - Nov 2002

| 207

Chapter 11 Mail Palette

The Mail palette is used to receive incoming email or send outgoing email.

Topics

• Receive Mail, page 208

• Send Mail, page 209

TIBCO BusinessWorks Palette Reference

Page 230: TIBCO Business Works - Palette Reference - Nov 2002

208 | Mail Palette

Receive Mail

The Receive Mail process starter polls a POP3 mail server for new mail. When new mail is detected and retrieved, the Receive Mail process starter starts a new process for the process definition it resides in and passes the mail data to the next activity in the process flow.

ConfigurationThe configuration tab has the following fields.

OutputThe output for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Host Host name or IP address for the mail server.

User Name User name to use when logging into the POP3 server.

Password Password to use when logging into the POP3 server.

Polling Interval (sec) Polling interval (in seconds) to check for new mail. The interval can be specified in milliseconds, seconds, minutes, hours, and days.

Delete Mail If checked, mail will be deleted from the POP3 server once the process starter has retrieved it.

Output Item Datatype Description

outputClass Object The root class for the output of the Receive Mail process starter. This class contains all output items for the activity.

TIBCO BusinessWorks Palette Reference

Page 231: TIBCO Business Works - Palette Reference - Nov 2002

Send Mail | 209

Send Mail

The Send Mail activity sends an email by way of a SMTP server.

from string The email address of the sender of the email.

to string The recipient list of the email.

cc string The cc (carbon copy) list of the email.

bcc string The bcc (blind carbon copy) list of the email.

subject string The subject of the email.

sentdate string The date the email was sent.

bodyText string The text of the email message.

attachmentNames string A list of names for each attachment to the message. These names are typically the file names of the attachments.

attachmentData binary A list of attachments to the message.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 232: TIBCO Business Works - Palette Reference - Nov 2002

210 | Mail Palette

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Host Host name for the SMTP server.

Input Item Datatype Description

mailActivityInput Object The root class for the input of the Send Mail activity. This class contains all input items for the activity.

from string The email address of the sender.

to string The recipient list for the email.

cc string The cc (carbon copy) list for the email.

bcc string The bcc (blind carbon copy) list for the email.

subject string The subject of the email.

sentdate string The date stamp for the email.

bodyText string The text of the email message.

TIBCO BusinessWorks Palette Reference

Page 233: TIBCO Business Works - Palette Reference - Nov 2002

Send Mail | 211

OutputThis activity produces no output.

attachmentNames string A list of names for each attachment to the message. These names are typically the file names of the attachments.

attachmentData binary A list of attachments to the message.

Input Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 234: TIBCO Business Works - Palette Reference - Nov 2002

212 | Mail Palette

TIBCO BusinessWorks Palette Reference

Page 235: TIBCO Business Works - Palette Reference - Nov 2002

| 213

Chapter 12 Manual Work Palette

The Manual Work palette is useful for automated business processes that have a few steps that require user interaction. The Manual Work palette works with TIBCO InConcert to provide some workflow capability in automated business processes.

Topics

• Overview of Manual Work, page 214

• Working With Documents, page 217

• Working With Tasks Assigned to a Role, page 218

• Interaction With TIBCO InConcert, page 223

• Assign Work, page 224

• Get Work Status, page 232

• Modify Work, page 236

• Wait for Completion, page 241

TIBCO BusinessWorks Palette Reference

Page 236: TIBCO Business Works - Palette Reference - Nov 2002

214 | Manual Work Palette

Overview of Manual Work

The Manual Work palette includes activities that you can add to your business processes when the process requires user interaction for completion. For example, your enterprise may provide international monetary transfers. Some of the steps in this process can be automated, but a final approval or rejection may be required by an approval clerk. The clerk views the transfer request in a web interface, and then either approves or rejects the request.

Figure 12 illustrates an example business process that requires manual work. A request for funds transfer is received, and the country of origin is checked. If the transfer is local and under $100,000, the transfer is automatically approved. If the transfer is international or over $100,000, the request is assigned to a pool of users for approval. One user accepts the request, and approves or rejects it. If no one accepts the request, the manual approval times out, and then the status of the request is checked. If no errors were returned, then the work is still in the users’ queue, so the process waits for the completion of the manual work. If errors were reported in the manual work, the work is marked as not approved and the process completes.

Figure 12 An example business process with manual work

TIBCO BusinessWorks Palette Reference

Page 237: TIBCO Business Works - Palette Reference - Nov 2002

Overview of Manual Work | 215

The Manual Work palette allows you to assign a task to a pool of users, check the status of the task, change the status of the task, download documents associated with a task, or wait for the completion of a task. TIBCO Administrator allows you to create roles and assign users to roles. These roles are the pools of users to which you can assign manual work tasks.

The Manual Work palette works with TIBCO InConcert to provide workflow capabilities. Users and roles (groups of users) are defined in TIBCO Administrator and then exported to TIBCO InConcert. An activity that assigns work creates a TIBCO InConcert job. The job can be viewed and modified using TIBCO BusinessWorks Manual Work Organizer web interface described in Working With Tasks Assigned to a Role on page 218. This task can also be viewed or modified using the TIBCO InConcert tools and APIs.

Table 2 describes the two shared configuration resources used when configuring activities in the Manual Work palette.

Table 2 Shared configuration resources for manual work activities

Shared Configuration Resource Description

Workflow Schema The data associated with a manual work task. This is the data a user needs to complete the task. The user can change any of the data associated with a task.

A Workflow Schema can be used to provide "extended details" for a particular manual work task. The schema specified for extended details provides a mechanism to pass information when a task is delegated or routed to another user. See Working with Tasks in the Acquired List on page 221 for more information about delegation and routing. See the description of the Advanced tab of Assign Work on page 224 for more information about how extended details are used.

Workflow Server Connection The connection to the TIBCO InConcert workflow server. This server is used to track and manage manual tasks.

TIBCO BusinessWorks Palette Reference

Page 238: TIBCO Business Works - Palette Reference - Nov 2002

216 | Manual Work Palette

Table 3 describes the general purpose of each of the activities in the Manual Work palette.

Table 3 Description of activities in the Manual Work palette

Activity Description

Assign Work This activity creates a new task (with associated data) and assigns it to the specified role. A user then acquires the task, views the data supplied by the activity, and completes the work.

The process definition can either wait for the user to complete the work or it can continue processing and later query for the status of the task.

Download Document Workflow schemas can contain elements to hold documents. An example of a document is a loan application that must be attached to a credit request. The document may be any type, for example, Microsoft Word, PDF, and so on.

Documents can be uploaded or downloaded to a manual work task by way of the web interface TIBCO BusinessWorks provides for managing manual work tasks. This activity allows you to download a document from an existing manual work task into a process variable.

See Working With Documents on page 217 and Download Document on page 229 for more information about working with documents.

Get Work Status Retrieves the current status of a task that was previously created with the Assign Work activity. Normally you use this activity to determine if the task has been completed or if there are any errors.

You can use the status to determine where to conditionally transition to in the process definition. If the status is Complete, you may want to transition to the next step of the business process. You may want to put the Get Work Status in a loop to check the status periodically and transition out of the loop when the status is marked as complete or an error is returned.

TIBCO BusinessWorks Palette Reference

Page 239: TIBCO Business Works - Palette Reference - Nov 2002

Working With Documents | 217

Working With Documents

Documents can be associated with tasks created by the Assign Work activity. For example, you may wish to attach a Microsoft Word document containing a loan application to a credit approval task. These documents are managed by the workflow server, and they can be of any type.

If you wish to associate documents with a task, the schema for the task must contain one or more elements of type Document. This is a special datatype available only for workflow schemas. Document is a complex datatype containing two elements:

• name — a string element containing the name of the document (be sure to use the proper file name extension so that the files can be easily opened using the browser-based Manual Work Organizer).

Modify Work This activity changes the status of an existing task created with the Assign Work activity. You can change the status to one of the following:

• Update — signifies the task has been updated

• Complete — signifies the task is complete

• Reassign — reassigns the task to a role

You would normally use the Modify Work task to change the status of a task that has not been acquired by any user or if errors have been returned.

Wait for Completion Waits for the specified period for the status of a task to be set to Complete. This is useful if the timeout for the Assign Work activity has passed and you wish to wait for an additional amount of time.

If the original Assign Work has timed out, you may wish to use the Modify Work activity to reassign the task to a different role, and then use the Wait for Completion activity to wait again for the task to be complete.

Table 3 Description of activities in the Manual Work palette

Activity Description

TIBCO BusinessWorks Palette Reference

Page 240: TIBCO Business Works - Palette Reference - Nov 2002

218 | Manual Work Palette

• content — a binary element containing the document’s contents.

The workflow schema should contain one element of type Document for each document you wish to associate with a particular manual work task.

The Assign Work activity creates a new manual work task with an associated workflow schema. The schema contains the data a user needs to complete the task. The web interface that TIBCO BusinessWorks provides displays all data within the schema and allows users to upload or download documents in schema elements of type Document.

You can upload a document to a task when the task is created with the Assign Work activity by mapping data to the Document schema items in the Input tab of the Assign Work activity. If you wish to retrieve a document from a task that has already been created, you can use the Download Document activity to retrieve the document from the task.

Working With Tasks Assigned to a Role

TIBCO BusinessWorks provides a simple web interface for viewing manual work tasks assigned to users. This interface is named the TIBCO BusinessWorks Manual Work Organizer. When you log into the web interface, you can see any task that you have acquired. Logging in requires that you specify a valid username, password, and TIBCO InConcert server name.

To log into the Manual Work Organizer, you must be a valid user created using TIBCO Administrator. See the TIBCO Administrator documentation for more information about creating users. When logging in, you can specify a proxy TIBCO InConcert ICJava server name. This ICJava server allows you to log into TIBCO InConcert servers that are not part of your network subnet. See the TIBCO InConcert documentation for more information about configuring ICJava servers.

You can log in to the Manual Work Organizing by invoking the following URL:

http://<machine>:8080/administrator/servlet/bwmanualwork

where <machine> is the name of the machine where the TIBCO Administrator server is installed.

Once you log in, each user is presented with lists of tasks:

• Acquired — the list of tasks the user is currently working on. This list is shown by default when a user logs in.

TIBCO BusinessWorks Palette Reference

Page 241: TIBCO Business Works - Palette Reference - Nov 2002

Working With Tasks Assigned to a Role | 219

• Ready — the tasks available to the role that the user belongs to. This is the list of tasks that need to be acquired by one of the users in the role.

• Completed (last 7 days) — the tasks the user has completed. Only tasks marked completed within the last seven days are displayed.

• Manage — a list created by a custom search of the existing manual work tasks. This list is only visible to system administrators, and it is used to perform administrative actions.

Table 4 describes the columns of the task lists.

Table 4 Task list columns

Column Description Show in List

Work Type The name of the task (the name of the Assign Work activity in the process definition). This name is a link to the task’s details.

AcquiredReadyCompletedManage

Work Name The name of the TIBCO InConcert job associated with this task.

This name is assigned in the Work Name input item for the Assign Work activity that creates the job. You would normally assign a descriptive name to the job so that users can easily determine which tasks they should acquire.

AcquiredReadyCompletedManage

Status The current status of the task. The status can be Ready, Complete, or Acquired.

AcquiredReadyCompletedManage

Priority The priority of the task. The priority can be Low, Normal, or Urgent

AcquiredReadyManage

Due Date The due date for this task. AcquiredReadyManage

Ready Date The time the task was placed in the Ready list.

Ready

Completed Date The time the task was completed. Completed

TIBCO BusinessWorks Palette Reference

Page 242: TIBCO Business Works - Palette Reference - Nov 2002

220 | Manual Work Palette

You can sort the task lists based on any column in the list by clicking on the column heading. You can also navigate to the previous, next, first, or last page in the list. Figure 13 illustrates the task lists.

Figure 13 Task lists

You can select any task within a task list to view the detail of the task. You can view the header, detail, or documents attached to a task. The Details tab allows you to edit the task details. Figure 14 illustrates the task detail.

Figure 14 Task detail

Acquired Date The time the task was acquired. AcquiredCompletedManage

Table 4 Task list columns

Column Description Show in List

TIBCO BusinessWorks Palette Reference

Page 243: TIBCO Business Works - Palette Reference - Nov 2002

Working With Tasks Assigned to a Role | 221

Acquiring TasksWhen a task is assigned to a role, it is placed into the Ready list for each user in the role. Users can view the Ready list, and select tasks to acquire. When a user acquires a task, that task is removed from the Ready list and placed in the user ’s Acquired list. Once a user acquires a task, other users cannot view or modify the task unless the user routes, delegates, transfers, or releases the task.

Working with Tasks in the Acquired ListA user’s Acquired list contains tasks the user can modify. The user can update the task properties (data associated with the task) or upload or download documents to attach to the task. The user can also perform the following commands:

Command Description

Complete Change the status of the task to Complete and move the task to the Completed list.

A user performs this command after the user has completed work on the task. For example, a user may need to view the data in the task and then change the Approved property to either true or false.

Release Releases the task from the user’s Acquired list and puts the task back into the Ready list of the role.

Route Routes the task to another of role. The task then appears in the Ready list of the users in the other role.

Delegate Delegates the task to another role, this is similar to routing, except the user retains control of the task.

The task remains in the user’s Acquired list, but it is also placed in the Ready list of the role the task was delegated to. Once a user in the role completes the task, the original user can review the task and then marks it as complete.

Update (Save) Saves any changes made to properties of the task, but does not change the status of the task.

TIBCO BusinessWorks Palette Reference

Page 244: TIBCO Business Works - Palette Reference - Nov 2002

222 | Manual Work Palette

Working with the Completed ListOnce the Complete command is performed on a task, the task is moved to the Completed task list. The user can view tasks completed within the last seven days.

Administering TasksUsers belonging to the admin role can perform administrative activities on tasks. When an administrator logs into the task web interface, the administrator can select the Manage list and query for tasks.

To perform a query, the administrator must supply a role and a status to query for tasks. The administrator can then supply a string to search for in the Work Type field, and all tasks that contain the supplied string are returned. The administrator can also supply date ranges in the Due Date, Completed Date, Ready Date, or Acquired Date fields to search for tasks based on those criteria.

Once tasks are returned by a search, the administrator can perform the following actions on each task or a selected range of tasks.

The user icdba is the predefined administrator in TIBCO InConcert. If you wish to use this user to create users and roles and administer manual work tasks, you must first create this user in TIBCO Administrator and grant the user the necessary permissions.

Command Description

Release (only for acquired tasks)

Releases the task from a user’s Acquired list and puts the task back into the Ready list of the role.

Transfer Reassigns the task to another user. The task is removed from the user’s Acquired list then appears in the specified user’s Acquired list.

Reassign Reassigns the task to another role. The task is then placed in the Ready list for all users assigned to that role.

Delete (only for completed tasks)

Deletes the task from the completed list.

TIBCO BusinessWorks Palette Reference

Page 245: TIBCO Business Works - Palette Reference - Nov 2002

Interaction With TIBCO InConcert | 223

Interaction With TIBCO InConcert

The Assign Work activity creates a TIBCO InConcert job that runs on a TIBCO InConcert server. You do not need to know a great deal about TIBCO InConcert to perform simple workflow functions. However, TIBCO InConcert must be installed and configured before you can use the Manual Work palette.

The Assign Work activity creates TIBCO InConcert jobs that can be viewed or manipulated using the standard TIBCO InConcert facilities (that is, either the ICWeb API, or any other TIBCO InConcert API). TIBCO BusinessWorks provides an easy-to-use web interface for viewing, modifying, and completing manual tasks. You can create your own ICWeb interface, if you prefer.

TIBCO BusinessWorks Palette Reference

Page 246: TIBCO Business Works - Palette Reference - Nov 2002

224 | Manual Work Palette

Assign Work

The Assign Work activity creates a manual work task and assigns it to the specified role. Users can view tasks assigned to their role by logging into the Manual Work web interface provided with TIBCO BusinessWorks.

An Assign Work activity creates a standard TIBCO InConcert task. If you wish to do more sophisticated task processing, all TIBCO InConcert tools and APIs can be used to handle tasks created with the Assign Work activity.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Work Details The Workflow Schema shared configuration resource that defines the data to supply to the user. See Workflow Schema on page 327 for more information.

Server Details The Workflow Server Connection shared configuration resource that describes the connection to the TIBCO InConcert server. See Workflow Server Connection on page 328 for more information.

Assign To The name of the role to assign this task to. These users and roles are created using TIBCO Administrator and then exported to TIBCO InConcert.

Priority Assigns a priority to the task. The priority can be Normal, Low, or Urgent. This priority is displayed in the manual work web interface.

Wait for Completion Specifies that this activity should wait for status of the task to be Complete before continuing on to the next activity.

TIBCO BusinessWorks Palette Reference

Page 247: TIBCO Business Works - Palette Reference - Nov 2002

Assign Work | 225

AdvancedThe advanced tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

Wait till The amount of time to wait for the status of the task to change. This field is only valid when the Wait for Response field is checked.

Field Description

Field Description

Extended Details The Workflow Schema shared configuration resource that defines the data for use when a task is routed or delegated to another user.

The Work Details field specifies the schema to use that contains the global data for the task. Data in the Work Details schema can be edited by all users that the task is routed or delegated to. The Extended Details schema is used to supply data that is passed on to the next user the task is routed or delegated to.

Data in the Extended Details schema is manipulated during the Route or Delegate operation. If you are using the web interface supplied by TIBCO BusinessWorks, extended details are not used, and therefore you do not need to supply a schema for this field.

If you are using TIBCO InConcert to create your own interface for managing manual tasks, you can use this schema to supply data that is passed onto the next user. For example, you may create a schema to contain notes to pass on to the next user. These notes will only be available to the next user the task is delegated or routed to, and if the task is routed or delegated again, the user can supply new notes.

TIBCO BusinessWorks Palette Reference

Page 248: TIBCO Business Works - Palette Reference - Nov 2002

226 | Manual Work Palette

The input for the activity is the following.

Input Item Datatype Description

AssignWorkInput object The root class for the input of the Assign Work activity. This class contains all input items for the activity.

Header object This item contains information about the manual work task’s configuration.

WorkName string The name of the TIBCO InConcert job. It is useful to assign a descriptive name to the job so that users can easily spot which jobs they should acquire.

DueDate date The date when the task must be completed.

AssignTo string The role the task should be assigned to. This input item overrides any value specified in the Assign To field on the Configuration tab.

Priority string The priority for the task. Can be either "Low", "Normal", or "Urgent". This input item overrides any value specified in the Priority field on the Configuration tab.

WaitTillSec integer The amount of time to wait for the task to be marked as Complete. This input item overrides any value specified in the Wait Till field on the Configuration tab.

Details object The data schema (specified by the Work Details field on the Configuration tab) for input to the task.

TIBCO BusinessWorks Palette Reference

Page 249: TIBCO Business Works - Palette Reference - Nov 2002

Assign Work | 227

OutputThe output for the activity is the following.

ExtendedDetails object The data schema (specified by the Extended Details field on the Advanced tab) to use for additional data when delegating or routing the task.

Input Item Datatype Description

Output Item Datatype Description

AssignWorkOutput object The root class for the output of the Assign Work activity. This class contains all output items for the activity.

Header object This item contains information about the manual work task’s configuration.

WorkName string The name of the task.

WorkStatus string The current status of the task.

WorkId string The system-assigned ID for the task.

DueDate date The date when the task must be completed.

ReadyDate date The date the task was placed into the user role’s Ready list.

AcquiredDate date If the task was acquired before this activity completes, this contains the date the task was acquired by a user.

CompletedDate date If the task was marked as complete before this activity completes, this contains the date the task was completed.

TIBCO BusinessWorks Palette Reference

Page 250: TIBCO Business Works - Palette Reference - Nov 2002

228 | Manual Work Palette

AssignedTo string The role the task was assigned to.

AcquiredBy string If the task was acquired before this activity completes, this is the name of the user that acquired the activity.

Priority string The priority for the task. Can be either "Low", "Normal", or "Urgent".

TrackingInfo Object An object containing any information about the routing or delegation for the task. Each time the task is routed or delegated, the From object contains information about the user that performed the delegation or routing. The To object contains a list describing each user the task has been delegated or routed to.

From Object Contains information about the user that last performed a routing or delegation operation on the task. This object contains strings with the following information:

• AssignedBy — the user that last performed the routing or delegation.

• Action — the action performed, either route or delegate.

• Action Date — the date the action was performed.

• WorkID — the ID assigned to this task.

• Note — any notes passed on from the user performing the routing or delegation.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 251: TIBCO Business Works - Palette Reference - Nov 2002

Download Document | 229

Download Document

The Download Document activity downloads any documents that have been uploaded to the specified manual task created with the Assign Work activity. See Working With Documents on

page 217 for more information about working with a task’s documents.

To Object Contains a list detailing information about each user that the task has been routed or delegated to. This object contains strings with the following information:

• AssignedTo — the user the task has been assigned to.

• Action — the action performed, either route or delegate.

• Action Date — the date the action was performed.

• WorkID — the ID assigned to this task.

• Note — any notes passed on from the user performing the routing or delegation.

Details object The data schema for the task.

ExtendedDetails object The data schema for additional data when delegating or routing the task.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 252: TIBCO Business Works - Palette Reference - Nov 2002

230 | Manual Work Palette

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Use WorkId Specifies that you wish to use the system-generated work ID to identify the task from which to download a document. If this field is specified, the Download From field is disabled and the work ID is supplied on the activity’s Input tab.

Download From The Assign Work activity from which you wish to download documents.

Work Details The Workflow Schema shared configuration resource associated with the task. See Workflow Schema on page 327 for more information.

Server Details The Workflow Server Connection shared configuration resource that describes the connection to the TIBCO InConcert server. See Workflow Server Connection on page 328 for more information.

Download All Document(s)

Specifies that all documents attached to this activity should be downloaded.

Download Specific If you do not download all documents, you can download a specific document by selecting the property containing the document in this field.

TIBCO BusinessWorks Palette Reference

Page 253: TIBCO Business Works - Palette Reference - Nov 2002

Download Document | 231

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

DownloadDocumentInput object The root class for the input of the Download Document activity. This class contains all input items for the activity.

Header object This item contains information about the manual work task’s configuration.

WorkId string The system-assigned ID for the task. You can obtain this from the output of the Assign Work task.

Output Item Datatype Description

DownloadDocumentOutput object The root class for the output of the Download Document activity. This class contains all output items for the activity.

Details object The Workflow Schema for the manual task you selected in the Configuration tab. This output item contains only the schema elements of type Document.

schema element of type Document

object The name of the Workflow Schema element that contains the document.

If all documents for a manual work task are downloaded, each schema element containing a document is listed in the output.

name string The name of the downloaded document.

TIBCO BusinessWorks Palette Reference

Page 254: TIBCO Business Works - Palette Reference - Nov 2002

232 | Manual Work Palette

Get Work Status

The Get Work Status activity is used to retrieve the current status of the specified manual task from the TIBCO InConcert server.

ConfigurationThe configuration tab has the following fields.

content binary The content of the downloaded document.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Use WorkId Specifies that you wish to use the system-generated work ID to identify the task whose status you would like to retrieve. If this field is specified, the Status of field is disabled and the work ID is supplied on the activity’s Input tab.

Status of The name of the Assign Work activity whose status you wish to retrieve.

Work Details The Workflow Schema shared configuration resource associated with the task. See Workflow Schema on page 327 for more information.

Server Details The Workflow Server Connection shared configuration resource that describes the connection to the TIBCO InConcert server. See Workflow Server Connection on page 328 for more information.

TIBCO BusinessWorks Palette Reference

Page 255: TIBCO Business Works - Palette Reference - Nov 2002

Get Work Status | 233

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Extended Details The extended details (assigned on the Advanced tab of the Assign Work activity) associated with this task.

Field Description

Input Item Datatype Description

DownloadDocumentInput object The root class for the input of the Get Work Status activity. This class contains all input items for the activity.

Header object This item contains information about the manual work task’s configuration.

WorkId string The system-assigned ID for the task. You can obtain this from the output of the Assign Work task.

Output Item Datatype Description

GetWorkStatusOutput object The root class for the output of the Get Work Status activity. This class contains all output items for the activity.

Header object This item contains information about the manual work task’s configuration.

WorkName string The name of the task.

TIBCO BusinessWorks Palette Reference

Page 256: TIBCO Business Works - Palette Reference - Nov 2002

234 | Manual Work Palette

WorkStatus string The current status of the task.

WorkId string The system-assigned ID for the task.

DueDate date The date when the task must be completed.

ReadyDate date The date the task was placed into the user role’s Ready list.

AcquiredDate date If the task was acquired before this activity completes, this contains the date the task was acquired by a user.

CompletedDate date If the task was marked as complete before this activity completes, this contains the date the task was completed.

AssignedTo string The role the task was assigned to.

AcquiredBy string If the task was acquired before this activity completes, this is the name of the user that acquired the activity.

Priority string The priority for the task. Can be either "Low", "Normal", or "Urgent".

TrackingInfo Object An object containing any information about the routing or delegation for the task. Each time the task is routed or delegated, the From object contains information about the user that performed the delegation or routing. The To object contains a list describing each user the task has been delegated or routed to.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 257: TIBCO Business Works - Palette Reference - Nov 2002

Get Work Status | 235

From Object Contains information about the user that last performed a routing or delegation operation on the task. This object contains strings with the following information:

• AssignedBy — the user that last performed the routing or delegation.

• Action — the action performed, either route or delegate.

• Action Date — the date the action was performed.

• WorkID — the ID assigned to this task.

• Note — any notes passed on from the user performing the routing or delegation.

To Object Contains a list detailing information about each user that the task has been routed or delegated to. This object contains strings with the following information:

• AssignedTo — the user the task has been assigned to.

• Action — the action performed, either route or delegate.

• Action Date — the date the action was performed.

• WorkID — the ID assigned to this task.

• Note — any notes passed on from the user performing the routing or delegation.

Details object The data schema for the task.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 258: TIBCO Business Works - Palette Reference - Nov 2002

236 | Manual Work Palette

Modify Work

The Modify Work activity is used to change the status of a manual task created by the Assign Work activity. This activity changes the status to one of the following: Complete, Reassign, or Update.

ConfigurationThe configuration tab has the following fields.

ExtendedDetails object The data schema for additional data when delegating or routing the task.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Use WorkId Specifies that you wish to use the system-generated work ID to identify the task that you would like to modify. If this field is specified, the Modify field is disabled and the work ID is supplied on the activity’s Input tab.

Modify The name of the Assign Work activity whose status you wish to change.

Work Details The Workflow Schema shared configuration resource associated with the task. See Workflow Schema on page 327 for more information.

Server Details The Workflow Server Connection shared configuration resource that describes the connection to the TIBCO InConcert server. See Workflow Server Connection on page 328 for more information.

TIBCO BusinessWorks Palette Reference

Page 259: TIBCO Business Works - Palette Reference - Nov 2002

Modify Work | 237

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Extended Details The extended details (assigned on the Advanced tab of the Assign Work activity) associated with this task.

Action The action to perform on the activity to change its status. The action can be one of the following:

• Update

• Complete

• Reassign

Assign To This field is only applicable if the Action field is set to "Reassign". This field specifies the name of the role to assign the manual work to.

Field Description

Input Item Datatype Description

ModifyWorkInput object The root class for the input of the Modify Work activity. This class contains all input items for the activity.

Header object This item contains information about the manual work task’s configuration.

The information contained in the header is dependent upon the Configuration fields of this activity and the action you wish to perform on the manual work task.

WorkId string The system-assigned ID for the task. You can obtain this from the output of the Assign Work task.

CompleteRoutedAndDelegatedWork

boolean Specifies whether all routed and delegated tasks should also be marked as complete.

TIBCO BusinessWorks Palette Reference

Page 260: TIBCO Business Works - Palette Reference - Nov 2002

238 | Manual Work Palette

OutputThe output for the activity is the following.

ReAssignTo string The name of the role to reassign this manual task to. This input item overrides the value specified on the Configuration tab.

DueDate date The date when the task must be completed.

Priority string The priority for the task. Can be either "Low", "Normal", or "Urgent".

Input Item Datatype Description

Output Item Datatype Description

ModifyWork object The root class for the output of the Modify Work activity. This class contains all output items for the activity.

Header object This item contains information about the manual work task’s configuration.

WorkName string The name of the task.

WorkStatus string The current status of the task.

WorkId string The system-assigned ID for the task.

DueDate date The date when the task must be completed.

ReadyDate date The date the task was placed into the user role’s Ready list.

AcquiredDate date If the task was acquired before this activity completes, this contains the date the task was acquired by a user.

TIBCO BusinessWorks Palette Reference

Page 261: TIBCO Business Works - Palette Reference - Nov 2002

Modify Work | 239

CompletedDate date If the task was marked as complete before this activity completes, this contains the date the task was completed.

AssignedTo string The role the task was assigned to.

AcquiredBy string If the task was acquired before this activity completes, this is the name of the user that acquired the activity.

Priority string The priority for the task. Can be either "Low", "Normal", or "Urgent".

TrackingInfo Object An object containing any information about the routing or delegation for the task. Each time the task is routed or delegated, the From object contains information about the user that performed the delegation or routing. The To object contains a list describing each user the task has been delegated or routed to.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 262: TIBCO Business Works - Palette Reference - Nov 2002

240 | Manual Work Palette

From Object Contains information about the user that last performed a routing or delegation operation on the task. This object contains strings with the following information:

• AssignedBy — the user that last performed the routing or delegation.

• Action — the action performed, either route or delegate.

• Action Date — the date the action was performed.

• WorkID — the ID assigned to this task.

• Note — any notes passed on from the user performing the routing or delegation.

To Object Contains a list detailing information about each user that the task has been routed or delegated to. This object contains strings with the following information:

• AssignedTo — the user the task has been assigned to.

• Action — the action performed, either route or delegate.

• Action Date — the date the action was performed.

• WorkID — the ID assigned to this task.

• Note — any notes passed on from the user performing the routing or delegation.

Details object The data schema for the task.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 263: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Completion | 241

Wait for Completion

The Wait for Completion activity is used to wait for an existing manual task (created with the Assign Work activity) to complete. The Assign Work activity specifies a time out, if the activity is

specified to be performed asynchronously. When that timeout expires, the Wait for Completion activity can be used to wait additional time for the completion of the manual task.

ConfigurationThe configuration tab has the following fields.

Extended Details object The data schema for additional data when delegating or routing the task.

Output Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Use WorkId Specifies that you wish to use the system-generated work ID to identify the task that you would like to wait for completion. If this field is specified, the Wait for field is disabled and the work ID is supplied on the activity’s Input tab.

Wait For The name of the Assign Work activity that you wish to wait for completion.

Work Details The Workflow Schema shared configuration resource associated with the task. See Workflow Schema on page 327 for more information.

TIBCO BusinessWorks Palette Reference

Page 264: TIBCO Business Works - Palette Reference - Nov 2002

242 | Manual Work Palette

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Server Details The Workflow Server Connection shared configuration resource that describes the connection to the TIBCO InConcert server. See Workflow Server Connection on page 328 for more information.

Extended Details The extended details (assigned on the Advanced tab of the Assign Work activity) associated with this task.

Wait Till The amount of time to wait for the status of the task to change.

Field Description

Input Item Datatype Description

WaitForCompletionInput object The root class for the input of the Wait for Completion activity. This class contains all input items for the activity.

Header object This item contains information about the manual work task’s configuration.

WorkId string The system-assigned ID for the task. You can obtain this from the output of the Assign Work task.

WaitTillSec integer The amount of time to wait for the task to be marked as Complete. This input item overrides any value specified in the Wait Till field on the Configuration tab.

TIBCO BusinessWorks Palette Reference

Page 265: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Completion | 243

OutputThe output for the activity is the following.

Output Item Datatype Description

WaitForCompletion object The root class for the output of the Wait For Completion activity. This class contains all output items for the activity.

Header object This item contains information about the manual work task’s configuration.

WorkName string The name of the task.

WorkStatus string The current status of the task.

WorkId string The system-assigned ID for the task.

DueDate date The date when the task must be completed.

ReadyDate date The date the task was placed into the user role’s Ready list.

AcquiredDate date If the task was acquired before this activity completes, this contains the date the task was acquired by a user.

CompletedDate date If the task was marked as complete before this activity completes, this contains the date the task was completed.

AssignedTo string The role the task was assigned to.

AcquiredBy string If the task was acquired before this activity completes, this is the name of the user that acquired the activity.

TIBCO BusinessWorks Palette Reference

Page 266: TIBCO Business Works - Palette Reference - Nov 2002

244 | Manual Work Palette

Priority string The priority for the task. Can be either "Low", "Normal", or "Urgent".

TrackingInfo Object An object containing any information about the routing or delegation for the task. Each time the task is routed or delegated, the From object contains information about the user that performed the delegation or routing. The To object contains a list describing each user the task has been delegated or routed to.

From Object Contains information about the user that last performed a routing or delegation operation on the task. This object contains strings with the following information:

• AssignedBy — the user that last performed the routing or delegation.

• Action — the action performed, either route or delegate.

• Action Date — the date the action was performed.

• WorkID — the ID assigned to this task.

• Note — any notes passed on from the user performing the routing or delegation.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 267: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Completion | 245

To Object Contains a list detailing information about each user that the task has been routed or delegated to. This object contains strings with the following information:

• AssignedTo — the user the task has been assigned to.

• Action — the action performed, either route or delegate.

• Action Date — the date the action was performed.

• WorkID — the ID assigned to this task.

• Note — any notes passed on from the user performing the routing or delegation.

Details object The data schema for the task.

Extended Details object The data schema for additional data when delegating or routing the task.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 268: TIBCO Business Works - Palette Reference - Nov 2002

246 | Manual Work Palette

TIBCO BusinessWorks Palette Reference

Page 269: TIBCO Business Works - Palette Reference - Nov 2002

| 247

Chapter 13 Parse Palette

The Parse palette provides activities for parsing and rendering formatted text. This is useful if you wish to transform formatted lines of text into a data schema. The text lines can be formatted by either delimiters separating each field or offsets can be specified to determine where each field begins and ends. This is also useful if you wish to transform a data schema into a formatted text string.

Topics

• Parse Data, page 248

• Render Data, page 253

TIBCO BusinessWorks Palette Reference

Page 270: TIBCO Business Works - Palette Reference - Nov 2002

248 | Parse Palette

Parse Data

The Parse Data activity takes a text string or input from a file and processes it, turning it into a schema tree based on the specified Data Format shared configuration.

You can use any mechanism to obtain or create a text string for processing. For example, you can use the Read File activity to obtain text from a file, or you can retrieve a text field from an adapter message. You can also specify a text file to read using this activity.

You might use this activity in a number of situations. For example, you may have a file that consists of multiple lines of comma-separated values (as in data obtained from a spreadsheet). You may also want to insert that data into a database table. To do this, read and parse the file into a data schema with the Parse Data activity. Then use a JDBC Update activity to insert the data schema into a database table.

ConfigurationThe configuration tab has the following fields.

Only files with ASCII or Unicode encoding can be read by this activity. If you wish to read files that use another encoding, use the Read File activity to retrieve the file contents into a process variable. Then use the process variable as input to this activity.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Data Format The Data Format shared configuration to use when parsing the text input. See Data Format on page 304 for more information.

Input Type Specifies the type of input for this activity.

Input can either be a text string or a file. If the input is a text string, supply the string to the textString input item. If the input is a file, supply the file name and location to the fileName input item.

TIBCO BusinessWorks Palette Reference

Page 271: TIBCO Business Works - Palette Reference - Nov 2002

Parse Data | 249

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Encoding The encoding of the input file. This field is only available when "File" is chosen in the Input Type field.

Only ASCII or Unicode encoded files can be read by this activity. Use the Read File activity to read data from files using other encodings.

Skip Blank Lines Skips any empty records when parsing the text input.

When this field is unchecked, parsing stops at the first blank line encountered in the input.

Skip First Record (Header)

Skips the first record of the file. This option is for eliminating the header record, if desired.

Manually Specify Start Record

Allows you to specify the record in the input where you wish to start parsing.

This is useful if you have a large number of records and you wish to read the input in parts (to minimize memory usage). Checking this checkbox causes the startRecord input item to appear. See Parsing a Large Number of Records on page 251 for more information on how to read the input stream in parts.

Field Description

Input Item Datatype Description

Input object The root class for the input of the Parse Data activity. This class contains all input items for the activity.

textString string The text string to parse. This input item is only available when "String" is specified in the Input Type field on the Configuration tab.

TIBCO BusinessWorks Palette Reference

Page 272: TIBCO Business Works - Palette Reference - Nov 2002

250 | Parse Palette

fileName string The location and name of the file to read. The file’s contents is used as the input text string for this activity. This input item is only available when "File" is specified in the Input Type field on the Configuration tab.

startRecord number The line number of the input stream where you wish to begin parsing. All lines before the specified line are ignored. This input item is only available if the Manually Specify Start Record field on the Configuration tab is checked.

The input stream begins with line number 0 (zero).

This is useful if you wish to read the input stream in parts to minimize memory usage. See Parsing a Large Number of Records on page 251 for more information.

noOfRecords number The number of records to read from the input stream. Specify "-1" if you wish to read all records in the input stream.

This is useful if you wish to read the input stream in parts to minimize memory usage. See Parsing a Large Number of Records on page 251 for more information.

Input Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 273: TIBCO Business Works - Palette Reference - Nov 2002

Parse Data | 251

OutputThe output for the activity is the following.

Parsing a Large Number of RecordsThe input for this activity is placed in a process variable and takes up memory as it is being processed. If you are reading a large number of records from a file, the process may consume significant machine resources. To avoid using too much memory, you may wish to read the input in parts, parsing and processing a small set of records before moving on to the next set.

Output Item Datatype Description

Output object The root class for the output of the Parse Data activity. This class contains all output items for the activity.

Rows Object This output item contains the list of parsed lines from the input. This is useful to determine the number of records parsed by this activity.

The schema specified by the Data Format resource is contained within this output item.

schema Object The schema containing the data from the parsed input text. This output item contains zero or more parsed records.

done boolean true if no more records are available for parsing. false if there are more records available.

This output item is useful for checking if there are no more records in the input stream when you are reading the input in parts to preserve memory. See Parsing a Large Number of Records on page 251 for more information.

TIBCO BusinessWorks Palette Reference

Page 274: TIBCO Business Works - Palette Reference - Nov 2002

252 | Parse Palette

To process a large number of records, follow this procedure:

1. Create a Parse Data activity.

2. Specify the fields on the Configuration tab. Check the checkbox for the Manually Specify Start Record field.

3. Select the Parse Data activity and click the group icon on the toolbar to create a group containing the Parse Data activity. See TIBCO BusinessWorks Process Design Guide for more information about working with groups.

4. Specify "Repeat Until True Loop" as the Group action, and specify an index name (for example, "i").

5. The loop should exit when the done output item for the Parse Data activity is set to true. For example, the condition for the loop could be set to the following: string($ParseData/Output/done) = string(true())

6. Set the noOfRecords input item for the Parse Data activity to the number of records you wish to process for each execution of the loop.

7. If you do not check the Manually Specify Start Record field on the Configuration tab of the Parse Data activity, the loop processes the specified noOfRecords with each iteration until there are no more input records to parse.

You can optionally check the Manually Specify Start Record field to specify the startRecord on the Input tab. If you do this, you must create an XPath expression to properly specify the starting record to read with each iteration of the loop. For example, the count of records in the input starts at zero, so the startRecord input item could be set to the current value of the loop index minus one. For example, $i - 1.

The procedure above is a general guideline for creating a loop group for parsing a large set of input records in parts. You may want to modify the procedure to include additional processing of the records, or you may want to change the XPath expressions to suit your business process.

TIBCO BusinessWorks Palette Reference

Page 275: TIBCO Business Works - Palette Reference - Nov 2002

Render Data | 253

Render Data

The Render Data activity takes an instance of a data schema and renders it as a text string. The schema processed is based on a specified Data Format shared configuration.

You may wish to use this activity in a number of situations. For example, you may retrieve a result set from a database table. You may then wish to format this result set as a formatted text string (with line breaks between each row in the result set), and then write that text string out to a file. You would use the Render Data activity to render the data schema as a formatted text string. Then you would use the Write File activity to write the string to a file.

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Data Format The Data Format shared configuration to use when rendering the text output. See Data Format on page 304 for more information.

Input Item Datatype Description

Input object The root class for the input of the Render Data activity. This class contains all input items for the activity.

TIBCO BusinessWorks Palette Reference

Page 276: TIBCO Business Works - Palette Reference - Nov 2002

254 | Parse Palette

OutputThe output for the activity is the following.

schema object The data schema (specified by the Data Format Configuration field) to render as a text string.

Input Item Datatype Description

Output Item Datatype Description

Output object The root class for the output of the Render Data activity. This class contains all output items for the activity.

textString string The output text string as a result of rendering the specified data schema. Line breaks separate records of the data schema.

TIBCO BusinessWorks Palette Reference

Page 277: TIBCO Business Works - Palette Reference - Nov 2002

| 255

Chapter 14 Rendezvous Palette

The Rendezvous palette allows you to send and receive TIBCO Rendezvous messages. For more information about TIBCO Rendezvous, see the TIBCO Rendezvous documentation.

Topics

• Publish Rendezvous Message, page 256

• Rendezvous Subscriber, page 258

• Reply to Rendezvous Request, page 260

• Send Rendezvous Request, page 262

• Wait for Rendezvous Message, page 265

TIBCO BusinessWorks Palette Reference

Page 278: TIBCO Business Works - Palette Reference - Nov 2002

256 | Rendezvous Palette

Publish Rendezvous Message

The Publish Rendezvous Message activity publishes a TIBCO Rendezvous message on the given subject with the given message content.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Subject The subject on which to publish the TIBCO Rendezvous message. You can override this value by specifying a subject on the Input tab.

Transport The TIBCO Rendezvous transport parameters. These are specified as a Rendezvous Transport shared configuration resource. See Rendezvous Transport on page 322 for more information about shared configuration resources.

Pre-register Listener When using TIBCO Rendezvous Certified Messaging (RVCM), this field specifies the cmname(s) of the RVCM subscriber(s). This allows the publisher to pre-register with any expected listeners. If multiple cmnames are specified, separate each cmname with a comma.

See the TIBCO Rendezvous documentation for more information about RVCM.

TIBCO BusinessWorks Palette Reference

Page 279: TIBCO Business Works - Palette Reference - Nov 2002

Publish Rendezvous Message | 257

Input Schema The Input Schema tab allows you to define a custom schema for the TIBCO Rendezvous message.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Output Schema tab becomes the body of the TIBCO Rendezvous message.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Output Schema tab.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Schema Specifies whether the input schema is shared (available as a stored schema in the repository), or custom. The input schema becomes the body of the TIBCO Rendezvous message to send.

If the input schema is shared, you must locate the stored schema using the Input Reference field. If the input schema is custom, you must specify the fields of the input schema using the Input Schema tab.

Input Reference The location of the shared schema to use as the input for this activity. This schema becomes the body of the TIBCO Rendezvous message.

XML Encoding If checked, this field sends the TIBCO Rendezvous message as a single field named "xml". The datatype of the field is RVXml.

Field Description

Input Item Datatype Description

pubInputType Object The root class for the input of the Publish Rendezvous Message activity. This class contains all input items for the activity.

TIBCO BusinessWorks Palette Reference

Page 280: TIBCO Business Works - Palette Reference - Nov 2002

258 | Rendezvous Palette

OutputThis activity produces no output.

Rendezvous Subscriber

The Rendezvous Subscriber process starter creates a process when a TIBCO Rendezvous message on the given subject is received.

ConfigurationThe configuration tab has the following fields.

subject string The subject of the TIBCO Rendezvous message.

body object The body of the TIBCO Rendezvous message.

Input Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Subject The subject on which to listen for the TIBCO Rendezvous message.

Transport The TIBCO Rendezvous transport parameters. These are specified as a Rendezvous Transport shared configuration resource. See Rendezvous Transport on page 322 for more information about shared configuration resources.

TIBCO BusinessWorks Palette Reference

Page 281: TIBCO Business Works - Palette Reference - Nov 2002

Rendezvous Subscriber | 259

Output Schema The Output Schema tab allows you to define a custom schema for the TIBCO Rendezvous message.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Output Schema tab becomes the body of the TIBCO Rendezvous message.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Output Schema tab.

InputThis activity requires no input.

XML Encoding If checked, this field receives the TIBCO Rendezvous message as a single field named "xml". The datatype of the field is RVXml.

Output Schema Specifies whether the output schema is shared (available as a stored schema in the repository), or custom. The output schema becomes the body of the TIBCO Rendezvous message that is expected to be received.

If the output schema is shared, you must locate the stored schema using the Schema Reference field. If the output schema is custom, you must specify the fields of the output schema using the Output Schema tab.

Schema Reference The location of the shared schema to use as the output for this activity. This schema becomes the body of the TIBCO Rendezvous message.

Field Description

TIBCO BusinessWorks Palette Reference

Page 282: TIBCO Business Works - Palette Reference - Nov 2002

260 | Rendezvous Palette

OutputThe output for the activity is the following.

Reply to Rendezvous Request

The Reply to Rendezvous Request activity is used to send a reply to a received TIBCO Rendezvous message.

ConfigurationThe configuration tab has the following fields.

Output Item Datatype Description

rveventSourceOutputClass Object The root class for the output of the Rendezvous Subscriber activity. This class contains all output items for the activity.

replySubject string The reply subject of the TIBCO Rendezvous message.

body object The body of the TIBCO Rendezvous message.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Reply For The TIBCO Rendezvous activity or process starter that received the request. This is a selection list of available activities that can receive TIBCO Rendezvous messages.

TIBCO BusinessWorks Palette Reference

Page 283: TIBCO Business Works - Palette Reference - Nov 2002

Reply to Rendezvous Request | 261

Output Schema The Output Schema tab allows you to define a custom schema for the TIBCO Rendezvous message.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Output Schema tab becomes the body of the TIBCO Rendezvous message.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Output Schema tab.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Reply Subject The reply subject of the received TIBCO Rendezvous message. You can override this value by specifying a subject on the Input tab.

Input Schema Specifies whether the input schema is shared (available as a stored schema in the repository), or custom. The input schema becomes the body of the TIBCO Rendezvous reply that is send.

If the input schema is shared, you must locate the stored schema using the Input Reference field. If the input schema is custom, you must specify the fields of the input schema using the Output Schema tab.

Input Reference The location of the shared schema to use as the input for this activity. This schema becomes the body of the TIBCO Rendezvous message.

Field Description

Input Item Datatype Description

ReplyInputType Object The root class for the input of the Reply to Rendezvous Request activity. This class contains all input items for the activity.

TIBCO BusinessWorks Palette Reference

Page 284: TIBCO Business Works - Palette Reference - Nov 2002

262 | Rendezvous Palette

OutputThis activity produces no output.

Send Rendezvous Request

The Send Rendezvous Request activity publishes a TIBCO Rendezvous message on the given subject with the given message content, and it expects a reply to the message on the given reply subject and with the given reply message content. This activity waits for a reply on the reply subject and outputs the content of the reply.

ConfigurationThe configuration tab has the following fields.

replySubject string The reply subject of the TIBCO Rendezvous message.

body object The body of the TIBCO Rendezvous message.

Input Item Datatype Description

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Subject The subject on which to publish the TIBCO Rendezvous message. You can override this value by specifying a subject on the Input tab.

TIBCO BusinessWorks Palette Reference

Page 285: TIBCO Business Works - Palette Reference - Nov 2002

Send Rendezvous Request | 263

Transport The TIBCO Rendezvous transport parameters. These are specified as a Rendezvous Transport shared configuration resource. See Rendezvous Transport on page 322 for more information about shared configuration resources.

Request Timeout (msec)

The amount of time to wait (in milliseconds) for a reply to the TIBCO Rendezvous message. If no reply is received within the given time limit, an error is returned.

Pre-register Listener When using TIBCO Rendezvous Certified Messaging (RVCM), this field specifies the cmname(s) of the RVCM subscriber(s). This allows the sender to pre-register with any expected listeners. If multiple cmnames are specified, separate each cmname with a comma.

See the TIBCO Rendezvous documentation for more information about RVCM.

Input Schema Specifies whether the input schema is shared (available as a stored schema in the repository), or custom. The input schema becomes the body of TIBCO Rendezvous request to send.

If the input schema is shared, you must locate the stored schema using the Input Ref field. If the input schema is custom, you must specify the fields of the input schema using the Input Schema tab.

Input Ref The location of the shared schema to use as the input for this activity. This schema becomes the body of the TIBCO Rendezvous message.

Output Schema Specifies whether the output schema is shared (available as a stored schema in the repository), or custom. The output schema becomes the body of the reply to the TIBCO Rendezvous request.

If the output schema is shared, you must locate the stored schema using the Output Ref field. If the output schema is custom, you must specify the fields of the output schema using the Output Schema tab.

Field Description

TIBCO BusinessWorks Palette Reference

Page 286: TIBCO Business Works - Palette Reference - Nov 2002

264 | Rendezvous Palette

Input/Ouput SchemaThe Input Schema and Output Schema tabs allow you to define custom schemas for the outgoing TIBCO Rendezvous request and the incoming TIBCO Rendezvous response.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Data tab becomes the body of the TIBCO Rendezvous messages.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Data tab.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Output Ref The location of the shared schema to use as the output for this activity. This schema becomes the body of the TIBCO Rendezvous message.

XML Encoding If checked, this field sends the TIBCO Rendezvous message as a single field named "xml". The datatype of the field is RVXml.

Field Description

Input Item Datatype Description

RequestInputType Object The root class for the input of the Publish Rendezvous Message activity. This class contains all input items for the activity.

subject string The subject of the TIBCO Rendezvous message.

replySubject string The reply subject of the TIBCO Rendezvous message.

body object The body of the TIBCO Rendezvous message.

TIBCO BusinessWorks Palette Reference

Page 287: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Rendezvous Message | 265

OutputThe output for the activity is the following.

Wait for Rendezvous Message

The Wait for Rendezvous Message waits to receive a TIBCO Rendezvous message with the given subject.

ConfigurationThe configuration tab has the following fields.

Output Item Datatype Description

RequestOutputType Object The root class for the output of the Send Rendezvous Request activity. This class contains all output items for the activity.

subject string The subject of the TIBCO Rendezvous message.

replySubject string The reply subject of the TIBCO Rendezvous message.

body object The body of the TIBCO Rendezvous message.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Subject The subject on which to listen for the TIBCO Rendezvous message.

TIBCO BusinessWorks Palette Reference

Page 288: TIBCO Business Works - Palette Reference - Nov 2002

266 | Rendezvous Palette

Output Schema The Output Schema tab allows you to define a custom schema for the TIBCO Rendezvous message.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Output Schema tab becomes the body of the TIBCO Rendezvous message.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Output Schema tab.

Transport The TIBCO Rendezvous transport parameters. These are specified as a Rendezvous Transport shared configuration resource. See Rendezvous Transport on page 322 for more information about shared configuration resources.

Output Schema Specifies whether the output schema is shared (available as a stored schema in the repository), or custom. The output schema becomes the body of the TIBCO Rendezvous message that is expected to be received.

If the output schema is shared, you must locate the stored schema using the Schema Reference field. If the output schema is custom, you must specify the fields of the output schema using the Output Schema tab.

Schema Reference The location of the shared schema to use as the output for this activity. This schema becomes the body of the TIBCO Rendezvous message.

Encode as XML If checked, this field receives the TIBCO Rendezvous message as a single field named "xml". The datatype of the field is RVXml.

Field Description

TIBCO BusinessWorks Palette Reference

Page 289: TIBCO Business Works - Palette Reference - Nov 2002

Wait for Rendezvous Message | 267

Event The Event tab has the following fields.

Field Description

Candidate Event Key Expression built from the data of the incoming message. This expression should evaluate to a string and it is compared to the "key" field of the activity’s input. If the Candidate Event Key and the activity’s key match, then the process accepts the incoming message.

For example, you may have a Publish Rendezvous Message activity that sends a message with a particular ID. You are expecting a reply message that contains that same ID so that you can determine the message is a response to your sent message. You would specify the field of the incoming message that contains your ID in the Candidate Event Key. You would then use the message ID of the message you sent earlier in the process as the "key" field in the input.

This expression is specified in XPath, and only data from the incoming event is available for use in this XPath expression. See TIBCO BusinessWorks Process Design Guide for more information about XPath expressions.

Event Timeout (msec) A message may arrive before this activity is executed. This field specifies the amount of time (in milliseconds) a message will wait if it is received before this activity is reached. If the event timeout expires, an error is logged and the event is discarded

When building an expression in the Candidate Event Key field, only data from the incoming event is available. The idea is that you want to place an expression containing incoming event data in the Candidate Event Key field. When the results of this expression match the results of the expression in the "key" item on the Input tab, the Wait For Rendezvous Message activity proceeds.

TIBCO BusinessWorks Palette Reference

Page 290: TIBCO Business Works - Palette Reference - Nov 2002

268 | Rendezvous Palette

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe output for the activity is the following.

Input Item Datatype Description

input Object The root class for the input of the Wait for Rendezvous Message activity. This class contains all input items for the activity.

key string The value that is compared to the Candidate Event Key field of the Event tab to determine if this message applies to this process. See Event on page 267 for an example of using the Candidate Event Key field with the key input item.

timeout integer The time (in milliseconds) to wait for the incoming message. An error is returned if the message is not received within this time limit.

Output Item Datatype Description

rveventSourceOutputClass Object The root class for the output of the Rendezvous Subscriber activity. This class contains all output items for the activity.

replySubject string The reply subject of the TIBCO Rendezvous message.

body object The body of the TIBCO Rendezvous message. The attributes of this object are specified on the Configuration tab.

TIBCO BusinessWorks Palette Reference

Page 291: TIBCO Business Works - Palette Reference - Nov 2002

| 269

Chapter 15 SOAP Palette

Simple Object Access Protocol (SOAP) is a lightweight protocol for the exchange of information between web services. The SOAP palette allows you do the following:

• create process definitions that implement web services

• send a SOAP request to a web service and receive a reply from that service

• generate a WSDL file containing a concrete service description of any process containing a SOAP Event Source process starter.

See the SOAP specification available at www.w3.org/TR/SOAP for more information about SOAP.

Topics

• Retrieve Resources, page 270

• SOAP Event Source, page 273

• SOAP Request Reply, page 277

• SOAP Send Fault, page 283

• SOAP Send Reply, page 286

TIBCO BusinessWorks Palette Reference

Page 292: TIBCO Business Works - Palette Reference - Nov 2002

270 | SOAP Palette

Retrieve Resources

The Retrieve Resources activity generates a WSDL file containing a concrete service description of any process definition that has a SOAP Event Source process starter. This allows clients to access the WSDL for a web service that is implemented by a TIBCO

BusinessWorks process definition. The client can then use the WSDL file to invoke the web service.

Using Retrieve ResourcesThis activity is normally used in conjunction with an HTTP Receiver process starter and an Send HTTP Response activity. The HTTP Receiver process starter can receive an HTTP request and pass it along to the Retrieve Resources activity. Retrieve Resources then creates a WSDL file dynamically. This file contains the concrete service definition of the specified BusinessWorks process definition. The process definition must have a Soap Event Source process starter in order for the WSDL file to be generated.

You can then pass the output of the Retrieve Resources activity to the HTTP Response activity to send the response back to the requestor.

Figure 15 illustrates a process definition using the Retrieve Resources activity.

Figure 15 Process definition using the Retrieve Resources activity

To use the Retrieve Resources activity, the HTTP request must have the following form:

http://<host>:<port>/bw/services/<path>/<resource name>?wsdl

where host and port are the host name of the machine that is listening for the HTTP request (the machine where this process instance is running) and port should be the same port specified by the HTTP Receiver process starter. path is the location of the resource or path in the project tree. resource name is the name of the process definition.

For example, the following is an HTTP request that retrieves the WSDL file for the process named GetPurchaseOrder stored within the folder Purchasing:

http://purch:8877/bw/services/Purchasing/GetPurchaseOrder?wsdl

TIBCO BusinessWorks Palette Reference

Page 293: TIBCO Business Works - Palette Reference - Nov 2002

Retrieve Resources | 271

See the descriptions of the Input and Output tabs for this activity for more information about binding the HTTP request to this activity’s input and binding this activity’s output to an HTTP response.

Retrieving a WSIL FileYou can retrieve a Web Services Inspection Language (WSIL) file containing a list of all configured web services. Any process definitions with SOAP Event Source process starters within the project will be contained in the WSIL file.

The same process definition that accepts incoming HTTP requests and returns WSDL resources (described in the previous section) can be used to return the WSIL file. If you issue an HTTP request in the following form, a WSIL file containing a list of all web services is returned:

http://<host>:<port>/bw/inspection/inspection.wsil

ConfigurationThe configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

When sending the HTTP Response, set the Headers/Content-Type item on the Input tab to "text/xml".

If you wish to test a process definition containing this activity, you must load the process definition containing this activity along with the process definition containing the SOAP Event Source process starter into the test window. For more information about loading multiple process definitions when testing, see TIBCO BusinessWorks Process Design Guide.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

TIBCO BusinessWorks Palette Reference

Page 294: TIBCO Business Works - Palette Reference - Nov 2002

272 | SOAP Palette

The input for the activity is the following.

Input Item Datatype Description

inputClass Object The root class for the input of the Retrieve Resources activity. This class contains all input items for the activity.

resourcePath string The process name (and its location in the project tree) for which you wish to generate the WSDL file. Only processes with SOAP Event Source process starters can be used with this activity.

This item can override the path and resource specified by the incoming HTTP request.

filter string This signifies what type of information the activity should return. This should be "wsdl" because that is the only type of information that this activity can return.

Normally, this is obtained from the query string for the HTTP Receiver activity (see the example HTTP request above). However, if you wish clients to not specify the query string on the HTTP request, you can specify "wsdl" in this input item to override the query sting of the incoming HTTP request.

hostname string The hostname to specify for the concrete service endpoint in the dynamically generated WSDL file.

This value becomes part of the service’s address in the generated file.

TIBCO BusinessWorks Palette Reference

Page 295: TIBCO Business Works - Palette Reference - Nov 2002

SOAP Event Source | 273

OutputThe output for the activity is the following.

SOAP Event Source

The SOAP Event Source process starter creates a process instance for incoming SOAP requests. SOAP is a standard protocol for invoking web services. This allows you to create process definitions that implement web services.

port string The port number to specify for the concrete service endpoint in the dynamically generated WSDL file.

This value becomes part of the service’s address in the generated file.

Input Item Datatype Description

Output Item Datatype Description

outputClass Object The root class for the output of the Retrieve Resources activity. This class contains all output items for the activity.

resourceData string The generated WSDL file that can be used by a client to invoke the specified process as a web service.

You can pass this data back to the HTTP requestor by using an HTTP Send Response activity and binding this value to the binaryContent or asciiContent of the response.

TIBCO BusinessWorks Palette Reference

Page 296: TIBCO Business Works - Palette Reference - Nov 2002

274 | SOAP Palette

At runtime, a client can retrieve the WSDL file for a process containing this process starter using an HTTP request (see the description of the Retrieve Resources activity for more information). Once the WSDL is retrieved, the client can perform a SOAP request to invoke the web service.

ConfigurationThe configuration tab has the following fields.

When using the SOAP Event Source activity to create a web service, the web service uses "literal" encoding and is of type "document". See the SOAP specification for more information about the types of web services and the encoding used in a web service.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

WSDL File The stored WSDL file that contains the abstract service description. This is specified or imported as a shared configuration resource. See WSDL File on page 329 for more information about abstract and concrete service descriptions.

The stored service description can be either abstract or concrete, but because the process definition is the implementation of the web service, any concrete endpoint binding is ignored.

The best practice is to generate an abstract service description using the WSDL File shared configuration resource. Then use that abstract service description for this activity’s service.

However, you may wish to use an existing WSDL file as a template for your service. If there is an existing concrete service description, you can also use that for this activity, but the concrete endpoint information will be replaced by BusinessWorks’ endpoint binding when the Retrieve Resources activity is used to generate the WSDL File.

TIBCO BusinessWorks Palette Reference

Page 297: TIBCO Business Works - Palette Reference - Nov 2002

SOAP Event Source | 275

OutputThe output for the activity is the following.

Service The name of the web service that this process definition represents.

You can use the Select button to bring up the Select a Resource dialog. This dialog allows you to select the available operations and the service from the specified WSDL file. The Operation and Endpoint URL fields will then be populated by the choices made in this dialog.

Operation The operation that this process definition implements. This field is automatically populated when an operation is selected using the Select a Resource dialog (see the Service field for more information).

Transport The HTTP Connection where incoming SOAP requests are received. See HTTP Connection on page 309 for more information about shared configuration resources.

The HTTP Connection can specify that the Secure Sockets (HTTPS) protocol is used.

Authentication When checked, this field specifies that incoming SOAP requests must supply a valid username and password.

The user name and password specified in the incoming request must exist in the domain (users are created and managed within the domain using TIBCO Administrator).

Field Description

Output Item Datatype Description

inputMessage Object The root class for the output of the SOAP Event Source. This class contains all output items for the activity.

TIBCO BusinessWorks Palette Reference

Page 298: TIBCO Business Works - Palette Reference - Nov 2002

276 | SOAP Palette

Input HeadersThe Input Headers tab allows you to define a custom schema used for any headers supplied by the incoming SOAP request. The specified input header is also specified in the concrete bindings in the WSDL file created by this process starter.

When an incoming request supplies a header, the SOAP Event Source process starter places the information contained in the header into the output process variables for the SOAP Event Source. The header information is then available to subsequent activities in the process definition.

You can define your own datatype on this tab, and you can reference XML elements stored in the project. Once defined, the data specified on the Input Headers tab becomes part of the Output schema for this activity.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of how to specify custom schemas.

schema The output schema specified in the WSDL file.

headers Object The header data supplied by the SOAP request. The structure of this input item is defined by the schema on the Input Headers tab.

headers Object Any headers supplied by the incoming SOAP request and specified on the Input Headers tab. The headers are stored in an object named Header.<schema-name> where <schema-name> is the name of the schema specified on the Input Headers tab.

The Header.<schema-name> object also contains an item named @mustUnderstand. This boolean value is set to true in the incoming request if the client specifies that the server must understand the header.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 299: TIBCO Business Works - Palette Reference - Nov 2002

SOAP Request Reply | 277

Output HeadersThe Output Headers tab allows you to define a custom schema used for any headers supplied for the reply to the SOAP request. Once defined, the data specified on the Output Headers tab becomes part of the Input schema for the SOAP Send Reply activity that is used to send the reply for the incoming SOAP request.

You can define your own datatype on this tab, and you can reference XML elements stored in the project.

See Appendix A, Specifying Data Schema, on page 341 for a complete description of how to specify custom schemas.

Service DescriptionThis tab displays the WSDL file that can be used to call the web service implemented by this activity. This information is presented for display purposes only, and this file cannot be edited. You can copy this WSDL file and send it to anyone who wishes to invoke the web service for this process.

Normally, an application would use a web request to retrieve the WSDL file of a web service (see the description of the Retrieve Resources activity for more information about sending a WSDL file as a response to a web request). This tab allows you to see the WSDL file that contains the concrete service description for this process.

SOAP Request Reply

The SOAP Request Reply activity performs a request on the specified web service and expects a reply from the web service. You can invoke both document and RPC web services with this activity.

TIBCO BusinessWorks Palette Reference

Page 300: TIBCO Business Works - Palette Reference - Nov 2002

278 | SOAP Palette

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

WSDL File The WSDL file that describes the web service. This is imported as a shared configuration resource. See WSDL File on page 329 for more information about SOAP resources.

Service The name of the web service. The service specified must be a concrete service that has a binding to an actual network endpoint.

You can use the Select button to bring up the Select a Resource dialog. This dialog allows you to select the available services and operations from the specified WSDL file. The Service, Operation, and Endpoint URL fields will then be populated by the choices made in this dialog.

Operation The operation that this process definition implements. This field is automatically populated when an operation is selected using the Select a Resource dialog (see the Service field for more information).

Endpoint URL The URL of the web service that you are sending a request to. This field is automatically populated with the choice made when selecting the service.

You can specify URLs that use the HTTPS (secure sockets) protocol. If you specify HTTPS as the protocol, the Server Certificate, Client Keystore, Keystore Password, and Keystore Type fields appear.

For more information about creating keystores for private keys and trusted certificate chains, see http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html.

TIBCO BusinessWorks Palette Reference

Page 301: TIBCO Business Works - Palette Reference - Nov 2002

SOAP Request Reply | 279

Action The soapAction header for the operation. See the SOAP specification for more information about soapAction.

Timeout (secs) The time to wait (in seconds) for the operation to complete.

Use HTTP Proxy When checked, this field specifies that an HTTP proxy server is used to connect to the SOAP server. Enabling this field causes the Proxy field to appear.

Proxy Appears when the Use HTTP Proxy field is enabled. This field specifies the Proxy Configuration shared configuration resource that describes the HTTP proxy server. See Proxy Configuration on page 321 for more information.

Use Basic Authentication

When checked, this field specifies that you wish to supply a username and password to the SOAP server. The Username and Password fields appear when this field is enabled.

Username Appears when the Use Basic Authentication field is enabled. This field specifies the username to send to the SOAP server for authentication.

Password Appears when the Use Basic Authentication field is enabled. This field specifies the password to send to the SOAP server for authentication.

Trusted Certificates Only available when HTTPS is the specified protocol in the Endpoint URL field.

This field specifies the Trusted CA shared configuration resource. This certificate should contain the list of certificate authorities the client will accept for sever certificates. The server’s certificate is checked against this list, and if the certificate is not from a listed certificate authority, the connection is refused.

Field Description

TIBCO BusinessWorks Palette Reference

Page 302: TIBCO Business Works - Palette Reference - Nov 2002

280 | SOAP Palette

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

Client Keystore Only available when HTTPS is the specified protocol in the Endpoint URL field.

This field specifies the location of the client’s digital certificate and private key.

Keystore Password Only available when HTTPS is the specified protocol in the Endpoint URL field.

This field specifies the client’s password for its private key.

Key Store Type Only available when HTTPS is the specified protocol in the Endpoint URL field.

The file type for the trusted certificate. This file type can be Java Key Store (JKS) or PKCS12.

Verify Host Name Only available when HTTPS is the specified protocol in the Endpoint URL field.

This field specifies that the host name of the HTTP server should be checked against the host name listed in the server’s digital certificate. This provides additional verification that the host name you believe you are connecting to is in fact the desired host.

If the host name specified in the Endpoint URL field on the Configuration tab is not an exact match to the host name specified in the server’s digital certificate, the connection is refused.

Note: If you specify an equivalent hostname (for example, an IP address) in the Endpoint URL field, but the name is not an exact match of the hostname in the host’s digital certificate, the connection is refused.

Field Description

TIBCO BusinessWorks Palette Reference

Page 303: TIBCO Business Works - Palette Reference - Nov 2002

SOAP Request Reply | 281

The input for the activity is the following.

Input Item Datatype Description

inputMessage or <operationName>

Object The root class for the input of the SOAP Request Reply activity. This class contains all input items for the activity.

If this is a document request, the input is named inputMessage. If the request is an RPC, the input is the name of the operation.

schema The input schema specified in the WSDL file. Each of the schema elements are available in this dialog for mapping.

_configData object Specifies the values to use to override the Endpoint URL or Action fields on the Configuration tab, if desired.

endpointURL string Specifies the Endpoint URL of the WSDL file to use for the SOAP request. Specifying a value in this input item overrides any value specified in the Endpoint URL field on the Configuration tab.

soapAction string Specifies he soapAction header for the operation. See the SOAP specification for more information about soapAction.

Specifying a value in this input item overrides any value specified in the Action field on the Configuration tab.

TIBCO BusinessWorks Palette Reference

Page 304: TIBCO Business Works - Palette Reference - Nov 2002

282 | SOAP Palette

OutputThe output for the activity is the following.

headers Object Any input headers defined in the WSDL file. The headers are stored in an object named Header.<schema-name> where <schema-name> is the element name of the input header schema.

The Header.<schema-name> object also contains an item named @mustUnderstand. Set this boolean value to true if you wish to specify that the SOAP server must understand the header.

Input Item Datatype Description

Output Item Datatype Description

outputMessage or

<operationName>Response

Object The root class for the output of the SOAP Request Reply activity. This class contains all output items for the activity.

If this is a document request, the output is named outputMessage. If the request is an RPC, the output is the name of the operation with "Response" appended.

schema The output schema specified in the WSDL file. Each of the schema elements are displayed in this dialog.

TIBCO BusinessWorks Palette Reference

Page 305: TIBCO Business Works - Palette Reference - Nov 2002

SOAP Send Fault | 283

Error OutputThis tab lists the possible output in the event of an error. Errors are described by fault schemas defined in the WSDL file (see WSDL File on page 329 for information on creating fault schemas in generated WSDL files). The errors are presented as a choice element that can contain any of the defined SOAP fault schemas in the WSDL file for the specified operation, or the element can contain the defaultFault schema.

If a fault is returned by the SOAP server, you can use an error transition out of the SOAP Request Reply activity to go to a set of activities to be performed in the event of an error. The activities after the error transition can access a process variable named $_error_<activity-name> where <activity-name> is the name of the SOAP Request Reply activity. This process variable contains the fault schema returned by the SOAP server.

Handling of SOAP faults is similar to handling errors from other activities. See TIBCO BusinessWorks Process Design Guide for more information on error handling.

SOAP Send Fault

The SOAP Send Fault activity sends a predefined fault schema to the client if an error occurs during processing of a SOAP request.

headers Object Any output headers defined in the WSDL file. The headers are stored in an object named Header.<schema-name> where <schema-name> is the element name of the output header schema.

The Header.<schema-name> object also contains an item named @mustUnderstand. This boolean value is set to true if the server specifies that the SOAP client must understand the header.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 306: TIBCO Business Works - Palette Reference - Nov 2002

284 | SOAP Palette

This activity is used when the SOAP Event Source process starter is handles incoming SOAP requests. The WSDL file for the request can have one or more defined fault schemas for any operation (for generated WSDL files, see WSDL File on page 329 for a description of creating fault schemas). The SOAP Send Fault activity can use the fault schema to send application-specific data about the fault back to the client that made the SOAP request.

The fault schema must be a valid XSD schema. You can map data to the schema on the Input tab, and this data is returned to the client along with the required fault information.

SOAP faults are required to send the fault code and the fault string. These values are required input items on the Input tab. See the SOAP specification at www.w3.org/TR/SOAP for more information about the syntax of SOAP fault codes.

ConfigurationThe configuration tab has the following fields.

This activity cannot be used if the SOAP request is one way.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Reply To The SOAP Event Source process starter.

Fault Details The name of the fault schema to send. This field provides a drop-down list of the fault schemas defined in the WSDL file specified for the SOAP Event Source process starter.

You must select one of the fault schemas to return to the client, and that schema becomes part of the input schema for this activity’s Input tab.

The option <Default> is always available and can be used to send the default fault schema.

TIBCO BusinessWorks Palette Reference

Page 307: TIBCO Business Works - Palette Reference - Nov 2002

SOAP Send Fault | 285

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Item Datatype Description

FaultMessage Object The root class for the input of the SOAP Send Fault activity. This class contains all input items for the activity.

faultcode string The SOAP specification defines a specific syntax for faultcodes returned by a SOAP fault. See the SOAP specification for more information on how to specify a faultcode.

faultstring string The faultstring is a message to pass back to the client describing the fault.

faultfactor string The faultactor element is intended to provide information about who caused the fault to happen within the message path. It is similar to the SOAP actor attribute but instead of indicating the destination of the header entry, it indicates the source of the fault.

The value of the faultactor attribute is a URI identifying the source of the fault. You may use the faultactor element to indicate explicitly that this TIBCO BusinessWorks process generated the fault.

TIBCO BusinessWorks Palette Reference

Page 308: TIBCO Business Works - Palette Reference - Nov 2002

286 | SOAP Palette

OutputThe activity has no output.

SOAP Send Reply

The SOAP Send Reply activity sends a reply to an application that sent a SOAP request. This activity is primarily used within process definitions that implement web services. When a SOAP Event Source is used as the process starter, the SOAP Send Reply activity is

used to send the reply to the request that starts the process instance.

ConfigurationThe configuration tab has the following fields.

detail Object The fault schema specified by the Fault Details field on the Configuration tab. This schema is used to pass application-specific data back to the client in the event of a fault.

Input Item Datatype Description

This activity cannot be used if the SOAP request is one way.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Reply To The SOAP Event Source process starter that received the request.

TIBCO BusinessWorks Palette Reference

Page 309: TIBCO Business Works - Palette Reference - Nov 2002

SOAP Send Reply | 287

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

OutputThe activity has no output.

Input Item Datatype Description

outputMessage Object The root class for the input of the SOAP Send Reply activity. This class contains all input items for the activity.

schema The output schema of the operation for the selected SOAP request. Each of the schema elements are available in this dialog for mapping.

headers Object Any headers specified on the Output Headers tab of the SOAP Event Source process starter that is specified on the Configuration tab of this activity. The headers are stored in an object named Header.<schema-name> where <schema-name> is the name of the schema specified on the Output Headers tab.

The Header.<schema-name> object also contains an item named @mustUnderstand. This boolean value is set to true if you wish to specify that the client must understand the header of the reply.

TIBCO BusinessWorks Palette Reference

Page 310: TIBCO Business Works - Palette Reference - Nov 2002

288 | SOAP Palette

TIBCO BusinessWorks Palette Reference

Page 311: TIBCO Business Works - Palette Reference - Nov 2002

| 289

Chapter 16 XML Palette

The XML palette provides activities for parsing XML strings into schemas and rendering schemas into XML strings.

Topics

• Parse XML, page 290

• Render XML, page 292

• Transform XML, page 294

TIBCO BusinessWorks Palette Reference

Page 312: TIBCO Business Works - Palette Reference - Nov 2002

290 | XML Palette

Parse XML

The Parse XML activity takes a binary XML file or an XML string and processes it, turning it into an XML schema tree based on the XSD or DTD specified.

The preferred way to parse XML files is to use a Read File activity set to binary mode to read the XML file. Then pass the binary file contents to the Parse XML activity.

Parsing Date and Datetime StringsIn XML documents parsed by the XML Parser activity, datetime values are read in according to the ISO-8601 standard, as described in the XML Schema specification. For example, the value:

2002-02-10T14:55:31.112-08:00

is 55 minutes, 31 seconds, and 112 milliseconds after 2PM on February 10th, 2002 in a timezone that is 8 hours, 0 minutes behind UTC.

If no timezone field is present, the value is interpreted in the timezone of the machine that is performing the parsing. This can lead to complications if you are processing XML from different timezones, so you are encouraged to always use timezones.

ConfigurationThe Configuration tab has the following fields.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Schema The XSD or DTD file to use when parsing the XML string. This schema file is specified as a shared configuration resource that can be used by many activities. See Schema Definition on page 326 for more information about XML resources.

Element Element within the XSD or DTD file to use when parsing the XML string.

TIBCO BusinessWorks Palette Reference

Page 313: TIBCO Business Works - Palette Reference - Nov 2002

Parse XML | 291

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Input Style Can be binary, text, or dynamic.

In binary mode (the default and preferred choice), the binary content is read. The encoding used for parsing the content is either the default encoding specified in the XML or you can specify encoding using the "forceEncoding" input item.

In text mode, an XML string is passes as an input item.

In dynamic mode, a choice is offered for input. You can either supply binary or text input. You can use a choice statement and set substitution in the mapping to supply the correct type of input at run time.

Field Description

Input Item Datatype Description

xmlString string The XML string to parse.

xmlBinary object Available when the Input Style configuration field is set to binary.

This input item contains a required bytes item for which you specify the input XML bytes.

This input item also contains an optional forceEncoding item. This is a string that specifies the encoding to use when parsing the XML. You can specify any encoding supported by Java on the system where TIBCO BusinessWorks is running. If this item is left blank, the encoding specified in the XML is used.

TIBCO BusinessWorks Palette Reference

Page 314: TIBCO Business Works - Palette Reference - Nov 2002

292 | XML Palette

OutputThe output for the activity is the following.

Render XML

The Render XML activity takes an instance of an XML schema element and renders it as a stream of bytes containing XML or an XML string. The schema is processed based on the XSD file specified.

Rendering Date and Datetime StringsWhenTIBCO BusinessWorks generates datetime strings, it always uses UTC time. For example, the time 55 minutes, 31 seconds, and 112 milliseconds after 2PM on February 10th, 2002 would be represented as the following by the Render XML activity:

2002-02-10T14:55:31.112Z

xmlBinary|xmlString choice Available when the Input Style configuration field is set to dynamic.

This allows you to specify a choice statement and set substitution and supply the correct input type at runtime.

Input Item Datatype Description

Output Item Datatype Description

XML Schema Object The parsed XML schema is the output of this activity. The contents of the schema are determined by the specified XSD or DTD file.

TIBCO BusinessWorks Palette Reference

Page 315: TIBCO Business Works - Palette Reference - Nov 2002

Render XML | 293

ConfigurationThe Configuration tab has the following fields.

InputSee TIBCO BusinessWorks Process Design Guide for more information about mapping and transforming input data.

The input for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Schema The XSD or DTD file to use when rendering the XML schema. This schema file is specified as a shared configuration resource that can be used by many activities. See Schema Definition on page 326 for more information about XML resources.

Element Element within the XSD or DTD file to use when rendering the XML schema.

Text-only Output Specifies that the output should be text when this checkbox is checked. If this field is unchecked, the output is a stream of bytes.

When this field is unchecked (binary output), an optional byteEncoding input item is available.

Input Item Datatype Description

XML Schema string The XML schema to render. The contents of the schema are determined by the specified XSD or DTD file.

TIBCO BusinessWorks Palette Reference

Page 316: TIBCO Business Works - Palette Reference - Nov 2002

294 | XML Palette

OutputThe output for the activity is the following.

Transform XML

The Transform XML activity allows you to transform an input XML document into the output specified by the given XSLT File shared configuration resource.

Normally, transformation of data occurs by mapping process variables to an activity’s input and applying XPath expressions to perform any transformation. If you have an XSLT file that you are using for transformations, or if you are supplied with an XSLT file from an outside source, this activity allows you to use the XSLT file instead of manually creating the mappings.

byteEncoding string This is a string that specifies the encoding to use when rendering the XML. You can specify any encoding supported by Java on the system where TIBCO BusinessWorks is running. If this item is left blank, the encoding specified in the XML is used.

Input Item Datatype Description

Output Item Datatype Description

xmlString string Available when the Text-only Output configuration field is checked. This item contains the rendered XML string.

xmlBytes bytes Available when the Text-only Output configuration field is unchecked. This item contains a stream of bytes representing the rendered XML.

TIBCO BusinessWorks Palette Reference

Page 317: TIBCO Business Works - Palette Reference - Nov 2002

Transform XML | 295

For more information about creating and editing XSLT files, see the XSLT specification at http://www.w3.org/TR/xslt. For more information about creating an XSLT File shared configuration resource see XSLT File on page 336.

See Example of Transforming XML on page 297 for an example of using the Transform XML activity.

ConfigurationThe Configuration tab has the following fields.

InputThe input for the activity is the following.

Field Description

Name The name to appear as the label for the activity in the process definition.

Description Short description of the activity.

Stylesheet Resource The XSLT File shared configuration resource to use when transforming the XML.

See XSLT File on page 336 for more information.

Input Item Datatype Description

input Object The root class for the input of the for Transform XML activity. This class contains all input items for the activity.

xmlInput binary The XML to transform. This input item is binary, so if you are handling an XML string, you must use the string-to-base64() XPath function to convert the input XML string into a binary value.

TIBCO BusinessWorks Palette Reference

Page 318: TIBCO Business Works - Palette Reference - Nov 2002

296 | XML Palette

OutputThe output for the activity is the following.

stylesheet binary The XSLT stylesheet. The stylesheet supplied in this input item overrides the stylesheet supplied on the Configuration tab.

This input item is binary, so if you are handling the stylesheet as a string, you must use the string-to-base64() XPath function to convert the stylesheet into a binary value.

parameter Object This object contains the input parameter for the style sheet. If you have more than one input parameter, use the Modify Statement button to create a List statement. You can specify a list containing the desired number of input parameters.

Each input parameter is specified as name/value pairs. The name is a string that corresponds to the name of the parameter specified in the XSLT stylesheet parameter list.

name string The name of the stylesheet input parameter.

value string The value to supply for the specified stylesheet input parameter.

Input Item Datatype Description

Output Item Datatype Description

output Object The root class for the output of the for Transform XML activity. This class contains all output items for the activity.

TIBCO BusinessWorks Palette Reference

Page 319: TIBCO Business Works - Palette Reference - Nov 2002

Transform XML | 297

Example of Transforming XMLThe following is an example of using the Transform XML activity to change an input XML document into the desired output schema. In this example, books are cataloged and processed. The user specifies an XML file containing a book’s information into a web interface, and the web input form supplies a new catalog number and the date it was entered into the catalog. The process definition accepts the incoming web request, transforms the XML and adds the catalog number and date, parses the output XML into a schema, then enters the data into a database. Figure 16 illustrates the process definition for this example.

Figure 16 A process definition using the Transform XML activity

The Transform XML activity uses an XSLT file that accepts two input parameters, catalogNumber and catalogDate. These input parameters are added as elements to the Book schema. The following is the source of the XSLT File shared configuration resource for the example Transform XML activity:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"

xmlns:pfx="http://www.books.org"><xsl:param name="catalogNumber"> <!--type="string"--></xsl:param><xsl:param name="catalogDate"> <!--type="string"--></xsl:param><xsl:template match="/*">

<pfx:BookStore><xsl:for-each select="Book">

<xsl:call-template name="handle-book"><xsl:with-param name="inDate" select="$catalogDate"/>

</xsl:call-template></xsl:for-each>

</pfx:BookStore></xsl:template><xsl:template name ="handle-book">

<xsl:param name="inDate"> <!--type="string"--></xsl:param><pfx:Book>

<pfx:Title><xsl:value-of select="Title"/></pfx:Title><pfx:Author><xsl:value-of select="Author"/></pfx:Author><pfx:Date><xsl:value-of select="$inDate"/></pfx:Date><pfx:ISBN><xsl:value-of

select="$catalogNumber"/></pfx:ISBN>

xmlOutput binary A binary value containing the output schema specified by the XSLT file.

Output Item Datatype Description

TIBCO BusinessWorks Palette Reference

Page 320: TIBCO Business Works - Palette Reference - Nov 2002

298 | XML Palette

<pfx:Publisher><xsl:value-of select=""TIBCO Software Inc./></pfx:Publisher>

</pfx:Book></xsl:template></xsl:stylesheet>

When you configure the Transform XML activity, you specify the incoming XML to transform as well as any input parameters to the schema. Figure 17 illustrates the input for the example Transform XML activity.

Figure 17 Input for the example Transform XML activity

The process variable containing the XML for the book is a string. The function string-to-base64($ProcessBook/parameters/book) converts the incoming XML string into the binary value required for input to the Transform XML activity.

Also, the stylesheet has two input parameters. By default, only one input parameter is supplied for input into the Transform XML activity. To supply more than one value, use the Modify Statement button to create a list statement. In this case, the list has two items, one for each of the input parameters of the stylesheet. Each parameter is specified as a name/value pair. Notice that the name of each parameter corresponds to the name specified for that parameter in the XSLT file.

The output of the Transform XML activity is a binary stream containing the parsed XML. In our example process definition, we must insert the transformed data into a database table. To map the transformed data into the database UPDATE statement, the data must first be represented as a schema. To do this, we use the Parse XML activity to parse the binary output of Transform XML into an XML schema. Figure 18 illustrates the mapping of the Transform XML output into the input of the Parse XML activity.

TIBCO BusinessWorks Palette Reference

Page 321: TIBCO Business Works - Palette Reference - Nov 2002

Transform XML | 299

Figure 18 Input for the example Parse XML activity

The Parse XML activity requires a string for input. The function base64-to-string($TransformXML/xmlOutput) converts the binary output of the Transform XML activity into the string required by the Parse XML activity.

TIBCO BusinessWorks Palette Reference

Page 322: TIBCO Business Works - Palette Reference - Nov 2002

300 | XML Palette

TIBCO BusinessWorks Palette Reference

Page 323: TIBCO Business Works - Palette Reference - Nov 2002

| 301

Chapter 17 Shared Configuration Palette

The Shared Configuration palette holds resources that can be shared among activities. These resources include database connections, WSDL files, schema definitions, and connections to other servers. This chapter describes the shared configuration resources available in TIBCO BusinessWorks and the activities that make use of each resource.

Topics

• BusinessConnect Connection, page 302

• Data Format, page 304

• FTP Connection, page 308

• HTTP Connection, page 309

• Java Custom Function, page 311

• JDBC Connection, page 315

• JMS Application Properties, page 318

• JMS Connection, page 318

• Notify Configuration, page 321

• Proxy Configuration, page 321

• Rendezvous Transport, page 322

• Trusted CA, page 325

• Schema Definition, page 326

• Workflow Schema, page 327

• Workflow Server Connection, page 328

• WSDL File, page 329

• XML Document, page 336

• XSLT File, page 336

TIBCO BusinessWorks Palette Reference

Page 324: TIBCO Business Works - Palette Reference - Nov 2002

302 | Shared Configuration Palette

BusinessConnect Connection

The BusinessConnnect Connection resource contains the information needed to connect to a TIBCO BusinessConnect server. This shared resource is used when specifying activities in the BusinessConnect palette. See Chapter 4, BusinessConnect Palette,

on page 57 for more information about using activities to communicate with a TIBCO BusinessConnect server. See the TIBCO BusinessConnect documentation for more information about using TIBCO BusinessConnect.

To create a shared configuration for TIBCO BusinessConnect, drag and drop a BusinessConnect Connection resource into the design panel. Complete the fields beneath the Show Advanced checkbox on the Configuration tab. This locates the repository for TIBCO BusinessConnect. Then you can use the Load Repository List, Load Installation List, and Load Protocol List buttons to locate the correct BusinessConnect configuration.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the shared configuration item.

Description Short description of the shared resource.

Repository Name Drop-down list of available repository server names. Use the Load Repository List button to obtain a list of repositories.

Installation Name Drop-down list of pre-configured installation names. Use the Load Installation List button to obtain a list of TIBCO BusinessConnect installations.

Protocol Name Drop-down list of BusinessConnect protocols. Use the Load Protocol List button to obtain a list of TIBCO BusinessConnect protocols.

Show Advanced Displays the advanced fields for locating local and remote repositories.

User Name The user name for the repository. This is optional.

TIBCO BusinessWorks Palette Reference

Page 325: TIBCO Business Works - Palette Reference - Nov 2002

BusinessConnect Connection | 303

AdvancedAdvanced tab lists connection details used by the TIBCO BusinessWorks to interact with the TIBCO BusinessConnect server. These fields are automatically populated based on the Repository Name, Installation Name, and Protocol Name selection in the Configuration tab.

Normally, users should not change these values. Doing so may cause problems in the BusinessConnect activities. Use caution if it is necessary to alter the values of the fields on the Advanced tab.

Password The password for the repository. This is optional.

Directory Directory containing the local repositories.

Query remote Checkbox to enable remote repository queries.

Subject The discovery subject for the remote repository.

Timeout (msec) Timeout (in milliseconds) to wait for the list of remote repositories to load. The default is 5000 milliseconds (5 seconds).

Service TIBCO Rendezvous service name or port number for the repository discovery.

Daemon TIBCO Rendezvous daemon for the repository discovery.

Network TIBCO Rendezvous network for the repository discovery.

Field Description

Field Description

Installation Name Installation name of the BusinessConnect server.

Subject Prefix Subject prefix used for interaction between TIBCO BusinessWorks and the TIBCO BusinessConnect server.

Service TIBCO Rendezvous service name or port number for interaction between TIBCO BusinessWorks and the TIBCO BusinessConnect server.

TIBCO BusinessWorks Palette Reference

Page 326: TIBCO Business Works - Palette Reference - Nov 2002

304 | Shared Configuration Palette

You can replace these values with custom values, however, be careful, or your configuration setup may fail.

Data Format

The Data Format resource contains the specification for parsing or rendering a text string using the Parse Data and Render Data activities. This shared configuration resource specifies the type of formatting for the text (delimited columns or fixed-width columns), the column

separator for delimited columns, the line separator, and the fill character and field offsets for fixed-width columns. You must also specify the data schema to use for parsing or rendering the text.

When parsing text, each column of an input line is transformed into the corresponding item in the specified data schema. The first column of the text line is turned into the first item in the data schema, the second column is transformed into the second item, and so on. Each line is treated as a record, and multiple lines result in a repeating data schema containing the lines of the input text string.

Daemon TIBCO Rendezvous daemon for interaction between TIBCO BusinessWorks and the TIBCO BusinessConnect server.

Network TIBCO Rendezvous network for interaction between TIBCO BusinessWorks and the TIBCO BusinessConnect server.

CM Name TIBCO Rendezvous certified messaging name for interaction between TIBCO BusinessWorks and the TIBCO BusinessConnect server.

Ledger File Name TIBCO Rendezvous certified ledger file name for interaction between TIBCO BusinessWorks and the TIBCO BusinessConnect server.

Dispatcher Count TIBCO Rendezvous dispatcher count. The default is 4.

Anticipated CM Name(s)

Comma separated list of certified messaging sessions to pre-register at TIBCO BusinessWorks.

Field Description

TIBCO BusinessWorks Palette Reference

Page 327: TIBCO Business Works - Palette Reference - Nov 2002

Data Format | 305

Figure 19 illustrates how an input text string is parsed into a specified data schema.

Figure 19 Parsing a text string into a data schema

When rendering text, each record in the input data schema is transformed into a line of output text. The first item of the data schema is transformed into the first column of the text line, the second item is transformed into the second column, and so on. Each record in a repeating data schema is transformed into a separate line in the output text string. Rendering a data schema into a text string is exactly the opposite process of parsing a text string into a data schema. Rendering is the reverse of the process illustrated in Figure 19.

ConfigurationThe configuration tab has the following fields.

57643, Smith, Chris, Accounting57644, Jones, Pat, Marketing57645, Walker, Terry, Development

Text String Data Format

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

TIBCO BusinessWorks Palette Reference

Page 328: TIBCO Business Works - Palette Reference - Nov 2002

306 | Shared Configuration Palette

Format Type The type of formatting for the text. The text can be either "Delimiter separated" or "Fixed format".

In delimiter-separated text, each column is separated by a delimiter character, specified in the Column Separator field. Each line is separated by the character specified in the Line Separator field.

In Fixed format text, each column occupies a fixed position on the line. For fixed format text, you must specify the Fill Character, the line length, and the column offsets. See Field Offsets on page 307 for more information.

Column Separator The separator character between columns when "Delimiter separated" is specified in the Format Type field.

When parsing text, each column becomes an element in the output data schema. When rendering text, each element in the input data schema is separated by the column separator in the output text string.

Line Separator The character(s) that determine the end of each line.

When parsing text, each line is treated as a new record in the output data schema. When rendering text, each data record is separated by the line separator character in the output text string.

Fill Character When processing fixed format columns, this is the character that is used to fill the empty space within a column and between columns. This is only available when "Fixed format" is specified in the Format Type field.

For example, you have a column that holds an integer and the specified width is 10. One row has the value "588" for that column. Because the width of 588 is three and the column width is 10, the remaining 7 characters are filled with the specified fill character.

Field Description

TIBCO BusinessWorks Palette Reference

Page 329: TIBCO Business Works - Palette Reference - Nov 2002

Data Format | 307

Data FormatThe Data Format tab allows you to define a custom schema for the text.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Data Format tab is used to parse a text string into the specified schema or render the specified schema as a text string.

See Appendix A, Specifying Data Schema, on page 341 for a description of how to define a schema.

Field OffsetsWhen processing fixed format text, you must specify the line length and the column offsets. This allows a Parse Data or Render Data activity to determine where columns and lines begin and end. The Field Offsets tab allows you to specify the format of fixed-width text.

The line length is the total length of each input line, including the line separator character(s). Include the appropriate number of characters for the selected line separator on the Configuration tab to the total length of each line.

The column offset is the starting and ending character position on each line for the column. Each line starts at 0 (zero). For each column of the line, you must specify the name of the data item associated with this column (this is the same name you specified for the corresponding element in the data schema), the starting offset for the column, and the ending offset for the column.

Consider the following text file. The first two lines of the file indicate offset numbers (each 0 indicates another 10 characters), and the fill character between columns is spaces:

0 12 30 45012345678901234567890123456789012345678901234567890123456757643 Smith Chris Account57644 Jones Pat Marketing57645 Walker Terry Develpment

It is a good idea to have each column offset begin where the last column offset ended. Many fixed format data files are used by databases (for example, ISAM files) or are generated by automated processes. These types of files have rigid file record formats and may not have additional padding space between columns.

When you define each column offset to begin where the last column offset ends, the data can be read more quickly by TIBCO BusinessWorks because the bytes of the input records can be read in sequentially.

TIBCO BusinessWorks Palette Reference

Page 330: TIBCO Business Works - Palette Reference - Nov 2002

308 | Shared Configuration Palette

Figure 20 illustrates the Field Offset tab for the file above. Notice that the line length is specified as 60, even thought the offsets end at character number 58. The line separator is specified as "Carriage Return/Line Feed (windows)", so this adds two additional characters for a total line length of 60.

Figure 20 Fixed-width text strings and field offsets

FTP Connection

The FTP Connection resource describes a connection to an FTP server. FTP connections are used when specifying an FTP Put or FTP Get activity from the FTP palette.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

Host Host name or IP address of the FTP server.

Port Port number of the FTP server. For connections inside of a firewall, the default when no value is specified in this field is 21.

TIBCO BusinessWorks Palette Reference

Page 331: TIBCO Business Works - Palette Reference - Nov 2002

HTTP Connection | 309

HTTP Connection

The HTTP Connection resource describes a port number where incoming HTTP requests are received. This resource is used when TIBCO BusinessWorks expects to receive an HTTP request on a specific port where a process engine is running. For example, the

process starters HTTP Receiver and SOAP Event Source and the signal-in activity Wait for HTTP Request receive HTTP requests.

The HTTP Connection resource can specify that the HTTPS (secure sockets layer or SSL) protocol can be used by clients. If this is enabled, the server accepting the HTTPS connections must have the appropriate digital certificates and be configured to use SSL. For more information about SSL, consult the documentation from your certificate authority.

ConfigurationThe configuration tab has the following fields.

User Name User name to use when logging into the FTP server.

Password Password to use when logging into the FTP server.

Field Description

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

Port Port number on which to listen for incoming HTTP requests.

TIBCO BusinessWorks Palette Reference

Page 332: TIBCO Business Works - Palette Reference - Nov 2002

310 | Shared Configuration Palette

Use Secure Socket (HTTPS)

Specifies whether incoming requests can use the HTTPS (secure socket layer or SSL) protocol. This protocol authenticates the server to the client, and optionally authenticates the client to the server.

Enabling this field allows you to specify the Trusted Certificate Location, Server Key Store, Key Password, and Client Authentication Request fields.

Server Key Store Only available when HTTPS is enabled.

This field specifies the location of the server’s digital certificate.

Key Password Only available when HTTPS is enabled.

This field specifies the server’s password for its private key.

Client Authentication Required

Only available when HTTPS is enabled.

This field specifies that the client initiating the HTTPS connection must authenticate itself (that is, present its digital certificate) to the server. The server also checks the client’s certificate against the list of trusted certificate authorities provided in the Trusted Certificate Location field.

Trusted Certificate Location

Only available when HTTPS is enabled.

When the client is required to present its certificate to the server (the Client Authentication Required field is enabled), this field specifies the file containing the list of certificate authorities the server will accept for client certificates.

Field Description

TIBCO BusinessWorks Palette Reference

Page 333: TIBCO Business Works - Palette Reference - Nov 2002

Java Custom Function | 311

Java Custom Function

The Java Custom Function resource allows you to create custom functions to use when mapping data in an activity’s input tab. These functions are also displayed when using the XPath Editor to build an XPath expression.

To create a custom function, you must write the function as a method of a Java class and compile the code into a Java class file. You then load that class file into the repository using this resource.

When the class is loaded using this resource, TIBCO BusinessWorks inspects the contents of the class and only the class methods that meet the following restrictions are made available in XPath:

• Only methods declared as public and static are loaded.

• The input parameters and return values must be of one of the types described in Table 5.

• The return value of the function cannot be void.

• The method cannot be a constructor.

• The method cannot explicitly throw an exception. Runtime exceptions are allowed, however.

• Method names cannot be overloaded within a class or any imported classes within a single Java Custom Function resource. You can load methods of the same name into separate classes in separate Java Custom Function resources and use the Prefix field to differentiate between the methods.

• If you make references to any imported class files, these classes must be available somewhere in CLASSPATH configured for TIBCO BusinessWorks. The easiest way to make the imported classes available is to place them in the TIBCO/bw/2.0/lib directory.

• Inner classes are not supported.

Table 5 Datatypes allows for Java custom functions

Type of Data Datatypes Allowed for Input Parameters and Return Types

Strings and Characters

String char

Boolean Boolean boolean

TIBCO BusinessWorks Palette Reference

Page 334: TIBCO Business Works - Palette Reference - Nov 2002

312 | Shared Configuration Palette

If there are different classes that have methods with the same names, the Prefix field allows you to specify a prefix for qualifying which method you wish to use in an XPath function. See the description of the Prefix field below for more information.

See TIBCO BusinessWorks Process Design Guide for more information about building XPath expressions and using the XPath editor.

ConfigurationThe configuration tab has the following fields.

Numbers int

float

double

short

long

Integer

Float

Double

Short

Long

Table 5 Datatypes allows for Java custom functions

Type of Data Datatypes Allowed for Input Parameters and Return Types

Static variables are not supported within Java custom functions. Do not write custom functions that use static variables.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

The method signature plus the description supplied in this field appear as the documentation of the function within the XPath editor. You can use simple HTML markup to format the text of this field, if you desire.

TIBCO BusinessWorks Palette Reference

Page 335: TIBCO Business Works - Palette Reference - Nov 2002

Java Custom Function | 313

Prefix A folder with the name you specify in this field appears within the Functions tab in the XPath editor. You can drag and drop methods from the loaded class into your XPath expression, just as you would with any standard XPath function.

This is also the name to use to prefix the function names in this class, if multiple classes are loaded and function names are not unique among the classes.

For example, if you have class1.method1 and class2.method1, you will need to specify "class1" in the Prefix field when you load class1 into a Java Custom Resource. You would specify "class2" in the prefix field when loading class2. When using method1 in XPath expressions, you must qualify which method1 you are using by specifying class1:method1 or class2:method1 in the XPath expression.

The value of this field must be unique across all loaded Java Custom Function resources, and the value must be a valid XPath identifier. Also, you cannot use global variables (that is, %variable%) in this field.

Class File The location of the class file you wish to load. Use the Browse button to locate the class file.

Note: This field is used to locate the file initially, but the file is actually loaded and stored in the repository. Once the file is loaded, it can be removed from its original location in the file system. If you wish to change the file stored in the repository, you can use this field to reload a changed file or load a new file for this resource.

Field Description

TIBCO BusinessWorks Palette Reference

Page 336: TIBCO Business Works - Palette Reference - Nov 2002

314 | Shared Configuration Palette

Example Java FunctionThe following is Java code that implements custom Java functions. The example illustrates which methods of the class meet the restrictions and will therefore be available as custom functions in XPath. The example also illustrates methods which do not meet the restrictions, and therefore are not available as custom functions.

package com.tibco;

public class Sample{

protected int mInternalValue;

/*** The following method will not be available because it is * a constructor.*/public Sample(int value){

mInternalValue = value;}

/*** This method is used to concat two strings together. It * must be declared as public static to be made available in* TIBCO BusinessWorks.*/public static String stringConcat(String s1, String s2){

return s1 + s2;}

/*** This method is used to add two ints together. Note, that * it takes both an int type and an Integer object.*/public static int intAdd(int lhs, Integer rhs){

return lhs + rhs.intValue();}

/*** The following method will not be available because it* throws an exception.*/public static int badAdd(int lhs, int rhs)throws Exception{

long result = lhs + rhs;if (result > Integer.MAX_VALUE) {

throw new ArithmeticException();}

return new Long(result).intValue();}

TIBCO BusinessWorks Palette Reference

Page 337: TIBCO Business Works - Palette Reference - Nov 2002

JDBC Connection | 315

/*** The following method will not be availabe because it * returns nothing: its void.*/public static void returnsNothing(String s){

System.out.println(s);}

/*** The following method will not be available because it * is not static.*/public int add(int rhs){

return mInternalValue + rhs;}

/*** The following method will not be available becauses it * is not public.*/protected static int protectedAdd(int lhs, int rhs){

return lhs + rhs;}

}

JDBC Connection

The JDBC Connection resource describes a JDBC connection. JDBC connections are used when specifying activities from the JDBC palette.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

TIBCO BusinessWorks Palette Reference

Page 338: TIBCO Business Works - Palette Reference - Nov 2002

316 | Shared Configuration Palette

JDBC Driver The name of the JDBC driver class. You can select from a list of supported drivers.

If you select a supported driver, the Database URL field is populated with a template for the URL of the driver.

The following drivers are included in the TIBCO BusinessWorks installation:• tibcosoftwareinc.jdbc.oracle.

OracleDriver

• tibcosoftwareinc.jdbc.sqlserver.

SQLServerDriver

The following driver is supported, but you must obtain, install, and configure the driver from the appropriate vendor:

• oracle.JDBC.driver.OracleDriver

The following drivers are JDBC 2.0-compliant and should work correctly, but they are not officially supported with BusinessWorks. You must obtain, install, and configure the driver from the appropriate vendor:• sun.jdbc.odbc.JdbcOdbcDriver

• weblogic.jdbc.mssqlserver4.Driver

Database URL The URL to use to connect to the database. A template of the URL is supplied for the selected JDBC driver. You must supply the portions of the URL that are within angle brackets (<>). For example, if you select the tibcosoftwareinc.jdbc.oracle.OracleDriver, the following appears in the Database URL field:jdbc:tibcosoftwareinc:oracle://<host>:<port#>:<db_instancename>

You must supply the host, port number, and database instance name in the URL.

Field Description

TIBCO BusinessWorks Palette Reference

Page 339: TIBCO Business Works - Palette Reference - Nov 2002

JDBC Connection | 317

The Test Connection button allows you to test that the specified fields result in a valid connection to a database.

Maximum Connections The maximum number of database connections to allocate. The default maximum is 10. The minimum value that can be specified is 1.

TIBCO BusinessWorks creates a pool of JDBC connections for every JDBC Connection shared resource. The maximum size of this pool is specified by this parameter.

Activities that use this JDBC Connection resource are given a connection from the pool. Once the maximum number of connections is reached, activities requesting a connection cannot proceed. Once a connection is freed by an activity, the connection is returned to the pool. Connections that are left open will eventually timeout and be closed. These connections can be reopened at a later time, until the maximum number of connections specified in this field is reached.

If an activity detects a connection in the pool is invalid (for example, the database is restarted), the activity attempts to reestablish the connection.

All activities that are part of the same transaction will use the same connection in the connection pool. The first activity within a transaction can attempt to reestablish an invalid connection. If a connection becomes invalid during a transaction, the transaction is rolled back and must be retried, if necessary.

User Name User name to use when connecting to the database.

Password Password to use when connecting to the database.

Field Description

TIBCO BusinessWorks Palette Reference

Page 340: TIBCO Business Works - Palette Reference - Nov 2002

318 | Shared Configuration Palette

JMS Application Properties

The JMS Application Properties resource describes any JMS message properties that a JMS application expects. These properties can then be added to a JMS message on the Advanced tab of a JMS activity. These properties will appear as "OtherProperties" on the

Input or Output tab of the activity.

ConfigurationThe configuration tab has the following fields.

DataThe Data tab allows you to define a custom schema for the JMS application properties.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Data tab appears as "OtherProperties" on the Input or Output tab of the JMS activity where this shared configuration resource is used.

See Appendix A, Specifying Data Schema, on page 341 for a description of how to define a schema.

JMS Connection

The JMS Connection resource describes a JMS connection. This resource is used when specifying activities on the JMS palette.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

TIBCO BusinessWorks Palette Reference

Page 341: TIBCO Business Works - Palette Reference - Nov 2002

JMS Connection | 319

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

User Name User name to use when logging into the JMS server.

If the JMS provider does not require authentication, this field can be empty.

Not all JMS servers require user names and passwords. Refer to your JMS provider documentation and consult your system administrator to determine if your JMS server requires a user name and password.

Password Password to use when logging into the JMS server.

If the JMS provider does not require authentication, this field can be empty.

Client ID Client ID for the connection. Typically JMS providers have a provider-specific format for client IDs. See your JMS provider’s documentation for more information about client IDs.

JNDI Context Factory This is the initial context factory class for accessing JNDI.

See your JNDI provider documentation for the name of the InitialContextFactory class. For example, TIBCO Enterprise for JMS provides the following class: com.tibco.tibjms.naming.TibjmsInitialContex

tFactory

TIBCO BusinessWorks attempts to find the class. However, you may need to add the Java file supplied by your JNDI service provider to the CLASSPATH environment variable to use JNDI.

TIBCO BusinessWorks Palette Reference

Page 342: TIBCO Business Works - Palette Reference - Nov 2002

320 | Shared Configuration Palette

AdvancedThe advanced tab has the following fields.

JNDI Context URL This is the URL to the JNDI service provider.

See your JNDI provider documentation for the syntax of the URL. An example of a JNDI URL is the following: tibjmsnaming://localhost:1099

JNDI User Name User name to use when logging into the JNDI server.

If the JNDI provider does not require authentication, this field can be empty.

JNDI Password Password to use when logging into the JNDI server.

If the JNDI provider does not require authentication, this field can be empty.

Field Description

Field Description

Queue Connection Factory

The QueueConnectionFactory object stored in JNDI. This object is used to create a queue connection with a JMS application.

See your JNDI provider documentation for more information about creating and storing QueueConnectionFactory objects.

Topic Connection Factory

The TopicConnectionFactory object stored in JNDI. This object is used to create a topic connection with a JMS application.

See your JNDI provider documentation for more information about creating and storing TopicConnectionFactory objects.

JNDI Properties Any additional properties to supply for the connection. You specify a name, datatype, and value for each property.

These properties are typically vendor-specific. See your JNDI provider documentation for more information about the available properties.

TIBCO BusinessWorks Palette Reference

Page 343: TIBCO Business Works - Palette Reference - Nov 2002

Notify Configuration | 321

Notify Configuration

The Notify Configuration resource specifies a schema to use for passing data between executing process instances. Corresponding Receive Notification, Notify, and Wait activities use the same

Notify Configuration resource to define the data for inter-process communication. The schema can be empty, if you do not wish to pass data between processes. See TIBCO BusinessWorks Process Design Guide for more information about inter-process communication.

ConfigurationThe configuration tab has the following fields.

DataThe Data tab allows you to define a custom schema. The schema can be empty, if you do not wish to pass data between processes.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the data specified on the Data tab appears on the Input or Output tab of the Receive Notification, Wait, or Notify activity where this shared configuration resource is used.

See Appendix A, Specifying Data Schema, on page 341 for a description of how to define a schema.

Proxy Configuration

The Proxy Configuration resource is used to specify a proxy HTTP server when HTTP requests are sent outside of a firewall.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

TIBCO BusinessWorks Palette Reference

Page 344: TIBCO Business Works - Palette Reference - Nov 2002

322 | Shared Configuration Palette

ConfigurationThe configuration tab has the following fields.

Rendezvous Transport

The Rendezvous Transport resource describes a TIBCO Rendezvous transport. These resources are used when specifying activities from the Rendezvous palette. See the TIBCO Rendezvous documentation for more information about specifying these fields.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

Proxy Host Host name of the proxy server.

Proxy Port Port number of the proxy host.

User ID User ID to use to log into the proxy server.

Password Password to use to log into the proxy server.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

TIBCO BusinessWorks Palette Reference

Page 345: TIBCO Business Works - Palette Reference - Nov 2002

Rendezvous Transport | 323

AdvancedThe advanced tab has the following fields.

Daemon In the case of TIBCO Rendezvous daemon running on the same machine as TIBCO BusinessWorks process engine, this is not specified. If Rendezvous is running on a different machine, then the Daemon field is specified as the remote host name followed by the socket number.

For example:

tcp:acct_host:6555

Network This field contains the host name, IP address, network name, or interface name.

For example:

;224.34.103.4

Service This is the TIBCO Rendezvous service name in one of the following formats:

<service name>

or

<port number>

Field Description

Field Description

RV Type The type of TIBCO Rendezvous connection to use. This can be reliable (standard RV transport), certified (RVCM), or Distributed Queue (RVCMQ).

The fields of the advanced tab correspond to the value selected for this field.

Certified Transport

CM Name The name of the delivery-tracking session. This name is in the same format as TIBCO Rendezvous subject names.

TIBCO BusinessWorks Palette Reference

Page 346: TIBCO Business Works - Palette Reference - Nov 2002

324 | Shared Configuration Palette

Ledger File The name and location of the persistent ledger file that tracks certified messages. If not specified, the certified message ledger is kept in process memory only.

Sync Ledger File Specifies whether to keep the ledger file synchronous with the current messages.

Relay Agent Name of the relay agent to use. Relay agents are useful when clients are disconnected from the network from time to time. The relay agents store inbound certified messages and labeled messages (and other messages related to certified delivery features) on behalf of their disconnected client programs. When a client is connected, it receives inbound messages immediately.

Require Old Message Check this box if you wish to require the retention of messages for which delivery has not been confirmed. These messages will be resent.

Message Timeout (sec)

The time limit (in seconds) for certified message delivery.

Distributed Queue Transport

CMQ Name The name of the distributed queue. This name is in the same format as TIBCO Rendezvous subject names

Worker Weight The weight of the worker (this pertains to the worker processing queue requests, not to BusinessWorks process engines). Relative worker weights assist the scheduler in assigning tasks. When the scheduler receives a task, it assigns the task to the available worker with the greatest worker weight.

Worker Tasks Sets the task capacity for the worker (this pertains to the worker processing queue requests, not to BusinessWorks process engines). Task capacity is the maximum number of tasks that a worker can accept. When the number of accepted tasks reaches this maximum, the worker cannot accept additional tasks until it completes one or more of them.

Field Description

TIBCO BusinessWorks Palette Reference

Page 347: TIBCO Business Works - Palette Reference - Nov 2002

Trusted CA | 325

Trusted CA

The Trusted CA resource is used to contain a list of digital certificates of trusted certificate authorities. When an activity must check that a digital certificate presented by a server is from one of its trusted certificate authorities, this list resource is used to specify that list.

Use the Import button to locate and load digital certificate and certificate authorities into this resource. The list of trusted certificates and certificate authorities will be listed on the Trusted Certificate & CAs tab.

For more information about creating keystores for private keys and trusted certificate chains, see http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html.

Schedule Weight Weight represents the ability of this member to fulfill the role of scheduler, relative to other members with the same name. Cooperating distributed queue transports use relative scheduler weight values to elect one transport as the scheduler; members with higher scheduler weight take precedence. Acceptable values range from 1 to 65535.

Schedule Heartbeat The scheduler sends heartbeat messages at this interval (in seconds). All members with the same name must specify the same value for this parameter. The value must be strictly positive.

Schedule Activation When the heartbeat signal from the scheduler has been silent for this interval (in seconds), the member with the greatest scheduler weight takes its place as the new scheduler. All members with the same name must specify the same value for this parameter. The value must be positive

Field Description

TIBCO BusinessWorks Palette Reference

Page 348: TIBCO Business Works - Palette Reference - Nov 2002

326 | Shared Configuration Palette

ConfigurationThe configuration tab has the following fields.

Trusted Certificate & CAsThis tab lists all loaded trusted certificate and certificate authorities.

Schema Definition

The Schema Definition resource describes an XML schema file (for example, a DTD or an XSD). XML schemas can be used in many places, but primarily they are used when specifying activities on

the XML palette, or when creating WSDL files (see WSDL File on page 329).

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

Schema Contents The contents of the XML schema. You can type in the contents of the file, or you can import an existing file by using the Browse button.

TIBCO BusinessWorks Palette Reference

Page 349: TIBCO Business Works - Palette Reference - Nov 2002

Workflow Schema | 327

Workflow Schema

The Workflow Schema resource defines a schema that can be used by activities in the Manual Work Palette. This resource defines data for use in a manual task. See Chapter 12, Manual Work Palette, on page 213 for more information about working

with manual tasks.

ConfigurationThe configuration tab has the following fields.

Editor The Editor tab allows you to define a custom schema for the manual task.

The schema defined by this resource is similar to a TIBCO InConcert class. However, the definition of the schema is stored in the TIBCO BusinessWorks project, and no TIBCO InConcert class is created. Only Document, String, Integer, and Date/Time datatypes can be used in the Workflow schema.

Document is a special datatype for use with Manual Work activities. This schema item is used to upload/download documents from the Workflow Server for a particular manual work task. This is a complex datatype that contains two elements: name (string) and content (binary).

You define a schema in the same way you define schema for other types of activities in TIBCO BusinessWorks. The only exception is that the schema is restricted as described above. See Appendix A, Specifying Data Schema, on page 341 for a complete description of using the Editor tab.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

Parent Schema A reference to another Workflow Schema that this schema inherits its data from.

TIBCO BusinessWorks Palette Reference

Page 350: TIBCO Business Works - Palette Reference - Nov 2002

328 | Shared Configuration Palette

Output ViewThis tab displays the output of an activity that uses this Workflow Schema resource. The displayed output schema contains all attributes defined in this resource and all attributes inherited from the schema in the Extends From field on the Configuration tab.

Workflow Server Connection

The Workflow Server Connection resource defines a connection to a TIBCO InConcert server that can be used by activities in the Manual Work palette. See Chapter 12, Manual Work Palette, on page 213 for more information about working with manual tasks.

ConfigurationThe configuration tab has the following fields.

The Test Connection button can be used to verify the connection using the specified configuration.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

Server Name of the TIBCO InConcert server to connect to. You can use the drop-down list of available servers next to this field to find a server.

User The TIBCO InConcert client user ID to use when connecting to the sever.

Password The password for the specified user.

Use Java Server Specifies that the IcJava server is to be used.

Host The host name of the IcJava server.

Port The port number of the IcJava server.

TIBCO BusinessWorks Palette Reference

Page 351: TIBCO Business Works - Palette Reference - Nov 2002

WSDL File | 329

WSDL File

The WSDL File resource describes a Web Service Definition Language (WSDL) file. You can generate a WSDL file or you can import an existing WSDL file. WSDL files are used when specifying activities on the SOAP palette.

WSDL provides an XML-based format for describing web services as collections of communication endpoints capable of exchanging messages. Service descriptions within a WSDL file can be abstract or concrete. Abstract service descriptions provide the names of operations and the data being exchanged. Concrete service descriptions provide actual bindings to specific network endpoints. Concrete service descriptions can be used to make requests to actual implementations of web services.

The WSDL File resource allows you to store WSDL files that can have abstract or concrete service definitions, or a mixture of both types of services. You would store concrete service definitions when you wish to use TIBCO BusinessWorks to send SOAP requests to external web services.

You can also use this resource to generate abstract service definitions. The abstract service definition is used by the SOAP Event Source activity to create a concrete service endpoint. A client can then invoke a web service implemented by a BusinessWorks process. The client can retrieve the concrete WSDL service description from BusinessWorks and then invoke the web service. BusinessWorks accepts the incoming SOAP request, and implements the request with a process definition. The process can then return a reply to the request by way of the SOAP Send Reply activity.

See Chapter 15, SOAP Palette, on page 269 for more information about using the SOAP activities within a process definition.

ConfigurationThe configuration tab has the following fields.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

TIBCO BusinessWorks Palette Reference

Page 352: TIBCO Business Works - Palette Reference - Nov 2002

330 | Shared Configuration Palette

Mode One of the following:

• Import File — Import a WSDL file stored on disk.

• Import URL — Import a WSDL file using a URL.

• Generate — Create a new WSDL file using XML schemas stored in the project. This is used to create abstract service descriptions based on existing, stored schema files.

Import File

Location The location of the WSDL file to import. Click the Import button once the file has been located to import the file into the repository. The WSDL code appears on the Source tab once it has been imported.

You can import WSDL files that contain abstract, concrete, or a mixture of both types of service descriptions.

Import URL

Location The URL of the WSDL file to import. Click the Load WSDL button once the URL has been located to import the WSDL code into the repository. The WSDL code appears on the Source tab once it has been imported.

You can import WSDL files that contain abstract, concrete, or a mixture of both types of service descriptions.

The Check URL button allows you to check whether the specified URL is active.

You can also use UDDI search services to locate Web Service WSDL files or retrieve WSIL files from web service providers. See Using WSIL and UDDI on page 332 for more information.

Generated File Fields

Operation Name The name of the web services operation. This is the name used within a SOAP request to perform the operation within the web service.

Field Description

TIBCO BusinessWorks Palette Reference

Page 353: TIBCO Business Works - Palette Reference - Nov 2002

WSDL File | 331

Input Schema The input schema of the operation. You can browse and select a schema definition shared resource for this field.

Input Element The input element. This is automatically populated based on the specified input schema.

Output Schema The output schema of the operation. You can browse and select a schema definition shared resource for this field.

Output Element The output element. This is automatically populated based on the specified output schema.

Faults Specifies schemas that can be sent in the case of an error. You add or remove fault schemas, and then assign a name and XML Schema shared configuration resource for each fault schema. You must also specify the element with the XML schema to return in case of an error.

When this WSDL file is used by a SOAP Event Source process starter, the process definition can use the SOAP Send Fault activity to send a fault to the client in the case of an error. See Chapter 15, SOAP Palette, on page 269 for more information about using SOAP activities in process definitions.

Generate WSDL button

Click the Generate WSDL button once the specification of the WSDL file is complete. The file will be generated from the given specification. It is stored in the repository and it appears on the Source tab, once the Generate button has been clicked.

If you change the schema used to create a generated WSDL file, you must edit the WSDL File shared resource and click this button again.

Note: The generated WSDL file contains an abstract service description. This abstract service can then be used by the SOAP Event Source activity to create a concrete service description.

Field Description

TIBCO BusinessWorks Palette Reference

Page 354: TIBCO Business Works - Palette Reference - Nov 2002

332 | Shared Configuration Palette

Source The source tab displays the source of the WSDL file. The source appears after the Import or Generate buttons are clicked on the Configuration tab. If the source file or generated file specification changes after the file has been placed in the repository, click the Import or Generate button again to re-import or regenerate the file.

Using WSIL and UDDIWeb Service Inspection Language (WSIL) and Universal Description Discovery and Integration (UDDI) are mechanisms for locating web services. You can use either WSIL or UDDI to locate web services when Import URL is selected in the Mode field of this resource.

The Universal Description Discovery and Integration (UDDI) project defines the protocol for searching for web services. There are several organizations that provide databases of web services that can be browsed using UDDI. WSIL is an XML-based format used to describe the available web services for a particular site.

When Import URL is selected for the Mode field of this resource, you can click the UDDI button to bring up the WSIL and UDDI Registry Browser dialog. This dialog allows you to enter a URL of a WSIL or UDDI service (or choose from a drop-down list of services), then provide criteria for searching for the desired web service.

Figure 21 illustrates the WSIL and UDDI Registry Browser dialog.

TIBCO BusinessWorks Palette Reference

Page 355: TIBCO Business Works - Palette Reference - Nov 2002

WSDL File | 333

Figure 21 The WSIL and UDDI Registry Browser dialog

The following are the fields of the UDDI Search dialog.

Field Description

URL The URL of the UDDI search service or the address to use to retrieve a WSIL file.

When UDDI is selected, there are several UDDI services provided in a drop-down list, or you can enter the desired URL by typing it into this field.

When WSIL is selected, you can enter the URL of the web service provider, if the provider supplies WSIL files.

TIBCO BusinessWorks Palette Reference

Page 356: TIBCO Business Works - Palette Reference - Nov 2002

334 | Shared Configuration Palette

Search Type The type of search. The types of searches available depend upon whether UDDI or WSIL is selected in the URL field.

There are several types of searches defined by UDDI. This field provides a drop-down list of available search types for the selected UDDI service. Each search type may be performed differently. Help is provided in blue text at the bottom of the dialog for the selected search type. See Search Type on page 335 for more information about different types of UDDI searches.

Search Term The text to search for. This field has a different syntax for each search type. The help text in blue at the bottom of the dialog provides more information about entering search terms for the specified search type.

Max Rows The maximum number of services to return.

Case Sensitive Specifies that the search should be case-sensitive when checked. In a case-sensitive search, the search term’s capitalization is considered when searching.

Order Asc Specifies that the returned services should be listed in ascending alphabetical order when checked. If unchecked, the returned services are sorted in descending alphabetical order.

Exact Match Specifies that the directory should be searched for an exact match of the specified search term. This is useful if you wish to search the directory for a short word or phrase when the directory contains services that use longer forms of the search term.

For example, you may enter "Math" in the search term, and you only want to retrieve services named "Math", not any services with longer names (for example a service named "Math Web Service" would not be returned).

Field Description

TIBCO BusinessWorks Palette Reference

Page 357: TIBCO Business Works - Palette Reference - Nov 2002

WSDL File | 335

Search Type

Some UDDI search types provide a list of web services. Other search types provide a directory of service types that you can select and explore for specific web services. The search type determines the kind of search that is performed. When a specific type is specified in the Search Type field, help for how to perform that search type appears in blue at the bottom of the dialog. Also, either the Get Services or the Explore button is enabled depending upon the type of search selected.

When a search retrieves a list of web services:

1. Enter your search criteria.

2. Click the Get Services button to retrieve the list of services.

3. The list of services matching your search criteria appears below the search criteria fields.

When a search retrieves a directory of services:

1. Enter your search criteria.

2. Click the Explore button. The directory of service types appears in a list to the right of the search criteria.

3. Select the desired item in the list of service types.

4. Click the Get Services button to retrieve the services contained in the directory.

Timeout (msec) Specifies the amount of time (in milliseconds) to wait before cancelling the search. Some search directories can take significant time when searching. This field allows you to timeout the search if it is not performed promptly.

Field Description

TIBCO BusinessWorks Palette Reference

Page 358: TIBCO Business Works - Palette Reference - Nov 2002

336 | Shared Configuration Palette

XML Document

The XML Document resource describes an XML document.

ConfigurationThe configuration tab has the following fields.

XSLT File

The XSLT File resource allows you to load an XSLT file to use to transform XML schemas using the Transform XML activity. See Transform XML on page 294 for more information about using this shared configuration resource within a Transform XML activity.

A transformation expressed in XSLT is called a stylesheet. A stylesheet contains a set of template rules. Each template rule has two parts: a pattern that is matched against nodes in the source document and a template that can be instantiated to form part of the result document.

A transformation expressed in XSLT describes rules for transforming a source document into a result document. The transformation is achieved by associating patterns with templates. A pattern is matched against elements in the source document. A template is instantiated to create all or part of the result document.

Field Description

Name The name to appear as the label for the resource.

Description Short description of the shared resource.

Document contents The contents of the XML file. You can type in the contents of the file, or you can import an existing file by using the Browse button.

TIBCO BusinessWorks Palette Reference

Page 359: TIBCO Business Works - Palette Reference - Nov 2002

XSLT File | 337

The structure of the result document can be completely different from the structure of the source document. In constructing the result document, elements from the source document can be filtered and reordered, and arbitrary structure can be added.

The XSLT File resource allows you to add and edit XSLT source, view or modify templates and their parameters, and view or modify stylesheets and their parameters. This section describes how to use the XSLT File resource to store and modify XSLT source. It is beyond the scope of this document to completely describe XSLT. See http://www.w3.org/TR/xslt for the XSLT specification.

Editing an XSLT File ResourceThe XSLT File resource behaves differently from other shared configuration resources. When editing this resource, the design panel contains three tabs. Selecting one of the tabs in the design panel changes the items available in the configuration panel.

The following describes the tabs of the design panel for this resource:

Different tabs appear in the configuration panel appear based on which tab is selected in the design panel. The following describes the configuration panel tabs and when they are enabled:

Design Panel Tab Description

Source Allows you to paste and edit XSLT source code in the design panel.

Templates Allows you to add, view, and change templates in the XSLT. Changes made to the templates are reflected in the XSLT source on the Source tab.

Stylesheet Allows you to add or modify global parameters for the XSLT stylesheet.

Configuration Panel Tab Description

Available when This Design Panel Tab Is Selected

Configuration Allows you to specify a name and short description of the XSLT File resource.

Source, Templates, Stylesheet

TIBCO BusinessWorks Palette Reference

Page 360: TIBCO Business Works - Palette Reference - Nov 2002

338 | Shared Configuration Palette

Parameters Allows you to modify the parameters of the item selected in the design panel.

For example, when the Templates tab is selected, this tab allows you to modify the parameters of the template selected in the design panel. When the Stylesheet tab is selected, this tab allows you to modify global parameters for the stylesheet.

Parameters are edited in the same way that schemas are edited. XSLT parameters are limited to datatypes available in XSLT: string, decimal, boolean, a reference to an XML element, or "any" type (any available XSLT type). See Appendix A, Specifying Data Schema, on page 341 for more information about editing schemas.

Templates, Stylesheet

Input You can use this tab to view and change the transformations that occur in the selected template.

Transformations are XPath expressions and constants that specify how input to the template is transformed into the output schema for the template.

Templates

Configuration Panel Tab Description

Available when This Design Panel Tab Is Selected

TIBCO BusinessWorks Palette Reference

Page 361: TIBCO Business Works - Palette Reference - Nov 2002

XSLT File | 339

There are also four buttons that appear on the toolbar when editing the XSLT File shared configuration resource. The following describes these toolbar buttons:

Toolbar Button Description

Available when This Design Panel Tab Is Selected

Load Stylesheet. Allows you to browse your file system for a stylesheet file to load into this resource.

Source, Templates, Stylesheet

Save Stylesheet. Saves the stylesheet for this resource to a file.

Source, Templates, Stylesheet

Add Template. Adds a new template to your stylesheet. This brings up a dialog to specify the name of the template and the schema for the output of the template.

Source, Templates

Remove Template. Removes the selected template from the stylesheet.

Templates

TIBCO BusinessWorks Palette Reference

Page 362: TIBCO Business Works - Palette Reference - Nov 2002

340 | Shared Configuration Palette

TIBCO BusinessWorks Palette Reference

Page 363: TIBCO Business Works - Palette Reference - Nov 2002

| 341

Appendix A Specifying Data Schema

Many activities within TIBCO BusinessWorks allow you to specify a custom data schema for input or output of the activity. This appendix describes the mechanism for specifying a custom data schema for an activity’s input or output.

Topics

• Schema, page 342

TIBCO BusinessWorks Palette Reference

Page 364: TIBCO Business Works - Palette Reference - Nov 2002

342 | Specifying Data Schema

Schema

The Schema tab is used to specify a data schema for input or output of an activity. This is useful when the data does not have a well-known structure. The Schema tab is usually named for the type of schema you are creating. For example, the tab may be named "Input Schema" or "Output Schema".

For example, an email message has a well-known data structure, and therefore does not need a special datatype for its input. A JMS message, however, can have application-specific properties of any datatype. The Schema tab allows you to define the schema for any activities that require a specialized input or output schema.

You can use a simple datatype, or you can define a group of data elements on this tab. You can also reference XML schema or ActiveEnterprise classes stored in the project. Once defined, the schema appears on the Input tab, the Output tab, or both tabs of the activity. The data within the schema then becomes available to other activities within the process definition.

The following illustrates the Schema tab. In this example, the Schema tab is labeled "Output Schema" indicating this is the activity’s output.

To define a schema on this tab, use the icons above the schema tree to add, delete, or move data items. Then use the fields of the dialog to specify the datatype of each item.

Field Description

Name The name of the data item.

TIBCO BusinessWorks Palette Reference

Page 365: TIBCO Business Works - Palette Reference - Nov 2002

Schema | 343

Table 6 describes the datatypes available for data.

Cardinality The qualification for the data item. Data items can be specified as one of the following:

• Required — the data item is required and must be supplied when the process is called.

• Optional — the data item is optional.

• Repeating, Zero or More — The data item is a list that has zero or more elements.

• Repeating, One or More — The data item is a list that has one or more items.

Type The type of data. Can be any of the following:

• XML Element Reference — must locate the stored XML schema definition.

• XML Type Reference — must locate the stored XML schema definition.

• AE Class Reference — must locate the stored ActiveEnterprise class definition.

• Any of the datatypes described in Table 6.

Schema Name Stored XML schema that contains the element or type you wish to reference.

Element Name Element within a stored XML schema you wish to reference.

Type Name Type within a stored XML schema you wish to reference.

AE Class Name Stored ActiveEnterprise class you wish to reference.

Table 6 Datatypes for schema items

Icon Description

Complex element. Container for other datatypes. This is a branch in the schema tree.

String or character value.

Field Description

TIBCO BusinessWorks Palette Reference

Page 366: TIBCO Business Works - Palette Reference - Nov 2002

344 | Specifying Data Schema

Integer value. You can specify the size of the integer as one of the following:

• Byte

• Short

• Int

• Long

• Unsigned Byte

• Unsigned Int

• Unsigned Long

• Integer

• Positive Integer

• Negative Integer

• Non-positive Integer

• Non-negative Integer

Floating point number. You can specify the size of the schema item as float, double, or unlimited.

Boolean value.

Date or Time. This can be any of the following datatypes:

• Time

• Date

• Date & Time

• Duration

• Day

• Month

• Year

• Year & Month

• Month & Day

Table 6 Datatypes for schema items

Icon Description

TIBCO BusinessWorks Palette Reference

Page 367: TIBCO Business Works - Palette Reference - Nov 2002

Schema | 345

Base 64 or hexidecimal value.

Any Type. Represents a schema item with the TIBCO ActiveEnterprise datatype any. This node can be specified as any other datatype or a reference to an XML Type or AE Class.

Any Element. Represents a schema item that can be a reference to any XML Element. You can use the Set Substitution button to supply a reference to the XML Element for this item.

Choice. Specifies that the schema element can be one of a specified set of datatypes.

Table 6 Datatypes for schema items

Icon Description

TIBCO BusinessWorks Palette Reference

Page 368: TIBCO Business Works - Palette Reference - Nov 2002

346 | Specifying Data Schema

TIBCO BusinessWorks Palette Reference

Page 369: TIBCO Business Works - Palette Reference - Nov 2002

| 347

Index

A

ActiveEnterprise Adapter palette 33activities

Adapter Request-Response Server 34Adapter Subscriber 36Assign Work 224Call Process 92Checkpoint 93Confirm 95Create File 76Download Document 229External Command 96File Poller 77FTP Get 68FTP Put 71Generate Error 99Get Work Status 232HTTP Receiver 120Invoke an Adapter Request-Response Service 39Java Code 102JDBC Call Procedure 140JDBC Query 143JDBC Update 148JMS Queue Receiver 163JMS Queue Requestor 167JMS Queue Sender 173JMS Topic Publisher 177JMS Topic Requestor 181JMS Topic Subscriber 187Label 106Map Data 107Modify Work 236Notify 108Null 110Parse 248Parse XML 290Publish Rendezvous Message 256Publish to Adapter 42

Read File 80Receive Mail 208Receive Misc Msg 59Receive Notification 110Receive Request/Notification 60Receive Response 62Remove File 82Render 253Render XML 292Rendezvous Subscriber 258Reply to JMS Message 191Reply to Rendezvous Request 260Respond to Adapter Request 45Retrieve Resources 273Send HTTP Request 123Send HTTP Response 129Send Mail 209Send Misc Msg 63Send Rendezvous Request 262Send Request/Notification 64Send Response 65Sleep 112SOAP Event Source 273SOAP Request Reply 277SOAP Send Fault 283SOAP Send Reply 286SQL direct 156Timer 113Transform XML 294Wait 114Wait for Adapter Message 47Wait for Adapter Request 52Wait for Completion 241Wait for File Change 84Wait for HTTP Request 133Wait for JMS Queue Message 195Wait for JMS Topic Message 200Wait for Rendezvous Message 265Write File 89

TIBCO BusinessWorks Palette Reference

Page 370: TIBCO Business Works - Palette Reference - Nov 2002

348 |

Write To Log 117Adapter Request-Response Server activity 34Adapter resource 17Adapter Subscriber activity 36adapters

Adapter resource 17Alert resource 26Any Failure resource 20executing a command on failures 29recovery from failures 18, 21restarting after failure 25

Alert resource 26alerts

sending to console 26Any Failure resource 20Assign Work activity 224

B

BusinessConnect Connection resource 302BusinessConnect palette 57

C

Call Process activity 92Checkpoint activity 93Component failure event 21Confirm activity 95confirming a message 95conventions used in this manual xxiCPU resource 7Create File activity 76creating schemas 342Custom resource 29customer support xxi

D

Data Format resource 304

deployment configurationadapters 17process engines 9resource 2

Deployment Configuration palette 2Disk resource 7documentation

labeling process definitions 106documents

in manual tasks 217domain configuration

adapters 17Alert resource 26

Download Document activity 229dynamic SQL 156

E

Email resource 28executing a command in the event of a failure 29External Command activity 96

F

failures 20executing a command 29recovery specification 21sending email 28

File palette 75File Poller activity 77FTP Connection shared configuration 308FTP Get activity 68FTP palette 67FTP Put activity 71

G

General Activities palette 91Generate Error activity 99

TIBCO BusinessWorks Palette Reference

Page 371: TIBCO Business Works - Palette Reference - Nov 2002

| 349

Get Work Status activity 232

H

handling failures 20HTTP Connection shared configuration 309HTTP palette 119HTTP Receiver activity 120

I

interaction with TIBCO InConcert 223inter-process communication

Notify 108Notify Configuration 321Wait 114

Invoke an Adapter Request-Response Service activity 39

J

Java Code activity 102Java Custom Function shared configuration 311JDBC Call Procedure activity 140JDBC Connection shared configuration 315JDBC palette 139

working with the Query Designer 151JDBC Query activity 143

Query Designer 151JDBC Update activity 148JMS Application Properties shared configuration 318JMS Connection shared configuration 318JMS palette 159JMS properties 160JMS Queue Receiver activity 163JMS Queue Requestor activity 167JMS Queue Sender activity 173JMS Topic Publisher activity 177JMS Topic Requestor activity 181

JMS Topic Subscriber activity 187

L

Label activity 106Log Event resource 24

M

Machine resource 3machines

Any Failure resource 20monitoring 5

CPU 7disks 7processes 8

Mail palette 207Manual Work palette 213

how to work with tasks 218overview 214TIBCO InConcert 223working with documents 217

Map Data activity 107mapping

with XSLT 336messages

confirming 95Modify Work activity 236Monitor resource 5monitoring

CPU 7disks 7example 5restarting machines 25sending email 28

N

Notify activity 108

TIBCO BusinessWorks Palette Reference

Page 372: TIBCO Business Works - Palette Reference - Nov 2002

350 |

Notify Configuration shared configuration 321Null activity 110

O

overviewManual Work palette 214TIBCO BusinessConnect palette 58

P

palettesActiveEnterprise Adapter 33BusinessConnect 57Deployment Configuration 2File 75FTP 67General Activities 91HTTP 119JDBC 139JMS 159Mail 207Manual Work 213Parse 247Process 31Rendezvous 255Shared Configuration 301SOAP 269XML 289

Parse activity 248Parse palette 247Parse XML activity 290Process Engine resource 9process engines

Any Failure resource 20executing commands on failure 29recovery from failure 21recovery from failures 12restarting after failure 25

Process palette 31Process resource 8

Proxy Configuration shared configuration 321Publish Rendezvous Message activity 256Publish to Adapter activity 42

Q

Query Designer 151

R

Read File activity 80Receive Mail activity 208Receive Misc Msg activity 59Receive Notification activity 110Receive Request/Notification activity 60Receive Response activity 62Recovery resource 21Remove File activity 82Render activity 253Render XML activity 292Rendezvous palette 255Rendezvous Subscriber activity 258Rendezvous transport shared configuration 322Reply To JMS Message activity 191Reply to Rendezvous Request activity 260resources

Adapter 17Alert 26Any Failure 20Component failure event 21CPU 7Custom 29Deployment Configuration 2Disk 7Email 28Log Event 24Machine 3Monitor 5Process 8Process Engine 9Recovery 21

TIBCO BusinessWorks Palette Reference

Page 373: TIBCO Business Works - Palette Reference - Nov 2002

| 351

Restart 25Suspend Process Event 23

Respond to Adapter Request activity 45Restart resource 25Retrieve Resources activity 273

S

Schema Definition shared configuration 326Send HTTP Request activity 123Send HTTP Response activity 129Send Mail activity 209Send Misc Msg activity 63Send Rendezvous Request activity 262Send Request/Notification activity 64Send Response activity 65sending

alerts to the console 26email 28

shared configuration 301Data Format 304FTP Connection 308HTTP Connection 309Java Custom Function 311JDBC Connection 315JMS Application Properties 318JMS Connection 318Notify Configuration 321Proxy Configuration 321Rendezvous transport 322Schema Definition 326Trusted CA 325Workflow Schema 327Workflow Server Connection 328WSDL File 329XML document 336XSLT File 336

Sleep activity 112SOAP Event Source activity 273SOAP palette 269SOAP Request Reply activity 277SOAP Send Fault activity 283SOAP Send Reply activity 286

specifying data schema 341SQL Direct activity 156SQL queries 151storing mapping definitions 336support, contacting xxiSuspend Process Event resource 23

T

technical support xxiTIBCO BusinessConnect

overview of working with 58TIBCO InConcert 223Timer activity 113Transform XML activity 294Trusted CA shared configuration 325

U

UDDI 332

W

Wait activity 114Wait for Adapter Message activity 47Wait for Adapter Request activity 52Wait for Completion activity 241Wait for File Change activity 84Wait for HTTP Request activity 133Wait for JMS Queue Message activity 195Wait for JMS Topic Message activity 200Wait for Rendezvous Message activity 265web services

locating 332Workflow Schema shared configuration 327Workflow Server Connection shared

configuration 328working with

documents in manual tasks 217

TIBCO BusinessWorks Palette Reference

Page 374: TIBCO Business Works - Palette Reference - Nov 2002

352 |

tasks assigned to the user pool 218Write File activity 89Write To Log activity 117writing SQL queries 151WSDL File shared configuration 329WSIL 332

X

XML Document shared configuration 336XML palette 289XSLT File shared configuration 336

TIBCO BusinessWorks Palette Reference