TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™...

348
TIBCO ActiveMatrix BusinessWorks Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage ®

Transcript of TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™...

Page 1: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

TIBCO ActiveMatrix BusinessWorks™ Bindingsand Palettes ReferenceSoftware Release 6.3.4November 2016

Two-Second Advantage®

Page 2: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Important Information

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

USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS ANDCONDITIONS OF A LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTEDSOFTWARE LICENSE AGREEMENT, OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THECLICKWRAP END USER LICENSE AGREEMENT WHICH IS DISPLAYED DURING DOWNLOADOR INSTALLATION OF THE SOFTWARE (AND WHICH IS DUPLICATED IN THE LICENSE FILE)OR IF THERE IS NO SUCH SOFTWARE LICENSE AGREEMENT OR CLICKWRAP END USERLICENSE AGREEMENT, THE LICENSE(S) LOCATED IN THE “LICENSE” FILE(S) OF THESOFTWARE. USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS AND CONDITIONS, ANDYOUR USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN AGREEMENT TO BEBOUND BY THE SAME.

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

TIBCO, TIBCO ActiveMatrix BusinessWorks, TIBCO Rendezvous, TIBCO Enterprise Message Service,TIBCO Business Studio, TIBCO Enterprise Administrator, TIBCO ActiveSpaces, TIBCO Runtime Agent,TIBCO Designer, and Two-Second Advantage are either registered trademarks or trademarks of TIBCOSoftware Inc. in the United States and/or other countries.

Enterprise Java Beans (EJB), Java Platform Enterprise Edition (Java EE), Java 2 Platform EnterpriseEdition (J2EE), and all Java-based trademarks and logos are trademarks or registered trademarks ofOracle Corporation in the U.S. and other countries.

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

THIS SOFTWARE MAY BE AVAILABLE ON MULTIPLE OPERATING SYSTEMS. HOWEVER, NOTALL OPERATING SYSTEM PLATFORMS FOR A SPECIFIC SOFTWARE VERSION ARE RELEASEDAT THE SAME TIME. SEE THE README FILE FOR THE AVAILABILITY OF THIS SOFTWAREVERSION ON A SPECIFIC OPERATING SYSTEM PLATFORM.

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

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

THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY ORINDIRECTLY, BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE,INCLUDING BUT NOT LIMITED TO ANY RELEASE NOTES AND "READ ME" FILES.

Copyright © 2001-2016 TIBCO Software Inc. All rights reserved.

TIBCO Software Inc. Confidential Information

2

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 3: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Contents

Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

TIBCO Documentation and Support Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

Changing Help Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Basic Activities Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Critical Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Local Transaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12

For Each . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Iterate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15

Repeat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Repeat on Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18

While . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Constructor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Compensate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Empty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20

Exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Get Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Invoke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21

Rethrow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23

Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Set Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Set EPR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Throw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

End . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29

REST Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Rest Service Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

SOAP Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35

Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

SOAP Service Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Generating Concrete WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

Operation Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

Request Message Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

Response Message Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

3

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 4: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Operation Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49

Context Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

Service Binding - Request Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

Service Binding- Response Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Fault Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

SOAP Reference Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

Operation Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Request Message Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Response Message Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

Fault Operation Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63

Context Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Reference Binding - Request Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Reference Binding - Response Context . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66

Fault Context (Fault) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

File Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Copy File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70

Remove File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71

Create File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

File Poller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

List Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

Read File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

Rename File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

Wait for File Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84

Write File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86

FTL Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

FTL Publisher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

FTL Reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91

FTL Request Reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92

FTL Subscriber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95

FTP Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

FTP Change Default Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

FTP Delete File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

FTP Dir . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

FTP Get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

FTP Get Default Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

FTP Make Remote Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108

FTP Put . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110

FTP Quote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

FTP Remove Remote Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115

4

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 5: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FTP Rename File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

FTP SYS Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

General Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

Assign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

Call Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123

Checkpoints and Confirm Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

Confirm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

External Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125

Get Shared Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .128

Inspector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .129

Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

Mapper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

Notify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

Set Shared Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

Sleep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134

Wait for Notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137

On Notification Timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

Receive Notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

HTTP Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141

HTTP Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141

Send HTTP Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149

Wait for HTTP Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159

Sending Data in the HTTP Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166

Send HTTP Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

JAVA Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

Configuring JAVA in BusinessWorks Application Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

Converting JAVA Class to XML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

Creating Custom XPath Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

Using Custom XPath Function at Design Time and Run Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

Deleting Custom XPath Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

Java Invoke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182

Java Process Starter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187

Java To XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

XML To Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

JDBC Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

JDBC Call Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

JDBC Query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197

5

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 6: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

JDBC Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

SQL Direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203

JMS Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207

Common JMS Properties and Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

Get JMS Queue Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

JMS Receive Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213

JMS Request Reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217

JMS Send Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223

Reply to JMS Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .227

Wait for JMS Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231

Mail Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

Receive Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

Send Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238

Parse Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

MimeParser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

Parse Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244

Render Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248

Rendezvous Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

Datatype Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

Field Names in Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

Globalization Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

Rendezvous Publisher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253

Rendezvous Reply To Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254

Rendezvous Subscriber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256

Rendezvous Request Reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258

Wait for Rendezvous Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260

REST and JSON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263

BW JSON Utils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263

Invoke REST API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263

Restrictions on XML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268

Parse JSON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268

Render JSON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

Policy Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272

Basic Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272

Basic Credential Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

WSS Consumer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .274

WSS Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .277

Shared Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280

Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280

6

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 7: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FTL Realm Server Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284

FTP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .285

HTTP Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .287

Persistent Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

HTTP Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

Identity Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .297

JDBC Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297

JMS Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301

JNDI Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306

Java Global Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307

Keystore Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308

LDAP Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309

Proxy Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313

Rendezvous Transport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313

SMTP Resource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315

SSL Server Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316

SSL Client Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318

Subject Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .320

TCP Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321

Trust Provider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322

WSS Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

XML Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .324

Notify Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324

TCP Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326

Using the TCP Palette Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326

Read TCP Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326

TCP Close Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328

TCP Open Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329

TCP Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330

Wait for TCP Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332

Write TCP Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333

Thread Pool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336

XML Activities Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338

Parse XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338

Render XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339

Transform XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .342

Activity Icons Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .344

7

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 8: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Figures

Parsing a Text String into a Data Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280

8

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 9: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

TIBCO Documentation and Support Services

Documentation for this and other TIBCO products is available on the TIBCO Documentation site. Thissite is updated more frequently than any documentation that might be included with the product. Toensure that you are accessing the latest available help topics, visit:

https://docs.tibco.com

Product-Specific Documentation

Documentation for TIBCO products is not bundled with the software. Instead, it is available on theTIBCO Documentation site. To directly access documentation for this product, double-click thefollowing file:

TIBCO_HOME/release_notes/TIB_BW_version_docinfo.html

The following documents for this product can be found on the TIBCO Documentation site:

● Concepts

● Installation

● Getting Started

● Application Development

● Administration

● Bindings and Palettes Reference

● Samples

● Error Codes

● Migration

● Performance Benchmarking and Tuning Guide

● API Reference

● REST Reference

How to Contact TIBCO Support

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

● For an overview of TIBCO Support, and information about getting started with TIBCO Support,visit this site:

http://www.tibco.com/services/support

● If you already have a valid maintenance or support contract, visit this site:

https://support.tibco.com

Entry to this site requires a user name and password. If you do not have a user name, you canrequest one.

How to Join TIBCO Community

TIBCO Community is an online destination for TIBCO customers, partners, and resident experts. It is aplace to share and access the collective experience of the TIBCO community. TIBCO Community offersforums, blogs, and access to a variety of resources. To register, go to the following web address:

https://community.tibco.com

9

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 10: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Changing Help Preferences

By default, documentation access from TIBCO Business Studio™ is online, through the TIBCO ProductDocumentation site (Doc site) at https://docs.tibco.com/which contains the latest version of thedocumentation. Check the Doc site frequently for updates. To access the product documentation offline,download the documentation to a local directory or an internal web server and then change the helppreferences in TIBCO Business Studio™.

Prerequisites

Before changing the help preferences to access documentation locally or from an internal web server,download the documentation from https://docs.tibco.com/.

1. Go to https://docs.tibco.com/

2. In the Search field, enter ActiveMatrix BusinessWorks and press Enter.

3. Select the ActiveMatrix BusinessWorks™ https://docs.tibco.com/ product from the list. This opensthe product documentation page for the latest version.

4. Click Download All.

5. A zip file containing the latest documentation downloads to your web browser's default downloadlocation. Copy the zip file to a local directory or to an internal web server and unzip the file.

To point to a custom location:

Procedure

1. In TIBCO Business Studio™, click Window > Preferences. On Mac OS X, click TIBCO BusinessStudio > Preferences.

2. In the Preferences dialog, click BusinessWorks > Help.

3. Click Custom Location then Browse to select the html directory in the folder where you unzippedthe documentation, or provide the URL to the html directory on your internal web server.

4. Click Apply then OK.

10

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 11: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Basic Activities Palette

Basic activities are a simple means of interacting with a service, manipulating the passing data, orhandling exceptions. They also contain Loops that are Groups with Conditions, which follow a patternat run time such as, initialize the loop, update the loop at each iteration, and test conditions for the loopto stop iterating.

The available types of loops are:

● Local Transaction

● For Each

● Iterate

● Repeat

● Repeat On Error

● Scope

● While

Critical SectionCritical Section groups are used to synchronize process instances. At runtime multiple processinstances can be executed concurrently. You can use Critical Section groups to synchronize the set ofactions performed in the process across multiple process instances. Only one process instance canexecute the critical section group and its contents at any specified time. Other concurrently runningprocess instances that are associated with the corresponding critical section group wait at the start ofthe critical section group, until the process instance that is currently executing complete the criticalsection group.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the group in the process.

Group Type The type of the group. The default is Critical Section.

Timeout The maximum time (in milliseconds) that a process instance waits at the startof the critical section group while another process instance is executing thecritical section. When a timeout occurs, the process instance that is waiting toexecute the critical section fails with an Activity Timeout Exception.

The timeout field can be used to avoid deadlock situations.

Shared Lock Select this check box to synchronize multiple critical section groups that usethe same shared variable as a lock.

11

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 12: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Shared VariableType

The Shared Lock option can be defined using a Module Shared Variable or aJob Shared Variable. When a module shared variable is used against jobshared variable to define Shared Lock, it has different implications.

● Module Shared Variable: provides a shared lock to synchronize processinstances from different processes that are within a module. Using amodule shared variable, you can synchronize multiple Critical Sectiongroups that can be part of different process instances.

These Critical Section groups can be in the same process or in anotherprocess, provided all processes are contained within a ActiveMatrixBusinessWorks™ module.

● Job Shared Variable: provides a shared lock to synchronize within a job.Using a job shared variable, you can synchronize multiple Critical Sectiongroups that are part of the same job. These Critical Section groups can bein the same process or in an another process, provided all process instancesare part of the same job.

Shared Variable Name of the Module Shared Variable or Job Shared Variable.

Description

Provide a short description for the group in this field.

Variables

The Variables tab provides a way to declare variables that are only limited to the scope of this group.

You can select from the following available Variable Type options:

● String

● Integer

● Decimal

● Boolean

● Date&Time

Fault

The Fault tab lists the possible exceptions thrown by this activity. See the Error Codes guide for moreinformation about error codes and the corrective action to take.

Fault Thrown When..

ActivityTimedOutException The specified timeout is attained.

Local TransactionUse Local Transaction group for multiple activities to be part of a local transaction. A local transactiongroup ensures that all participants of the transaction are rolled back together. However, the localtransaction is not equivalent to an XA transaction and does not use a transaction coordinator. Instead, asingle resource performs all its transaction work.

12

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 13: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Not all ActiveMatrix BusinessWorks™ activities can participate in the local transaction. The followingcore activity types have local transactional capabilities:

● JMS

● JDBC

A Local Transaction group has to be further configured as a specific type of a Local Transaction orTransaction Transport. The Transaction Transport type determines the activities that can participate inthis local transaction group. For example, "JDBC" transaction transport only provides transactionsupport for certain JDBC activities.

General

The General tab has the following fields.

Name Description

Name The name to be displayed as the label for the activity in the process.

TransactionTransport

The transport type. Select from the following available transaction transporttypes:

● None

● JMS: To configure a JMS local transaction, select JMS as the transactiontype of the group.

● JDBC: To configure a JDBC transaction, select JDBC as the transactiontype of the group.

JMS

JMS activities participate in a transaction using the JMS local transaction. A JMS session, when specifiedas transacted, supports a single series of JMS operations. The local transaction group enlists a set ofproduced messages and a set of consumed messages into a unit of work. JMS local transactions use theunderlying JMS sessions to group together all the activities that are part of the transaction group intoone unit of work.

All activities using the same JMS connection are part of one transaction. If a transaction group containsactivities that use more than one JMS connection, for example, a JMS Send Message activity usingconnection 1 and another JMS Send Message activity using connection 2, there are two underlyingtransactions created.

Furthermore, activities must use the same messaging styles to be in the same transaction.

Possible deadlock situation: A deadlock situation arises if you have a JMS Send Message and a GetJMS Queue Message activities performing JMS operations on the same queue. A message not sent outuntil a commit is performed, keeps Get JMS Queue Message activity waiting indefinitely. It isrecommended not to have a design which sends and receives messages on the same destination usingthe same session in a single transaction.

When a transaction commits, its input is acknowledged and the associated output is sent. When atransaction rollback is done, all the produced messages (output stream) are destroyed and theconsumed messages (input stream) are automatically recovered. You can use the JMS sender activitieswith the JMS local transaction. At run time, the underlying JMS activities use the same transacted JMSsession to provide transaction semantics for messages sent and received by the JMS activities. For moreinformation on JMS palette and activities, refer to JMS Palette.

13

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 14: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

JDBC

Using the JDBC transaction and multiple JDBC activities, you can access the same database connectionto participate in a transaction. Only JDBC activities that use the same JDBC Connection participate inthis transaction type. However, other activities can be part of the transaction group. If the transactioncommits, all JDBC activities using the same JDBC connection in the transaction group commit. If thetransaction rolls back, all JDBC activities using the same JDBC connection in the transaction group rollback.

The transaction group commits automatically, if all activities in the group complete the transaction anda non-error transition is taken out of the transaction group. If any error occurs while processing theactivities in the group, including errors in non-JDBC activities, it rolls back the transaction and returnsan error. Individual JDBC activities can override the default transaction behavior and commitseparately. For more information on JDBC palette and activities, refer to JDBC Palette.

For EachThe For Each group is a loop element that can be used for iterating through array elements. The ForEach activity is very useful to determine these array elements dynamically at run time.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Group Type The type of group. The default is For Each.

Counter Name The name of the counter or Index variable.

Selecting the Global check-box makes the index variable availablefor the activities outside the loop.

Start Counter Value The start value for the counter ($index) which is specified through an XPathexpression. This can be a literal value.

Final Counter Value The final value of the counter which is set using an XPath expression. Thisvalue is obtained by the count of the number of elements of a specific type inthe request message.

Accumulate Output Select this check-box to accumulate the output of one of the activities in agroup.

The output of the selected activity is accumulated each time the activity isexecuted.

Output Activity Select the activity from the group of activities for an output reference whenexecuting the loop.

Output Name The name of the list of the accumulated output of the selected activity.

Description

Provide a short description for the activity in this field.

14

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 15: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Variables

A group of shared variables. Depending on the group selected in Group Type, Container displays thegroup. For example, if the For Each group is selected in the Group Type field, it displays For Each inContainer. You can add multiple complex or simple types variables.

You can select from the following available Variable Type options:

● String

● Integer

● Decimal

● Boolean

● Date&Time

IterateAn Iterate group repeats the series of grouped activities once for every item in an existing sequence orlist. The list can be items of any datatype. The loop executes for the number of iterations specified.

This process performs the following operations:

1. A JDBC Query activity (CustomerQuery) is used to query a database and populate a list ofcustomer records. The customer records are then passed to a group containing the Log activity.

2. The Log activity writes the name and address of each customer to a log and appends to the log aseach record is written.

3. The group iterates once for every customer record returned by the CustomerQuery activity.

4. The process then reads the log that was written for its data to be available to the process, and thentransitions to a SendMail activity to send the contents of the customer list through email.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Group Type The type of group. The default is Iterate.

15

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 16: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Index Name The index name.

Selecting the Global check-box makes the index variable availablefor the activities outside the loop.

Variable List This field is an XPath expression. XPath is used to specify the schema elementyou want to refer to.

Click the Edit XPath Expression icon to specify a value for this field in theXPath Builder wizard.

You can use a simple expression containing a complete list, or a more complexone and only process certain items in the list.

Iteration Element Provide a name for a process variable containing the current iteration elementin this field.

Global When this check-box is selected, the output is available for the activities outsidethe loop.

AccumulateOutput

Select this check-box to accumulate the output of one of the activities in agroup.

The output of the selected activity is accumulated each time the activity isexecuted.

Output Activity Select the activity from the group of activities for an output reference whenexecuting the loop.

Output Name The name of the list of the accumulated output of the selected activity.

Description

Provide a short description for the activity in this field.

Variables

A group of shared variables. Depending on the group selected in Group Type, Container displays thegroup. For example, if the Iterate group is selected in the Group Type field, it displays Iterate inContainer. You can add multiple variables of complex or simple type.

You can select from the following available Variable Type options:

● String

● Integer

● Decimal

● Boolean

● Date&Time

RepeatThe Repeat group activity is responsible for repeating the series of grouped activities until the specifiedcondition evaluates to true. The activities are always executed once before checking whether thecondition is true. After executing the series of activities, the initial evaluation of the condition is done,

16

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 17: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

and it repeats when the condition evaluates as true. The Repeat activity evaluates the loop'sconditional statement to determine whether or not more iterations of the loop are required.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Group Type The type of group. The default is Repeat.

Index Name Use this field to specify a name for the index variable.

Selecting the Global check-box makes the index variable available forthe activities outside the loop.

Condition The condition ($index) is specified through an XPath expression which can be aliteral value. Click the Edit XPath Expression button to set an XPath expression.

AccumulateOutput

Select this check-box to accumulate the output of one of the activities in a group.

The output of the selected activity is accumulated each time the activity isexecuted.

Output Activity Select the activity from the group of activities for an output reference whenexecuting the loop.

Output Name The name of the list of the accumulated output of the selected activity.

Description

Provide a short description for the group in this field.

Variables

A group of shared variables. The Container displays the group. This depends on the group selected inGroup Type. For example, if the Repeat group is selected in the Group Type field, it displays Repeat inContainer. You can add multiple variables of complex or simple type.

You can select from the following available Variable Type options:

● String

● Integer

● Decimal

● Boolean

● Date&Time

Repeat on ErrorUsing the Repeat on Error group, you can repeat a series of activities when an unmanageable erroroccurs. The activities in this group are executed once. If there are no unmanageable errors, the loopterminates. If an error occurs for which there is no error transition, the condition of the loop isevaluated. If the condition is true, the loop terminates. If the condition is false, the loop repeats untilthere is no error or the condition is true.

17

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 18: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Group Type The type of group. The default is Repeat on Error.

Index Name Use this field to specify a name for the index variable.

Stop RepeatCondition

The condition specifies that the activities inside the Repeat On Error are performedrepeatedly until the condition evaluates to false.

Description

Provide a short description for the group in this field.

Variables

A group of shared variables. Depending on the group selected in the Group Type, the Containerdisplays the group. For example, if Repeat on Error group is selected in the Group Type field, itdisplays RepeatOnError in Container. You can add multiple variables of complex or simple type.

You can select from the following available Variable Type options:

● String

● Integer

● Decimal

● Boolean

● Date&Time

ScopeThe Scope group comprises a collection of nested activities. Scope group is shared by all the nestedactivities. You can use a Scope to contain a unit of work, by making it easy to manage, execute, andrevert. For example, if a customer cancels an online order, the money must be returned and the onlineorder canceled, without affecting other orders. You can use a Scope to manage these activities as a unit.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Group Type The type of group. The default is Scope.

Description

Provide a short description for the group.

18

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 19: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Variables

A group of shared variables. Depending on the group selected in the Group Type, the Containerdisplays the group. For example, if the Scope group is selected in the Group Type field, it displaysScope in Container. You can add multiple variables of complex or simple type.

You can select from the following available Variable Type options:

● String

● Integer

● Decimal

● Boolean

● Date&Time

WhileThe While activity repeats the series of grouped activities if the specified condition evaluates as true.The condition is evaluated when the group is enters. If the condition evaluates to false, the activitieswithin the group are not executed.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Group Type The type of group. The default is While.

Index Name Use this field to specify a name for the index variable.

Selecting the Global check-box makes the index variable availablefor the activities outside the loop.

Condition The condition ($index) is specified through an XPath expression which can be aliteral value. Click the Edit XPath Expression button to set an XPathexpression.

AccumulateOutput

Select this check-box to accumulate the output of one of the activities in agroup.

The output of the selected activity is accumulated each time the activity isexecuted.

Output Activity Select the activity from the group of activities for an output reference whenexecuting the loop.

Output Name The name of the list of the accumulated output of the selected activity.

Description

Provide a short description for the group.

19

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 20: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Variables

A group of shared variables. Depending on the group selected in the Group Type, Container displaysthe group. For example, if the Scope group is selected in the Group Type field, it displays Scope inContainer. You can add multiple variables of complex or simple type.

You can select from the following available Variable Type options:

● String● Integer● Decimal● Boolean● Date&Time

ConstructorYou must use the constructor for each class to instantiate that class.

CompensateCompensate activity is executed only from the compensation handlers when a fault is encounteredoutside a scope (this scope will have compensation handler defined). This activity triggerscompensation handler for a scope present only on the same level. All activities present in scope getexecuted successfully.

The compensation handlers are defined per scope. The compensation handlers of scopes that aredirectly enclosed by the scope and contain Compensate activity, can be executed. The handlers executein reverse order, so the handler of the last completed scope is executed first. The compensation handlerscan only be defined on scope level.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Description

Provide a short description for the activity.

EmptyAn Empty activity denotes an activity with no action to be performed. You can specify the Name andDescription, but there is no input or output for this activity.

This activity is useful if you want to join multiple transition flows. For example, there are multipletransitions out of an activity and each transition takes a different path in the process. In this scenarioyou can create a transition from the activity at the end of each path to an Empty activity to resume asingle flow of execution in the process.

ExitExit activity is a synchronous activity that cancels any asynchronous activities that are in a waiting stateand terminate the process instance. You can specify the Name and Description, but there is no input oroutput for this activity.

20

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 21: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Get ContextGet Context activity retrieves the value of the specified context parameter. This is useful if your processrequires some context information from a request or a response.

GetContext activity must be placed after Invoke or Receive activity.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Direction Select from the following available options to specify from where the contextinformation should be fetched:

● Receive Service: pulls context information from a service request. Selecting thisoption displays the Service field.

● Return from Reference: pulls context information from a reference response.Selecting this option displays the Reference field.

● Fault from Reference: pulls context information from a reference fault response.

Service/Reference

Select the targeted portType and operation from where the context information is tobe picked.

Fault This field is displayed when Fault from Reference option is selected in theDirection field.

Description

Provide a short description for the activity.

Output

The following is the output for the activity.

Output Item Datatype Description

<schema> varies The value of the context resource specified in theDirection field of the General tab is the output for thisactivity. The schema for the output is determined by theschema specified for the context resource.

InvokeInvoke activity is an asynchronous activity that calls an operation of a process reference. The processreference can be configured to invoke another process (subprocess) or invoke an external servicethrough a binding such as SOAP.

The Call Process activity serves a similar purpose as the Invoke activity. The Call Process activity onlycalls non-WSDL-based subprocesses, or direct subprocesses, and the Invoke activity only calls WSDL-based subprocesses, or service subprocesses.

21

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 22: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Service Select the service for which to specify an operation.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following field.

Input item

LiteralValue/ModuleProperty? Description

ActivityTimeout(seconds)

Yes The Invoke activity timeout in seconds. You can either select a presettimeout (Default Timeout, 30, 60,or 120 seconds) or specify a customtimeout in seconds.

If the Invoke activity is configured to be Default Timeout,then the timeout value equates to "3" minutes by default.However this default value (3 minutes) can be modified tobe a different value by setting the AppSpace config.iniproperty bw.engine.activity.async.waitTime.

When the Invoke activity timeouts, the in-line subprocessinstance called by the Invoke activity can be cancelledbefore the subprocess instance completes. Hence, thebusiness logic in the cancelled process instance may not beexecuted to its entirety.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

Input

The following is the input for the activity.

Input item Datatype Description

input message complex The input message of the operation. This element contains allthe input message parts for the operation.

22

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 23: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output

The following is the output for the activity.

Outsput item Datatype Description

output message complex The output message for the operation. This element contains allthe output message parts for the operation.

Fault

Click on this tab to view faults that might be thrown by the activity when it is executed at runtime.

RethrowRethrow activity is used within an exception-handling routine to throw the caught error again. This isuseful if you want to perform some processing within an error-handling routine, and also send it to thenext higher scope.

ReceiveReceive activity initiates the process execution based on the receipt of a request message for anoperation of the process service. The Receive activity can be configured to act as a process starter or asignal-in activity.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Create Instance Select this check box if you want to start a process.

Service Select the process service and the operation from which to receive the request.

Description

Provide a short description for the activity.

Output Editor

The schema of the process variable must match the schema of the output of the activity shown on theOutput tab.

Output

Output Item Datatype Description

output varies The output of this activity is the incoming message from thecalling client or service. The structure of the message isdetermined by the schema of the input message for the selectedoperation on the General tab.

23

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 24: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

ReplyReply activity is a synchronous activity that sends a message in response to a request message that wasreceived for an operation of a process service. This activity can be used to send a reply or a fault.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity.

Service Select the process and the operations for which to send a response.

Reply With Select from the following available options to send the reply message:

● Output Message

● Undeclared Fault

Description

Provide a short description for the activity.

Input Editor

The schema of the process variable must match the schema of the input for the activity shown on theInput tab.

Input

Input Item Datatype Description

input varies The reply message to send. The schema depends on the outputmessage of the operation for this reply.

Set ContextSet Context activity can be used to set the value of a context information resource.

SetContext activity must be placed before Invoke or Receive activity.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

24

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 25: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Direction Select from the following available options to specify where the contextinformation should be supplied:

● Invoke Reference: Selecting this option displays the Reference tab.

● Reply to Service: sends context information to a service. Selecting this optiondisplays the Service field.

● Reply to Service with Fault: sends context information for a service faultreply.

Service/Reference

Select the targeted portType and operation where you want to supply the contextinformation.

Fault This field is displayed when Reply to Service with Fault option is selected in theDirection field.

Description

Provide a short description for the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

input message complex The input message of the operation. This element contains allinput message parts for the operation.

Set EPRSet EPR activity is a dynamic alternative to the static service element defined in the WSDL. To use anincoming message, define the EPR schema as a part of the message in the WSDL.

An endpoint reference (EPR) combines web services elements that define the address for a resource in aSOAP header. If you use an incoming message, an EPR schema should be defined as a part of themessage in WSDL.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity.

DynamicReference

The name of the dynamic target interface for which this task is supplying theservice name and namespace

Description

Provide a short description for the activity.

25

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 26: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for the activity.

Input Item Description

SimpleEndpointReference

Contains endpoint address information for the destination of the outgoingmessage

Output

The following is the output for the activity.

Output Item Description

EndpointReference Contains the following elements:

● Address: Endpoint address

● Interface: The name of the dynamic target interface for which this taskis supplying the service name and namespace

ThrowThrow activity throws the specified fault and the control is passed to any error-handling routinedefined to handle the error. This activity is useful in a group or in a called process. You can use thisactivity to catch and raise your own error conditions. The Throw activity is useful if an error in thebusiness logic occurs during processing.

General

The General has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Default Fault This field displays if you are using the Throw activity in a serviceprocess or a service subprocess.

Select this check-box if you want the default message text and error code forthe error message.

This is reflected in the Input Editor and Input for this activity.

Fault Schema This field displays if you are using the Throw activity in a directsubprocess.

Select a fault schema to send to the parent process. In a direct subprocess, faultschemas are defined on the Fault Editor tab of the End activity.

If you select the - Default - option, the $_error process variable is propagated.

26

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 27: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Description

Provide a short description for the activity.

Input Editor

Selecting the Default Fault check-box displays the message and msgCode elements in the Input Editor.

Input

The following is the input for the activity.

Input Item Datatype Description

message string The text of the generated error message.

msgCode string The error code of the error message. This is used as an identifierfor the error for the applications to test for an error.

Fault

This activity does not produce any fault. Click on this tab to view fault schemas specified on the Inputtab.

StartThe Start activity is the first activity, and acts as the starter activity, in a direct subprocess definition. Adirect subprocess can be called from a parent process, and the Start activity is used to define the inputexpected by the process.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Description

Provide a short description for the activity.

Output Editor

Use the Output Editor tab to define data for the subprocess to use as input. Any process that calls thisprocess definition must supply the data specified on the Output Editor tab. You can define your owndatatype on this tab, and can reference an XML schema stored in the project. Once defined, the dataspecified on the Output Editor tab becomes the output schema of the Start activity. This data thenbecomes available to other activities in the process definition.

From the Select Schema Element Declaration window, select Include WSLD Inline Schemas to displayinline schemas from the WSDLs in the module.

Output

The output for the activity is defined by the specified data elements on the Output Editor tab.

27

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 28: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

EndThe End activity is the last activity in a direct subprocess definition. When a direct subprocess is calledfrom another process, the direct subprocess provides output data to the calling process. You can mapdata from other activities in the process to an output schema specified on the End activity. This becomesthe output of the process.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Description

Provide a short description for the activity.

Input Editor

Use the Input Editor tab to define ouput data for the subprocess. Any process that calls this processdefinition receives this data after the process call completes.

You can define your own datatype on this tab, and reference an XML schema stored in the project. Oncedefined, the data specified on the Input Editor tab becomes the input schema of the End activity. Youcan then map data from other activities in the process to the End activity’s input, and this becomes theoutput of the process when the process completes.

From the Select Schema Element Declaration window, select Include WSLD Inline Schemas to displayinline schemas from the WSDLs in the module.

Input

The input for the activity is defined by the specified data elements on the Input tab.

Fault Editor

Use the Fault Editor tab to specify possible faults for the direct subprocess to throw.

28

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 29: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Binding

Binding is used to establish a connection between SOA Services and their consumers. They arecommunication gateways to connect to the external world. They follow a well-known communicationprotocol that both client and service are aware of.

The two types of binding components are:

● Service Binding: used to create and expose a service to the external world. The service can containone or more operations. Once exposed, the service can be consumed by its clients.

● Reference Binding: used to create a client that can connect and communicate to an external service.

TIBCO Business Studio™ supports REST as well as SOAP bindings.

REST BindingREST Binding provides external connectivity for REST over HTTP. You can specify custom HTTPheaders and parameters using REST binding. It supports GET, PUT, POST, and DELETE HTTPmethods. It also supports JSON, XML, and plain text message types.

Binding

This section has the following fields.

Field Description

Resource The name of the resource.

Resource ServicePath

Specify the path of the Service Resource.

If an application contains multiple REST bindings, ensure that the location ofthe path parameters is unique for each REST binding.

For example, one REST binding is using the paths /book/{isbn} andanother REST binding is using the path /book/{authorid}. Since {isbn}and {authorid} are defined at the same location in the URI , one of theseservices will not function correctly.

HTTP ConnectorName

The name of the HTTP Connector.

Click on the HTTP Connector Name field to display details aboutthe HTTP Connector resource.

Request ClientFormat

The type of request message format.

The two available request message type options are: Body and Form.

● Body: Provides two request body format option: JSON and XML. Both orany one of these options can be used.

● Form: This option can be used to inject the parameters of a Web form intoa RESTful web service.

Reply Client Format The type of reply message format.

The two available reply message format options are: JSON and XML.

29

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 30: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Imported projects display the Authenticate check box under the Binding section if the check box wasselected in a previous version TIBCO ActiveMatrix BusinessWorks™ 6.x. Authentication also remainsenabled on the REST Service Binding if you do not deselect the check box. Deselecting theAuthenticate check box causes a warning message to display prompting you for confirmation. ClickingOK causes the Authenticate check box to no longer display and removes authentication from RESTService Binding. Click Cancel to retain the Authenticate check box, and to continue enforcingauthentication on the binding.

To enforce authentication on the REST Service Binding, associate the binding with a BasicAuthentication policy. For additional details, refer to the sections "Enforcing Basic Authentication" inthe Application Development guide.

Operations

This section shows the following details.

Field Description

Name The name of the HTTP method used, for example, GET, PUT, POST, andDELETE.

Nickname The specified name of the service, for example, getBooks.

Operation Details

This section shows the following details.

Field Description

Summary This tab has the following available options:

● Summary: The summary of the REST resource

● HTTP Method: Displays the HTTP Method specified in the Operationssection. These are the available HTTP methods:

— POST

— GET

— PUT

— DELETE

Request Specifies the resource created, using the POST method.

Request and Response depend on the method selected.

30

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 31: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Response This tab has the following available options:

● Use HTTP Headers: Selecting this check box includes the REST Webservice application (or client) within the HTTP headers and body of arequest, all of the parameters, context, and data required by the server-side component to generate a response.

● Use Custom Status Line: You can specify a custom status line (statuscode and reason phrase) to the outgoing message. The codes used mustbe defined in the configuration under the Response Status tab.

● Response with Status Code Only: The operation returns a status code asresponse, when this check box is selected. Message body is not required.For example, using a POST operation returns a 201 status code whichmeans "Created" and responds with the resource URL.

● Resource Schema: Displays the schema selected. This option is notavailable when the Use Custom Status Line and Response with StatusCode Only check boxes are selected. These are the available options:

— String

— Integer

— Boolean

— XSD element: Selecting this option to either select the XSD schemaelement available under the Schemas folder of your project or acreate new XML schema resource. Click Create New Schema to acreate new XML schema resource using the Simplified Schema Editorwizard.

Ensure the schema resource you select does not contain cyclicdependencies on other schemas , or a type that has two childmembers with the same local name, but different namespaces.

Response Status Specifies the response code for the operation and the code message. Forexample, code 201 means Created or code 503 means Service Unavailable.

You can also add your own custom code and reason phrase.

Parameters

This section shows the following details.

Parameter Name Type Required

Parameter name ofthe operation used

The parameter type. It can be anyone of the following:

● String

● Integer

● Boolean

Whether this parameter is required.The available options are Yes or No.

31

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 32: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Working with Path and Query Parameters

Path and query parameters are supported with TIBCO ActiveMatrix Businessworks REST bindings.Define parameters in the resource service path by enclosing each parameter in { } brackets . Forexample, to define the path parameter isbn for a book resource, specify the resource path as follows:

/book/{isbn}

In this example, the client would invoke this service using the URL http:/<host>:<port>/book/<isbn>.

Insert a question mark (?) after a parameter to add query parameters to a resource. In the followingexample, isbn is defined as a query parameter, instead of the path parameter, in the resource servicepath:

/book?{isbn}

Insert (&) to use it as a delimiter when defining multiple query parameters. In the following example,the query parameters isbn and authorName are defined in the resource service path:

/book?{isbn}&{authorName}

All the parameters defined in the resource service path are made available to the user as an Input forevery operation. See the following image for the /book/{isbn} example to see the Input for the GEToperation.

Path parameter names and query parameter names must be unique in a resource service path. Forexample, the following path and query parameters is not supported:

/books/{isbn}?{isbn}

If the Request Format for a REST Binding is Form, the parameter name must be different from allelement names in the referenced schema. For example if a Books schema contains the element isbn,isbn can not be used as query or path parameter name.

About Swagger UI

Using the Swagger UI you can visualize RESTful services. It specifies the format (URL, method, andrepresentation) to describe REST the web services.

Viewing Multiple REST Services in Swagger UI

If there are multiple REST services using different HTTP Connectors, you can the select the requiredHTTP Connector to receive responses for all the REST services using that connector. From the SwaggerUI, select the connector from the options in the drop down list Select HTTP Connector.

At runtime, in the Swagger UI, the REST service lists down all the REST services that are using theselected HTTP Connector.

32

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 33: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Using Swagger 1.2 Files

You can use Swagger 1.2 API declaration files. The Swagger 1.2 files were not exposed in previousversions of ActiveMatrix BusinessWorks™. To consume those interfaces in the current version, importthe projects, and click the REST module under the Processes folder in the Project Explorer and selectRefactor -> Expose REST Resource to extract the hidden resource files. These Swagger 1.2 files appearin the Service Descriptors folder and can be used much like the Swagger 2.0 files.

Partial Response in REST

Using the Partial Response feature in REST, you can retrieve only the data you need, instead of bulkdata as a response. You can also request only those fields that are required as part of the response.

For example, in the Swagger UI to select the immediate children nodes of an object, specify the requiredfield names separated by comma such as ISBN, author, bookName, and so on.

The partial response feature uses a fields query parameter.

The fields keyword is reserved to be used internally. Adding the fields keyword as a query parameterautomatically triggers support for partial responses.

Partial responses do not support selecting particular objects from an array. For example, using the fieldskeyword for /books/isbn, the isbn's of all the books are returned.

Format: The values of the fields keyword can be a comma separated value of fields of the responsemessage. Fields can be specified directly, for example, using isbn or hierarchy /books/isbn. To usethis in the resource path in the client, add the fields keyword, for example /books?fields=isbn, andto use this on the service binding pass the fields as a query parameter in the resource service path, forexample /books?{fields} .

OSGi Command to List REST

The OSGi command to list REST and Swagger URLs is lrestdoc, which lists the following discoveryURL:

<>@BWEclipseAppNode> lrestdoc

[Application Name]: tibco.bw.sample.binding.rest.BookStore.application

[Discovery Url]

The following are the commands to list endpoints.

<>@BWEclipseAppNode> lendpoints

[Application Name] : tibco.bw.sample.binding.rest.BookStore.application

[Endpoint Type] : REST

[Endpoint URL] : http://localhost:8123

[CLIENT FORMAT ] : JSON

[RESOURCE PATH ] : /book/{ISBN}

[HTTP METHODS] : GET, PUT, DELETE

[Endpoint Type] : REST

[Endpoint URL] : http://localhost:8123

[CLIENT FORMAT ] : JSON

[RESOURCE PATH ] : /books

[HTTP METHODS] : POST, GET

33

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 34: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

[Endpoint Type] : REST

[Endpoint URL] : http://localhost:8123

[CLIENT FORMAT ] : JSON

[RESOURCE PATH ] : /book/{ISBN}/events

[HTTP METHODS] : GET

[Endpoint Type] : REST

[Endpoint URL] : http://localhost:8123

[CLIENT FORMAT ] : JSON

[RESOURCE PATH ] : /event/{EventID}

[HTTP METHODS] : GET, PUT, DELETE

[Endpoint Type] : REST

[Endpoint URL] : http://localhost:8123

[CLIENT FORMAT ] : JSON

[RESOURCE PATH ] : /events

[HTTP METHODS] : POST, GET

Policy

Bindings that support policies will display the Policy field. To associate a new or existing policy with

the REST binding, click the Add Policy icon. To edit policy details, click Policy Name. The Policysection has the following fields.

Field Description

Policy Name The name of the policy.

Policy Type The type of policy associated with the binding. The REST Service Binding cansupport the Basic Authentication policy.

Description A description of the policy.

Rest Service WizardRest Service Wizard is used to create a new Rest Resource or add Rest Services to an existing resourcein TIBCO Business Studio™.

The Rest Service Wizard has the following fields:

Field Description

Resource Name The name of the REST Resource.

Summary The summary or description of the REST Resource.

34

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 35: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Resource ServicePath

The relative path for this REST Service Resource.

If an application contains multiple REST bindings, ensure that the locationof the path parameters is unique for each REST binding.

For example, one REST binding is using the paths /book/{isbn} andanother REST binding is using the path /book/{authorid}. Since {isbn}and {authorid} are defined at the same location in the URI , one of theseservices will not function correctly.

In addition to path parameters, the path in a REST binding can also containquery parameters. For example,

/resource/path/{pathparam}? query={queryparam} or /resource/path/{pathparam}?{ queryparam}

Resource Definition The XSD schema element to be used for creating the REST resource.

You can also use this to create the input and output of each operationdefined. You can override this on the next screen if required, for eachoperation.

Operations These are the HTTP methods implemented by this REST Service.

Currently only POST, GET , PUT, and DELETE methods are supported forusers to implement.

Implementation Data The implementation data field can be Structured or Opaque.

● Structured: The XSD element structure is preserved for the input andoutput of every operation. You need not manually parse the payload togenerate the actual element to be used in the process.

● Opaque: Use this mode to apply the pass through mechanism. A usergets a messageBody element in the input or output of every operationand needs to use either Parse activities for JSON or XML to get astructured output for the payload.

To add additional services to a process, click Create A Rest Service on the top left of the processcanvas.

Re-creating a component containing a REST binding after deleting the component is not supported. Toadd the REST binding, in the process editor, right click on the service without a binding. Go toComponents > [componentware] > Create REST Binding. A binding is created for the service. Thebinding will have to be re-configured as the previous configurations will be lost.

SOAP BindingYou can use SOAP binding to create service providers and service consumers, based on the SOAPprotocol. TIBCO ActiveMatrix BusinessWorks ™ 6.x supports SOAP 1.1 and SOAP 1.2 protocol.Messages created by SOAP binding can either use HTTP or JMS transport for communication.Depending upon whether you want to create a service provider or a service consumer, there are twotypes of SOAP bindings: SOAP Service Binding and SOAP Reference Binding.

SOAP operations support the following Message Exchange Patterns:

35

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 36: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

● One-Way

● Two-Way (request-response)

● Two-Way with Fault

TerminologyTIBCO ActiveMatrix BusinessWorks™ uses specific terminology to identify the purpose of the message,that is exchanged between a service provider and a service consumer.

Terms Used for SOAP Messages

The following table describes the terms used to describe a SOAP message.

Term Description

ServiceRequest A request message received by a service provider

ServiceReply The response message sent by a service provider

ReferenceRequest A request message generated by a service consumer

ReferenceReply A response message received by a service consumer

SOAP Headers

Refer to the following table for the terminology used to described different configurations that can beused to create a SOAP Header.

Term Description

Described Described denotes that the WSDL message definition used to create a SOAPheader is available in the concrete WSDL.

Undescribed Undescribed denotes that the WSDL message definition used to create aSOAP header is not available in the concrete WSDL.

Bound Specifies that the SOAP header definition is the part of the same WSDLmessage, that is also used to create a SOAP body. In such cases, a WSDLmessage contains multiple parts. Some parts are defined to describe SOAPheaders and others are defined to describe the SOAP body.

Unbound Specifies that the SOAP header definition is not a part of the same WSDLmessage, that is also used to create a SOAP body

Based on the definitions in the SOAP Headers table, SOAP headers can be categorized into any of thefollowing three types of configurations:● Described bound headers

● Described unbound headers

● Undescribed unbound headers

SOAP Attachments

Refer to the following table for SOAP attachment types and their relevant description.

36

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 37: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

SOAP AttachmentTypes Description

Described BoundAttachments

In this configuration, a part of the input or output WSDL message of typebase64binary is configured as an attachment. In a concrete WSDL, theattachment is described as a mime part of the multipart message.

UndescribedUnboundAttachments

None of the parts of the WSDL input or output message is configured to bean attachment. The concrete WSDL does not indicate whether an attachmentis in the input or output message.

Attachment mapping is done at the Binding Configuration under ContextMapping (Request/Response)

SOAP Service BindingUsing SOAP service binding you can create a service provider through the SOAP protocol.

Binding

This section has the following fields.

Field Description

Name The name of the service binding.

Description A short description of the service getting exposed.

Target Namespace The Target Namespace of the service.

Generate Concrete WSDL

The SOAP service binding helps you to create the concrete WSDL using Concrete WSDL GenerationWizard. See Generating Concrete WSDL for more details.

SOAP Default Configuration

This section has the following fields.

Field Description

SOAP Version The version of the SOAP specification: 1.1 or 1.2. The default is 1.1.

Style The default SOAP binding style for all operations. Specify eitherDocument or RPC style.

Encoding Encoding is literal.

37

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 38: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Attachment Style Select the default attachment style for all the binding operations. Can beoveridden at the operations level for each operation.

The following attachment styles are available:

● SwA - Supports both, Bound and Unbound Attachments

● MTOM

The MTOM attachment style is available only if SOAP 1.2 specification isused.

Transport Configuration

This section has the following fields.

Field

Literal Value/ModuleProperty Description

TransportType

None The transport over which SOAP message is sent. The HTTP andJMS transports are supported.

ConnectorName

None The name of the shared resource. This points to either the HTTPor JMS shared transport configuration.

Configuration for HTTP Transport

HTTPConnectorName

None Name of the HTTP Connector resource.

Click on the HTTP Connector Name field to displaydetails about the HTTP Connector resource.

Endpoint URI Yes The endpoint URI for the service.

Configuration for JMS Transport

JMSConnectionName

None The name of the JMS Connector resource.

Click on the JMS Connection Name field to displaydetails about the JMS connector resource.

38

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 39: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty Description

AcknowledgeMode

None The acknowledge mode for service request messages. It can beone of the following:

● Auto: The message is acknowledged when it is received by aSOAP Service Binding.

● Client: The message is not acknowledged when it is receivedby the SOAP Service Binding. You can confirm the messageby using the Confirm activity in the BusinessWorks processthat is configured as an operation implementation. If theConfirm activity is not used, the message is automaticallyacknowledged by the SOAP Service Binding while sendingthe service reply.

● Dups OK:The message is acknowledged automatically whenit is received by a SOAP Service Binding. JMS provides thismode for lazy acknowledgment , but ActiveMatrixBusinessWorks acknowledges messages upon receipt.

● Tibco EMS Explicit: (only available for TIBCO EnterpriseMessage Service™)

The message is not acknowledged when it is received by aSOAP service binding. You can confirm the message by usingthe Confirm activity in the ActiveMatrix BusinessWorksprocess that is configured as the operation implementation.

If the Confirm activity is not used, then the message isautomatically acknowledged by the SOAP Service Bindingwhile sending the service reply.The session is not blocked and one session handles allincoming messages for each process instance.

● Tibco EMS Explicit Dups OK: (only available for TIBCOEnterprise Message Service)

The message is not acknowledged when it is received by aSOAP service binding. You can confirm the message by usingthe Confirm activity in the Activematrix BusinessWorksprocess that is configured as the operation implementation.

If the Confirm activity is not used, the message isautomatically acknowledged by SOAP Service Binding whilesending the service reply.The session is not blocked and one session handles all theincoming messages for each process instance. The messageshowever, are lazily acknowledged.

DeliveryMode(Response)

No The delivery mode of messages.

● Persistent Messages are stored and forwarded.

● Non-Persistent Messages are not stored and can be lost dueto failure.

The default mode is Persistent.

39

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 40: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty Description

Message Type None Specifies the type of the service request messages. It can be eitherText message or Bytes message.

MessagingStyle

None Specifies the style of the service request messages. It can beGeneric, Queue, or Topic.

JMSDestination

Yes Specifies the name of the destination for the service requestmessages. The syntax of the destination name is specific to theJMS provider you are using.

JMSApplicationProperties

None User-defined JMS Properties expected to be available in theservice request messages.

NOTE: JMS Application properties should be defined in aschema only through a complex type. Also, all JMS Applicationproperties should be direct child of this complex type.

JMSApplicationProperties(Response)

None User-defined JMS Properties expected to be sent in the theservice response messages.

NOTE: JMS Application properties should be defined in aschema only through a complex type. Also all JMS Applicationproperties should be direct child of this complex type.

Max Sessions None When the Acknowledge Mode field is set to Client, this fieldconfigures the maximum number of JMS sessions that is createdfor the service request messages.

When a message is received, the session is blocked until themessage is acknowledged in the process. If acknoledgement isnot done at process level then it is automatically acknowlegedwhen the SOAP Service Binding sends a service reply.

After reaching the maximum number of sessions, no newincoming messages can be processed. Once any one of themessages is processed ,the total number of active sessionsdecreases and then another incoming message can be processed.

Operations None This field is available only when Topic is selected in the JMSDestination Type field.

Operation Name - Specifies the operation name.

Durable Subscription - Set to true if the client is a durablesubscriber.

Subscription Name - Specify the Subscription Name if DurableSubscription is set to true.

40

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 41: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Imported projects display the HTTP Authentication check box under the Transport Configurationsection if the check box was selected in a previous version TIBCO ActiveMatrix BusinessWorks 6.x.Authentication remains enabled on the SOAP Service Binding if you do not clear the check box. If youclear the Authentication check box, a warning message is displayed prompting you to confirm youraction. To remove authentication from the binding, click OK. Once you have removed authenticationfrom the SOAP Service Binding, you can reapply it using the Basic Authentication policy. Foradditional details, refer to the sections "Enforcing Basic Authentication" and "Enforcing WSS Provider"in the TIBCO ActiveMatrix BusinessWorks Application Development guide.

Persistence Configuration

This section has the following fields.

Field

LiteralValue/ModuleProperty Description

Persistence Type None Select any one from the available Persistence configurationtypes. They are NONE and File.

Selecting the File option displays the Directory, CreateDirectories, and Threshold Size fields.

Directory Yes The directory where attachments will be serialized.

CreateDirectories

Yes Creates new directories if not present on the disk.

Threshold Size Yes The maximum size of the attachment that can be kept inmemory. Attachments larger than the specified size will bewritten to the disk.The file name generated for serialization israndom except when the Content-disposition header is availablefor the attachment. Here, the name is the same as the content-disposition header value.

You can configure the size to Bytes, KB or MB.

Threading Policy Details

The following are the details for the SOAP Service Binding threading policy.

Activity TypeMulti-Threaded? Default Thread Count Thread Count Configuration

Transport: HTTP

ProcessStarter

Yes● Minimum thread pool

threads = 10

● Maximum thread poolthreads = 75

It can be configured on the HTTPConnector shared resource using thefollowing fields:

● Minimum QTP threads

● Maximum QTP threads

41

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 42: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Add Binding

You can add a binding. Click the Add Binding icon to add a binding.

Delete Binding

You can delete a binding. Click the Delete Binding icon to delete a binding.

Policy

Bindings that support policies will display the Policy field. To associate a new or existing policy with

the SOAP HTTP Binding, click the Add Policy icon. To edit policy details, click Policy Name.The Policy section has the following fields.

Field Description

Policy Name The name of the policy.

Policy Type The type of policy associated with the binding. The SOAP HTTP ServiceBinding can support the following policies:

● Basic Authentication

● WSS Provider

Description A description of the policy.

Generating Concrete WSDL

The SOAP service binding helps you to create the concrete WSDL using Concrete WSDL GenerationWizard.

Generate Concrete WSDL

To generate the WSDL, do the following.

1. Click Generate Concrete WSDL.

2. In the Concrete WSDL Generation Wizard, the Location field shows Workspace and File Systemtabs.

42

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 43: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

3. Click the Workspace tab to create the WSDL in your workspace and specify a location where WSDLis to be created.

4. To select location:

a. Click the Workspace tab if you want to create the WSDL in your workspace and select alocation. It is recommended to select the Service Descriptor folder to contain all project relatedWSDLs.

b. Click File System tab if you want to save the concrete WSDL on a disk location other than theworkspace.

Click Finish if you want to generate WSDL with default settings.

5. The File Name field shows the name of the WSDL, for example BooksService_gen.wsdl. Overrideit as per requirement.

6. Click Next.

7. Select the Embed Abstract WSDL and Embed Schema check boxes on the next screen. (Thefollowing image is of SOAP over HTTP binding.)

43

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 44: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

By default the Embed Abstract WSDL and Embed Schema check boxes are selected.

With Embed Abstract WSDL check box selected, the concrete WSDL generated has an abstractWSDL content in it.

In this case, the namespace of the concrete WSDL is the same as that of an abstract WSDL. If thecheck box is not selected, then the namespace of the concrete WSDL is different than that of theabstract WSDL.

When you select Embed Schema check box, the concrete WSDL generated has the schema definition(mentioned in the abstract WSDL) in it. Schema with no target namespace is not supported.

To avoid any namespace resolution error in the application module: If the concreteWSDL is placed in a workspace location (as mentioned in the earlier step), clear theEmbed Abstract WSDL check box.

8. For advance configuration of the concrete WSDL such as Namespace URI, Service Name, Host, andPort (for SOAP over HTTP), click the Advance tab. Override them as per requirement.

9. Click Finish.

Operation Configuration

Operation configuration enables you to set configurations at the operation level.

This section has the following fields.

Field Description

Operation Name The name of the operation component.

SOAP Action Specifies the soap action for this operation. By default it is the operationname

44

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 45: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Style The SOAP binding style. Specify either Default Document or RPC style.Configurations made at the binding level can be overidden here.

Attachment Style Select the attachment style for the operations.

The default configurations for each operation can be overridden here.

The following attachment styles are available:

● Default - The attachment style configured at the binding level.

● SwA

● MTOM

The attachment style MTOM is available only if the activity uses SOAP1.2 and is not displayed when SOAP 1.1 is used.

Request Message Configuration

Request Message Configuration can be used to configure request message contents like SOAPheader,SOAP body, and attachments.

Message Part Configuration

You can configure the WSDL Input message parts as body, header (bound) or attachment for a servicerequest.

The Attachment option, configures a SwA attachment (bound) . This is available only for WSDLmessage parts that are of type base64binary.

This section has the following fields:

Field Description

Part Name Specifies the part name of the WSDL message as configured in theWSDL.

Part Type You can configure the WSDL message part as any of the following:

● Header - Configures the WSDL part as a SOAP Header.

● Body - Configures the WSDL part as SOAP Body.

● Attachment - Configures the WSDL part as a SwA attachment.

Unbound Header Configuration

You can configure SOAP Headers for service requests in this section . The WSDL message's part, otherthan the input WSDL message, can be configured as a SOAP header. The WSDL messages can be in anexternal WSDL.

Configurations done here will appear in the Concrete WSDL in the SOAP header element.

45

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 46: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Select Unbound Header

Use the Add icon to select and add this configuration. Select the WSDL, the message and then thepart.

This section has the following fields:

Field Description

Message Specifies the WSDL message name as configured in the WSDL.

Part Specifies the part name of the WSDL message as configured in theWSDL.

Delete Unbound Header

To delete an unbound header, select the required row and click the icon.

Undescribed Header Configuration

You can configure SOAP Headers for service requests in this section.The WSDL message's part, otherthat the input WSDL message, can be configured as SOAP header here. The WSDL messages can be inan external WSDL. These headers are undescribed headers and will not appear in the Concrete WSDL.

Add Undescribed Header

Use the Add icon to select and add this configuration. Click the icon and select the WSDL, themessage and then the part.

This section has the following fields:

Field Description

Header Name Specifies the WSDL message name as configured in the WSDL.

Header Part Specifies the part name of the WSDL message as configured in theWSDL

Cardinality Configure the cardinality of the configured SOAP header as one of thefollowing:

● Optional(?) - The SOAP header is optional.

● Required - The SOAP Header is required and must be supplied whenthe process is called.

● Repeating (*) - Zero or more SOAP headers must be supplied arepresent when the process is called.

46

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 47: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Delete Undescribed Header

You can delete an undescribed header. Select the required binding and click the Delete Binding icon

.

Attachment Configuration

If a part is configured as an attachement in the Message Configuration section, then the attachement'scontent type is configured here. This section has the following fields:

Field Description

Part Specifies the WSDL message name as configured in the WSDL.

This corresponds to the part that is configured as an attachment in theMessage Part Configuration section.

Content Type Indicates the media type of the attachment received. An example of themedia type is text/html.

Response Message Configuration

Response Message Configuration enables you to configure response message contents like the SOAPheader, SOAP body, and attachments.

Message Part Configuration

This section has the following fields:

Field Description

Part Name Specifies the part name of the WSDL message as configured in theWSDL.

Part Type You can configure the WSDL message part as any of the following:

● Header - Configures the WSDL part as a SOAP Header

● Body - Configures the WSDL part as SOAP Body

● Attachment - Configures the WSDL part as a SwA attachment.

Unbound Header Configuration

You can configure SOAP Headers in this section. The WSDL message part, other than the input WSDLmessage, can be configured as a header here. The WSDL messages can be in an external WSDL.

Configurations done here will appear in the Concrete WSDL in the SOAP header element.

Add Unbound Header

Use the Add icon to select and add this configuration. Click the icon and select the WSDL, themessage and then the part.

This section has the following fields:

47

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 48: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Message Specifies the part name of the WSDL message as configured in theWSDL.

Part You can configure the WSDL message part as any of the following:

● Header - Configures the WSDL part as a SOAP Header

● Body - Configures the WSDL part to SOAP Body

● Attachment -Configures the WSDL part as a SwA attachment.

Delete Unbound Header

You can delete an unbound header. Select the required header and click the icon.

Undescribed Header Configuration

You can configure SOAP Headers in this section. WSDL message's part, other that the input wsdlmessage, can be configured as soap header here. The WSDL messages can be in an external WSDL.These headers are undescribed headers and will not appear in the Concrete WSDL.

Add Undescribed Header

Use the Add icon to select and add this configuration. Click the icon and select the WSDL, themessage and then the part.

This section has the following fields:

Field Description

Header Name Specifies the message name.

Header Part Specifies the message part.

Cardinality Configure the cardinality of the configured SOAP header as one of thefollowing:

● Optional(?) - The SOAP header is optional.

● Required - The Soap Header is required and must be supplied whenthe process is called.

● Repeating (*) - Zero or more SOAP headers must be supplied arepresent when tha process is called.

Delete Undescribed Header

You can delete an undescribed header. Select the required header and click the icon.

Attachment Configuration

This section has the following fields:

48

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 49: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Part Specifies the WSDL message name as configured in the WSDL.

This corresponds to the part that is configured as an attachment in theMessage Part Configuration section.

Content Type Indicates the media type of the entity body sent to the receiver. Anexample of the media type is text/html.

Fault Operation Configuration

Fault Operation Configuration enables you to configure fault messages.

Message Part Configuration

This section has the following fields.

Field Description

Part Name Specifies the part name of the WSDL message.

Part Type The body of the SOAP message.

Context Mapping

Using Context Mapping you can map data between the context activities used in a process, and therequest response or fault message.

Service Binding - Request Context

Using Request Context you can map data from the Request Message to the Get Context Activity usedin the process.

Data Source

Displays the data source schema tree for the input context parameters. All elements in this tree areavailable to drag and drop into the XPath Expression field. The following elements are populated fromthe request message:

49

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 50: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of RequestMessage Description

Transport Properties Transport related information for HTTP headers when theTransport is HTTP, or JMS properties when the Transport is JMS,are populated from the request message.

● method: The method specified in the request. For example,GET and POST.

● requestURI: The address portion of the request. This is theportion before the question mark (?).

● httpversion: Version field of the HTTP request.

● querystring: The query string portion of the request. This is theportion after the question mark (?).

● header: The header of the HTTP request.

● protocol: Can be either HTTP or HTTPS depending upon theprotocol used by the request.

● port: Port number on which the request was received.

● remoteAddress: The IP address of the client that submitted theHTTP request.

50

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 51: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of RequestMessage Description

Headers Headers from the request message.

● accept: This field specifies media types that are acceptable forresponse messages for the incoming request. For example,text/*,text/html. Media types are described in the HTTPspecification.

If no Accept header field is present, then it is assumed that theclient accepts all media types.

● accept-charset: This field specifies the character sets that areacceptable for response messages for the incoming request. Forexample, iso-8859-5, unicode-1-1. Character sets are describedin the HTTP specification.

If no Accept-Charset header is present, then it is assumed thatthe client accepts any character set.

● accept-encoding: This field specifies the content-coding valuesthat are acceptable for response messages. For example,compress, gzip. See the HTTP specification for moreinformation about this header field.

● content-type: This field indicates the media type of the entitybody sent to the receiver. For example, text/html;charset=ISO-8850-4. Media types are described in the HTTPspecification.

● content-length: This field indicates the size of the entity body(in decimal number of OCTETs) sent to the receiver.

● connection:Use this field to specify options required for thisconnection. For example, the close option specifies that youwant the connection to be closed when the request is complete.

● pragma: This field is used to include implementation-specificdirectives that might apply to the receiver. See the HTTPspecification for more information about using this field.

This field takes into account the encoding of the message body.

Dynamic Headers The dynamic header is an additional header parameter to addruntime headers to the outgoing HTTP messages. TheDynamicHeaders consists of the following information:

● Name: the name of the header

● Value: the value of the header

Headers The header of the request.

Undescribed Headers Undescribed headers from the request message.

51

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 52: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of RequestMessage Description

mimeEnvelopeElement Information about the attachements that are present in the requestmessage. Individual attachment information is populated underone mimepart element.

Note: If the attachment size increases the threshold valueconfigured at the binding level, the file name of the serializedattachment is populated.

mimeHeader This element contains the mime header for each mimePart. Mimeheaders can contain the following information:

● content-disposition — To suggest a filename for an attachment,use "*;filename=<filename>" in this element. Note: HTTPservers may alter or choose to ignore the suggested name.

— content-type

— content-transfer-encoding

— content-id

— other mime header information

See http://www.faqs.org/rfcs/rfc2045.html for more informationabout MIME headers and their syntax.

Note: When the content type is specified as "text/*" (for example,"text/xml"), the attachment content is expected to be in either thetextContent input element or the file name storing the attachmentis expected to be in the fileName input element. When the contenttype is anything other than "text/*", the attachment content isexpected to be in either the binaryContent input element or the filename storing the attachment is expected to be in the fileNameinput element.

binaryContent | textContent |fileName

This element contains the mime attachment. The element can beone of the following:

● binaryContent — content of the attachment when theattachment is binary data.

● textContent — content of the attachment when the attachmentis text data.

● fileName — the file name of the attachment written to the disk.

Service Binding- Response Context

Response Context enables you to map data from the Set Context Activity to the response message.

Data Source

Displays the data source schema tree for the output context parameters. All elements in this tree areavailable to drag and drop into the XPath Expression field.

The following are the response message entities:

52

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 53: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of Set Context/Response Message Description

Headers Headers of the response message.

● pragma: This field is used to include implementation-specificdirectives that might apply to the receiver. See the HTTPspecification for more information about using this field.

● location: This field is used to redirect the receiver to a locationother than the Request-URI for completion of the request or foridentification of a new resource.

Dynamic Headers The dynamic header is an additional header parameter to addruntime headers to the outgoing HTTP messages. TheDynamicHeaders consists of the following information:

● Name: the name of the header

● Value: the value of the header

Headers The fields of the header specified on the Input Headers tab.

Undescribed Headers Undescribed headers of the response message.

mimeEnvelopeElement Information about the attachements that are present in theresponse message. Individual attachment information is populatedunder one mimepart element. All attachments are configured asSwA unbound attachments.

Note: If the attachment size increases the threshold valueconfigured at the binding level, the file name of the serializedattachment will be populated.

53

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 54: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of Set Context/Response Message Description

mimeHeader This element contains the mime header for each mimePart. Mimeheaders can contain the following information:

● content-disposition — To suggest a filename for an attachment,use "*;filename=<filename>" in this element. Note: HTTPservers may alter or choose to ignore the suggested name.

— content-type

— content-transfer-encoding

— content-id

— other mime header information

See http://www.faqs.org/rfcs/rfc2045.html for more informationabout MIME headers and their syntax.

Note: When the content type is specified as "text/*" (for example,"text/xml"), the attachment content is expected to be in either thetextContent input element or the file name storing the attachmentis expected to be in the fileName input element. When the contenttype is anything other than "text/*", the attachment content isexpected to be in either the binaryContent input element or the filename storing the attachment is expected to be in the fileNameinput element.

binaryContent | textContent |fileName

This element contains the mime attachment. The element can beone of the following:

● binaryContent — content of the attachment when theattachment is binary data.

● textContent — content of the attachment when the attachmentis text data.

● fileName — the file name of the attachment written to the disk.

Fault Context

Fault Context enables you to configure the SOAP Fault data.

Data Source

Displays the data source schema tree for the SOAP fault message. All elements in this tree are availableto drag and drop into the XPath Expression field. The following elements are the fault message entities:

Elements of Fault Message Description

SOAPFaultContext The SOAP fault schema describes information about the fault sentback to the user.

54

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 55: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Functions

Displays the available XPath functions. These are categorized into groups and each function can bedragged from the function list into the XPath Expression field.

When the function is placed into the XPath Expression, placeholders are displayed for the function’sparameters. You can drag and drop schema elements from the Data Source tab into the function’splaceholders.

Filter

Use this field for a refined function search in the mapper. Clicking the Functions tab displays the Filterfield. For example, type "time" in the Filter field to obtain consolidated results relating to "time"function.

Constants

Displays the constants available for use in XPath expressions. These are categorized into groups andeach constant can be dragged from the constants list into the XPath Expression field. Constants areuseful for inserting special characters, such as quotes, symbols, and so on, into XPath formulas.Constants are also defined for commonly used items, such as date/time formats.

Constants can also be used for inserting TIBCO BW Predefined Module Properties, such as ActivityName, Application Name, Domain Name, and so on.

XPath Expression

Displays the XPath formula you want to create. You can drag and drop items from the Data Source tabor the Functions tab to create the formula.

SOAP Reference BindingUsing SOAP reference binding you can create a service consumer using SOAP protocol.

It is recommended to use the HTTP Client Shared Resource when configuring SOAP ReferenceBinding. Response received for a transport communication error might be different if compared withresponse received using the HTTP Client shared resource.

Binding

This section has the following fields.

Field Description

Name The name of the reference binding.

55

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 56: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Description A short description of the HTTP reference binding.

WSDL Service Specifies the service name and its target namespace.

WSDL Port Specifies the binding implemented by the service. If more than oneimplementation is available in concrete WSDL, select an appropriateimplementation.

SOAP Version The version of the SOAP specification: 1.1 or 1.2.

Attachment Style The attachment style for the incoming and outgoing messages. Thefollowing attachment styles are available:

● SwA

● MTOM

The attachment style MTOM is available only if the activity uses SOAP 1.2and is not displayed when SOAP 1.1 is used.

Transport Configuration

This section has the following fields.

Field Literal Value/Module Property Description

TransportType

None The transport over which the SOAPmessage is sent. HTTP and JMS transportsare supported.

Application for HTTP Transport

Default Host/Port

None Specifies the default host and portconfiguration available in the concreteWSDL.

HTTP ClientName

None Name of the HTTP Client resource.

Endpoint URI Yes The endpoint of the service through whichSOAP clients can access the service.

Application for JMS Transport

JMSConnectionName

None Name of the JMS Connector resource

JMSDestination

Yes Specifies the name of the destination forthe incoming JMS messages. The syntax ofthe destination name is specific to the JMSprovider you are using.

56

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 57: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Literal Value/Module Property Description

MessagingStyle

None Specifies the style of the incomingmessages on the specified destination. Itcan be Generic, Queue, or Topic.

Message Type None Specifies the type of the incomingmessages on the specified destination. Itcan be either Text Message or BytesMessage.

DeliveryMode

No The delivery mode of messages.

● Persistent Messages are stored andforwarded.

● Non-Persistent Messages are notstored and can be lost due to failure.

The default is Persistent.

Expiration Yes The length of time a message can remainactive. 0 means that the message does notexpire.

Priority Yes The priority of the message. Priority is avalue from 0-9. Higher numbers signify ahigher priority (that is, 9 is a higherpriority than 8).

The default is 4.

JMSApplicationProperties

None The user-defined JMS Properties requiredto be available in the incoming message.

JMSApplicationProperties(Response)

None The user-defined JMS Properties requiredto be sent in the outgoing message.

Persistence Configuration

This section has the following fields.

57

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 58: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty Description

Persistence Type None Select any one from the available persistence configurationtypes.

● None

● File

Selecting the File option displays the Directory, CreateDirectories, and Threshold Size fields.

Directory Yes The directory to write attachments that exceed the specifiedthreshold size.

CreateDirectories

Yes Creates new directories if not already present on the disk.

Threshold Size Yes The maximum size (in bytes) of an incoming messageattachment that can be kept in memory. Attachments larger thanthe specified size are written to a file in the specified directory.

The file name is the output, so that subsequent activities in theprocess can access the file and read its contents.

Threading Policy Details

The following are the details about the SOAP Reference Binding threading policy.

ActivityType

Multi-Threaded?

Default ThreadCount Thread Count Configuration

Transport: HTTP

Asynchronous

Yes● Core pool size = 5

● Max pool size =10

You can either configure it by using theThread Pool shared resource or byproviding it in the config.ini using thefollowing properties:

● com.tibco.bw.palette.http.request

response.threadpool.coresize

● com.tibco.bw.palette.http.request

response.threadpool.maxsize

Policy

Bindings that support policies will display the Policy field. To associate a new or existing policy with

the SOAP HTTP Reference Binding, click the Add Policy icon. To edit policy details, click PolicyName. The Policy section has the following fields.

58

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 59: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Policy Name The name of the policy.

Policy Type The type of policy associated with the binding. The SOAP HTTP ReferenceBinding can support the WSS Consumer policy.

Description A description of the policy.

Operation Configuration

Operation configuration enables you to set configurations at the operation level.

This section has the following fields.

Field Description

Operation Name The name of the operation component.

SOAP Action Specifies the soap action for this operation. By default it is the operationname

Style The SOAP binding style. Specify either Default Document or RPC style.Configurations made at the binding level can be overidden here.

Attachment Style Select the attachment style for the operations.

The default configurations for each operation can be overridden here.

The following attachment styles are available:

● Default - The attachment style configured at the binding level.

● SwA

● MTOM

The attachment style MTOM is available only if the activity uses SOAP1.2 and is not displayed when SOAP 1.1 is used.

Request Message Configuration

Request Message Configuration can be used to configure request message contents like SOAPheader,SOAP body, and attachments.

Message Part Configuration

You can configure the WSDL Input message parts as body, header (bound) or attachment for a servicerequest.

The Attachment option, configures a SwA attachment (bound) . This is available only for WSDLmessage parts that are of type base64binary.

This section has the following fields:

59

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 60: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Part Name Specifies the part name of the WSDL message as configured in theWSDL.

Part Type You can configure the WSDL message part as any of the following:

● Header - Configures the WSDL part as a SOAP Header.

● Body - Configures the WSDL part as SOAP Body.

● Attachment - Configures the WSDL part as a SwA attachment.

Unbound Header Configuration

You can configure SOAP Headers for service requests in this section . The WSDL message's part, otherthan the input WSDL message, can be configured as a SOAP header. The WSDL messages can be in anexternal WSDL.

Configurations done here will appear in the Concrete WSDL in the SOAP header element.

Select Unbound Header

Use the Add icon to select and add this configuration. Select the WSDL, the message and then thepart.

This section has the following fields:

Field Description

Message Specifies the WSDL message name as configured in the WSDL.

Part Specifies the part name of the WSDL message as configured in theWSDL.

Delete Unbound Header

To delete an unbound header, select the required row and click the icon.

Undescribed Header Configuration

You can configure SOAP Headers for service requests in this section.The WSDL message's part, otherthat the input WSDL message, can be configured as SOAP header here. The WSDL messages can be inan external WSDL. These headers are undescribed headers and will not appear in the Concrete WSDL.

Add Undescribed Header

Use the Add icon to select and add this configuration. Click the icon and select the WSDL, themessage and then the part.

This section has the following fields:

60

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 61: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Header Name Specifies the WSDL message name as configured in the WSDL.

Header Part Specifies the part name of the WSDL message as configured in theWSDL

Cardinality Configure the cardinality of the configured SOAP header as one of thefollowing:

● Optional(?) - The SOAP header is optional.

● Required - The SOAP Header is required and must be supplied whenthe process is called.

● Repeating (*) - Zero or more SOAP headers must be supplied arepresent when the process is called.

Delete Undescribed Header

You can delete an undescribed header. Select the required binding and click the Delete Binding icon

.

Attachment Configuration

If a part is configured as an attachement in the Message Configuration section, then the attachement'scontent type is configured here. This section has the following fields:

Field Description

Part Specifies the WSDL message name as configured in the WSDL.

This corresponds to the part that is configured as an attachment in theMessage Part Configuration section.

Content Type Indicates the media type of the attachment received. An example of themedia type is text/html.

Response Message Configuration

Response Message Configuration enables you to configure response message contents like the SOAPheader, SOAP body, and attachments.

Message Part Configuration

This section has the following fields:

Field Description

Part Name Specifies the part name of the WSDL message as configured in theWSDL.

61

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 62: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Part Type You can configure the WSDL message part as any of the following:

● Header - Configures the WSDL part as a SOAP Header

● Body - Configures the WSDL part as SOAP Body

● Attachment - Configures the WSDL part as a SwA attachment.

Unbound Header Configuration

You can configure SOAP Headers in this section. The WSDL message part, other than the input WSDLmessage, can be configured as a header here. The WSDL messages can be in an external WSDL.

Configurations done here will appear in the Concrete WSDL in the SOAP header element.

Add Unbound Header

Use the Add icon to select and add this configuration. Click the icon and select the WSDL, themessage and then the part.

This section has the following fields:

Field Description

Message Specifies the part name of the WSDL message as configured in theWSDL.

Part You can configure the WSDL message part as any of the following:

● Header - Configures the WSDL part as a SOAP Header

● Body - Configures the WSDL part to SOAP Body

● Attachment -Configures the WSDL part as a SwA attachment.

Delete Unbound Header

You can delete an unbound header. Select the required header and click the icon.

Undescribed Header Configuration

You can configure SOAP Headers in this section. WSDL message's part, other that the input wsdlmessage, can be configured as soap header here. The WSDL messages can be in an external WSDL.These headers are undescribed headers and will not appear in the Concrete WSDL.

Add Undescribed Header

Use the Add icon to select and add this configuration. Click the icon and select the WSDL, themessage and then the part.

This section has the following fields:

62

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 63: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Header Name Specifies the message name.

Header Part Specifies the message part.

Cardinality Configure the cardinality of the configured SOAP header as one of thefollowing:

● Optional(?) - The SOAP header is optional.

● Required - The Soap Header is required and must be supplied whenthe process is called.

● Repeating (*) - Zero or more SOAP headers must be supplied arepresent when tha process is called.

Delete Undescribed Header

You can delete an undescribed header. Select the required header and click the icon.

Attachment Configuration

This section has the following fields:

Field Description

Part Specifies the WSDL message name as configured in the WSDL.

This corresponds to the part that is configured as an attachment in theMessage Part Configuration section.

Content Type Indicates the media type of the entity body sent to the receiver. Anexample of the media type is text/html.

Fault Operation Configuration

Fault Operation Configuration enables you to configure fault messages.

Message Part Configuration

This section has the following fields.

Field Description

Part Name Specifies the part name of the WSDL message.

Part Type The body of the SOAP message.

Context Mapping

Using Context Mapping you can map data between the context activities used in a process, and therequest response or fault message.

63

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 64: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Reference Binding - Request Context

Using Request Context you can map data from the Request Message to the Get Context Activity usedin the process.

Data Source

Displays the data source schema tree for the input context parameters. All elements in this tree areavailable to drag and drop into the XPath Expression field. The following elements are populated fromthe request message:

Elements of RequestMessage Description

Transport Properties Transport related information for HTTP headers when theTransport is HTTP, or JMS properties when the Transport is JMS,are populated from the request message.

● host:The host machine name or IP address to send the requestto. For example, www.tibco.com.

● port: Port number on which the request was received.

● endpointURI: The address portion of the request. This is theportion before the question mark (?).

Headers Headers from the request message.

● accept: This field specifies media types that are acceptable forresponse messages for the incoming request. For example,text/*,text/html. Media types are described in the HTTPspecification.

If no Accept header field is present, then it is assumed that theclient accepts all media types.

● accept-charset: This field specifies the character sets that areacceptable for response messages for the incoming request. Forexample, iso-8859-5, unicode-1-1. Character sets are describedin the HTTP specification.

If no Accept-Charset header is present, then it is assumed thatthe client accepts any character set.

● accept-encoding: This field specifies the content-coding valuesthat are acceptable for response messages. For example,compress, gzip. See the HTTP specification for moreinformation about this header field.

● pragma: This field is used to include implementation-specificdirectives that might apply to the receiver. See the HTTPspecification for more information about using this field.

This field takes into account the encoding of the message body.

64

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 65: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of RequestMessage Description

Dynamic Headers The dynamic header is an additional header parameter to addruntime headers to the outgoing HTTP messages. TheDynamicHeaders consists of the following information:

● Name: the name of the header

● Value: the value of the header

Headers The header of the request.

Undescribed Headers Undescribed headers from the request message.

mimeEnvelopeElement Information about the attachements that are present in the requestmessage. Individual attachment information is populated underone mimepart element.

Note: If the attachment size increases the threshold valueconfigured at the binding level, the file name of the serializedattachment is populated.

mimeHeader This element contains the mime header for each mimePart. Mimeheaders can contain the following information:

● content-disposition — To suggest a filename for an attachment,use "*;filename=<filename>" in this element. Note: HTTPservers may alter or choose to ignore the suggested name.

— content-type

— content-transfer-encoding

— content-id

— other mime header information

See http://www.faqs.org/rfcs/rfc2045.html for more informationabout MIME headers and their syntax.

Note: When the content type is specified as "text/*" (for example,"text/xml"), the attachment content is expected to be in either thetextContent input element or the file name storing the attachmentis expected to be in the fileName input element. When the contenttype is anything other than "text/*", the attachment content isexpected to be in either the binaryContent input element or the filename storing the attachment is expected to be in the fileNameinput element.

65

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 66: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of RequestMessage Description

binaryContent | textContent |fileName

This element contains the mime attachment. The element can beone of the following:

● binaryContent — content of the attachment when theattachment is binary data.

● textContent — content of the attachment when the attachmentis text data.

● fileName — the file name of the attachment written to the disk.

Reference Binding - Response Context

Response Context enables you to map data from the Set Context Activity to the response message.

Data Source

Displays the data source schema tree for the output context parameters. All elements in this tree areavailable to drag and drop into the XPath Expression field.

The following are the response message entities:

66

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 67: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of Set Context/Response Message Description

Transport Properties Headers of the response message.

● allow:This field lists the set of methods supported by theresource identified by Request URI.

● content-type:This field indicates the media type of the entitybody for the outgoing message and the incoming response.Media types are described in the HTTP specification. Anexample of the media type is text/html;charset=ISO-8850-4.

● content-length:This field indicates the size of the entity body(in decimal number of OCTETs) of the response message.

● content-encoding:This field is used as a modifier to thecontent-type. When present, its value indicates what additionalcontent encodings have been applied to the entity-body, andthus what decoding mechanisms must be applied in order toobtain the media-type referenced by the Content-Type headerfield. Content-Encoding is primarily used to allow a documentto be compressed without losing the identity of its underlyingmedia type. See the HTTP specification for more informationabout this field.

● date:The date and time when the response message was sent.

● pragma: This field is used to include implementation-specificdirectives that might apply to the receiver. See the HTTPspecification for more information about using this field.

● location: This field is used to redirect the receiver to a locationother than the Request-URI for completion of the request or foridentification of a new resource.

Dynamic Headers The dynamic header is an additional header parameter to addruntime headers to the outgoing HTTP messages. TheDynamicHeaders consists of the following information:

● Name: the name of the header

● Value: the value of the header

Headers The fields of the header specified on the Input Headers tab.

Undescribed Headers Undescribed headers of the response message.

mimeEnvelopeElement Information about the attachements that are present in theresponse message. Individual attachment information is populatedunder one mimepart element. All attachments are configured asSwA unbound attachments.

Note: If the attachment size increases the threshold valueconfigured at the binding level, the file name of the serializedattachment will be populated.

67

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 68: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Elements of Set Context/Response Message Description

mimeHeader This element contains the mime header for each mimePart. Mimeheaders can contain the following information:

● content-disposition — To suggest a filename for an attachment,use "*;filename=<filename>" in this element. Note: HTTPservers may alter or choose to ignore the suggested name.

— content-type

— content-transfer-encoding

— content-id

— other mime header information

See http://www.faqs.org/rfcs/rfc2045.html for more informationabout MIME headers and their syntax.

Note: When the content type is specified as "text/*" (for example,"text/xml"), the attachment content is expected to be in either thetextContent input element or the file name storing the attachmentis expected to be in the fileName input element. When the contenttype is anything other than "text/*", the attachment content isexpected to be in either the binaryContent input element or the filename storing the attachment is expected to be in the fileNameinput element.

binaryContent | textContent |fileName

This element contains the mime attachment. The element can beone of the following:

● binaryContent — content of the attachment when theattachment is binary data.

● textContent — content of the attachment when the attachmentis text data.

● fileName — the file name of the attachment written to the disk.

Fault Context (Fault)

Fault Context enables you to configure the SOAP Fault data.

Data Source

Displays the data source schema tree for the SOAP fault message. All elements in this tree are availableto drag and drop into the XPath Expression field. The following elements are the fault message entities:

Elements of Fault Message Description

HTTPReferenceInputContext/

JMSReferenceInputContext

The reference input context depending on the transport selected.

SOAPFaultContext The SOAP fault schema describes information about the fault sentback to the user.

68

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 69: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Functions

Displays the available XPath functions. These are categorized into groups and each function can bedragged from the function list into the XPath Expression field.

When the function is placed into the XPath Expression, placeholders are displayed for the function’sparameters. You can drag and drop schema elements from the Data Source tab into the function’splaceholders.

Filter

Use this field for a refined function search in the mapper. Clicking the Functions tab displays the Filterfield. For example, type "time" in the Filter field to obtain consolidated results relating to "time"function.

Constants

Displays the constants available for use in XPath expressions. These are categorized into groups andeach constant can be dragged from the constants list into the XPath Expression field. Constants areuseful for inserting special characters, such as quotes, symbols, and so on, into XPath formulas.Constants are also defined for commonly used items, such as date/time formats.

Constants can also be used for inserting TIBCO BW Predefined Module Properties, such as ActivityName, Application Name, Domain Name, and so on.

XPath Expression

Displays the XPath formula you want to create. You can drag and drop items from the Data Source tabor the Functions tab to create the formula.

69

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 70: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

File Palette

The File palette is used to read, write, delete, or create files. You can use the process starter present inthis palette to poll for files and start a process based on the available file.

Copy FileThe Copy File is a synchronous activity that you can use to copy files and directories to a new location.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty Description

Name None The name to be displayed as the label of the activity in theprocess.

From Filename Yes The path and name of the file or directory to copy.

For directories, you must specify an absolute path. You mayuse wildcards when specifying files within a directory.

For example, to copy a directory, specify c:\myDirectory.To copy all text files in a directory, specify c:\myDirectory\*.txt.

To Filename Yes The destination for the copy operation. This must be anabsolute path.

Do not use wildcard characters in this element.

Overwrite Literal Value Select this check box to overwrite the existing file with thesame name, if it exists.

The activity raises an exception if the specified file ordirectory exists and this check box is not selected.

Create Non-Existing Directories

Literal Value When this check box is selected, the activity creates alldirectories in the specified path, if they do not already exist.

If this check box is not selected with non-existing one ormore directories in the specified path, it throws an exception.

Include Sub-Directories

Literal Value Includes all sub-directories in the source directory, when thesource to copy is a directory.

Description

Provide a short description for the activity.

70

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 71: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for the activity.

Input Item Datatype Description

fromFilename string The path and name of the file or directory to copy.

For directories, specify an absolute path. You may usewildcards when specifying files within a directory. Forexample:

● To copy a directory, specify c:\myDirectory.

● To copy all text files in a directory, specify c:\myDirectory\*.txt.

toFilename string The destination for the copy operation. This must be anabsolute path and wildcards cannot be used in thiselement.

The Input field always takes precedence for all File palette activities with respect to the field equivalenton the General tab.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

FileNotFoundException The file does not exist. The source file or the destination isnot found and the Create Non-Existing Directories checkbox is not selected on the General tab.

IllegalCopyException The destination exists but its type is different than the typeof the specified source.

For example, in the activity input, fromFileName is adirectory and toFileName is a file.

FileAlreadyExistsException The file already exists at the destination where you areattempting to copy the file and the Overwrite field is notselected on the General tab.

FileIOException There is an input/output error. For example, the file ordirectory already exists and it is write-protected.

Remove FileThe Remove File activity file is a synchronous activity that removes the specified files from thedirectory. If the specified directory is not empty, it throws an exception.

General

The General tab has the following fields.

71

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 72: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name of the file to be displayed as the label of the activity in theprocess.

fileName Yes The path and name of the file to be removed from the directory.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

fileName string The path and name of the file to be removed from the directory.

Output

The following is the output for the activity.

Output Item Datatype Description

fileInfo complex This element contains the fullName, fileName, location, type,readProtected, writeProtected, size, and lastModified data.

fullName string The name of the file (or empty directory) and the file pathinformation.

fileName string The name of the file (or empty directory) without file pathinformation.

location string The path to the file or the empty directory.

ConfiguredFileName

string An optional element. This element is not populated by this activity.

type string The file type.

readProtected boolean Signifies whether the file or (or empty directory) is protected fromreading

writeProtected boolean Signifies whether the file or (or empty directory) is protected fromwriting

size integer The size of file in bytes.

lastModified string The timestamp indicating when the file was last modified.

72

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 73: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

FileNotFoundException The file does not exist.

FileIOException An input/output exception occurs, when trying toremove the file or empty directory.

Create FileThe Create File is a synchronous activity that creates a new file or directory with the specified name.When creating a file, you can also provide the file contents.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Filename Yes The path and name of the file to create.

Select the Is a Directory check box on the General tab tospecify the name of the directory to create.

Overwrite None Overwrites the existing file with the same name, if it exists.

The activity throws an exception, if the specified file existsand this check box is not selected.

Is a Directory None When this check box is selected, the activity creates adirectory instead of a file.

Create Non-Existing Directories

None When this check box is selected, the activity creates alldirectories in the specified path, if they do not already exist.

If this check box is not selected and one or more directoriesin the specified path do not exist, it throws an exception.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

73

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 74: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

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

Select the Is a Directory field check box on the General tab to specifythe name of the directory to create.

Output

The following is the output for the activity.

Output Item Datatype Description

fileInfo complex The element containing fullName, fileName, location,configuredFileName, type, readProtected, writeprotected, size,and lastModified

fullName string The name of the file or directory, including the path information

fileName string The name of the file or directory without the path information

location string The path to the file or directory

configuredFileName?

string This element is optional and it is not populated by this activity

type string The type of the file

readProtected boolean Signifies whether the file or directory is protected from reading

writeProtected boolean Signifies whether the file or directory is protected from writing

size integer The size of the file (in bytes)

lastModified string The time stamp indicating when the file was last modified

Fault

The Fault tab lists the possible exceptions thrown by this activity. See the Error Codes guide for moreinformation about error codes and the corrective action to take.

Fault Thrown When..

FileAlreadyExistsException The file already exists at the destination where you areattempting to copy the file. The Overwrite check box isnot selected on the General tab.

FileIOException There is an Input/Output error. For example, the file ordirectory already exists and is write-protected.

74

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 75: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

File PollerThe File Poller activity is a process starter activity that polls for files or directories with the specifiedname and starts a process, when a change (creation, modification, or deletion) is detected.

General

The General tab has the following fields.

Field

LiteralValue/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in the process.

Filename Yes The path and name of the file or directory to monitor.

You can also use wildcard characters to monitor a directory for filesthat match the provided specification. For example, C:\files\*.log must match any change to a file in the files directory withan extension of .log.

PollingInterval(sec)

Yes The polling interval (in seconds) to check for the specified file.

IncludeExisting Files

None Check for the specific file among the files that existed before theprocess engine starts.

● When selected - the existing file matching the specification inthe Filename field creates a new process instance, when aprocess engine starts.

● When not selected - any existing file matching the specificationin the Filename field is ignored, unless there is a change in thefile.

Exclude FileContent

None Specifies not to load the data from the file into this activity’s output.If selected, the contents of the file are not available to thesubsequent activities in the process.

Content as Yes The type of content in the file which can be either Text or Binary.

Encoding Yes The character encoding for the file (when Text is specified in theContent as field).

Description

Provide a short description of the activity.

Advanced

The Advanced tab has the following fields.

75

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 76: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Sequence Key This field can contain an XPath expression that specifies which processesshould run in order. Process instances with sequencing keys that evaluateto the same value are executed sequentially in the order the processinstance was created.

Custom Job Id This field can contain an XPath expression that specifies a custom ID forthe process instance.

Poll for Create Events Select this check box to start a new process when a file or directorymatching the specification in the Filename field is created.

If not selected, the newly created files or directories are ignored.

Poll for Modify Events Select this check box to start a new process when a file or directorymatching the specification in the Filename field is modified.

If not selected, the modifications to the files or directories are ignored.

Poll for Delete Events Select this check box to start a new process when a file or directorymatching the specification in the Filename field is deleted.

If not selected, deletions of files or directories are ignored.

Include Sub-Directories

Select this check box to enable monitoring of the events that occur insubdirectories of the specified directory.

If not selected, only the directory is monitored and subdirectories areignored.

Mode Select the type of polling to perform from the following modes in the drop-down list:

● only-directories: only tracks the specified changes for directories.

● only-files: only tracks the specified changes for files.

● files-and-directories: tracks the specified changes for both files anddirectories.

Sort by Specifies the order in which the files should be processed, if more than onefile is detected. You can sort by File Name, Date Modified, or None.

The files are processed as the polling interval occurs. Hence, the Sort Byfield applies to all files that have changed since the last polling interval.The field is useful for processing the files in a specific order when theprocess engine starts and the Include Existing Files field is selected (thenall existing files are processed in the specified order).

The File Poller activity starts process instances based on thespecified Sort By order, but the process instances may notcomplete in the same order. If you want to guarantee thatprocesses start and complete in a specified order, specify MaxJobs = 1, and set the engine persistence mode to group ordatastore.

76

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 77: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Sort Order Specifies whether the order specified in the Sort By field is Ascending orDescending. This field is only applicable if the Filename or Date Modifiedis selected in the Sort By field.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

Output

The following is the output for the activity.

Output item Datatype Description

action string The occurred event to trigger the File Poller activity. The possiblevalues are: create, remove, or modify.

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

The time is defined as the amount of time in milliseconds. Forexample, since midnight, January 1, 2013 UTC.

fileInfo complex This element contains 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.

configuredFileName?

string The name of the file or directory this activity is configured to operateon.

type string The file type.

readProtected boolean Signifies whether the file or directory is protected from reading

writeProtected boolean Signifies whether the file or directory is protected from writing

size integer The size of the file in bytes.

lastModified string The timestamp indicating when the file was last modified.

fileContent complex The element containing the textContent and binaryContent data.

textContent string The content of the file (text files), if the Exclude File Contents checkbox is not selected on the General tab.

binaryContent binary The content of the file (binary files), if the Exclude File Contentscheck box is not selected on the General tab.

77

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 78: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output item Datatype Description

encoding string The character encoding for the file.

List FilesThe List Files activity is a synchronous activity that returns information about files or directories, or alisting of all the files in the specified directory.

General

The General tab has the following fields.

Field

LiteralValue/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Filename Yes The path and name of the file or directory to monitor.

You can also use wildcard characters to monitor a directory forfiles that match the provided specification. For example, C:\files\*.log must match any change to a file in the files directory withan extension of .log.

Mode None The type of listing you want to retrieve. You can select from thefollowing options:

● Only Files● Only Directories● Files and Directories

Description

Provide a short description for this activity.

Input

The following is the input for the activity.

78

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 79: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

fileName string The path and name of the directory with files or subdirectories to list.Providing a file or directory name returns the information about thatfile or directory. You can use wildcards to list files or directories thatmatch the provided specification. For example:

● C:\files\*.log lists any file in the files directory that have a .logextension.

● C:\files\mylogs\*.* lists all files in the directory mylogs.

Output

The following is the output of the activity.

Output Item Datatype Description

fileInfo complex Element containing the fullName, fileName, location,configuredFileName, type, readProtected, writeProtected, size,and lastModified data.

This is a repeating element. Each item in the element is a file ordirectory included in the specified directory matching theprovided criteria.

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

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

location string The name of the file or directory this activity is configured tooperate on.

configuredFileName

string The path to the file.

type string The type of the file.

readProtected boolean Signifies whether the file or directory is protected from reading

writeProtected boolean Signifies whether the file or directory is protected from writing

size integer The size of the file in bytes.

lastModified string The timestamp indicating when the file was last modified. Youcan compare values in this element using the compare-dateTime()XPath function.

For example, compare-dateTime($List-Files/ListFilesActivityOutput/files/

fileInfo[fileName="myFile.txt"]/lastModified,current-

dateTime())

79

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 80: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

FileNotFoundException The file does not exist and the specified path is either incorrector not found..

Read FileThe Read File activity is a synchronous activity that is used to read a file and place its contents into theoutput of the activity.

General

The General tab has the following fields.

Field

LiteralValue/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in the process.

Filename Yes The name of the file.

Exclude FileContent

None Specifies not to load the data from this file into the output of theactivity.

If selected, the contents of this file are not available to thesubsequent activities in the process.

Read as Literal Value This field is available only if the Exclude File Content check box isnot selected.

The type of the content in the file. It can be either Text or Binary.

Description

Provide a short description about the activity.

Input

The following is the input of the activity.

Input Item Datatype Description

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

80

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 81: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

encoding string The character encoding of the text files.

This element is available only when the Read as field on the General tabis set to Text.

You can specify the encoding names supported by Java in this element. Ifthis element is not specified, the default encoding of the Java VirtualMachine used by the process engine is used.

Output

The following is the output of the activity.

Output ItemDatatype Description

fileInfo complex This element contains fullName, fileName, location, type,readProtected, writeProtected, size, and lastModified data.

fullName string The name of the file with the path information.

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

location string The path to the file.

configuredFileName

string An optional element. It is not populated by this activity.

type string The file type.

readProtected boolean Signifies whether the file or directory is protected from reading

writeProtected boolean Signifies whether the file or directory is protected from writing

size integer The size of the file in bytes.

lastModified string The timestamp indicating when the file was last modified.

fileContent complex The element containing the textContent data.

textContent string The content of the file (text files), if the Exclude File Content checkbox is not selected on the General tab.

binaryContent binary The content of the file (binary files), if the Exclude File Content checkbox is not selected on the General tab.

encoding string The character encoding for the file when the value specified in theRead as field in the General tab is Text.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

81

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 82: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

FileNotFoundException The file does not exist.

UnsupportedEncodingException The content of the text file is invalid, and the content of thefile is read into the process data.

FileIOException An input/output exception occurred when trying to read thefile.

Rename FileThe Rename File activity is a synchronous activity that is used to rename or move files. This activitycan also rename directories. However, you cannot use this activity to move the directory to a newlocation.

General

The General tab consists of the following fields.

Field

LiteralValue/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as a label of the activity in the process.

From Filename Yes The path and name of the file to rename or move, or the path andname of the directory to rename.

The value in this element must be an absolute path.

To Filename Yes The new name and location of the file or directory. The files can bemoved to a new location, but the directory location remainsunchanged.

The value of this element must be an absolute path.

Overwrite None Select this check box to overwrite the existing file with the samename when renaming or moving.

If not selected, the activity raises an exception, if the specified fileor directory exists.

Create Non-ExistingDirectories

None When this check box is selected, the activity creates all directoriesin the specified path, if they do not already exist.

If not selected and one or more directories in the specified path donot exist, it throws an exception.

Description

Provide a short description for the activity.

82

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 83: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for the activity.

Input Item Datatype Description

fromFileName

string The path and name of the file to rename or move, or the path and nameof the directory to rename.

The value in this element must be an absolute path.

toFileName string The new name and location of the file or directory. The files can bemoved to a new location, but the directory location remainsunchanged.

The value of this element must be an absolute path.

Output

The following is the output for the activity.

Output Item Datatype Description

fileInfo complex This element contains the fullName, fileName, location, type,readProtected, writeProtected, size, and lastModified data.

fullName string The name of the file (or directory) including the path information.

fileName string The name of the file (or directory) without the path information.

location string The path to the file or the directory.

configuredFileName

string An optional element. This element is not populated by thisactivity.

type string The file type.

readProtected boolean Signifies whether the file or directory is protected from reading

writeProtected boolean Signifies whether the file or directory is protected from writing

size integer The size of file in bytes.

lastModified string The timestamp indicating when the file was last modified.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

FileNotFoundException The file does not exist.

83

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 84: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

IllegalRenameException The destination file exists and its type is different than thetype of the source file.

FileAlreadyExistsException The file already exists.

FileIOException An input/output exception occurred when trying to renamethe file or directory.

This exception is also encountered while attempting to movea directory.

Wait for File ChangeThe Wait for File Change activity is a signal-in activity that waits for a file creation, modification, ordeletion event to occur during the process execution. When this activity is executed, the processinstance suspends and waits for the specified change to occur before resuming.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Filename Yes The name and path of the file to poll for. Use to locate anexisting file.

You can also use wildcards to monitor a directory for files thatmatch the applied specification. For example, C:\files\*.logmatches any change to a file in the files directory with anextension of .log.

PollingInterval (sec)

Yes The polling interval (in seconds) to verify the changes in thespecified file.

IncludeExisting Files

None Select this check box so that you can select the file among the filesthat existed prior to the starting of process engine.

● When selected: if an existing file matches the specification inthe Filename field on process engine start, the Wait for FileChange activity accepts the file as changed and proceeds tothe next activity.

● When not selected: any existing file with matchingspecification in the Filename field is ignored, until there arechanges in the file.

84

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 85: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Exclude FileContent

None Specifies not to load the data from the file into the output of theactivity.

If this field is selected, the contents of the file are not available tothe subsequent activities in the process.

Content as Literal Value The type of the content in the file. It can be either Text or Binary.

Encoding Yes The character encoding of the file.

This field is available only when Text is specified in the Contentas field.

Description

Provide a short description for the activity.

Event

The Event tab has the following fields.

Field Description

Event Timeout (sec) This field specifies the amount of time in seconds. If no value is specified inthis field, the message waits indefinitely. If zero is specified, the event isdiscarded immediately, unless this activity has already been executed.

Activity 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 filechange occurs before this activity is executed in the process instance. If theevent timeout expires, an error is logged and the event is discarded.

Conversations

You can initiate or join the conversation here. To initiate multiple conversations, click the Add New

Conversation button. To join multiple conversations, click the Join Existing Conversation button.

For details about conversations, refer to Application Development guide.

Output

The following is the output for this activity.

Output Item Datatype Description

action string The occurred event to trigger the File Poller activity. Thepossible values are: create, remove, or modify.

85

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 86: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

timeOccured integer The time when the Wait for File Change activity detectedthe change in the file.

The time is defined as the amount of time in milliseconds.For example, since midnight, January 1, 2013 UTC.

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

fileName string The file name without the path information.

location string The path to the file.

configuredFileName

string An optional element. This element is not populated by thisactivity.

type string The type of the file.

readProtected boolean Specifies whether the file is read-protected.

writeProtected boolean Specifies whether the file is write-protected.

size integer The size of the file in bytes.

lastModified string The timestamp indicating when the file was last modified.

fileContent complex The element containing the textContent data.

textContent string The content of the file (text files), if the Exclude FileContents check box is not selected on the General tab.

binaryContent binary Contents of the file (binary files), if the Exclude FileContents check box is not selected on the General tab.

encoding string The character encoding for the file.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

ActivityTimedOutException The timeout is attained.

Write FileThe Write File activity is a synchronous activity that writes content to the specified file.

General

The General tab has the following fields.

86

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 87: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Filename Yes The path and name of the file.

Wildcards are not permitted in this field.

Append None Appends the contents to an existing file. Not selecting this checkbox overwrites the file.

Write as Literal Value Specify whether Text or Binary.

Create Non-ExistingDirectories

None When selected, the activity creates all directories in the specifiedpath, if they do not already exist.

If this check box is not selected with one or more non-existingdirectories in the specified path, it throws an exception.

Compress None This field specifies whether to compress the output file using GZipformat. Specify None for no compression or GZip for acompressed output file.

When you specify GZip for this field, rename the file to usethe .gz suffix and use gunzip to decompress the file.

Description

Provide a short description for this activity.

Input

The following is the input for the activity.

Input Item Datatype Description

fileName string The path and name of the file.

Wildcards are not permitted in this field.

textContent string The contents of the file (text files).

addLineSeparator

boolean This specifies whether to add a carriage return after each inputline.

87

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 88: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

encoding string The character encoding for text files.

This element is available only when Text is specified in theWrite as field on the General tab.

You can specify encoding names supported by Java in thiselement. If this element is not specified, the default encoding ofJava Virtual Machine is used.

Output

The following is the output for the activity.

Output Item Datatype Description

fileInfo complex This element contains 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.

configuredFileName

string An optional element. This element is not populated by thisactivity.

type string The file type.

readProtected boolean Signifies whether the file or directory is protected from reading

writeProtected boolean Signifies whether the file or directory is protected from writing

size integer The size of the file in bytes.

lastModified string The timestamp indicating when the file was last modified.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

FileNotFoundException The file does not exist.

UnsupportedEncodingExcepti

on

The encoding is not valid.

FileIOException An input/output exception occurs when trying to write to the file.

88

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 89: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FTL Palette

ActiveMatrix BusinessWorks™ applications can use FTL palette to send and receive messages. TIBCOFTL transfers messages from publishers to subscribers over transports. TIBCO FTL offers differenttypes of transports. TIBCO FTL uses the concept of an endpoint to abstract the transports details,thereby insulating the application program from the complexity of transport details.

You must install TIBCO FTL, if you want to use the FTL palette features. Ensure that FTL_HOMEenvironment variable is set. Read the TIBCO FTL Concepts manual to understand general FTL concepts.

FTL PublisherFTL Publisher is a synchronous activity that publishes (sends) a message over a transport that isabstracted through a TIBCO FTL application endpoint. The transport details are not configured in theFTL Publisher activity, instead it is configured in TIBCO FTL Realm Server.

General

The General tab has the following fields.

Field

Literal Value/ModuleProperty Description

Name No The name to be displayed as label of the activity in theapplication.

FTL Realm ServerConnection

Yes The shared resource containing information for connecting toTIBCO FTL Realm Server. See FTL Realm Server Connectionfor more details.

Endpoint Yes TIBCO FTL application endpoint which is an abstraction forthe underlying transports on which the FTL Publisheractivity sends messages. The endpoint can have more thanone transport.

Click the Browse button to locate the endpoints defined onthe TIBCO FTL Realm Server.

89

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 90: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty Description

Format No Defines the set of fields in the message that is sent by the FTLPublisher activity. The form of each FTL message (its fieldnames and their value datatypes) is governed by a format.The supported formats are:

● Custom: can be defined by using the Input Editor. TheInput Editor is enabled only for the Custom formatoption.

● Keyed Opaque: is a built-in format that contains a textkey field and a binary (opaque) data field.

● Opaque: is a built-in format that contains a binary(opaque) data field.

● Predefined: is already defined in the TIBCO FTL RealmServer for the FTL application. The Predefined formatrequires a format name and this can be obtained from theTIBCO FTL Realm Server using the Browse button.

Format Name Yes The name of the Predefined or Custom format.

This field is displayed when the Custom or Predefinedformat is selected.

In addition, selecting the Predefined format enables theBrowse button. Click the Browse button to obtain thepredefined formats from the TIBCO FTL Realm Server.

Description

Provide a short description of the activity here.

Input Editor

The Input Editor gets enabled only when Custom format is chosen in the General tab. The schemamust match the schema of the input for the activity shown on the Input tab.

Input Item Datatype Description

MessageType complex The message type used in the application.

From the Schemas folder, drag the Message :MessageType element on to the process editor.

Input

The input for the activity depends on the Format you select in the General tab. If you select the Customformat, the input is a data element defined in the Input Editor tab.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

90

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 91: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown when...

FTLPublisherActivityFault FTL Publisher fails to publish a message due to a runtime error.

FTLCreateMessageFault The FTL message could not be created.

FTLSendMessageFault The FTL message could not be published.

FTL ReplyFTL Reply is a synchronous activity that can send reply to message received through the FTLSubscriber activity.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as label of the activity in the application.

Reply For Specifies the FTL Reply message for FTL Subscriber.

Format Defines the set of fields in the message that is sent by the FTL Replyactivity. The form of each FTL message (its field names and their valuedatatypes) is governed by a format. The supported formats are:

● Custom: can be defined by using the Input Editor. The Input Editoris enabled only for the Custom format option.

● Keyed Opaque: a built-in format that contains a text key field and abinary (opaque) data field.

● Opaque: a built-in format that contains a binary (opaque) data field.

● Predefined: is already defined in the TIBCO FTL Realm Server forthe FTL application. The Predefined format requires a format nameand this can be obtained from the TIBCO FTL Realm Server usingthe Browse button.

Format Name The name of the Predefined or Custom format.

This field is displayed when the Custom or Predefined format isselected.

In addition, selecting the Predefined format enables the Browse button.Click the Browse button to obtain the predefined formats from theTIBCO FTL Realm Server.

Description

Provide a short description of the activity here.

Input Editor

The Input Editor gets enabled only when you select Custom format in the General tab. The schemamust match the schema of the input for the activity shown on the Input tab.

91

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 92: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

MessageType complex The message type used in the application.

From the Schemas folder, drag the Message :MessageType element on to the process editor.

Input

The input for the activity depends on the Format chosen by the user in the General tab. If you select theCustom format, the input is a data element defined in the Input Editor tab.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown when...

FTLReplyActivityFault The FTL Reply activity fails to reply due to a runtime error.

FTLCreateReplyMessageFault The FTL reply message could not be created.

FTLSendReplyMessageFault The FTL reply message is not published.

FTL Request ReplyFTL Request Reply is an asynchronous activity that is used to send a request to an FTL applicationendpoint and wait for a response.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty Description

Name No The name to be displayed as label of the activity in theapplication.

FTL Realm ServerConnection

Yes The shared resource containing information for connecting toTIBCO FTL Realm Server. See FTL Realm Server Connectionfor more details.

Endpoint Yes TIBCO FTL application endpoint which is an abstraction forthe underlying transports on which the FTL Request Replyactivity sends messages. The endpoint can have more than onetransport.

Click the Browse button to locate the endpoints defined on theTIBCO FTL Realm Server.

92

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 93: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty Description

Request Format No Defines the set of fields in the message that is sent by the FTLRequest Reply activity. The form of each FTL message (its fieldnames and their value datatypes) is governed by a format. Thesupported formats are:

● Custom: can be defined by using the Input Editor. TheInput Editor is enabled only for the Custom format option.

● Predefined: is already defined in the TIBCO FTL RealmServer for the FTL application. The Predefined formatrequires a format name and this can be obtained from theTIBCO FTL Realm Server using the Browse button.

Selecting the Custom field, enables the Input Editor.

Request FormatName

Yes The name of the Predefined or Custom format.

In addition, selecting the Predefined format enables theBrowse button. Click the Browse button to obtain thepredefined formats from the TIBCO FTL Realm Server.

Reply Format Yes Defines the set of fields in the message that is sent by the FTLRequest Reply activity. The form of each FTL message (its fieldnames and their value datatypes) is governed by a format. Thesupported formats are:

● Custom: can be defined by using the Input Editor. TheInput Editor is enabled only for the Custom format option.

● Keyed Opaque: is a built-in format that contains a text keyfield and a binary (opaque) data field.

● Opaque: is a built-in format that contains a binary (opaque)data field.

● Predefined: is already defined in the TIBCO FTL RealmServer for the FTL application. The Predefined formatrequires a format name and this can be obtained from theTIBCO FTL Realm Server using the Browse button.

Reply FormatName

Yes The name of the Predefined or Custom format.

This field is displayed when the Custom or Predefined formatis selected.

In addition, selecting the Predefined format enables theBrowse button. Click the Browse button to obtain thepredefined formats from TIBCO FTL Realm Server.

Description

Provide a short description of the activity here.

93

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 94: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Advanced

The Advanced tab has the following field.

Field

Literal Value/ProcessProperty/ModuleProperty Description

Activity Timeout(msec)

Yes It is the amount of time FTL Request Reply activity waits toget the reply from the FTL Subscriber.

If the FTL Request Reply activity is configured tobe Default Timeout, then the timeout valueequates to "3" minutes by default. However thisdefault value (3 minutes) can be modified to be adifferent value by setting the AppSpaceconfig.ini propertybw.engine.activity.async.waitTime.

When the FTL Request Reply activity timesout,the in-line subprocess instance called by the FTLRequest Reply activity can be cancelled before thesubprocess instance completes. Hence, thebusiness logic in the cancelled process instancemay not be executed to its entirety.

Input Editor

The Input Editor gets enabled only when Custom format is chosen in the General tab. The schemamust match the schema of the input for the activity shown on the Input tab.

Output Editor

The Output Editor tab defines the schema to use for reply messages. This tab gets enabled only whenyou select the Custom format.

Input

The input for the activity depends on the Format you select in the General tab. If you select Customformat, the input is a data element defined in the Input Editor tab.

Output

Shows the output reply message. For example, if you select Predefined as a Reply Format, the outputshows the Predefined message with the message metadata and reply message.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When...

FTLRequestReplyActivityFau

lt

The FTL Request Reply activity fails due to a runtime error.

94

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 95: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When...

FTLCreateRequestMessageFau

lt

The FTL request message could not be created.

FTLSendRequestMessageFault The FTL request message could not be published.

FTLProcessReplyMessageFaul

t

The FTL reply message could not be processed.

ActivityTimedOutException The timeout is reached.

FTL SubscriberThe FTL Subscriber is a process starter activity that starts the process based on the receipt of a messageover a transport that is abstracted through a TIBCO FTL application endpoint. The transport details arenot configured in the FTL Subscriber activity, instead it is configured in TIBCO FTL Realm Server.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty Description

Name No The name to be displayed as the label of the activity inthe application.

FTL Realm ServerConnection

Yes The shared resource containing information forconnecting to an FTL Realm Server and creating aRealm object. See FTL Realm Server Connection formore details.

Endpoint Yes TIBCO FTL application endpoint which is anabstraction for the underlying transports on which theFTL Subscriber activity receives messages. Theendpoint can have more than one transport.

Click the Browse button to locate the endpoints definedon the TIBCO FTL Realm Server.

Content Matcher Yes Specifies FTL Subscriber activity's interest in messagesbased on their content. The syntax for example is, {"My-Long":123}.

A content matcher selects a subset of messages from amessage stream according to the fields and values inthose messages.

95

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 96: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty Description

Format No Defines the set of fields in the message that is sent bythe FTL Publisher activity. The form of each FTLmessage (its field names and their value datatypes) isgoverned by a format. The supported formats are:

● Custom: can be defined by using the Input Editor.The Input Editor is enabled only for the Customformat option.

● Keyed Opaque: is a built-in format that contains atext key field and a binary (opaque) data field.

● Opaque: is a built-in format that contains a binary(opaque) data field.

● Predefined: is already defined in the TIBCO FTLRealm Server for the FTL application. ThePredefined format requires a format name and thiscan be obtained from the TIBCO FTL Realm Serverusing the Browse button.

Format Name Yes The name of the format of the FTL Subscriber message.

In addition, selecting the Predefined format enables theBrowse button. Click the Browse button to obtain thepredefined formats from the TIBCO FTL Realm Server.

Description

Provide a short description of the activity here.

Advanced

The Advanced tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty Description

Subscriber Name Yes Specify the name of the subscriber on the TIBCO FTLRealm Server.

96

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 97: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty Description

Acknowledge Mode Yes The acknowledge mode for subscriber messages. It canbe one of the following:

● Auto: When this mode is used, the FTL libraryautomatically acknowledges the message when theapplication callback returns.

● Explicit: When this mode is used, the user needs touse a Confirm activity in the ActiveMatrixBusinessWorks™ process to explicitly acknowledgethe message.

FTL QueueDispatcher Threads

Yes Specifies the number of threads to use for dispatchingevents from the FTL event queue.

FTL Queue Size Yes Size of FTL event queue.

FTL Queue OverflowPolicy

Yes This field is enabled when the queue size is greaterthan zero. Select any one from the following availableoptions:

● Discard None

● Discard New

● Discard Old

Activity WorkerThreads

Yes Must be greater than zero. By default, the equivalent ofhalf of the ActiveMatrix BusinessWorks™ enginethread pool is created.

For example, if the ActiveMatrix BusinessWorks™engine thread pool is set to eight, then the FTLSubscriber activity creates four threads for processingthe incoming FTL message.

Sequence Key No This field can contain an XPath expression thatspecifies which processes should run in sequence.Process instances with sequencing keys that evaluateto the same value are executed sequentially as theprocess instance was created.

Custom Job Id No This field can contain an XPath expression thatspecifies a custom ID for the process instance.

Output Editor

The Output Editor tab defines the schema to use for incoming messages. This tab gets enabled onlywhen you select the Custom format.

97

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 98: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations. Refer to Application Development guide for more information on conversations.

Output

The output for the activity depends on the Format you select in the General tab. If you select theCustom format, the output is a data element defined in the Output Editor tab.

98

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 99: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FTP Palette

The FTP palette is used to issue FTP commands.

FTP Change Default DirectoryFTP Change Default Directory is a synchronous activity that changes the current default directory onthe remote machine to the specified directory path.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in the process.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, port, username, and password.

Quit (post-command)

None Select this check box to specify that the FTP connection should beclosed after completing this command.

The FTP Connection remains open, if this check box in notselected. As a result, all the FTP activities that specify the same FTPsession (that is, the same host, port, username, and password),share the FTP session until the connection is closed.

Description

Provide a short description of the activity.

Input

The Input tab has the following fields.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connection property.

Port integer The port number for incoming FTP requests on the FTP server.

This overrides the value specified in the FTP Connection property.

Username string The username for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

99

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 100: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

NewDefaultDir

string The path to the new default directory on the FTP server.

Timeout integer The amount of time to wait for the FTP server to respond. Thistimeout is used, when the FTP server places the FTP connectionused by this activity into a waiting state.

This overrides the value specified in the FTP Connection property.

Output

This activity produces no output.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective actions to take.

Fault Thrown When..

CommandExecutionException An error occurred while executing the FTP command.

ConnectionErrorException An error occured while connecting to the FTP server.

FTP Delete FileFTP Delete File is a synchronous activity that issues an FTP delete or mdelete command to delete oneor more files from the remote server.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in the process.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, username, and password.

Quit (post-command)

None Select this check box to specify that the FTP Connection should beclosed after completing this command.

The FTP connection remains open, if this check box in not selected.As a result all the FTP activities that specify the same FTP session(that is, the same host, port, username, and password), share theFTP session until the connection is closed.

100

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 101: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connection property.

Port integer The port number for incoming FTP requests on the FTP server.

This overrides the value specified in the FTP Connection property.

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

RemoteDirectory

string An optional element. The path to the directory containing the files tobe deleted.

This element is concatenated with the RemoteFileName element toprovide the complete path to the files to be deleted.

RemoteFileName

string The path and name of the file to delete on the remote server. Thisfield permits wildcards (? for any one character, * for one or morecharacters).

You can specify an absolute or relative path for the remote file name.Relative paths are relative to the path specified in theRemoteDirectory element or in the user’s home directory, ifRemoteDirectory is null.

Timeout integer This timeout is used, when the FTP server places the FTPConnection used by this activity, into a waiting state.

Output

This activity produces no output.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective actions to take.

Fault Thrown When..

CommandExecutionException An error occured when executing the FTP command.

101

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 102: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

ConnectionErrorException An error occured when connecting to the FTP server.

FTP DirFTP Dir is a synchronous activity that provides a sequential list of files in the specified directory of theFTP server.

General

The Genaral tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in the process.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, username, and password.

Quit (post-command)

None Select this check box to specify that the FTP connection should beclosed after completing this command.

The FTP connection remains open, if this check box in not selected.As a result, all FTP activities that specify the same FTP session (thatis, the same host, port, username, and password), share the FTPsession until the connection is closed.

NLST None Selecting this check box specifies to use the NLST command insteadof the DIR command.

The DIR command produces verbose output including the file size,modification time, and permissions.

NLST produces only a list of file names.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connection property.

102

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 103: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

Port integer The port number for the incoming FTP requests on the FTP server.

This overrides the value specified in the FTP Connection property.

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

DirParameters

string The command parameters to pass to the DIR or NLST command.

Directory string An optional parameter. The path to the directory in which youwant to list the files.

If null, the current remote directory is listed.

Timeout integer The amount of time to wait for the FTP server to respond. Thistimeout is used, when the FTP server places the FTP connectionused by this activity into a waiting state.

This overrides the value specified in the FTP Connection property.

Output

The following is the output of the activity.

Output Item Datatype Description

ItemCount integer The number of entries returned from the remote directory listing.

DirectoryItems

string A repeating element containing the list of items returned.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective actions to take.

Fault Thrown When...

CommandExecutionException An error occurred while executing the FTP command.

ConnectionErrorException An error occured while connecting to the FTP server.

FTP GetFTP Get is a synchronous activity that issues an FTP get or mget command to the specified server. Thecontent of the remote files can be placed in the output of the activity or written directly to the localstorage. If you select to place the contents of a remote file into the output of the activity, you can onlyretrieve one remote file (FTP get command) and the file’s content is stored in memory as part of the

103

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 104: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

output of the activity. If you write the contents of the retrieved files to the local storage, you can retrieveone or more files (FTP get or mget commands).

General

The General tab has the following fields.

Field

Literal Value/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

FTP Connection Yes The path to the shared configuration resource containing theuser information such as host name, username, andpassword.

Quit (post-command)

None Select this check box to specify that the FTP connectionshould be closed after completing this command.

The FTP connection remains open, if this check box in notselected. All the FTP activities that specify the same FTPsession (that is, the same host, port, username, andpassword), can share the FTP session until the connection isclosed.

Use Process Data None Specifies to write contents of the file retrieved from the FTPserver to the process data.

The output of the activity includes an element that containsthe remote file’s contents, and the data can be used bysubsequent activities in the process.

Do not use this option if you are retrieving multiplefiles. You can only write one files's contents to thisoutput of the activity. Selecting this check box withwildcards specified in the RemoteFileName inputelement, returns an error.

Binary None Specifies whether to retrieve the file content in binary orASCII mode (selected signifies binary).

Using ASCII mode automatically handles the differences inline endings between the FTP server and the machineexecuting the FTP command.

The ASCII mode implies text data. This text data can beencoded in a character encoding other than ASCII (such asUTF-8 or Latin-1).

104

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 105: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty/ProcessProperty? Description

OverwriteExisting File

None This check box if selected, and the Use Process Data checkbox not selected, overwrites any existing local files, if the FTPcommand returns the files with same names.

If this check box is not selected, any attempt to write a file tothe disk with the same name as an existing file, results in anexception.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

RemoteFileName

string The path and name of the file to retrieve from the remote server.Wildcards (? for any one character, * for one or more characters) arepermitted in this field.

You can specify an absolute or relative path for the remote file name.Relative paths are relative to the path specified in theRemoteDirectory element or the current directory, ifRemoteDirectory is null.

Do not specify wildcards for this element, if Use ProcessData check box is selected.

LocalFileName string This input item is available only if the Use Process Data check boxon the General tab is not selected and only one remote file isretrieved.

This input item specifies the name and path of the local file for thecontents of the retrieved file to be written.

If more than one remote file is retrieved, the local files are named tomatch the remote file names.

Host string The name of the FTP server.

This overrides the value specified in the FTP Connection property.

Port integer The port number for incoming FTP requests on the FTP server.

This overrides the value specified in the FTP Connection property.

Username string The username for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

105

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 106: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

Encoding string When the retrieved file is not binary and the Use Process Data checkbox on the General tab is selected, this specifies the characterencoding of the retrieved file.

If this is not specified, it is assumed that the encoding of the file isthe same encoding of the machine where the FTP command isexecuted. If the encoding of the local machine and the FTP serverare different, specify the encoding used by the FTP server in thiselement and the activity converts the retrieved file into the localmachine’s encoding.

Timeout integer The amount of time to wait for the FTP server to respond.

This timeout is used when the FTP server places the FTP connectionused by this activity into a waiting state.

Output

The following is the output for this activity.

OutputItem Datatype Description

FileTransferred

complex When one or more remote files are retrieved and written to the localstorage, this element contains a list of the retrieved remote filenames.This element contains the following two elements:

● Name

● NumOfBytes

If an error occurs while retrieving the files, the activity output is notavailable. However, the Fault tab lists the successfully transferred filesand the files that failed to be transferred.

Name string The name of the retrieved remote file.

NumOfBytes

integer The number of bytes comprised in the associated file name.

Fault

The Fault tab lists the following possible exceptions thrown by this activity. See Error Codes for moreinformation about error codes and the corrective actions to take.

Fault Thrown When..

GetFilesException An error occurred during the FTP get operation.

ConnectionErrorException An error occurred when connecting to the FTP server.

106

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 107: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

CommandExecutionException An error occurred when executing the FTP command.

ConnectionTimeoutException The connection to the FTP server is timed out before thecommand execution is complete.

FTP Get Default DirectoryFTP Get Default Directory is a synchronous activity that retrieves the name of the current remotedirectory. The default remote directory is operating system dependent and determined by the remoteFTP server. On UNIX systems, the default remote directory is usually the home directory of the useraccount that is used to establish an FTP connection.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, username, and password.

Quit (post-command)

None Select this check box to specify that the FTP Connection shouldbe closed after completing this command.

The FTP connection remains open if this check box in not selected.All the FTP activities that specify the same FTP session (that is,the same host, port, username, and password), can share the FTPsession until the connection is closed.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connection property.

Port integer The port number for incoming FTP requests on the FTP server.

This overrides the value specified in the FTP Connection property.

107

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 108: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

Timeout integer The amount of time to wait for the FTP server to respond.

This timeout is used when the FTP server places the FTP connectionused by this activity into a waiting state.

This overrides the value specified in the FTP Connection property.

Output

The following is the output for the activity.

Output Item Datatype Description

CurrentDirectory

string The directory currently set on the remote FTP server.

By default, this directory is set by the FTP server. However, you canuse the FTP Quote activity to issue an FTP command to change toanother directory.

Fault

The Fault tab lists the following possible exceptions thrown by this activity. See Error Codes for moreinformation about error codes and the corrective actions to take.

Fault Thrown When..

CommandExecutionException An error occurred when executing the FTP command.

ConnectionErrorException The connection to the FTP server is timed out before thecommand execution is complete.

FTP Make Remote DirectoryFTP Make Remote Directory is a synchronous activity that creates the specified directory on theremote server.

General

The General tab consists of the following fields.

108

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 109: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in the process.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, username, and password.

Quit (post-command)

None Select this check box to specify that the FTP connection should beclosed after completing this command.

The FTP connection remains open, if you do not select this checkbox. All the FTP activities that specify the same FTP session (that is,the same host, port, username, and password), can share the FTPsession until the connection is closed.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connectionproperty.

Port integer The port number for the incoming FTP requests on the FTPserver.

This overrides the value specified in the FTP Connectionproperty.

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connectionproperty.

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connectionproperty.

RemoteSITECommand

string An optional element. This is a system-specific command toexecute before creating the directory.

109

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 110: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

ParentRemoteDirectory

string An optional element. The path to the remote directory to create.

This element is concatenated with the RemoteDirName elementto provide the complete path to the directory to create.

RemoteDirName

string The name of the remote directory to create.

You can optionally include the complete path of the directory tocreate.

Timeout integer The amount of time to wait for the FTP server to respond.

This timeout is used when the FTP server places the FTPconnection used by this activity into a waiting state.

This overrides the value specified in the FTP Connectionproperty.

Output

This activity produces no output.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective actions to take.

Fault Thrown When..

CommandExecutionException An error occurred when executing the FTP command.

ConnectionErrorException An error occurred when connecting to the FTP server.

FTP PutFTP Put is a synchronous activity that issues an FTP put or mput command to the specified server. Youcan use the process data as the file content to send to the remote server or send the files to the local diskstorage. Select Use Process Data to place only one file on the remote server (FTP put command). To uselocally stored files for placing more than one files on the remote server (FTP mput command).

General

The General tab has the following fields.

Field

Literal Value/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

110

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 111: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty/ProcessProperty? Description

FTP Connection Yes The path to the shared configuration resource containingthe user information such as host name, username, andpassword.

Quit (post-command)

None Select this check box to specify that the FTP connectionshould be closed after completing this command.

The FTP connection remains open, if you do not select thischeck box. All the FTP activities that specify the same FTPsession (that is, the same host, port, username, andpassword), can share the FTP session until the connection isclosed.

Use Process Data None Specifies to use the process data as the file content to placeon the remote server.

Select this check box to place only one file on the remoteserver.

Binary None Specifies whether to send the file content in binary or ASCIImode (selected signifies binary).

When ASCII mode is used, the differences in line-endingsbetween the FTP server and the machine executing the FTPcommand are automatically handled. This mode alsoimplies text data, and that data can be encoded in acharacter encoding other than ASCII (such as UTF-8 orLatin-1).

OverwriteExisting File

None Selecting this check box overwrites any existing files on theFTP server, if the FTP command sends files with the samenames.

If this check box is not selected, any attempt to send a file tothe remote server with the same name as an existing file,results in an exception.

Append None This element specifies whether to append the data to anexisting file. Select this checkbox to append the data to thefile, if the specified file exists on the FTP server.

If not selected, the file is overwritten if it exists on the FTPserver.

Timeout (msec) None The amount of time to wait (in milliseconds) for the FTPserver to respond.

This timeout is used when the FTP server places the FTPconnection used by this activity into a waiting state.

This overrides the value specified in the FTP Connectionproperty.

111

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 112: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Description

Provide a short description for the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

RemoteFileName

string The path and name of the file to place onto the remote server.

Wildcards are not permitted in this field.

LocalFileName

string The path and name of the local file to use in the FTP put command.

This element is available only if the Use Process Data field is notselected.

Host string The name of the FTP server.

This overrides the value specified in the FTP Connection property.

Port integer The port number for the incoming FTP requests on the FTP server.

This overrides the value specified in the FTP Connection property.

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

Password string The password for logging into the FTP Server.

This overrides the value specified in the FTP Connection property.

Timeout integer The amount of time to wait for the FTP server to respond.

This timeout is used when the FTP server places the FTPconnection used by this activity into a waiting state.

This overrides the value specified in the FTP Connection property.

Output

The following is the output for this activity.

OutputItem Datatype Description

FileTransferred

string A repeating string element containing a list of names of files that weretransferred. This element contains the following two elements:

● Name

● NumOfBytes

If an error occurs while transferring files, the activity output is notavailable. However, the Fault tab lists the successfully transferred filesand the files that failed to be transferred.

112

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 113: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

OutputItem Datatype Description

Name string The name of the retrieved remote file.

NumOfBytes

integer The number of bytes comprised in the associated file name.

Fault

The Fault tab lists the following possible exceptions thrown by this activity. See Error Codes for moreinformation about error codes and the corrective actions to take.

Fault Thrown When..

PutFilesException An error occurred during the FTP Put operation.

ConnectionErrorException An error occurred when connecting to the FTP server.

CommandExecutionException An error occurred when executing the FTP command.

ConnectionTimeoutException The connection to the FTP server is timed out before thecommand execution is complete.

FTP QuoteFTP Quote is a synchronous activity that sends an arbitrary command to the FTP server. FTPcommands vary by their operating system, FTP version, and configuration. Before using this activity,check for the availability of the commands on the remote server.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as label of the activity in the process.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, username, and password.

Quit (post-command)

None Select this check box to specify that the FTP connection should beclosed after completing this command.

The FTP connection remains open, if you do not select this checkbox. All the FTP activities that specify the same FTP session (thatis, the same host, port, username, and password), can share theFTP session until the connection is closed.

113

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 114: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Has SocketData

None If selected, the FTP server returns the data as a result of executingthe command.

Description

Provide a short description of this activity.

Input

The following is the input for this activity.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connectionproperty.

Port integer The port number for the incoming FTP requests on the FTPserver.

This overrides the value specified in the FTP Connectionproperty.

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connectionproperty.

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connectionproperty.

RemoteSITECommand

string Optional. The system-specific command to be executed beforethe executing the specified command.

ValidReturnCodes

string The optional list of valid return codes to validate the reply.Codes are three-digit numbers.

To specify multiple codes, separate each code with a comma or aspace.

If the remote server returns a code not specified in this list, theactivity raises an exception.

RemoteCommand

string The command to be executed on the remote FTP server.

114

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 115: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

Timeout integer The amount of time to wait for the FTP server to respond.

This timeout is used when the FTP server places the FTPconnection used by this activity into a waiting state.

This overrides the value specified in the FTP Connectionproperty.

Output

The following is the output for this activity.

Output Item Datatype Description

CommandItems

string Each element in this repeating element is a returned value fromthe command executed on the remote server.

Fault

The Fault tab lists the following possible exceptions thrown by this activity. See Error Codes for moreinformation about error codes and the corrective actions to take.

Fault Thrown When..

CommandExecutionExceptio

n

An error occurred when executing the FTP command.

ConnectionErrorException An error occurred when connecting to the FTP server.

FTP Remove Remote DirectoryFTP Remove Remote Directory is a synchronous activity that deletes the specified directory from theremote FTP server.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as label of the activity in the process.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, username, and password.

115

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 116: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Quit (post-command)

None Select this check box to specify that the FTP connection should beclosed after completing this command.

The FTP connection remains open, if you do not select this checkbox. All the FTP activities that specify the same FTP session (thatis, the same host, port, username, and password), can share theFTP session until the connection is closed.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connectionproperty.

Port integer The port number for the incoming FTP requests on the FTPserver.

This overrides the value specified in the FTP Connectionproperty.

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connectionproperty.

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connectionproperty.

ParentRemoteDirectory

string An optional element. The path to the remote directory you wantto remove.

This element is concatenated with the RemoteDirName elementto provide the complete path to the directory to remove.

RemoteDirName

string The name of the remote directory you want to remove.

You can optionally include the complete path of the directory toremove.

116

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 117: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

Timeout integer The amount of time to wait for the FTP server to respond.

This timeout is used when the FTP server places the FTPconnection used by this activity into a waiting state.

This overrides the value specified in the FTP Connectionproperty.

Output

This activity produces no output.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective actions to take.

Fault Thrown When..

CommandExecutionException An error occurred when executing the FTP command.

ConnectionErrorException An error occurred when connecting to the FTP server.

FTP Rename FileFTP Rename File is a synchronous activity that renames the specified file on the remote FTP server.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as label of the activity in the process.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, username, and password.

Quit (post-command)

None Select this check box to specify that the FTP connection should beclosed after completing this command.

The FTP connection remains open, if you do not select this checkbox. All the FTP activities that specify the same FTP session (thatis, the same host, port, username, and password), can share theFTP session until the connection is closed.

Description

Provide a short description of the activity.

117

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 118: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for this activity.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connectionproperty.

Port integer The port number for the incoming FTP requests on the FTPserver.

This overrides the value specified in the FTP Connectionproperty.

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connectionproperty.

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connectionproperty.

OldRemoteDirectory

string An optional element. The path to the remote file you want torename.

This element is concatenated with the OldRemoteFileNameelement to provide the complete path to the file to rename.

OldRemoteFileName

string The name of the remote file you want to rename.

You can optionally include the complete path of the file torename.

NewRemoteDirectory

string An optional element. The new path for the file to rename.

This element is concatenated with the NewRemoteFileNameelement to provide the complete path to the file to rename.

NewRemoteFileName

string The new name for the remote file.

You can optionally include the complete path of the file.

Timeout integer The amount of time to wait for the FTP server to respond.

This timeout is used when the FTP server places the FTPconnection used by this activity into a waiting state.

This overrides the value specified in the FTP Connectionproperty.

Output

This activity produces no output.

118

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 119: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective actions to take.

Fault Thrown When..

CommandExecutionException An error occurred when executing the FTP command.

ConnectionErrorException An error occurred when connecting to the FTP server.

FTP SYS TypeFTP Sys Type is a synchronous activity that retrieves the operating system of the FTP server.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as label of the activity in the process.

FTPConnection

Yes The path to the shared configuration resource containing the userinformation such as host name, username, and password.

Quit (post-command)

None Select this check box to specify that the FTP connection should beclosed after completing this command.

The FTP connection remains open, if you do not select this checkbox. All the FTP activities that specify the same FTP session (that is,the same host, port, username, and password), can share the FTPsession until the connection is closed.

Description

Provide a short description of the activity.

Input

The following is the input for this activity.

Input Item Datatype Description

Host string The name of the FTP server.

This overrides the value specified in the FTP Connection property.

119

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 120: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

Port integer The port number for the incoming FTP requests on the FTP server.

This overrides the value specified in the FTP Connection property.

UserName string The username for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

Password string The password for logging into the FTP server.

This overrides the value specified in the FTP Connection property.

Timeout string The amount of time to wait for the FTP server to respond.

This timeout is used when the FTP server places the FTPconnection used by this activity into a waiting state.

This overrides the value specified in the FTP Connection property.

Output

The following is the output for this activity.

Output Item Datatype Description

SystemType string The FTP server type.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective actions to take.

Fault Thrown When..

CommandExecutionExcepti

on

An error occurred when executing the FTP command.

ConnectionErrorExceptio

n

An error occurred when connecting to the FTP server.

120

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 121: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

General Activities

General Activities palette comprises various general purpose activities and process starters. Forexample, Timer, a process starter activity, is used to start a process at a specific time.

AssignAssign is a synchronous activity. You can use this activity to assign a value to a process-definedvariable. The Assign activity is used to assign a value to the process-defined as well as scope-definedvariables. Ensure to set all the essential values when using the Assign activity to set a process variable.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Process Variable toSet

A drop-down list of the available user-defined process variables for theprocess.

Select any user-defined process variable to modify.

Description

Provide a short description of the activity.

Input

Input Item Description

<schema> The specified data schema for the user-defined process variable selected onthe General tab.

Output

The schema for the output is determined by the schema specified for the process variable.

Call ProcessThe Call Process activity calls and executes an existing direct subprocess. Input data specified on thecalled subprocess is used by the Call Process activity.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

121

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 122: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Process NameThe subprocess you want to call. Click the Look Up icon or the Go To

icon to select a direct subprocess.

An alternative way to call a subprocess contained in the sameproject, enter the name of the package and the name of thesubprocess, separated by a period, in this field. In this example,<PackageA> is the name of the package, and <Process1> is thename of the subprocess.

<PackageA>.<SubProcess1>

To call a subprocess in a separate project, enter the name of theproject, the name of the package, and the name of thesubprocess, separated by periods, in this field. In this example,the name of the project is<ProjectB>, the name of the packageis <PackageB>, and the name of the subprocess is<SubProcess2>.

<ProjectB>.<PackageB>.<SubProcess2>

Process NameDynamic override

Configuring this field is optional. Use this field to dynamically determinethe subprocess to call when the process instance is running. Click the EditXPath Expression icon to specify a value for this field in the XPathBuilder wizard. For additional details, refer to Dynamically Determiningthe Process to Call.

Spawn Optional. If you select the Spawn check-box, the parent process does notwait for the called subprocess to complete, the subprocess is executed in aseparate process instance, and the parent process cannot access the outputof the called process.

Description

Provide a short description for the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

input varies The input to the called process is defined in the OutputEditor tab of the Start activity of the called process.

Output

The following is the output for the activity.

Output Item Datatype Description

output varies The output of the called process is defined in the InputEditor tab of the End activity of the called process.

122

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 123: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault

The Fault tab lists faults that the called subprocess might throw with a Throw activity. To deal withthese faults, add a Catch Specific, or Catch All block to the Call Process activity.

Dynamically Determining the Process to Call

You can use the Process Name Dynamic Override field on the General tab to specify an XPathexpression that determines which direct subprocess to call. This is useful for calling a different directsubprocess depending upon the value of the XPath expression. For example, you have an incomingHTTP request that contains an attribute named orderAmount

For all incoming orders over $10,000, you want to call a direct subprocess that includes activities in theManual Work palette to obtain the proper approvals. For orders under $10,000, you want to call a directsubprocess that handles the order automatically. You can create the following expression that resolvesto the proper direct subprocess name for each type of order:if($IncomingOrer/orderAmount > 10000) then then 'MyProject.manualApproval' else 'MyProject.processOrder'

Use the full path and name of the direct subprocess file as stored in the project directory.

When you use the Process Name Dynamic Override field, you must also specify a direct subprocess tocall in the Process field. The input, output, and error definitions of the specified direct subprocess mustbe the same as any direct subprocess that the expression in the Process Name Dynamic Override fieldcan evaluate to.

It may be helpful to create process definitions that act as programmatic interfaces when using theProcess Name Dynamic Override field. In the example above, you may create a direct subprocessnamed orderProcessOrApprove. The only purpose of this direct subprocess is for specifying the input,output, and error schemas. Place this direct subprocess in the Process Name field of the General tab ofthe Call Process activity. Then, create the manualApproval and processOrder process definitions ascopies of the orderProcessOrApprove direct subprocess. The Call Process activity then has the correctinput, output, and error schemas for all direct subprocesses that can be called.

To dynamically call a direct subprocess, that has been created inside of a Shared Module, from anApplication Module, use the following syntax:'SM_Name/Package_Name.SubProcess_Name

CheckpointCheckpoint is an asynchronous activity that executes a checkpoint in a running process instance. Acheckpoint saves the current process data that can be recovered, if the event fails. If a process enginefails, all the process instances can be recovered and resume the execution of their last checkpoint in theprocess. Configuring the process engine to checkpoint data for the failed process helps optionally, torecover the process instance at a later stage. This happens if the process fails due to an exception thatcannot be handled or terminated manually.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

123

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 124: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Timeout This field specifies the amount of time (in milliseconds) to wait before andafter the checkpoint. If a process engine fails, all the process instances canbe recovered. These recovered process instances resume the execution oftheir last checkpoint in the process.

Duplicate Key A key value that is used to compare with other process instances todetermine whether another process instance with the same duplicateKeyvalue already exists.

Description

Provide a short description for the activity.

Checkpoints and Confirm ActivityIn the case of confirmable messages (for example, a confirmable TIBCO Rendezvous® is received),consider the consequences of performing a checkpoint before or after a Confirm activity.

If the checkpoint is taken before the Confirm activity, a crash occurs after a checkpoint but before aconfirm, the original message is resent. In this case, the restarted process can no longer send theconfirmation. However, a new process is started to handle the resent message, and you can implementyour process to handle the restarted and new processes appropriately.

If the checkpoint is taken after a Confirm activity, there is potential for a crash to occur after the confirmbut before the checkpoint. In this case, the message is confirmed and therefore not redelivered. Theprocess instance is not restarted, because the crash occurred before the checkpoint.

You must consider the type of processing your process performs to determine when a checkpoint isappropriate if your process receives confirmable messages.

ConfirmConfirm is a synchronous activity that confirms any confirmable message received by the processinstance.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

ConfirmEvent The message you want to confirm.

This is a drop-down list of any process starter or activity awaiting anincoming event in the current process.

You can confirm messages only from the reliable sources, for example, JMSmessages. E-mail is also confirmable when received by the Receive Mailprocess starter (the e-mail message is deleted from the server when it isconfirmed).

Select only the event that sent the confirmable message.

124

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 125: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Description

Provide a short description for the activity.

External CommandExternal Command is a synchronous activity that executes the command on the operating system. Thisactivity waits for the command to complete before transition to the next activity. Optionally, thecommand output and errors can be included in this activity's output schema, written to a file, or both.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as a label for the activity in aprocess.

Command ToExecute

Yes The command line to execute. You can also specify anyinput and command-line arguments to the command inthis field.

You cannot specify more than one command by pipingoutput from one command to another (for example, ls |more is not allowed).

ProvideCommandOutput

None Selecting this check box specifies that the output sent to thestandard output and standard error by command isavailable in the output schema of this activity.

Do not select the check box for the commandsthat produce a large amount of output. Instead,write the output to a file. This saves memory andyouYou can use other activities, such as ReadFile and Parse Data, to handle the output filemore efficiently.

RemoveParameter Quotes

Yes If this check box is selected, the quotes surrounding theparameters are removed. The quotes are removed even ifthe parameter contains space(s).

By default, this check box is not selected.

Output Filename Yes The name and location of the file for storing any output orerrors produced by the command. If this field is blank, nooutput file is created.

125

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 126: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Output LineSplitting

None Controls whether the command output and errors are splitinto multiple strings.

Select any one from the following available options:

● None: This activity produces a single string containingthe command’s output or errors. This string includesline end characters.

● At Operating System Line End: This activity producesa repeating string element with one string element peroutput line. The lines are split by default on the carriagereturn/line feed character, depending on the operatingsystem. The line end characters are not included in theoutput.

● At Specified Token: The lines are split wherever thespecified token occurs. The token is specified as anactivity input element, and the token is not included inthe output.

Description

Provide a short description of the activity.

Input

The following is input for this activity.

Input Item Datatype Description

command string The command to execute, including any input or command-linearguments.

Specifying this input item overrides the command specified on theGeneral tab.

input string An input string to supply to the command’s standard input.

This schema item attains the same result as entering the commandfrom a command prompt and then typing the input withoutspecifying a carriage return.

outputFile string The file containing the output produced by the command for sendingit to stdout.

126

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 127: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

environment string The environment variable settings used to run the command. Thiselement is specified as a comma-separated list of <name>=<value>pairs where:

● <name> is the name of the environment variable

● <value> is the value of the environment variable

If no value is specified for this element, the command is executedwith the environment variable settings specified in the login scripts,for the user account used to execute the process engine.

If a value is specified, the value of this element replaces anyenvironment settings for the user account used to run the processengine.

That is, the user environment is ignored and this element’s value isused instead.

workingDirectory

string The working directory for the command process.

If not specified, the command process inherits its working directoryfrom the process engine.

Output

The following is the output for the activity.

Output Item Datatype Description

returnCode integer The numeric return code returned by the command.

Typically, a value of 0 (zero) in this element signifies a successfulcommand execution.

A non-zero value usually indicates termination of the commanddue to an error.

output string Any output produced by the command and sent to stdout. Thisoutput item is available only when you select the ProvideCommand Output check box on the General tab.

This is a repeating element, if the line split configuration settingcauses the command’s output to be split into several lines.

error string Any errors produced by the command and sent to stderr. Thiselement is only available if you select the Provide CommandOutput check box on the General tab.

This is a repeating element, if the line split configuration settingcauses the command’s output to be split into several lines.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

127

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 128: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

CommandExecutionError The command could not be executed.

FileIOError There was an error when attempting to write the output to afile.

Ensure that the user running the ActiveMatrixBusinessWorks™ engine, has the write permission to theoutput file.

InvalidInputException An error in the activity’s configuration or input mappingprevents the command from being executed.

Get Shared VariableGet Shared Variable is a synchronous activity that retrieves the current value of a module sharedvariable or job shared variable. To use this activity to retrieve the value of a shared variable, use aCritical Section group to ensure that no other process instances alter the value of the shared variable atthe same time.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Shared Variable Type Specify the type of shared variable (Module Shared Variable or Job SharedVariable).

Shared VariableName

The module shared variable or job shared variable whose value you want toretrieve.

Description

Provide a short description here.

Output

The following is the output for the activity.

Output Item Description

schema The value of the shared variable specified in the Shared Variable field ofthe General tab is the output for this activity.

The schema for the output is determined by the schema specified for theshared variable.

128

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 129: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

InspectorInspector activity is used to write the output of any or all activities and module properties to a file orstdout. This is particularly useful when debugging processes and you want to see the entire schemainstead of mapping specific elements to the Write File activity.

You can use the Inspector activity to write the output of any activity or module properties in thecurrent process. Activities and module properties in a subprocess are not available to the Inspectoractivity (but the output of a Call Process activity can be written using the Inspector activity). If youwant to obtain the output from one or more activities or module properties in a subprocess, place theInspector activity in the process of the subprocess.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Inspect The output of the processes you want. Select any one from available items onthe drop-down list to output.

● All

● ModuleProperties

● _processContext

Only activities that have output and are executed prior to the Inspectoractivity are visible in the drop-down list.

Stdout Specifies whether the output of this activity should be sent to stout (standardoutput). Select this check box to send the output to stdout.

If this check box is not selected, the output is not sent to stdout.

Append to File Select this check box to specify that the output is appended to the filespecified in this activity’s input.

Not selecting this check box overwrites any file that exists with the specifiedname.

Suppress Header Select this check box to suppress the output of header information, such as theprocess instance ID and the timestamp.

If this check box is not selected, the header information for the current processinstance is written before the output of the activity or module property.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

129

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 130: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

fileName string The absolute path to the file you want to write. This filecontains the output of the specified activity or moduleproperty.

Output

The following is the output of this activity.

Output Item Datatype Description

output string The output of the module property or activity specifiedon the General tab in string form.

You can use this output in subsequent activities, inaddition to writing the output to a file or stdout. Forexample, you can use this output as the body of aTIBCO Rendezvous message.

LogLog is a synchronous activity that writes a message to the log. For each AppNode and application,there is a log file.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Logger Name Specifies the name of a message category. The value of the logger-name iscase-sensitive and can be a single name or a hierarchical name.

Log Level Select one of the following log levels recognized by the process engine.

● Error: logs error conditions and messages.

● Warning: is the warning message of an unexpected error in the process.

● Info: logs informational messages highlighting the application/engineprogress.

● Debug: can be used for debug-level messages.

Suppress Job Info If selected, no additional information is added to the log entry.

If not selected, each log message prepends JobId, ProcessInstanceId, ActivityName, Document Update: December 2014 and Version, Deployment UnitName, and Version name to the message text.

Description

Provide a short description of the activity.

130

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 131: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for the activity.

Input Iten Datatype Description

msgCode string The error code of the message. This is used as an identifier for themessage so that applications can scan the log for the message.

loggerName string The name of a message category specified in the Logger Name fieldin the General tab.

logLevel string The log level specified in the Log Level field in the General tab.

message string The message to be displayed in the log.

When the message contains non-ASCII data, the defaultencoding of the Java Virtual Machine used by the processengine is used for text encoding, when writing to the logfile.

MapperMapper is a synchronous activity that adds a new process variable to the process. This variable can bean inline schema, primitive element, or a complex element. You can map the data values from thecurrent list of process variables to the elements of the variable with the Mapper activity.

General

Specify the name of the activity here.

Description

A short description of the activity.

Input Editor

The Input Editor tab defines the structure of the process variable to add to the process. You can use asimple datatype, or you can define a group of data elements on this tab.

You can also reference XML schema stored in the project. The data specified here becomes the inputand output schema of the Mapper activity. This data is then available to other activities in the process.

Input

The input for the activity is defined by the specified data elements on the Input Editor tab.

Output

The output for the activity is defined by the specified data elements on the Output Editor tab.

NotifyThe Notify activity allows a process instance to send data to a corresponding process instancecontaining a Wait for Notification activity or the Receive Notification process starter. The NotifyConfiguration resource and the key specified on the General tab, create the relationship between theNotify activity and the corresponding Wait for Notification activity or Receive Notification activity.

131

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 132: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

SharedConfiguration

The Shared Configuration resource that defines a data schema for this activity.

The Shared Configuration resource is required, but the schema can be empty ifyou do not want to pass data between processes.

Key The key that coordinates a Notify activity with the corresponding Wait forNotification or Receive Notification activity.

NotificationTimeout (msec)

The timeout (number of milliseconds) to keep the information for this Notifyactivity.

Description

Provide a short description of the activity.

Input

This activity contains an input only if there is a schema defined on the Notify Configuration sharedresource.

Output Item Datatype Description

schema complex The schema specified by the Notify Configuration sharedresource on the General tab.

This schema is used to pass data from the process instancecontaining the Notify activity into the process instance containingthe related Wait for Notification activity or Receive Notificationactivity.

Output

This activity produces no output.

Set Shared VariableSet Shared Variable is a synchronous activity that you can use to change the value of a shared variable.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

132

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 133: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Shared VariableType

Specify the type of the shared variable (Module Shared Variable or JobShared Variable).

Shared VariableName

The module shared variable or job shared variable whose value you want toretrieve.

Description

Provide a short description for the activity.

Input

The following is the input for the activity.

Input Item Description

schema The value of the shared variable specified in the Shared Variable field ofthe General tab is the input for this activity.

The schema for the input is determined by the schema specified for theshared variable.

Output

The following is the output for the activity.

Output Item Description

schema or no output The value of the shared variable specified in the Shared Variable field ofthe General tab is the output for this activity.

The schema for the output is determined by the schema specified for theshared variable.

SleepSleep is an asynchronous activity that suspends the process on the current transition for the specifiedtime. For a process with multiple control flows, only the current execution branch of the process issuspended.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Description

Provide a short description for the activity.

133

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 134: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for the activity.

Input Item Datatype Description

IntervalInMillisec

integer The amount of time interval, in milliseconds, to suspend thecurrent branch of the process. The default time interval is 3minutes.

Threading Policy Details

The following are the details about the Sleep activity threading policy.

Activity TypeMulti-Threaded?

Default ThreadCount Thread Count Configuration

Asynchronous

No 1 Not applicable.

The activity does not create simultaneousprocess instances due to the single threadingmechanism. You cannot alter the default threadcount for this activity.

TimerTimer is a process starter activity that starts the process at a specific time. You can also specify theprocesses to be started periodically.

General

The General tab has the following fields.

Field

Literal Value/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Start Time Yes The day and time to start the process. To run the processperiodically, the start time indicates the first time to run theprocess.

The local machine’s time zone is used to determine the processstart. If the project is running on machines in different time zones,the time zone of the machine where the project was saved, isused. Use a process property in this field to provide start timesrelative to the time zone where the project is deployed. If youprovide a process property for this field, the format of thespecified time must be: yyyy MMM dd HH:mm:ss z

134

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 135: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty/ProcessProperty? Description

Run Once None Indicates this process should be run only once on the day andtime indicated by the Start Time field.

If you do not select this check box, the Time Interval and IntervalUnit fields are displayed that you can use to specify the frequencyof the process.

TimeInterval

Yes The integer indicating the number of units specified in theInterval Unit field. For example, if a value of 1 is specified andthe Interval Unit field is specified as Hour, a new process isstarted every hour beginning at the time specified in the StartTime field.

● If a value of 2 is specified and the Interval Unit field isspecified as Month, a process is started every other month,beginning at the time specified in the Start Time field.

● If the value specified is less than one second (1000milliseconds), the timer ignores the specified interval and istriggered once every second.

Using Literal Value, Module Property, and ProcessProperty in this field, specifies the time interval inmilliseconds and the Interval Unit field is notdisplayed.

Interval Unit None The unit of time to use with the Time Interval field to determinehow often to start a new process. The units can be: Millisecond,Second, Minute, Hour, Day, Week, Month, and Year.

End After None Specify the number of occurrences or the end time here. Selectfrom the following available options:

● Never: Click the Never radio button if you want tocontinuously execute the process instance. For example, if theTime Interval value specified is 5 and the Interval Unitspecified is Second, the process instance executes every 5seconds.

● Occurrences: Clicking the Occurrences radio button displaysthe Occurrences field. Specify the number of occurrences ofthe process instance execution. This field can be configuredwith Literal Value, Module Property, and Process Property.

● End Time: Clicking the End Time radio button displays theEnd Time field. Specify the end time and date when you wantthe process to end. This field can be configured with LiteralValue, Module Property, and Process Property.

135

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 136: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Description

Provide a short description of the activity.

Advanced

The Advanced tab has the following fields.

Field Description

Sequencing Key This field contains an XPath expression that specifies which processes shouldrun in sequence. Process instances with sequencing keys evaluating to the samevalue, are executed sequentially in the sequence the process instance wascreated.

Custom Job Id This field contains an XPath expression that specifies a custom job ID for everyjob in the process instance.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

Output

The following is the output of the activity.

Output Item Description

TimerOutputSchema

The time the process instance started.

The time is represented by several items in the output schema indicating:

● Now

● Hour

● Minute

● Second

● Week

● Month

● Year

● Date

● Time

● DayOfMonth

Each of these items uses the appropriate datatype.

Threading Policy Details

The following are the details about the Timer activity threading policy.

136

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 137: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Activity TypeMulti-Threaded?

Default ThreadCount Thread Count Configuration

ProcessStarter

No 1 Not applicable.

The Timer process starter does not generatemultiple events concurrently. You cannot alterthe default thread count for this activity.

Wait for NotificationThe Wait for Notification activity suspends execution of the process instance and waits for a Notifyactivity with a matching key to be executed in another process instance. The key specified in theGeneral tab and the Notify Configuration resource, creates a relationship between the Wait forNotification activity and the corresponding Notify activity.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as a label for the activity in the process.

SharedConfiguration

The shared configuration resource that defines a data schema for this activity.

The shared configuration resource is required, but the schema can be empty ifyou do not want to pass data between processes.

Key The key to coordinate a Wait for Notification activity with the correspondingNotify activity.

Activity Timeout(msec)

The timeout (number of milliseconds) for this Wait for Notification activity.

Description

Provide a short description of the activity.

Input

This activity has no input.

Output

This activity contains an output only if there is a schema defined on the Notify Configuration sharedresource.

The following is the output for the activity.

137

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 138: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

schema complex The schema specified by the Notify Configuration sharedresource on the General tab.

This schema is used to pass data from the process instancecontaining the related Notify activity into the process instancecontaining the related Wait for Notification activity.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When..

ActivityTimedOutException A timeout has been reached.

On Notification TimeoutThe On Notification Timeout process starter specifies a process to execute, when a timeout is reachedfor storing notification data for a Notify activity.

You can specify an On Notification Timeout process for a specific shared configuration resource. Theprocess with the On Notification Timeout process starter executes, when a Notify activity with amatching shared configuration undergoes a timeout.

It is recommended that you do not create more than one process for the same shared configurationresource. If a Notify activity experiences a timeout of it's stored notification information, that timeoutcan only apply to one On Notification Timeout process.

When the notification expires on timeout, the On Notification Timeout process starter is not triggeredimmediately. A background thread runs at a regular interval, and checks for expired messages. Thisthread runs at the default time interval of 30 minutes. To change this default time interval, which isspecified in minutes, change the value in the optional propertybw.engine.activity.signalin.eventTimeout.purge.interval=30

To change the default value, uncomment the property in the AppSpace config.ini file or pass it as aVM argument in Business Studio.

You can also specify the On Notification Timeout process to apply to any Notify activity experiencinga timeout. If there is no On Notification Timeout specified for the shared configuration resource of theNotify activity, the process engine calls the On Notification Timeout process with the Any NotifyConfig field selected.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the resource.

138

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 139: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Any Notify Config Selecting this checkbox disables the Shared Configuration field.

When the check box is selected, notifications from any Notify activity,associated with any shared configuration trigger the On NotificationTimeout process starter.

When this check box is not selected, notifications from any Notify activityassociated with the same shared configuration as specified on the activitytriggers the On Notification Timeout process starter.

Do not select this check box, if you want to specify a process for a specificshared configuration resource.

SharedConfiguration

This field is enabled only when the Any Notify Config check box is notselected.

This field allows you to specify the shared configuration that this processapplies to. Only timeouts for Notify activities with a matching sharedconfiguration will start a process instance.

Only one On Notification Timeout process can correspond to any sharedconfiguration. You cannot create multiple processes using the same sharedconfiguration.

Description

Provide a short description for the activity.

Output

The following is the output for the activity.

Output Item Datatype Description

notificationOutput object This element contains the schema specified in the sharedconfiguration of the Notify activity that has timed out.

Receive NotificationThis is a process starter activity. The Receive Notification activity starts a process when another processexecutes a Notify activity with a matching key and a shared configuration resource.

The key specified in the Key field of the General tab creates a relationship between the ReceiveNotification process starter and the corresponding Notify activity. The same shared configuration(Notify Configuration) resource must be specified by the corresponding Receive Notification andNotify activities to pass the data from the process containing the Notify activity to the process startedwith Receive Notification. The schema in the shared configuration resource however can be empty, ifyou do not want to pass data between processes.

General

The General tab has the following fields.

139

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 140: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Name The name to be displayed as the label for the activity in the process.

SharedConfiguration

The shared configuration resource that defines a data schema for this activity.

The shared configuration resource is required, but the schema can be empty ifyou do not want to pass data between processes.

Key The key that coordinates a Receive Notification process starter with thecorresponding Notify activity.

The key must be a fixed string.

Description

Provide a short description of the activity.

Advanced

The Advanced tab has the following fields.

Field Description

Sequencing Key This field contains an XPath expression that specifies which processes shouldrun in order. Process instances with sequencing keys evaluating to the samevalue, are executed sequentially in the order the process instance was created.

Custom Job Id This field contains an XPath expression that specifies a custom job ID for everyjob in the process instance.

Output

The following is the output for the activity.

Output Item Datatype Description

schema complex The schema specified in the Shared Configuration field on theGeneral tab.

This schema is used to pass data from the process instancecontaining the Notify activity into this process instance.

140

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 141: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

HTTP Palette

Using the HTTP Palette you can send and receive HTTP requests.

HTTP ReceiverHTTP Receiver is a process starter activity that starts the process based on the receipt of an HTTPrequest.

General

The General tab has the following fields.

Field

Literal Value/ModuleProperty/Processproperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

HTTPConnection

Yes The HTTP Connector resource describes the characteristics ofthe connection used to receive incoming HTTP requests.

See HTTP Connector for more information about specifyingshared resources.

Context Path

Path Spec

Yes This is the prefix of a URL path that is used to select thecontexts to which an incoming request is passed.

You can either specify both Context Path and Path Spec, any,or none of these elements. For example, the path displays asthe http://hostname.com/contextPath/pathSpec format.

If the Context Path is not specified, the context path isreferred to as the root context.

Output Style None The type of output. It can be either String or Binary.

Parse PostMethod Data

None Specifies to parse the message body of the HTTP request intoa schema for the output of the activity.

When this check box is selected, the parameters specified inthe Parameters field are used to validate the incoming requestand parse it into the output schema.

For an incoming GET request, there is no messagebody, hence this field has no effect on the incomingGET requests.

141

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 142: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty/Processproperty? Description

Parameters None The parameters of the incoming HTTP request.

If you specify parameters in this table, the incoming request isparsed and represented as a schema in this output of theactivity. For each parameter, you must provide a name,datatype, and whether the field is Optional, Required, orRepeating.

Use the and buttons to the right of the parameter tableto add and remove parameters.

Specifying parameters in this field parses the querystring of the request into the output schema,regardless of whether the Parse Post Method Datacheck box is selected. Selecting the Parse PostMethod Data check box and specifying parametershere is required to parse the message body alongwith the query string of the request.

Expose SecurityContext

None Places the information from the user’s security context (eitherauthentication or SSL certificate information) into the Contextor SecurityContext output element.

This is a fairly expensive operation and SSL certificates canconsume memory resources. Hence, select this option only ifyou require information from the user’s security context forlater use in your process.

DefaultEncoding

Yes Specifies the encoding to use if no charset is specified in theContent-Type header of the message. This encoding is usedfor the message body and URL.

However, when URIEncoding is specified in the HTTPConnector shared resource, the Default Encoding parameterspecified here applies to the contentType alone and not to theURIEncoding property.

Imported projects display the HTTP Authentication check box under the General section if the checkbox was selected in a previous version TIBCO ActiveMatrix BusinessWorks™ 6.x. Authenticationremains enabled on the HTTP Reciever activity if you do not clear the check box. If you clear theAuthentication check box, a warning message is displayed prompting you to confirm your action. Toremove authentication from the activity, click OK. Once you have removed authentication from theHTTP Reciever activity, you can reapply it using the Basic Authentication policy.

Description

Provide a short description for the activity in this field.

Advanced

The Advanced tab has the following fields.

142

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 143: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

ProcessProperty/ModuleProperty? Description

Write to File None Select this check box to write incoming requests that exceedthe specified threshold size to a file instead of storing therequest in memory. You can accept large incoming requestswithout consuming a great deal of memory. Selecting thischeck box displays the Directory, Creating Non-ExistingDirectories, and Threshold Data Size(bytes) fields.

This option is not intended to be used with theParse Post Method Data option on the Generaltab. When you select Write to File, the PostDataoutput element becomes a choice elementcontaining either the output FileName or thePostData. This depends upon whether the dataexceeds the size specified in the Threshold DataSize field. It is recommended to use either theWrite to File option or the Parse Post MethodData option, but not both at the same time.

Not selecting this field keeps the incoming requests inmemory.

After writing, the files created using this optionare not deleted automatically. You must managethe storage used by these files and delete themwhen they are no longer used.

Directory Yes The directory to write messages that are above the specifiedthreshold. The process engine does not attempt to create thedirectory if the specified directory does not exist. Therefore,create the directory before starting the process engine.

Create Non-ExistingDirectories

None When this check box is selected, all directories in the pathspecified in the Directory field are created, if they do notalready exist.

If this check box is not selected and there are one or moredirectories in the specified path in the Directory field thatdo not exist, an exception is raised.

Threshold DataSize(bytes)

Yes The maximum size (in bytes) of an incoming request thatcan be kept in the memory. Requests larger than thespecified size are written to a file in the specified directory.The file’s name is output so that subsequent activities in theprocess can access the file and read its contents.

Specify zero (0) in this field for all incoming requests to besaved to a file.

143

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 144: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

ProcessProperty/ModuleProperty? Description

Sequence Key None This field can contain an XPath expression that specifieswhich processes should run in sequence. Process instanceswith sequencing keys that evaluate to the same value areexecuted sequentially in the sequence the process instancewas created.

Custom Job Id None This field can contain an XPath expression that specifies acustom ID for the process instance.

Special Characters in HTTP Requests

Depending upon the content type of the data for the request, the request can contain URL-encoded dataand the server is expected to decode the data. For example, an incoming request may have thefollowing message body:

name=John%20Smith&address=500%201%2F2%20Main%20Street

If the message body is not parsed (Parse Post Method Data check box is not selected on the Generaltab), the body of the message remains URL-encoded in the PostData output element. If the messagebody is parsed, the data is decoded before being placed in the PostData output element, and thatelement would display as follows:

name=John Smith&address=500 1/2 Main Street

The sequence of the parameters may not be the same in the PostData output element as the sequence inthe original HTTP request sent by the client when the message body is parsed.

The PostData output element can contain different data and be a different length depending uponwhether the message body is parsed. Hence, ensure that you obtain data from the parameters outputelement when the message body is parsed.

Output Editor

The Output Editor tab describes the data structure for the headers of the HTTP request. You can use thedefault structure, or you can alter the structure, if the incoming request has a specific data structure forthe header of the request.

The header structure is defined by the HTTP protocol. See the HTTP protocol specification for moreinformation about the fields and content of the header of an HTTP request. You can obtain thisspecification at www.w3.org.

Output HeaderElement Datatype Description

Accept string This field specifies media types that are acceptable forresponse messages for the incoming request. For example,text/*,text/html. Media types are described in the HTTPspecification.

If no Accept-Header field is present, it is assumed that theclient accepts all media types.

144

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 145: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output HeaderElement Datatype Description

Accept-Charset string This field specifies the character sets that are acceptable forresponse messages for the incoming request. For example,iso-8859-5, unicode-1-1. Character sets are described in theHTTP specification.

If no Accept-Charset header is present, it is assumed that theclient accepts any character set.

Accept-Encoding

string This field specifies the content-coding values that areacceptable for response messages. For example, compress,gzip. See the HTTP specification for more information aboutthis header field.

Content-Type string This field indicates the media type of the entity body sent tothe receiver. For example, text/html; charset=ISO-8850-4.Media types are described in the HTTP specification.

Content-Length string This field indicates the size of the entity body (in decimalnumber of OCTETs) sent to the receiver.

This field takes into account the encoding of the messagebody. See Special Characters in HTTP Requests for moreinformation on when the message body is URL encoded.

Connection string Using this field the requestor can specify options required forthis connection. For example, the option close specifies thatthe requestor would like the connection to be closed when therequest is complete.

Cookie string See the HTTP specification for more information about thisfield.

If you want to receive more than one cookie, set the cardinalityfor this field to repeating (*).

Pragma string This field is used to include implementation-specific directivesthat might apply to the receiver. See the HTTP specification formore information about using this field.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

Output

The following is the output for the activity.

Output Item Datatype Description

Method string The method specified in the request. For example, GET orPOST.

145

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 146: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

RequestURI string The address portion of the request. This is the portion beforethe question mark (?).

HTTPVersion string The version field of the HTTP request.

PostData orBinaryContent orFileName

string The message body of the HTTP request. The content of thiselement depends upon whether the message body is parsed.Parsing behavior is controlled by the Parse Post MethodData field on the General tab.

The content of this element will be PostData if the OutputStyle field selected is of type String, and the element will beBinaryContent if the Output Style field selected is of typeBinary.

See Special Characters in HTTP Requests for moreinformation.

If the Write to File field is selected on the Advanced tab, andthe incoming message exceeds the specified threshold size,the PostData field can also contain the file name of the filecontaining the message.

QueryString string The query string portion of the request. This is the portionafter the question mark (?).

Header string The header of the HTTP request.

Protocol string This can be HTTP or HTTPS depending upon the protocolused by the request.

Port string The port number on which the request was received. This isthe port number configured in the HTTP Connector resource.

Headers complex The fields of the header specified on the Output Editor tab.See the description of the Output Editor tab for moreinformation about these items.

Parameters complex The parameters for the incoming request. These parametersare configured in the Parameters field on the General tab.

When the Parse Post Method Data check box on the Generaltab is selected, the parameters include the parameters in thequery string and message body of the incoming HTTPrequest.

When the Parse Post Method Data check box is not selected,the parameters include only the query string of the incomingrequest.

146

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 147: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

DynamicHeaders complex The dynamic header is an additional header parameter toreceive header parameters from incoming HTTP requests.This element is specified in the Output Editor tab. TheDynamicHeaders consists of the following information:

● Name: the name of the header

● Value: the value of the header

The following overriding conditions can be considered:

● Overrides the value of HeaderName with the value foundin DynamicHeaders, if it is a non-repeating header. Ifmore than one occurrence of this header is found underDynamicHeaders, it throws the "The header[ headerName ] is defined as non-Repeating

Header in Input Headers. This header cannot

have multiple occurences in DynamicHeaders."

exception.

● If it is a repeating element, add the respective name valuepairs under dynamic headers, which is added to theexisting list maintained for this element.

● For a repeating element, if the new header name is notfound under the "Headers" section declared throughTIBCO Business Studio™, the following is added into theHTTP Headers.

— Shows only one value, if found once inDynamicHeaders.

— Shows array of values, if found repeating inDynamicHeaders.

mimeEnvelopeElement

complex This element contains the message attachments.

This element contains a repeating element named mimePartthat contains each mime attachment.

147

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 148: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

mimeHeaders complex This element contains the mime header for each mimePart.Mime headers can contain the following information:

● content-disposition: To suggest a filename for anattachment, use "*;filename=<filename>" in thiselement.

HTTP servers may alter or ignore the suggestedname.

● content-type

● content-transfer-encoding

● content-id

● any element

See http://www.faqs.org/rfcs/rfc2045.html for moreinformation about MIME headers and their syntax.

When the content type is specified as "text/*"(for example, "text/xml"), the attachment contentis expected to be in either the textContent inputelement or the file name storing the attachment isexpected to be in the fileName input element.When the content type is anything other than"text/*", the attachment content is expected to bein either the binaryContent input element or thefile name storing the attachment is expected to bein the fileName input element.

binaryContent |textContent |fileName

choice This element contains the mime attachment.

The element can be one of the following:

● binaryContent: content of the attachment content of theattachment when the attachment is binary data.

● textContent: content of the attachment when theattachment is text data.

● fileName: the file name of the attachment written to thedisk.

Context complex Contains information about the client’s environment.

This element holds the optional RemoteAddress element.

RemoteAddress string The IP address of the client that submitted the HTTP request.

Threading Policy Details

The following are the details about the HTTP Receiver activity threading policy.

148

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 149: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Activity TypeMulti-Threaded? Default Thread Count Thread Count Configuration

ProcessStarter

Yes● Minimum QTP

Threads = 10

● Maximum QTPThreads = 75

It can be configured on the HTTPConnector shared resource using thefollowing fields:

● Minimum QTP threads

● Maximum QTP threads

Policy

Activities that support policies will display the Policy tab. To associate a new or existing policy with the

HTTP Receiver activity, click the Add Policy to Activity icon. To edit policy details, click Go to

selected Policy icon. The Policy tab has the following fields.

Field Description

Name The name of the policy.

Type The type of policy associated with the activity. The HTTP Receiver activitycan support the Basic Authentication policy.

Description A description of the policy.

Send HTTP RequestSend HTTP Request is an asynchronous activity that sends an HTTP request and waits for a responsefrom the web server. This activity sends a request to a server that is compliant with either the HTTP 1.1or 1.0 specification. ActiveMatrix BusinessWorks™ automatically sends the request using the correctversion based on the version supported by the HTTP server. Therefore, do not specify the HTTP versionof the server you are sending the request to.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

HTTP Client Specifies the HTTP Client shared resource. For details, refer to HTTP Client.

Parameters The parameters of the HTTP request. For each parameter, you must provide:

● Parameter Name● Parameter Type as string

● Parameter Cardinality as Optional, Required, or Repeating

These parameters are specified in the parameters element on the General tab.

149

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 150: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Post Data Type The body of the HTTP message. You can select either String or Binary format.

Description

Provide a short description of the activity.

Advanced

The Advanced tab has the following fields.

Field

Literal Value/ModuleProperty? Description

Write to File None Select this check box to write the incoming requests thatexceed the specified threshold size to a file instead of storingthe request in memory. You can accept large incomingrequests without consuming a great deal of memory.Selecting this check box displays the Directory andThreshold Data Size fields.

To keep the incoming requests in memory, do notselect this check box.

The files created using this option after writing arenot deleted automatically. You must manage thestorage used by these files. Delete these files whenthey are no longer in use.

Directory Yes The directory to write messages that are above the specifiedthreshold. The process engine does not attempt to create thedirectory if the specified directory does not exist. Therefore,create the directory before starting the process engine.

Creating Non-ExistingDirectories

No Selecting this check box creates all directories in the pathspecified in the Directory field, if they do not already exist.

Not selecting this check box with one or more non-existingdirectories in the specified path in the Directory field, raisesan exception.

Threshold DataSize(bytes)

Yes The maximum size (in bytes) of an incoming request to bekept in memory. Requests larger than the specified size arewritten to a file in the specified directory. The file’s name isthe output so that subsequent activities in the process canaccess the file and read its contents.

Specifying zero (0) in this field causes all incoming requeststo be saved to a file.

Input Editor

Input Editor comprises the data structure of the headers of the HTTP request and HTTP reply message.You can either use the default structure or modify the structure, if the outgoing request or the reply tothe request has a specific data structure for the header.

150

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 151: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Header Datatype Description

Accept string This field specifies media types that are acceptable forresponse messages for the request. For example, text/*,text/html. Media types are described in the HTTPspecification.

If no Accept-Header field is specified, all media types areacceptable on the server.

Accept-Charset string This field specifies the character sets that are acceptable forresponse messages for the request. For example,iso-8859-5, unicode-1-1. The character sets are describedin the HTTP specification.

If no Accept-Charset header is specified, any character set isacceptable on the server.

Accept-Encoding string This field specifies the content-coding values that areacceptable for response messages. For example, compressand gzip. See HTTP specification (http://www.w3.org/Protocols/Specs.html) for more information about thisheader field.

Content-Type string This field indicates the media type of the entity body for theoutgoing message and the incoming response. Media typesare described in the HTTP specification. An example of themedia type is text/html; charset=ISO-8850-4.

Cookie string A name and value pair (also known as a cookie) containinginformation that the HTTP server may be expecting. You canset the cardinality for this element to Repeating (*) to specifymore than one cookie. You can also specify multiple name orvalue pairs in a single non-repeating element by separatingeach pair with a comma (for example, "name1=value1,name2=value2").

Pragma string This field is used to include implementation-specificdirectives that might apply to the receiver. See the HTTPspecification (http://www.w3.org/Protocols/Specs.html) formore information about using this field.

Output Editor

Output Editor comprises the data structure of the headers of the HTTP request and HTTP replymessage. You can either use the default structure or modify the structure, if the outgoing request or thereply to the request has a specific data structure for the header.

The header structure is defined by the HTTP protocol. See the HTTP protocol specification for moreinformation about the fields and content of the header of an HTTP request. You can obtain thisspecification at http://www.w3.org/.

Output Header Datatype Description

Allow string This field lists the set of methods supported by the resourceidentified by RequestURI.

151

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 152: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Header Datatype Description

Content-Type string This field indicates the media type of the entity body for theoutgoing message and the incoming response. Media typesare described in the HTTP specification. An example of themedia type is text/html; charset=ISO-8850-4.

Content-Length string This field indicates the size of the entity body (in decimalnumber of OCTETs) of the response message.

Content-Encoding string This field is used as a modifier to the content-type. Whenpresent, its value indicates what additional content encodinghas been applied to the entity-body. Also, what decodingmechanisms must be applied to obtain the media-typereferenced by the Content-Type header field.

Content-Encoding is primarily used to allow a document tobe compressed without losing the identity of its underlyingmedia type. See the HTTP specification for more informationabout this field.

Date string The date and time when the response message was sent.

Location string This field is used to redirect the receiver to a location otherthan RequestURI for completion of the request or foridentification of a new resource.

Set-Cookie string If you want to receive more than one cookie, set thecardinality for this field to Repeating (*).

See the HTTP specification for more information about thisfield.

Pragma string This field is used to include implementation-specificdirectives that might apply to the receiver.

See the HTTP specification for more information about usingthis field.

Input

The following is the input for the activity.

Input Item Datatype Description

Host string The HTTP host you want to connect to. Specifying a value forthis input item overrides any value specified on the Generaltab.

Port string The port number that the HTTP server uses for incomingrequests. Specifying a value for this input item overrides anyvalue specified on the General tab.

152

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 153: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

Method string The HTTP method to use for the request. All HTTP 1.1methods are supported, but the connect method isunnecessary because ActiveMatrix BusinessWorks™automatically uses the CONNECT method when connectingthrough a proxy server.

If no method is specified in this element, the GET method isused by default.

RequestURI string The address portion of the request. This is the portion of theURI before the question mark (?).

PostData string The message body of the HTTP request. Do not specify thiselement when the method of the request is GET.

For details on this input element, refer to Sending Data in theHTTP Request

QueryString string The query string portion of the request. This is the part afterthe question mark (?).

For details on this input element, refer to Sending Data in theHTTP Request

Timeout integer The amount of time (in milliseconds) to wait for a responsefrom the HTTP server.

Headers complex The header fields to send for the request. When this elementis specified on the Input Editor tab, you can use this inputitem to provide values for the header when sending therequest.

153

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 154: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

DynamicHeaders complex The dynamic header is an additional header parameter toadd runtime headers to the outgoing HTTP messages. Thiselement is specified in the Input tab.

You can use only US-ASCII characters inDynamicHeaders.

The DynamicHeaders consists of the following information:

● Name: the name of the header

● Value: the value of the header

You can consider the following overriding conditions.

● Overrides the value of HeaderName with the value foundin DynamicHeaders if it is a non-repeating header. Ifmore than one occurrence of this header is found underDynamicHeaders, it throws the following exception.

The header [ headerName ] is defined as non-

Repeating Header in Input Headers. This header

cannot have multiple occurences in

DynamicHeaders.

● If it is a repeating element, add the respective name valuepairs under dynamic headers, which is then added to theexisting list maintained for this element.

● For a repeating element, if the new header name is notfound under the "Headers" section declared throughTIBCO Business Studio™, the following is added intoHTTP Headers.

— Shows only one value, if found once inDynamicHeaders.

— Shows an array of values, if found repeating inDynamicHeaders.

mimeEnvelopeElement

complex This element contains the message attachments.

This element contains a repeating element named mimePartthat contains each mime attachment.

154

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 155: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

mimeHeaders complex This element contains the mime header for each mimePart.mimeHeaders can contain the following information:

● content-disposition: To suggest a filename for anattachment, use "*;filename=<filename>" in thiselement.

The HTTP servers may alter or ignore thesuggested name.

● content-type

● content-transfer-encoding

● content-id

See http://www.faqs.org/rfcs/rfc2045.html for moreinformation about MIME headers and their syntax.

When the content type is specified as "text/*"(for example, "text/xml"), the attachment contentis in either the textContent input element or thefile name storing the attachment is in the fileNameinput element. When the content type is anythingother than "text/*", the attachment content is ineither the binaryContent input element or the filename storing the attachment is in the fileNameinput element.

binaryContent | choice This element contains the mime attachment.

The element is binaryContent: the content of the attachmentwhen the attachment is binary data.

Output

The following is the output of the activity.

Input Item Datatype Description

Header complex The fields of the header specified on the Output Editor tab.See the description of the Output Editor tab for moreinformation about these items.

StatusLine complex This field is the first line of the response message. Thisconsists of the protocol version, a numeric status code, andthe text phrase explaining the status code.

See the HTTP specification for more information about statuscodes in the HTTP responses.

155

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 156: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

httpVersion string The HTTP method to use for the request. All HTTP 1.1methods are supported, but the connect method isunnecessary because ActiveMatrix BusinessWorks™automatically uses the CONNECT method when connectingthrough a proxy server.

If no method is specified in this element, by default the GETmethod is used.

statusCode string The address portion of the request. This is the portion of theURI before the question mark (?).

reasonPhrase string The message body of the HTTP request. Do not specify thiselement when the method of the request is GET.

For details on this input element, refer to Sending Data in theHTTP Request

binaryContent string The binary content of the response to the request from theHTTP server.

asciiContent integer The ASCII content of the response to the request from theHTTP server.

Headers complex The header fields of the reply. The structure of this outputitem is specified on the Output Headers tab.

156

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 157: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

DynamicHeaders complex The dynamic header is an additional header parameter toadd runtime headers to the outgoing HTTP messages. Thiselement is specified in the Input tab.

You can use only US-ASCII characters inDynamicHeaders.

The dynamic headers consist of the following information:

● Name: the name of the header

● Value: the value of the header

You can consider the following overriding conditions.

● Overrides the value of HeaderName with the value foundin DynamicHeaders if it is a non-repeating header. Ifmore than one occurrence of this header is found underDynamicHeaders, it throws the following exception.

The header [ headerName ] is defined as non-

Repeating Header in Input Headers. This header

cannot have multiple occurences in

DynamicHeaders.

● If it is a repeating element, add the respective name orvalue pairs under DynamicHeaders, which is added tothe existing list maintained for this element.

● For a repeating element, if the new header name is notfound under the "Headers" section declared throughTIBCO Business Studio™, the following is added intoHTTP Headers.

— Shows only one value, if found once inDynamicHeaders.

— Shows an array of values, if found repeating inDynamicHeaders.

mimeEnvelopeElement

complex This element contains the message attachments.

This element contains a repeating element named mimePartthat contains each mime attachment.

157

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 158: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

mimeHeaders complex This element contains the mime header for each mimePart.mimeHeaders can contain the following information:

● content-disposition: to suggest a filename for anattachment, use "*;filename=<filename>" in thiselement.

The HTTP servers may alter or ignore thesuggested name.

● content-type

● content-transfer-encoding

● content-id

See http://www.faqs.org/rfcs/rfc2045.html for moreinformation about MIME headers and their syntax.

When the content type is specified as "text/*"(for example, "text/xml"), the attachment contentis expected to be in either the textContent inputelement or the file name storing the attachment isexpected to be in the fileName input element.When the content type is anything other than"text/*", the attachment content is in either thebinaryContent input element or the file namestoring the attachment is in the fileName inputelement.

binaryContent |textContent |fileName

choice This element contains the mime attachment.

The element can be one of the following:

● binaryContent: content of the attachment content of theattachment when the attachment is binary data.

● textContent: content of the attachment when theattachment is text data.

● fileName: the file name of the attachment written to thedisk.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective actions to take.

Fault Thrown When..

ActivityTimedOutException The timeout for the activity is attained.

HttpClientException The HTTP server responds with a message containing the 4XXstatus code.

158

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 159: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

HttpServerException The HTTP server responds with a message containing the 5XXstatus code.

HttpCommunicationException An HTTP exception occurred while executing the specifiedmethod, or when trying to read the response.

Threading Policy Details

The following are the details about Send HTTP Request activity threading policy.

Activity TypeMulti-Threaded?

Default ThreadCount Thread Count Configuration

Asynchronous

Yes Dynamic You can configure it by using the Thread Poolshared resource.

Policy

Activities that support policies will display the Policy tab. To associate a new or existing policy with the

Send HTTP Request activity, click the Add Policy to Activity icon. To edit policy details, click

Go to selected Policy icon. The Policy tab has the following fields.

Field Description

Name The name of the policy.

Type The type of policy associated with the activity. The Send HTTP Requestactivity can support the Basic Credential Mapping policy.

Description A description of the policy.

Wait for HTTP RequestWait for HTTP Request is a signal-in activity that waits for an incoming HTTP request in a process.The process instance suspends until the incoming HTTP request is received.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty Description

Name None The name to be displayed as the label for the activity in theprocess.

159

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 160: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty Description

HTTPConnection

Yes HTTP Connector shared resource that describes the host nameand the port number on which the process waits for theincoming message.

See HTTP Connector for more information about specifyingshared resources.

Context Path

Path Spec

Yes This is the prefix of a URL path used to select the contexts towhich an incoming request is passed.

You can either specify both Context Path and Path Spec, any, ornone of these elements. For example, the path displays inhttp://hostname.com/contextPath/pathSpec format.

If the Context Path is not specified, the context path is referredto as the root context.

Output Style None The output message format. You can select either Text orBinary format for the output messages.

Parse PostMethod Data

None Specifies whether the message body of the HTTP requestshould be parsed into a schema for the out of the activity.

When you select this check box, the parameters specified in theParameters field are used to validate the incoming request andparse it into the output schema.

For an incoming GET request, there is no messagebody, so this field has no effect on the incoming GETmessage body requests.

Parameters None The parameters of the incoming HTTP request. You can specifyparameters in this table for the incoming request to be parsedand represented as a schema in this output of the activity. Foreach parameter, you must provide a name, datatype, andwhether the field is Required, Optional, or Repeating.

Use the button to add parameters and button to removeparameters. Use the up and down arrows to move parametersto new positions in the table.

Specifying parameters in this field parses the querystring of the request into the output schema,regardless of whether the Parse Post Method Datacheck box is selected. Selecting the Parse PostMethod Data check box and specifying theparameters in this field is required to parse themessage body along with the query string of therequest.

160

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 161: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty Description

ExposeSecurityContext

None Select this check box meant for Security Context Propagationand Security Context, to make it available as a transport data inthe mapping panel.

DefaultEncoding

Yes Specifies the encoding to use, if no charset is specified in theContent-Type header of the message. This encoding is used forthe message body and URL.

Imported projects display the HTTP Authentication check box under the General section if the checkbox was selected in a previous version ActiveMatrix BusinessWorks™ 6.x. Authentication remainsenabled on the Wait for HTTP Request activity if you do not clear the check box. If you clear theAuthentication check box, a warning message is displayed prompting you to confirm your action. Toremove authentication from the activity, click OK. Once you have removed authentication from theWait for HTTP Request activity, you can reapply it using the Basic Authentication policy. Foradditional details, refer to the section "Enforcing Basic Authentication" in the Application Developmentguide.

Description

Provide a short description for the activity in this field.

Event

Field Description

Event Timeout(seconds)

This field specifies the amount of time (in seconds) a message waits, if it isreceived before this activity is executed. If the event timeout expires, an erroris logged and the event is discarded. If no value is specified in this field, themessage waits indefinitely. If zero is specified, the event is discarded.

Activity Timeout(msec)

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

Advanced

The Advanced tab has the following fields.

161

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 162: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

ProcessProperty/ModuleProperty? Description

Write to File None Select this check box to specify that the incoming messages whosebody and attachments exceed the specified threshold size, shouldbe written to a file instead of stored in memory. With this you canaccept large incoming messages without consuming a great dealof memory.

Selecting this check box displays the Directory, Create Non-Existing Directories, and Threshold Size fields. Keep this checkbox clear if you want to keep the incoming messages in memory.

The files created using this option after they arewritten, are not deleted automatically. You mustmanage the storage used by these files and delete themwhen they are no longer in use.

Directory Yes The directory to write messages that are above the specifiedthreshold. The process engine does not attempt to create thedirectory if the specified directory does not exist. Therefore,create the directory before starting the process engine.

Create Non-ExistingDirectories

None When you select this check box is, all directories in the pathspecified in the Directory field are created, if they do not alreadyexist.

If you do not select check box and there are one or moredirectories in the specified path in the Directory field that do notexist, an exception is raised.

ThresholdDataSize(bytes)

Yes The maximum size (in bytes) of an incoming message that can bekept in memory. Messages larger than the specified size arewritten to a file in the specified directory. The name of the file isthe output so that subsequent activities in the process can accessthe file and read its contents.

Specifying zero (0) in this field causes all incoming messages to besaved to a file.

Output Editor

Output Editor tab describes the data structure for the HTTP request headers. You can use the defaultstructure, or you can alter the structure, if the incoming request has a specific data structure for theheader of the request.

Header Datatype Description

Accept string This field specifies media types that are acceptable for responsemessages for the incoming request. For example, text/*,text/html. The media types are described in the HTTP specification.

If no Accept header field is present, the client accepts all mediatypes.

162

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 163: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Header Datatype Description

Accept-Charset string This field specifies the character sets that are acceptable forresponse messages for the incoming request. For example,iso-8859-5, and unicode-1-1. Character sets are described inthe HTTP specification.

If no Accept-Charset header is present, the client accepts anycharacter set.

Accept-Encoding

string This field specifies the content-coding values that are acceptablefor response messages. For example, compress, gzip. See theHTTP specification for more information about this header field.

Content-Type string This field indicates the media type of the entity body sent to thereceiver. The media types are described in the HTTPspecification. An example of the media type is text/html;charset=ISO-8850-4.

Content-Length string This field indicates the size of the entity body (in decimalnumber of OCTETs) sent to the receiver. It also accounts forencoding the message body. See Special Characters in HTTPRequests for more information on when the message body isURL encoded.

Connection string Use this field to specify options required for this connection. Forexample, the close option specifies that you want the connectionto be closed when the request is complete.

Cookie string See the HTTP specification for more information about this field.

Pragma string This field is used to include implementation-specific directivesthat might apply to the receiver. See the HTTP specification formore information about using this field.

Conversations

You can join the conversation here. Click the Joining existing conversation button to join multipleconversations. For details about conversations, refer to Application Development.

Output

The following is output for the activity.

Output Item Datatype Description

Method string The HTTP method to use for the request. All HTTP 1.1methods are supported.

RequestURI string The address part of the request. This is the part before thequestion mark (?).

HTTP-Versions string The version field of the HTTP request.

163

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 164: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

PostData orBinaryContent orFileName

string The message body of the HTTP request. The content of thiselement depends upon whether the message body is parsed.The parsing behavior is controlled by the Parse PostMethod Data field on the General tab.

See Special Characters in HTTP Requests for moreinformation.

QueryString string The query string part of the request. This is the part after thequestion mark (?).

Header string The header of the HTTP request.

Protocol string This can be either HTTP or HTTPS, depending upon theprotocol used by the request.

Port string The port number on which the request was received. This isthe port number configured in the HTTP Connector sharedresource.

DynamicHeaders complex The dynamic header is an additional header parameter toadd runtime headers to the outgoing HTTP Messages. Thiselement is specified in the Input tab. DynamicHeadersconsists of the following information:

● Name: the name of the header

● Value: the value of the header

You can consider the following overriding conditions:

● Overrides the value of HeaderName with the valuefound in DynamicHeaders if it is a non-repeatingheader. If more than one occurrence of this header isfound under DynamicHeaders, it throws the followingexception: "The header [ headerName ] is definedas non-Repeating Header in Input Editor. This

header cannot have multiple occurences in

DynamicHeaders."

● If it is a repeating element, add the respective namevalue pairs under DynamicHeaders. This is added to theexisting list maintained for this element.

● For a repeating element, if the new header name is notfound under the "Headers" section declared throughTIBCO Business Studio, the following is added to theHTTP Headers.

— Shows only one value, if found once inDynamicHeaders.

— Shows array of values, if found repeating inDynamicHeaders.

164

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 165: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

mimeEnvelopeElement

complex This element contains the message attachments.

This element contains a repeating element named mimePartthat contains each mime attachment.

mimeHeaders complex This element contains the mime header for each mimePart.Mime headers can contain the following information:

● content-disposition: to suggest a filename for anattachment, use "*;filename=<filename>" in thiselement.

HTTP servers may alter or ignore thesuggested name.

● content-type

● content-transfer-encoding

● content-id

● any element

See http://www.faqs.org/rfcs/rfc2045.html for moreinformation about MIME headers and their syntax.

When the content type is specified as "text/*"(for example, "text/xml"), the attachmentcontent is in either the textContent input elementor the file name storing the attachment is in thefileName input element. When the content type isanything other than "text/*", the attachmentcontent is in either the binaryContent inputelement or the file name storing the attachment isin the fileName input element.

binaryContent |textContent |fileName

complex This element contains the mime attachment.

The element can be one of the following:

● binaryContent: content of the attachment content of theattachment when the attachment is binary data.

● textContent: content of the attachment when theattachment is text data.

● fileName: the file name of the attachment written to thedisk.

Context complex Contains information about the environment of the client.

This element holds the optional RemoteAddress element.

RemoteAddress string The IP address of the client that submitted the HTTPrequest.

165

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 166: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

ActivityTimedOutExcepti

on

The timeout for the activity is attained.

Threading Policy Details

The following are the details about Wait for HTTP Request activity threading policy.

Activity TypeMulti-Threaded? Default Thread Count Thread Count Configuration

Signal-in Yes● Minimum QTP

Threads = 10

● Maximum QTPThreads = 75

It can be configured on the HTTPConnector shared resource using thefollowing fields:

● Minimum QTP threads

● Maximum QTP threads

Policy

Activities that support policies will display the Policy tab. To associate a new or existing policy with the

Wait for HTTP Request activity, click the Add Policy to Activity icon. To edit policy details, click

Go to selected Policy icon. The Policy tab has the following fields.

Field Description

Name The name of the policy.

Type The type of policy associated with the activity. The Wait for HTTP Requestactivity supports the Basic Authentication policy.

Credentials authenticated on this activity are not used forpropagation during credential mapping.

Description A description of the policy.

Sending Data in the HTTP RequestYou can use several HTTP methods in an HTTP request. Each method sends data in the request in adifferent manner. For example, the GET method uses the query string of the RequestURI to passparameter and value pairs. Other methods use the HTTP message body to send data in the request.

The Send HTTP Request activity has the following three input elements for sending data in a request:

166

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 167: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

● Post Data: corresponds to the body of the HTTP message. All methods except the GET methodaccept data in this element.

● Query String: corresponds to the query string of the RequestURI. You can use this input element todynamically construct the query string using an XPath expression when you do not know the namesor number of the input parameters for the request until the activity executes.

● Parameters: corresponds to the parameters defined in the Parameters field on the General tab. Thisis useful if you have a fixed set of parameters to send with the request. For requests using the GETmethod, these parameters are passed as the query string of the RequestURI. For requests using thePOST method, these parameters are usually sent as the body of the HTTP message. They can also beincluded in the query string.

These input elements are mutually exclusive for some methods. For example, for POST requests, youcan either specify parameters on the General tab and in the parameters input element or you canspecify a PostData input element. However, do not specify both input elements. In the case of a POSTrequest, the PostData input element is ignored when you specify parameters on the General tab.

For GET requests, you can either specify the parameters on the General tab and in the parameters inputelement or you can specify a QueryString input element. If you know the list of parameters for therequest, configure the parameters on the General tab. If the list of parameters is not known until theactivity executes, use the QueryString element. However, when you specify all parameters on theGeneral tab as Optional, you can use the QueryString input element instead of the parameters inputelement. If any element in the parameters element contains an expression, the QueryString element isignored.

Special Characters in HTTP Requests

Depending upon the content type of the data for the request, the request can contain URL-encoded dataand the server decodes the data. If this is the case and you want to send special characters such as +, /,or = in your HTTP request, your data string must be URL-encoded if you send the data using thePostData or QueryString input elements. If you send the data using the parameters specified on theGeneral tab, encoding is done automatically.

For example, if you want to specify the following PostData:

name=John Smith&address=500 1/2 Main Street,

the PostData input element should result in the following string:

name=John%20Smith&address=500%201%2F2%20Main%20Street

For more information about the URL specification, see http://www.rfc-editor.org/rfc/rfc1738.txt.

Send HTTP ResponseSend HTTP Response is a synchronous activity that sends a response to a previously received HTTPrequest. This activity is used in conjunction with the HTTP Receiver process starter activity and theWait for HTTP Request activity. The default status line returned by this activity is "200 OK".

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Reply For The Wait for HTTP Request activity or HTTP Receiver process starter activitythat received the request. This is a list of available activities that can receiveHTTP requests.

167

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 168: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Flush Response You can specify whether the response is to be flushed after each Send HTTPResponse activity.

By default, this property is not selected. This check box is useful when there area large number of Send HTTP Response activities in a job. In such cases, theClose Connection check box is selected in the last activity to indicate theresponse is complete.

However, selecting the Flush Response check box overrides this behavior andcauses the response to be flushed after each Send HTTP Response activity.

CloseConnection

Specifies that this activity contains the last part of an HTTP response. This field isused when you have more than one Send HTTP Response activities in a processand each activity sends a part of the response to the client. All Send HTTPResponse activities in a process should have this check box clear, except the lastSend HTTP Response activity. Select this check box for the last Send HTTPResponse activity to indicate the response is complete.

Select this check box, if the entire response is sent by only one Send HTTPResponse activity in the process.

Description

Provide a short description for the activity.

Input Editor

Input Editor tab describes the data structure for the headers of the HTTP response. You can use thedefault structure, or you can alter the structure, if the outgoing response has a specific data structure forthe header of the request.

The header structure is defined by the HTTP protocol. See the HTTP Protocol specification for moreinformation about the fields and content of the header of a HTTP request. You can obtain thisspecification at www.w3.org.

The following are the default header fields.

Header Datatype Description

StatusLine string This field is the first line of a response message. This consistsof the protocol version, a numeric status code, and the textphrase explaining the status code.

See the HTTP specification for more information about statuscodes in HTTP responses.

Content-Type string This field indicates the media type of the entity body sent tothe receiver. The media types are described in the HTTPspecification. An example of the media type is: text/html;charset=ISO-8850-4.

By default this item is set to text or html. If you are usingthis activity and the Retrieve Resources activity to retrieve aWSDL file, you should set the type to text or xml whenspecifying values on the Input tab.

168

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 169: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Header Datatype Description

Set-Cookie string See the HTTP specification for more information about thisfield.

Pragma string This field is used to include implementation-specificdirectives that might apply to the receiver. See the HTTPspecification for more information about using this field.

Location string This field is used to redirect the receiver to a location otherthan the RequestURI for the completion of the request or foridentifying a new resource.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations. For details about conversations, refer to Application Development.

Input

The following is the input for the activity.

Input Item Datatype Description

binaryContent binary The binary content of the response to the request.

asciiContent string The ASCII content of the response to the request.

Headers complex The fields of the header specified on the Input Editor tab. Seethe description of the Input Editor tab for more informationabout these items.

Only the first Send HTTP Response activity in theprocess can set the Headers element. If your processcontains multiple Send HTTP Response activities, theheaders are set by the first activity and this element isignored for all subsequent activities.

169

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 170: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

DynamicHeaders

complex The dynamic header is an additional header parameter to addruntime headers to the outgoing HTTP messages. This elementis specified on the Input tab. DynamicHeaders consists of thefollowing information:

● Name: the name of the header

● Value: the value of the header

You can consider the following overriding conditions:

● Overrides the value of the HeaderName with the valuefound in the DynamicHeaders, if it is a non-repeatingheader. If more than one occurrence of this header is foundunder DynamicHeaders, it throws the following exception:The header [ headerName ] is defined as non-

Repeating Header in Input Editor. This header

cannot have multiple occurences in DynamicHeaders.

● If it is a repeating element, add the respective name valuepairs under DynamicHeaders. This is added to the existinglist maintained for this element.

● For a repeating element, if the new header name is not foundunder the "Headers" section in TIBCO Business Studio, thefollowing is added into the HTTP headers.

— Shows only one value, if found once in theDynamicHeaders.

— Shows an array of values, if found repeating inDynamicHeaders.

mimeEnvelopeElement

complex This element contains the message attachments.

This element contains a repeating element named mimePart thatcontains each mime attachment.

170

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 171: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

mimeHeaders complex This element contains the mime header for each mimePart.mimeHeaders can contain the following information:

● content-disposition: to suggest a filename for an attachment,use "*;filename=<filename>" in this element.

The HTTP servers may alter or ignore thesuggested name.

● content-type

● content-transfer-encoding

● content-id

● any element

See http://www.faqs.org/rfcs/rfc2045.html for more informationabout MIME headers and their syntax.

When the content type is specified as "text/*" (forexample, "text/xml"), the attachment content iseither the textContent input element or the file namestoring the attachment is in the fileName inputelement. When the content type is anything other than"text/*", the attachment content is in either thebinaryContent input element or the file name storingthe attachment is in the fileName input element.

binaryContent|

choice This element is the content of the attachment when theattachment is binary data.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

HttpCommunicationExceptio

n

An HTTP exception occurred when sending the response.

171

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 172: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

JAVA Palette

The Java palette has activities for executing Java code as well as converting between Java objects andXML documents.

Configuring JAVA in BusinessWorks Application ModuleTo access JAVA code in TIBCO ActiveMatrix BusinessWorks , you need to configure the TIBCOActiveMatrix BusinessWorks application module with JAVA nature.

New Project

To configure a new project with JAVA nature:

Procedure

1. On the menu bar, click icon.This opens the New BusinessWorks Application Module wizard.

2. Specify Project name and select the Use Java configuration check box and click Finish.

In Project Explorer you see a JRE System Library <version> folder created in your project.

172

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 173: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Existing Project

To configure an existing project with JAVA nature:

1. In Project Explorer, right-click on the project and select Configure > Convert to JavaProject.

2. Import and execute the existing JAVA source (which resides in the JAR file) inside the sameapplication module.

3. In the TIBCO ActiveMatrix BusinessWorks 6 application module (which has java nature),select the lib folder.

4. Right-click and select Import > Import > General > File System.

5. Click the Browse button of the From directory field and provide the location of jar file.

6. Now click the Browse button of the Info folder field and select the jar file you want toimport to the lib folder, and click Finish.

173

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 174: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

This copies and places the jar file in the application module's lib directory and adds it to theclasspath.

Converting JAVA Class to XML SchemaThis topic lists the rules that need to be followed when converting Java class to XML schema.

The Java class is converted to an XML schema using the following rules:

● The Java class public member should not have the public getter and setter methods for it.

● The Java class member public variable name is mapped to an XML element with the same name. Forexample, a Java class member variable declared as public int ZipCode is mapped to an XML elementnamed ZipCode.

● The Java Bean accessors and modifiers are mapped to appropriate XML element names. Forexample, a Java class method public int getBalance() or public void setBalance(int Balance) aremapped to an XML element named Balance.

● Only one XML element is created regardless of how many members of the Java class share the samename. For example, there may be an attribute named MySalary and accessors named getMySalary()and setMySalary(). This translates to one element named MySalary in the resulting XML document.

● All Java primitive types are supported. Datatypes that extend java.util.Collections, are alsosupported (for example, List, ArrayList, and Vectors). Arrays (for example, int[ ] and string[ ]) arealso supported.

● Use Java generics and provide the type information while declaring and creating the collection forexample,

Instead of using List list = new ArrayList();

use generics: List<String> list = new ArrayList<String>();

● The datatype java.util.Map or any types that extend java.util.Map are not supported. Forexample, HashMap is not supported.

Creating Custom XPath FunctionsThis topic provides the detailed procedure of creating a custom XPath function group. You can use theCustom XPath Function wizard to create your custom XPath function group. It uses thecom.tibco.xml.cxf.customXPathFunction extension.

Procedure

1. Launch TIBCO Business Studio and select File > New > Project.

2. In the New Project window, select Plug-in Project and click Next.

174

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 175: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

3. Specify a name for the project that reflects the XPath functions, for example,MyCustomXPathFunctions. Retain all other default selections and click Next.

4. On the Plug-in Content page, locate the Options group and ensure This plug-in will makecontributions to the UI is selected.

5. Accept all of the defaults and click Next.

175

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 176: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

6. Select Custom XPath Function Wizard on the Templates page, and click Next.

176

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 177: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

7. In the New Custom XPath Function Group plug-in project window provide values for the followingfields and click Next to continue.

● Category: The name of the category that includes the custom XPath functions

177

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 178: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

● Prefix: The prefix for the functions

● Namespace: The namespace for the functions

● Help Text: The description of the functions

8. Specify the XPath Function and XPath Function Parameters in the XPath Function Group CreationSection dialog.

9. Click the Add button located on the right side of the XPath Functions table and provide values for:

● Name: the name of the function

● Return Type: the return type of the function

● Description: the description of the function

10. Click the Add button located on the right side of the XPath Function Parameters table. Specifyvalues for the following parameters and click Finish:

● Name: the name of the parameter

● Type: the data type of the parameter

● Optional: select the check box if the parameter is optional.

11. The Open Associated Perspective dialog displays. Click Yes.TIBCO Business Studio opens in Plug-in and the Plug-in Development perspective.

12. Open the Java class in the newly created Custom XPath function plug-in and implement the CustomXPath function.

178

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 179: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Now your Custom XPath function is ready for use at design time and run time.

Using Custom XPath Function at Design Time and Run TimeYou can use the newly created Custom XPath functions at design time and run time.

Making Your Custom XPath Function Available at Design Time

Procedure

1. Right-click the Custom XPath Function Plug-in project and select Export from the menu. On theExport window, select Plug-in Development > Deployable plug-ins and fragments and click Next.

2. Select the Install into host Repository radio button on the Deployable plug-ins and fragmentsscreen and click Finish.

179

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 180: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

The Custom XPath function plug-in is exported into the TIBCO Business Studio™ instance to use atdesign time.

3. You may be prompted with the following security warning message. Click OK.

4. Click Restart Now when the following window is displayed.

5. In TIBCO Business Studio™, the Custom XPath function is available for use in any activity mapperin a process.

180

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 181: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Making Custom XPath Function Available at Run Time

● After using the Custom XPath function in an activity in a process at design time, include theCustom XPath function plug-in the application project.

● After including the Custom XPath Function Plug-in in the application project, test it in the

Debugger and then, export it as an EAR, and deploy at run time.

Deleting Custom XPath FunctionsThis topic lists the steps to uninstall a Custom XPath function so that it is not visible in the mapper.

Procedure

1. On the menu bar, click Help > About TIBCO ActiveMatrix BusinessWorks. On Mac, this is locatedunder the "BusinessWorks" menu.

181

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 182: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

2. Click Installation Details.The following dialog box is displayed.

3. Select the Custom XPath function you want to uninstall, and click the Uninstall button.

4. Restart the workspace.

Java InvokeJava Invoke is a synchronous activity that can be used to invoke a Java class method. You can constructan instance of the specified Java class, if you invoke the constructor for the class.

General

The General tab has the following fields.

182

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 183: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty Description

Name None The name to be displayed as the label for the activity in theprocess.

Java GlobalInstance

None Specify the resource in this field to execute methods on sharedJava objects created by Java Global Instance resources.

Refer to Java Global Instance for more information about theshared Java objects created by Java Global Instance resources.

This disables the options on the Advanced tab. In the drop-down list in the Method field, you can select the method toexecute.

If the configuration of the Java Global Instanceresource changes, select and view any Java Invokeactivities in your process that reference the JavaGlobal Instance to automatically propagate thechanges. An exception is raised if you attempt to testyour process before refreshing the reference to theJava Global Instance. You may need to manuallyupdate the mappings of any input or output, if youselect a new method with a different signature in theJava Global Instance resource.

MultiOutput None Select this check box to specify multiple parameters in the Javainvoke method.

Class Name None The declared Java class whose method you want to execute.Use the Browse A Class button to select the class, or use theJava Global Instance field to specify a shared Java object.

Method None The method in the selected Java class you want to execute.

You can use the drop-down list to select a different method inthe selected Java class, if required.

183

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 184: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty Description

Parameters None The parameters for the Java Invoke activity. This element isavailable when the MultiOutput check box is selected.

This element contains a list of input and output parameters thatare required for the Java invoke. This element is not availablewhen the selected method has no parameters.

Each Input and Output parameter has the following fields.

● Field Type: It can be either In or Out.

● Field Name: The name of the parameter. When creating anew parameter, provide the name of the parameter. Thesetter/getter methods get automatically generated for thesame, or select the options from the drop-down list of thenames of class member variables that have setter/gettermethods.

● Type: The datatype of the parameter. The default is string.Specify one of the supplied Java primitive types, or specifyObject Reference when accepting a Java object from anotherJava activity as input.

● Occurrence: Specify whether the parameter is Required,Optional, or Repeating.

● Click to add the input parameter.

● Click to add the output parameter.

● Click to delete the parameter.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following fields.

184

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 185: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty Description

Instantiate thereferenced class

None This field controls one of the following:

● The referenced class must be constructed when the activityis executed,

● An object reference must be supplied in the activity’s inputschema.

Select this check box, if you want to construct the referencedclass using the default constructor when the activity executes.In this case, the referenced class is not included in theactivity’s input schema.

Do not select this check box, if you want to provide an objectreference for the class name specified on the General tab. Theobject must be created and contained in the output schema ofa previously executed activity.

In this case, the referenced class is included in the activity’sinput schema.

This check box is not available when MultiOutput on theGeneral tab is selected.

Cache the object None This option is available only when the Instantiate thereferenced class check box is selected.

Select this check box to specify that all instances of this JavaInvoke activity share the instance of the instantiatedreferenced class. A cached referenced object is kept in thememory until the process engine terminates.

Not selecting this check box leads to each instance of this JavaInvoke activity creating its own copy of the referenced class.

Invoke CleanupMethod

None This check box is available only when the Cache the objectcheck box is selected.

When selected, you can invoke a method on the cached objectbefore the object is released from memory, when the processengine terminates. You can perform cleanup activities, such asclosing connections, updating database tables, and so on.

Select this check box to display the Cleanup Method field.

Cleanup Method None This field is available only when the Invoke Cleanup Methodcheck box is selected.

Using this field you can specify the name of the method toinvoke, before the cached class in memory is released.

The selected method cannot contain any parameters, thereforeonly methods with no parameters are listed in this field. Anyvalues returned by the selected method are ignored, butexceptions raised by the selected method are sent to the log.

185

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 186: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for the activity.

Input Item Datatype Description

Parameters varies This element contains a list of input parameters that arerequired for the Java invoke Method selected on the Generaltab.

This element is not available when the selected method has noparameters.

Output

The following is the output of the activity.

Output Item Datatype Description

MethodReturnValue varies The Output tab has the return value specified for the Javainvoke Method selected on the General tab.

This element is not available for methods that return void.

Parameters varies The Output tab lists all output parameters specified on theGeneral tab.

Selecting MultiOutput on the General tab makes this outputitem available.

Fault

The Fault tab lists the exceptions thrown by this activity. Selecting a method to invoke lists theexceptions thrown by the method.

In theJava Invoke activity:

● If MultiOutput is selected, the Fault tab throws the InvocationException exception with errorschema element as msg,msgCode,methodName,exceptionClassName,exceptionMessage.

● If MultiOutput is not selected, the Fault tab shows the exceptions thrown by the method selected init with error schema elements as: 1:Java exception Object 2:exceptionClassName3:exceptionMessage

● If MultiOutput is not selected and method does not throw any exception, again the Fault tab showsInvocationException with error schema element as msg, msgCode, methodName,exceptionClassName, and exceptionMessage.

Error Schema Element Datatype Description

msg string The error message. For details, refer to Error Codes.

msgCode string The error code. For details, refer to Error Codes.

methodName string The name of the Java method that raised the exception.

186

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 187: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Error Schema Element Datatype Description

exceptionClassName string The exception class name.

The value of this element is obtained by calling the<exception>.getClass().getName() method.

exceptionMessage string The exception message.

The value of this element is obtained by calling the<exception>.getMessage() method.

Java Process StarterJava Process Starter is a process starter activity. You can use this activity to create a custom starterwritten in Java.

Java Process Starter Abstract Class

The JavaProcessStarter abstract class defines the interface of your Java Process Starter with theActiveMatrix BusinessWorks™ application. You must define an implementation for the followingmethods:

● init() : this method is called when the process engine starts up. This method should initialize anyresource connections. You could also specify a Java global instance on the Advanced tab thatinitializes resource connections. Java global instances are also loaded and initialized duringapplication start up. You can call this .getJavaGlobalInstance() to obtain the Java global instanceresource in your process starter code.

● onStart() : this method is called by the process engine to activate the process starter. This methodshould activate any event notifier or resource observer code. The notifier or observer code can thencall the onEvent() method to start a process instance.

● onStop(): this method is called by the application to deactivate the process starter. This methodshould deactivate any event notifier or resource observer code.

● onShutdown(): this method is called by the application when the AppNode shuts down. Thismethod should release any resources and resource connections and perform any required clean upoperations.

The following methods are already implemented and can be used in your code:

● onEvent(Object object): this method is called when a listener or resource observer catches a newevent. The input to this method is a Java object containing the event data.

● getGlobalInstance(): this method returns an object reference to the Java global resource specified onthe Advanced tab of the process starter. This is useful if you want to place initialization code orother shared information in a Java global resource instead of in the init() method of this class.

● onError(): this method throws the exception specified in the input parameter. Use this method topropagate an error to the ActiveMatrix BusinessWorks™ process instance when a listener orresource observer fails to generate an event.

Passing Java Objects Between Java Activities

You can create instances of Java objects in Java Invoke activity or by using the Java Invoke or XML ToJava activities. These Java objects can be passed using an output parameter to another activity later inthe process definition. The Java Invoke activity receiving a Java object accepts the object into an inputparameter. Map the output Java object to the input object of the receiving Java Invoke object.

Any Java objects passed by input and output parameters between activities should have the capabilityto serialize.

187

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 188: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

General

The General tab has the following fields.

FieldProcessProperty Description

Name No The name to be displayed as the label for the activity in theprocess.

Class Name No The name of the compiled Java class that is implemented byextending the JavaProcessStarter abstract class.

Use the Browse a Class button to select the class from thespecified class library. This shows the classes that extend fromthe JavaProcessStarter abstract class.

Initialize withParameters

No Selecting this check box displays the Init Method field and InitParameters table.

Init Method No Selecting the Initialize with Parameters check box displays thisfield.

You can use the drop-down list, if required, to select a differentmethod in the selected Java class.

Init Parameters No Specify default values in this table for the input parameters ofthe init() method. Each input parameter has three fields:

● Parameter Name: the name of the parameter.

● Parameter Type: the datatype of the parameter.

● Parameter Value: specify a default value for the parameter.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following fields.

Field Description

Sequence key This field can contain an XPath expression that specifies which processesshould run in sequence. Process instances with sequencing keys thatevaluate to the same value are executed in the sequence the processinstance was created.

Custom Job Id This field can contain an XPath expression that specifies a custom job ID forthe process instance.

188

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 189: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Java Global Instance A Java global instance resource. Specify a value in this field to reference aJava global instance resource in your JavaProcessStarter implementationclass. Refer to Java Global Instance for details.

You can use the getGlobalInstance() method to obtain a reference to theJava global instance resource.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

For more information about conversations, refer to Application Development guide.

Output

The following is the output of the activity.

Output ItemDatatype Description

javaObject varies The Java object that was passed to the onEvent() method.

By default, this element is a Java object reference.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Error SchemaElement Datatype Description

msg string The ActiveMatrix BusinessWorks™ error message. For details,refer to Error Codes guide.

msgCode string The ActiveMatrix BusinessWorks™ error code. For details, referto Error Codes guide.

Java To XMLJava To XML is a synchronous activity. You can use this activity to convert Java object's data membersinto an XML document.

If the class does not have a public data member and only has a Java bean modifier that sets the data, theinput schema contains an element for the modifier, but the resulting XML document has no value setfor the corresponding element. For example, the Java object has a method declared as public int setID(),but there is no method for getting the ID and the data member ID is not public. In this case, an elementnamed ID in this activity’s output schema exists, but that element has no value because there is nopublic mechanism for getting the data.

General

The General tab has the following fields.

189

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 190: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty? Description

Name No The name to be displayed as the label for the resource.

Class Name No The class name in the Java schema to use.

Use the Browse button to bring up the dialog to select the Javaclass.

Click the Reload button to regenerate the schema.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following fields.

Field Description

Instantiate thereferenced class

This field controls one of the following:

● The referenced class must be constructed when the activity isexecuted.

● An object reference must be supplied in the activity’s input schema.

Select this check box to construct the referenced class using the defaultconstructor when the activity executes. In this case, the referenced classis not included in the activity’s input schema.

Do not select this check box if you want to provide an object referencefor the class name specified on the General tab. The object must becreated and contained in the output schema of a previously executedactivity.

In this case, the referenced class is included in the activity’s inputschema.

Cache the object This option is available only when you select the Instantiate thereferenced class check box.

Select this check box to specify that all instances of this Java Invokeactivity share the instance of the instantiated referenced class. A cachedreferenced object is kept in the memory until the process engineterminates.

Not selecting this check box leads to each instance of this Java To XMLactivity creating its own copy of the referenced class.

Input

The following is the input for the activity.

190

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 191: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input item Datatype Description

referenced class Java Object An object reference to the Class Name specified on theGeneral tab. This element is only available when you do notselect the Instantiate the referenced class check box on theAdvanced tab.

Output

The following is the output of the activity.

Output Item Datatype Description

XML Schema varies The output is the XML schema from the converted Java object.

The elements in the schema display in alphabetical order.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and possible the corrective actions to take.

Fault Thrown When...

JavaToXMLConversionExceptio

n

An error occurred when converting the Java object to XML.

XML To JavaXML to Java is a synchronous activity. You can use this activity to create an instance of a Java objectbased on data from an XML document. The XML schema for providing the input to the Java object orJava schema specified on the General tab of this activity.

The specified Java class must meet the following requirements:

● The Java class must have a public default constructor (that is, a constructor with no arguments).

● The Java class must be eligible to be serialized (that is, the class must implement or be a subclass of aclass that implements java.io.Serializable).

If the class does not have a public data member and only has a Java bean accessor that retrieves thedata, the input schema contains an element for the accessor. However, the resulting Java object has novalue set for the member. For example, the object has a method declared as public int getID(), but thereis no method for setting the ID and the data member ID is not public. In this case, an element named IDin this activity’s input schema, but mapping a value to the element does not result in setting the IDmember of the output Java object. This is because there is no public mechanism for setting the data.

General

The General tab has the following fields.

FieldModuleProperty? Description

Name No The name to be displayed as the label for the resource.

191

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 192: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty? Description

Class Name No The class name in the Java schema to use.

Use the Browse button to bring up the dialog to select the Javaclass.

Description

Provide a short description of the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

XML Schema varies The XML schema you want to convert to a Java object. Thecontent of this schema depends upon the Java class or Javaschema defined in the Class Name field on the General tab.

The elements in the schema display in an alphabetical order.

Output

The following is the output of the activity.

Output Item Datatype Description

referencedclass

Java Object A Java object that is created out of the XML schema.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the possible corrective actions.

Fault Thrown When..

XMLToJavaConversionExceptio

n

An error occurred when converting the XML schema to a Javaobject.

192

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 193: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

JDBC Palette

The JDBC palette contains activities for querying, updating, or calling stored procedures in thedatabase.

JDBC Call ProcedureJDBC Call Procedure is an asynchronous activity that calls a database procedure or function using thespecified JDBC connection. If this activity is not part of a transaction group, the SQL statement iscommitted after the activity completes.

If this activity is part of a transaction group, the SQL statement is committed or rolled back with theother JDBC activities in the group at the end of the transaction.

To override the default behavior of transaction groups for certain JDBC activities in a transaction group,select the Override Transaction Behavior check box on the Advanced tab. This specifies that theactivity is outside of the transaction and the SQL statement is committed when the activity completes,even if the activity is in a transaction group.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

JDBC SharedResource

Yes The path to the shared resource containing the JDBCconnection information.

See JDBC Connection for more information about JDBCresources.

Timeout Yes The time (in seconds) to wait for the procedure call tocomplete. If the call does not complete in the specified timelimit, it returns an error.

Maximum Rows Yes The maximum number of rows to retrieve. To retrieve allrows, specify 0.

Description

Provide a short description for the activity in this field.

Procedure

The Procedure tab has the following fields.

193

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 194: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Schema Yes The schema in which the procedure resides. This name is used toresolve naming conflicts, if more than one schema in the database hasthe selected procedure with the same name.

Configure the Schema field to use a Process Property or a ModuleProperty if a schema has been defined for the project, and you knowthe schema name. To search for a schema, configure the field to use aLiteral Value , and click the Browse button to select a schema fromthe database that is using the specified JDBC Connection.

Catalog orPackage

Yes The catalog or package in which the procedure resides. This name isused to resolve naming conflicts if more than one catalog or packagein the database has selected procedures with the same name.

Configure the Catalog or Package field to use a Process Property or aModule Property if a catalog or package has been defined for theproject, and you know their names. To search for a catalog orpackage, configure the field to use a Literal Value , click the Browsebutton, and select a catalog or package from the database using thespecified JDBC Connection. If a schema is specified in the Schemafield, only catalogs or packages in the specified schema are listed.

This field is only applicable to databases with more than one catalogand package. See your database documentation for more informationabout catalogs and packages.

Procedure/ Function

No The name of the database procedure or user-defined function to call.

Click the Browse button to select the database for availableprocedures or functions after specifying the JDBC Connection field.

Click the Refresh button to retrieve the changes from the database, ifyou change the parameters or signatures while editing your project.

The list of available procedures and functions is limited by the valuessupplied in the Schema and Catalog or Package fields.

Parameters

No This field displays the parameters for the procedure and you canoverride the data type (IN, OUT, IN/OUT) for each parameter in theDirection column.

The parameters listed in the table show the Parameter Name, DataType, and the Direction (IN, OUT, IN/OUT) of the each parameter.All IN and IN/OUT parameters listed in the Parameters table areshown in the Input tab of the activity for the user to provide values.

Advanced

The Advanced tab has the following fields.

194

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 195: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

ThreadPoolSharedResource

Specifies a queue of threads available to run a queue of tasks. Thread poolsare used to improve performance when executing large numbers ofasynchronous tasks by reducing per task invocation overhead, provide ameans of bounding, and managing the resources consumed when executinga collection of tasks.

Override TransactionBehavior

Overrides the default behavior of a transaction group. If this activity is in atransaction group, the activity is normally committed or rolled back with theother transactional activities.

Select this check box to specify that this activity is not part of the transactiongroup and is committed when it completes. Also, select this check box to usea separate database connection to perform the activity and commit the SQLstatement.

Override JDBCConnection

Selecting this option overrides the default datasource connection, and allowsfor SQL queries to be executed against the optional datasource.

After selecting this option, the sharedResourceName field is enabled underthe Input > Data Source tab. From the sharedResourceName field, type thecomplete path with the name of the optional datasource, which can be foundunder the Resources folder. For example, if a JDBC shared resource islocated at Resources > Package_Name > JDBC_SR_Name, then the valueyou enter should be Package_Name.JDBC_SR_Name. The value you enterin the XPath Expression field is case sensitive and must be a string.

To avoid mapping issues, ensure the optional datasource maintains astructure that is identical to the default database, and that both datasourcesare using the same datatypes.

Transactions between multiple datasources is not supported.

Interpret EmptyString as Null

Specifies how empty strings in the activity’s input elements should behandled. Selecting this check box sends the nulls to the database whereempty strings are supplied.

Empty strings are treated as zero-length strings, if this check box is notselected. Whether you use this option or not, you can still use XPath to setinput elements explicitly to null.

ResultSets UseSchema

Specifies that the design-time must try to fetch the schema when a resultsetis expected from a stored procedure call.

When selected, TIBCO Business Studio tries to invoke the stored procedurewith default values and get the metadata for the resultset.

If the check box is not selected, or if TIBCO Business Studio does not get anymetadata, the results are displayed as ’unknown resultsets’.

Input

The input for this activity is dependent upon the input parameters of the database procedure.

195

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 196: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

inputSet complex The input parameters of the database procedure. Thedatatype contained in this element varies depending uponthe parameters specified for the database procedure.

The IN and IN/OUT parameters displayed in the Parameterstable on the Procedure tab are displayed here for the user toset values.

ServerTimeZone string Specifies the time zone for the database server.

timeout number The time (in seconds) to wait for the procedure call tocomplete. The call if not completed in the specified time limit,returns an error.

maxRows number The maximum number of rows to retrieve. To retrieve allrows, specify 0.

Output

The output of the activity is depends upon the output parameters of the database procedure.

Output Item Datatype Description

outputSet complex The output of the database procedure. The datatypecontained in this element varies depending upon what thedatabase procedure returns.

UnresolvedResultSets

string The output of the database procedure may return other resultsets. These result sets are returned in this output item as anXML string. Create a schema resource to describe these resultsets, and then use the Parse XML activity to parse the XMLbased on the schema. You can then use the parsed output insubsequent activities.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the possible corrective action to take.

Fault Thrown When..

JDBCConnectionNotFoundException An error occurred when attempting to connectto the specified database.

InvalidTimeZoneException An invalid time zone was specified.

JDBCSQLException An SQL error occurred.

LoginTimedOutException A timeout occurred while attempting toconnect to the database.

ActivityTimedOutException The operation times out.

196

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 197: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

JDBC QueryJDBC Query is an asynchronous activity that performs the specified SQL SELECT statement. If thisactivity is not part of a transaction group, the SQL statement is committed after the activity completes.

If this activity is part of a transaction group, the SQL statement is committed or rolled back with theother JDBC activities in the group at the end of the transaction.

If you want to override the default behavior of transaction groups for certain JDBC activities in atransaction group, you can select the Override Transaction Behavior check box on the Advanced tab.This specifies that the activity is outside of the transaction and the SQL statement is committed whenthe activity completes, even if the activity is in a transaction group.

General

The General tab has the following fields.

Field

Literal Value/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

JDBC SharedResource

Yes The path to the shared configuration resource containing theJDBC connection information. For details, refer to JDBCConnection

Timeout(sec) Yes The time (in seconds) to wait for the query to complete. If thequery does not complete in the given time limit, an error isreturned.

Maximum rows Yes The maximum number of rows to retrieve. To retrieve allrows, specify 0.

Description

Provide a short description for the activity.

Statement

The Statement tab has the following fields.

Field Description

Statement This is the SQL SELECT statement to perform in the database. You can use aSQL Builder wizard to build the query for the desired database.

197

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 198: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Prepared Statement The Prepared Statement contains the Parameter Name and Data Type fields.All the parameters defined in the Prepared Statement table are shown in theInput tab of the activity for the user to provide values.

Each prepared statement corresponds to the question mark in the sameposition in the SQL statement. That is, the first prepared statement in the listcorresponds to the first question mark, the second prepared statement in thelist corresponds to the second question mark, and so on. The warning is forthe purpose of information only. Ensure that the parameters in this fieldcorrectly correspond to the statement.

You can optionally specify names for each prepared parameter. By default, the prepared statements arenamed Parameter1, Parameter2, and so on. You must supply the datatype of each parameter to the SQLstatement, and this datatype is used in the input schema for the statement.

Execute the Query Button

Runs the JDBC Select statement entered in the Statement field and shows the results in the ResultsView. These results are persisted in the workspace.

SQL Button

Launch Eclipse SQL Builder. For more information on using the SQL Builder to visually build queries,go to: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.datatools.sqltools.doc.user%2Fdoc%2Fhtml%2Fasc1229700427574.html

Fetch Button

Using the Fetch button on this activity, you can synchronize the activity with the contents of thedatabase. When you first configure a JDBC activity, click the Fetch button to retrieve the schema for theoutput result set before applying your changes by saving your project.

After you have configured your activity, the Fetch button is useful when you make a change to thedatabase while editing a process containing this activity in ActiveMatrix BusinessWorks ™ . The Fetchbutton synchronizes with the database and changes the output schema, if necessary.

Advanced

The Advanced tab has the following fields.

Field Description

ThreadPoolSharedResource

Specifies a queue of threads available to run a queue of tasks. Thread poolsare used to improve performance when executing large numbers ofasynchronous tasks by reducing per task invocation overhead, provide ameans of bounding, and managing the resources consumed when executing acollection of tasks.

OverrideTransactionBehavior

Overrides the default behavior of a transaction group. If this activity is in atransaction group, the activity is normally committed or rolled back with theother transactional activities.

This activity is not part of the transaction group and is committed when itcompletes, when this check box is selected. Selecting this option uses aseparate database connection to perform the activity and commit the SQLstatement.

198

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 199: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Override JDBCConnection

Selecting this option overrides the default datasource connection, and allowsfor SQL queries to be executed against the optional datasource.

After selecting this option, the sharedResourceName field is enabled underthe Input > Data Source tab. From the sharedResourceName field, type thecomplete path with the name of the optional datasource, which can be foundunder the Resources folder. For example, if a JDBC shared resource is locatedat Resources > Package_Name > JDBC_SR_Name, then the value you entershould be Package_Name.JDBC_SR_Name. The value you enter in theXPath Expression field is case sensitive and must be a string.

To avoid mapping issues, ensure the optional datasource maintains astructure that is identical to the default database, and that both datasourcesare using the same datatypes.

Transactions between multiple datasources is not supported.

Use Nil Specifies whether NULLs are represented as optional schema elements orwhether each item that can contain a NULL has subitems.

Interpret EmptyString as Null

Specifies how empty strings in the activity’s input elements should behandled. Selecting this check box sends the nulls to the database whereempty strings are supplied. Empty strings are treated as zero-length strings,when this check box is not selected. Whether you use this field or not, youcan still use XPath to set input elements explicitly to null.

Many databases treat empty strings and nulls as the same, so thisfield does not affect how the database interprets empty strings.

Process In Subsets Selecting this check box specifies that you want to process the result set insmaller batches rather than processing the entire result set at once. When thischeck box is selected, the subsetSize input element is displayed for you tospecify the size of each batch of records you want to process. Also, thelastSubset output element is displayed and is set to true when the last batchof records is being processed.

Not selecting this check box returns the whole result set.

Input

The following is the input for the activity.

Input Item Datatype Description

ServerTimeZone string Specifies the time zone for the database server.

timeout number The time (in seconds) to wait for the query to complete. If thequery does not complete in the given time limit, an error isreturned.

maxRows number The maximum number of rows to retrieve. To retrieve all rows,specify 0.

199

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 200: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output

The following is the output of the activity.

Output Item Datatype Description

resultSet complex The root class for the output of the JDBC Query activity. Thisclass contains all output items for the activity.

Record complex The result of the database query. The contents of the Recordelement depends upon the columns returned by the query.

Fault

The Fault tab lists the possible exceptions thrown by this activity. Refer to the Error Codes guide formore information about error codes and the corrective action to take.

Fault Thrown When..

JDBCConnectionNotFoundException An error occurred when attempting to connect to thespecified database.

InvalidTimeZoneException An invalid time zone was specified.

JDBCSQLException An SQL error occurred.

LoginTimedOutException A timeout has occurred while attempting to connect tothe database.

InvalidSQLTypeException A parameter’s datatype does not match the datatype ofthe table column.

DuplicatedFieldNameException A duplicate field name was specified.

ActivityTimedOutException The operation has timed out.

JDBC UpdateJDBC Update is an asynchronous activity that performs the specified SQL INSERT, UPDATE, orDELETE statement.

If this activity is not part of a transaction group, the SQL statement is committed after the activitycompletes. If this activity is part of a transaction group, the SQL statement is committed or rolled backwith the other JDBC activities in the group at the end of the transaction.

If you want to override the default behavior of transaction groups for certain JDBC activities in atransaction group, you can select the Override Transaction Behavior check box on the Advanced tab.This specifies that the activity is outside of the transaction and the SQL statement is committed whenthe activity completes, even if the activity is in a transaction group.

The SQL statement is committed after the activity completes.

General

The General tab has the following fields.

200

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 201: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

JDBC SharedResource

Yes The path to the shared resource containing the JDBC connectioninformation.

For details, refer to JDBC Connection.

Timeout Yes The time (in seconds) to wait for the query to complete. If thequery does not complete in the given time limit, an error isreturned.

Description

Provide a short description for the activity.

Statement

The Statement tab has the following fields.

Field Description

Statement This is an SQL INSERT UPDATE OR DELETE statement to perform in thedatabase. You can use the SQL Builder wizard to build the query for thedesired database.

Prepared Statement The Prepared Statement contains the Parameter Name and Datatype fields.All the parameters defined in the Prepared Statement table are shown in theInput tab of the activity for the user to provide values.

Each prepared statement corresponds to the question mark in the sameposition in the SQL statement. That is, the first prepared statement in the listcorresponds to the first question mark, the second prepared statement in thelist corresponds to the second question mark, and so on. The warning is forinformational purposes only, you must make sure the parameters in this fieldcorrectly correspond to the statement.

Advanced

The Advanced tab has the following fields.

Field Description

ThreadPoolSharedResource

Specifies a queue of threads available to run a queue of tasks. Thread poolsare used to improve performance when executing large numbers ofasynchronous tasks by reducing per task invocation overhead, provide ameans of bounding, and managing the resources consumed when executing acollection of tasks.

201

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 202: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Insert if recorddoesn't exist

Select this check box to insert the record if it does not exist in the database.

OverrideTransactionBehavior

Overrides the default behavior of a transaction group. If this activity is in atransaction group, the activity is normally committed or rolled back with theother transactional activities.

If you select this check box, this activity is not part of the transaction groupand is committed when it completes. Selecting this option uses a separatedatabase connection to perform the activity and commit the SQL statement.

Override JDBCConnection

Selecting this option overrides the default datasource connection, and allowsfor SQL queries to be executed against the optional datasource.

After selecting this option, the sharedResourceName field is enabled underthe Input > Data Source tab. From the sharedResourceName field, type thecomplete path with the name of the optional datasource, which can be foundunder the Resources folder. For example, if a JDBC shared resource is locatedat Resources > Package_Name > JDBC_SR_Name, then the value you entershould be Package_Name.JDBC_SR_Name. The value you enter in theXPath Expression field is case sensitive and must be a string.

To avoid mapping issues, ensure the optional datasource maintains astructure that is identical to the default database, and that both datasourcesare using the same datatypes.

Transactions between multiple datasources is not supported.

Interpret EmptyString as Null

Specifies how empty strings in the activity’s input elements should behandled.

Selecting this check box sends the nulls to the database where empty stringsare supplied.

When the check box is not selected, empty strings are treated as zero-lengthstrings. Whether you use this check box option or not, you can still use XPathto set input elements explicitly to null.

Many databases treat empty strings and nulls as the same, so thischeck box does not affect how the database interprets emptystrings.

Batch Update Selecting this check box signifies that you want to perform multiplestatements by supplying an array of records as input to the activity whereeach record matches the prepared parameters for the statement. Thestatements are performed in one batch at the end of the activity’s execution.

If you do not select this check box, the expected input is the list of preparedparameters for the statement (no array of records). Some database driversmay not support batch updates. A JDBCSQLException is thrown, if thedatabase driver does not support batch updates.

Input

The following is the input for the activity.

202

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 203: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

ServerTimeZone string Specifies the time zone for the database server.

timeout number The time (in seconds) to wait for the query to complete. If thequery does not complete in the given time limit, an error isreturned.

Output

The following is the output for the activity.

Output Item Datatype Description

noOfUpdates integer The number of updates performed by the statement specifiedon the General tab.

This element can also return -2 that indicates, in the event of abatch update, that the updates were successful, but it isunknown how many updates were performed.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

JDBCConnectionNotFoundException An error occurred when attempting to connect to thespecified database.

InvalidTimeZoneException An invalid time zone was specified.

JDBCSQLException An SQL error occurred.

LoginTimedOutException A timeout has occurred while attempting to connect to thedatabase.

InvalidSQLTypeException A parameter’s datatype does not match the datatype of thetable column.

ActivityTimedOutException The operation has timed out.

SQL DirectSQL Direct is an asynchronous activity that executes an SQL statement that you supply. With thisactivity you can build an SQL statement dynamically using other activities, then pass the SQLstatement into this activity's input. You can use this activity to execute DDL SQL statements likeCREATE and DROP. You can also execute SQL statements that are not supported by other activities inthe JDBC palette.

If this activity is not part of a transaction group, the SQL statement is committed after the activitycompletes. If this activity is part of a transaction group, the SQL statement is committed or rolled backwith the other JDBC activities in the group at the end of the transaction.

203

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 204: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

JDBC SharedResource

Yes The path to the shared resource containing the JDBC connectioninformation.

For details, refer to JDBC Connection.

Timeout Yes The time (in seconds) to wait for the query to complete. If thequery does not complete in the given time limit, an error isreturned.

Maximum Rows Yes The maximum number of rows to retrieve. To retrieve all rows,specify 0.

Description

Provide a short description for the activity in this field.

Advanced

The Advanced tab has the following field.

Field Description

ThreadPoolSharedresource

Specifies a queue of threads available to run a queue of tasks. Thread poolsare used to improve performance when executing large numbers ofasynchronous tasks by reducing per task invocation overhead, provide ameans of bounding, and managing the resources consumed when executinga collection of tasks.

Override TransactionBehavior

Overrides the default behavior of a transaction group. If this activity is in atransaction group, the activity is normally committed or rolled back with theother transactional activities.

If you select this check box, this activity is not part of the transaction groupand is committed when it completes. Selecting this option uses a separatedatabase connection to perform the activity and commit the SQL statement.

204

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 205: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Override JDBCConnection

Selecting this option overrides the default datasource connection, and allowsfor SQL queries to be executed against the optional datasource.

After selecting this option, the sharedResourceName field is enabled underthe Input > Data Source tab. From the sharedResourceName field, type thecomplete path with the name of the optional datasource, which can be foundunder the Resources folder. For example, if a JDBC shared resource islocated at Resources > Package_Name > JDBC_SR_Name, then the valueyou enter should be Package_Name.JDBC_SR_Name. The value you enterin the XPath Expression field is case sensitive and must be a string.

To avoid mapping issues, ensure the optional datasource maintains astructure that is identical to the default database, and that both datasourcesare using the same datatypes.

Transactions between multiple datasources is not supported.

Input

The following is the input for the activity.

Input Item Datatype Description

statement string The SQL statement you want to execute. You can use anyprocess variables to build the statement dynamically, ifrequired.

ServerTimeZone string Specifies the time zone for the database server.

timeout number The time (in seconds) to wait for the query to complete. If thequery does not complete in the specified time limit, an error isreturned.

maxRows number The maximum number of rows to retrieve. To retrieve all rows,specify 0.

Output

The following is the output of the activity.

Output Item Datatype Description

noOfUpdates string The number of updates performed by the statement specifiedon the General tab.

This element can also return -2 that indicates, in the event of abatch update, that the updates were successful, but it isunknown how many updates were performed.

205

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 206: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

unknownResultSet

string The result of the database statement. The result elementdepends upon what is returned by the statement.

The result set is a list of zero or more rows with zero or morecolumns. Each column contains a name and a value element.You can use XPath expressions to retrieve the desired row andcolumn from the result set. There can be multiple result setsreturned 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 resultset returned by the first statement executed by this activity. Thesecond item in the list of result sets corresponds to the result setreturned by the second statement executed by this activity, andso on.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

JDBCConnectionNotFoundException An error occurred when attempting to connect to thespecified database.

InvalidTimeZoneException An invalid time zone was specified.

JDBCSQLException An SQL error occurred.

LoginTimedOutException A timeout has occurred while attempting to connect to thedatabase.

ActivityTimedOutException The operation has timed out.

206

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 207: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

JMS Palette

Java Message Service (JMS) is a specification about sending and receiving messages between two ormore applications in a Java environment. The JMS palette is used to send and receive JMS messages ina process.

The models supported are:

● Point-to-Point (queues): Message delivered to one recipient

● Publish/Subscribe (topics): Message delivered to multiple recipients

JMS supports these two models by using distinct interfaces within the API for each messaging model.Refer to the documentation of the JMS provider or JMS specifications for more information about JMSand its message models.

Common JMS Properties and HeadersJMS properties comprise message headers and message properties. MessageHeader properties are setby the JMS client sending the message. You can view these after the message is received. You can alsoset MessageProperties on the outgoing messages on the Input tab of the activity that sends messages.

Message Headers

The following table describes the messages headers.

MessageHeadersProperty Dataype Description

JMSDestination string The destination where the message is sent.

JMSReplyTo string The JMS destination where the reply message shouldbe sent.

JMSDeliveryMode string The delivery mode of the message. Can be one of thefollowing:

● PERSISTENT: signifies the messages are stored andforwarded.

● NON_PERSISTENT: messages are not stored andmay 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 providerto be sent. The time is expressed as the amount of time,in milliseconds, since midnight, January 1, 1970, UTC.

JMSExpiration long The expiration time of the message. The time isexpressed as the amount of time, in milliseconds sincemidnight, January 1, 1970, UTC. If set to 0, the messagedoes not expire.

JMSRedelivered boolean Typically this item is set when the JMS provider hasdelivered the message at least once before.

207

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 208: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

MessageHeadersProperty Dataype Description

JMSPriority integer The priority of the message. Priority is a value from 0-8.Higher numbers signify a higher priority (that is, 7 is ahigher priority than 8).

JMSCorrelationID string This ID is used to link a response message with itsrelated request message. This is usually the message IDof a request message when this field is found in a replymessage.

JMSType string The JMS provider-supplied string to describe the typeof the message. Some JMS providers use this propertyto define messages in the provider’s repository. See theJMS provider documentation for more informationabout the use of this field.

Message Properties

The following table describes the messages properties.

MessageProperties Dataype Description

JMSXUserID string The ID of the user sending the message.

This property is optionally set on incoming messagesby the JMS application. This property is not set onoutgoing messages.

JMSXAppID string The ID of the application sending the message.

This property is optionally set on incoming messagesby the JMS application. This property is not set onoutgoing messages.

JMSXProducerTIXID string The transaction identifier of the transaction where thismessage was produced.

This property is optionally set on incoming messagesby the JMS application. This property is not set onoutgoing messages.

JMSXConsumerTXID string The transaction identifier of the transaction where thismessage was consumed.

This property is optionally set on incoming messagesby the JMS application. This property is not set onoutgoing messages.

JMSXRcvTimestamp integer The time the JMS server delivered the message to theconsumer. The time is expressed as the amount of time,in milliseconds since midnight, January 1, 1970, UTC.

This property is optionally set on incoming messagesby the JMS server. This property is not set on outgoingmessages.

208

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 209: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

MessageProperties Dataype Description

JMSXDeliveryCount integer The number of delivery attempts for this message.

JMSXGroupID string The identity of the message group this message is apart of.

You can set this property on outgoing messages togroup messages into a numbered sequence.

JMSXGroupSeq integer The sequence number of this message in its group.

You can set this property on outgoing messages togroup messages into a numbered sequence.

Get JMS Queue MessageGet JMS Queue Message is an asynchronous activity that retrieves a message from the specifiedqueue. You can use this activity to perform a receive operation on the queue as opposed to waiting for aqueue message to be delivered to the Wait for JMS Queue Message activity.

You can use the Message Selector field on the Advanced tab to retrieve a specific queue message fromthe queue.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

JMS Connection Literal Value

ModuleProperty

The JMS connection. For details refer to, JMS Connection.

Destination Yes The name of the queue from which to retrieve the message.

The syntax of the destination name is specific to the JMSprovider you are using. See the JMS providerdocumentation for more information about queue names.

209

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 210: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Message Type Yes The type of the message which can be one of the following:

● Text: The message is a java.lang.String.

● Bytes: A stream of bytes.

● Map: A set of name or value pairs. The names arestrings, and the values are simple datatypes (JAVAprimitives), an array of bytes (use the Binary datatypewhen mapping this data), or a string. Each item can beaccessed sequentially or by its name.

● Object: A Java object that can be serialized.

● Object Ref: An object reference to a Java object.

● Simple: A message with no body part.

● Stream: A stream of Java primitives, strings, or arraysof bytes. Each value must be read sequentially.

● XML Text: The message is XML text.

Description

Provide a short description for the activity here.

Advanced

The Advanced tab has the following fields.

Field

Literal Value/ProcessProperty? Description

Message Selector Yes A string to determine whether a message should bereceived. The syntax of the message selector is determinedby the JMS provider (where message properties are usedinstead of table column names).

See the JMS provider documentation for more informationand syntax for a message selector string.

ApplicationProperties Type

None The type of application-specific message properties that ispart of the message.

Output Editor

The Output Editor tab defines the schema to use for messages of type Map, Stream, or XML Text. Mapmessages are name or value pairs, and using this schema you can define the structure of the retrieveddestination queue message. The schema defined on the Output Editor tab becomes the body of themessage on the Output tab. For XML Text message type, select an XSD element. For Map and Streammessage types, select an XSD type in the Output Editor tab.

210

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 211: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for the activity.

Input Item Datatype Description

destinationQueue

string The queue to which to send the request. This input itemoverrides the Destination field on the General tab.

timeout integer Specifies the waiting period for a message in milliseconds. Ifset to 0, the message does not expire.

selector string A string to determine whether a message should be received.The value of this element overrides any value specified in theMessage Selector field of the Advanced tab. The syntax of themessage selector is determined by the JMS provider, but it isusually a subset of SQL92 (where message properties are usedinstead of table column names).

See the JMS provider documentation for more information andsyntax for a message selector string.

Output

The following is the output of the activity.

Output Item Datatype Description

JMSHeaders complex The message header fields for the message. See Common JMSProperties and Headers for more information about messageheader fields.

Only properties applicable to this type of message are displayed.

JMSProperties complex The message properties for the message. See Common JMSProperties and Headers for more information about messageproperties.

Only properties applicable to this type of message are displayed.

Body as permessagetype

The body of the message.

211

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 212: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

DynamicProperties

complex Dynamic properties is an additional parameter to add runtimeproperty to the outgoing JMS messages that are specified in theInput tab. This is an optional element with only one instance.Dynamic property can have multiple property elements.

Each property element denotes a single dynamic property andcan contain the following elements:

Name - Required. Name of the property with one instance.

Value - Required. Value of the property with one instance.

Type - Optional. Type of the property. If not provided, it will beconsidered as string.

The following data types are supported:

● string

● boolean

● short

● integer

● long

● float

● double

● byte

The DynamicProperty will overwrite the value of aproperty (with the same name) added using the JMSApplication Property.

The DynamicProperties will be also added to the outgoingmessage.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

JMSInvalidInputException The input to the activity is not valid.

JMSSessionCreateException The JMS session could not be created.

JMSReceiveException The JMS receive operation failed.

ActivityTimedOutException The specified timeout is attained and the activity has notcompleted its execution.

212

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 213: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

JMS Receive MessageJMS Receive Message is a process starter activity that starts the process based on the receipt of amessage for the specified JMS destination.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Messaging Style Yes Select from one of the following available messaging styleoptions:

● Generic: This options corresponds to an abstract JMSDestination. If you are not sure whether yourdestination is a Queue or Topic, select Generic.

● Queue

● Topic

JMS Connection None The JMS connection. See JMS Connection for moreinformation.

Destination Yes The JMS destination from where the process starterreceives the message.

Message Type None The type of the message. This can be one of the following:

● Text: the message is a java.lang.String.

● Byte: a stream of bytes.

● Map: a set of name or value pairs. The names arestrings, and the values are simple datatypes (JAVAprimitives), an array of bytes (use the Binary datatypewhen mapping this data), or a string. Each item can beaccessed sequentially or by its name.

● Object: a Java object that can be serialized.

● Object Ref: an object reference to a Java object.

● Simple: a message with no body part.

● Stream: a stream of Java primitives, strings, or arrays ofbytes. Each value must be read sequentially.

● XML Test: the message is XML text.

213

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 214: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Durable Subscriber Yes Specifies a durable subscription.

You must specify a name in the Subscription Name fieldthat is registered with the JMS application as the durablesubscriber name. This field is only available if theMessaging Style is Generic or Topic.

Subscription Name Yes The subscription name registered with the JMS applicationfor durable subscriptions. This field is only available whenyou select the Durable Subscriber check box.

After creating a durable subscription you can only beremove this by accessing the administration tool of the JMSprovider. See the documentation of the JMS provider formore information about managing durable subscriptions.

Suppress LocalMessages

Yes Specifies to not receive messages on the specified topicname when the message origin is the JMS application onthe same connection as the process engine.

If the process publishes and subscribes to messages withthe same topic name, this option is useful if you want tospecify whether to receive messages sent by the same JMSapplication that published the message.

Selecting this check box prevents the process fromreceiving messages sent by the same connection.

Keep this check box clear to specify that the messages sentby the same connection should be received.

214

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 215: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Acknowledge Mode Yes The acknowledge mode for incoming messages. It can beone of the following:

● Auto: the message is automatically acknowledged,when it is received.

● Client: the message is acknowledged at a later point byusing the Confirm activity. If the message is notconfirmed before the process instance ends, themessage is redelivered and a new process instance iscreated to handle the new incoming message. Ensurethat your process confirms the message when using theacknowledge mode.

● Dups Ok: the message is acknowledged automaticallywhen it is received. JMS provides this mode for lazyacknowledgment, but ActiveMatrix BusinessWorks™acknowledges messages upon receipt.

● TIBCO EMS Explicit Client: (only available for TIBCOEnterprise Message Service) a message which is notacknowledged using the Confirm activity before theprocess instance ends, will be redelivered instead of allmessages in the session. The session is not blocked andone session handles all incoming messages for eachprocess instance.

● TIBCO EMS Explicit Client Dups OK: (only availablefor TIBCO Enterprise Message Service) a messagewhich is not acknowledged using the Confirm activitybefore the process instance ends, will be redeliveredinstead of all messages in the session. The session is notblocked and one session handles all the incomingmessages for each process instance. The messageshowever, are lazily acknowledged.

● TIBCO EMS No Acknowledge: messages deliveredusing this mode do not require acknowledgment.Therefore, messages in this mode are not redeliveredregardless of whether the delivery was successful.

Max Sessions No Specifies the maximum number of client sessions that canconnect with the messaging server. This property isenabled only when the Client ACK mode is used.

The default value is 1.

Description

Provide a short description for the activity.

215

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 216: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Advanced

The Advanced tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Message Selector Yes A string to determine whether a message should bereceived. The syntax of the message selector is determinedby the JMS provider.

See the JMS provider documentation for more informationand syntax for a message selector string.

ApplicationProperties Type

None Any application-specific message properties that is part ofthe message. This is specified by the JMS applicationproperties shared configuration object.

Polling Interval (sec) None Specifies the polling interval to check for new messages. Ifno value is specified for the property, the default pollinginterval is two seconds.

Set a value in this field to specify the polling interval (inseconds) for this activity. The value in this field overridesthe default polling interval.

Sequence Key None This field can contain an XPath expression that specifieswhich processes should run in sequence. Process instanceswith sequencing keys that evaluate to the same value areexecuted in the sequence the process instances werecreated.

Custom Job Id None This field can contain an XPath expression that specifies acustom ID for the process instance.

Output Editor

The Output Editor tab defines the schema to use for incoming messages whose Message Type is Map,Stream, or XML Text. Map messages are name or value pairs, and you can use the schema to define thestructure of the incoming message. The schema on the Output Editor tab becomes the structure usedfor the body of the message displayed on the Output tab. For XML Text message type, select an XSDelement. For Map and Stream message types, select an XSD type in the Output Editor tab.

Conversations

You can initiate and join the conversation here. Click the Add New Conversation button to initiatemultiple conversations.

Output

The following is the output of this activity.

216

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 217: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

JMSHeaders complex The message header fields for the message. See Common JMSProperties and Headers for more information about messageheader fields.

Only properties applicable to this type of message are displayed.

JMSProperties complex The message properties for the message. See Common JMSProperties and Headers for more information about messageproperties.

Only properties applicable to this type of message are displayed.

Body as permessage type

The body of the message.

DynamicProperties

complex Dynamic properties is an additional parameter to add runtimeproperty to the outgoing JMS messages that are specified in theInput tab. This is an optional element with only one instance.Dynamic property can have multiple property elements.

Each property element denotes a single dynamic property andcan contain the following elements:

Name - Required. Name of the property with one instance.

Value - Required. Value of the property with one instance.

Type - Optional. Type of the property. If not provided, it will beconsidered as string.

The following data types are supported:

● string

● boolean

● short

● integer

● long

● float

● double

● byte

The DynamicProperty will overwrite the value of aproperty (with the same name) added using the JMSApplication Property.

The DynamicProperties will be also added to the outgoingmessage.

JMS Request ReplyJMS Request Reply is an asynchronous activity that is used to send a request to a JMS destination andwait for a response from the JMS client.

This activity uses temporary destinations to ensure that reply messages are received only by theprocess that sent the request. However, the user has the ability to use preexisting JMS destinations.

217

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 218: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Messaging Style Yes Select from one of the following available options:

● Generic

● Queue

● Topic

JMS Connection None The JMS connection. See JMS Connection for moreinformation.

Destination Yes The name of the destination of the outgoing message.

Message Type None The type of the message. This can be one of the following:

● Text: the message is a java.lang.String.

● Byte: a stream of bytes.

● Map: a set of name or value pairs. The names arestrings, and the values are simple datatypes (JAVAprimitives), an array of bytes (use the Binary datatypewhen mapping this data), or a string. You can accesseach item sequentially or by its name.

● Object: a Java object that can be serialized.

● Object Ref: an object reference to a Java object.

● Simple: a message with no body part.

● Stream: a stream of Java primitives, strings, or arrays ofbytes. Each value must be read sequentially.

● XML Text: the message is XML text.

Description

Privide a short description for the activity here.

Advanced

The Advanced tab has the following fields.

218

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 219: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Reply To Destination The destination to use for replies for this activity.

If more than one job has the same Reply To Destination, each jobmay not receive the correct reply. Ensure to specify an expressionin this field that assigns a different Reply To Destination to eachprocess instance.

Deliver Mode The delivery mode of the message. Can be one of the following:

● Persistent: signifies that the messages are stored and forwarded.

● Non_Persistent: signifies that the messages are not stored and may belost due to transmission failure.

● TIBCO_EMS_Reliable_Delivery: this mode is only available when usingTIBCO Enterprise Message Service. See the TIBCO Enterprise MessageService documentation for more information.

JMSExpiration(msec)

Corresponds to the JMSExpiration property that specifies how long themessage 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 inmilliseconds.

Priority The priority of the message. You may set the priority to a value from 0-8. Thedefault value is 4.

Type The value to supply to the JMSType header property.

ApplicationProperties Type

Any application-specific message properties that is part of the message. Thisis specified by the JMS application properties shared configuration object.

Input Editor and Output Editor

The Input Editor and Output Editor tabs define the schema to use for messages of type Map, Stream,or XML Text. Map messages are name or value pairs, and you can use the schema to define thestructure of the outgoing request and the incoming reply. The schema defined on the Input Editor tabbecomes the body of the message on the Input tab. The schema defined on the Output Editor tabbecomes the body of the message on the Output tab. For XML Text message type, select an XSDelement. For Map and Stream message types, select an XSD type in the Input Editor or Output Editor.

Input

The following is the input for the activity.

Input Item Datatype Description

Destination string The destination to which to send the request. This inputitem overrides the Destination field on the General tab.

219

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 220: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

replyTo string The destination to use for replies for this activity.

If more than one job has the same Reply ToDestination, then each job may not receive thecorrect reply. Ensure to specify an expression inthis field that assigns a different Reply ToDestination to each process instance.

JMSExpiration integer Specifies how long the message can remain active (inseconds). If set to 0, the message does not expire.

JMSPriority string The priority of the message. This item overrides thepriority set on the Advanced tab.

JMSDeliveryMode string The delivery mode of the message. Can be one of thefollowing:

● Persistent: signifies that the messages are stored andforwarded.

● Non_Persistent: signifies that the messages are notstored and may be lost due to transmission failure.

● TIBCO_EMS_Reliable_Delivery: this mode is onlyavailable when using TIBCO Enterprise MessageService. See the TIBCO Enterprise Message Servicedocumentation for more information.

JMSCorrelationID string This ID is used to link a response message with its relatedrequest message. This is usually the message ID of arequest message when this field exists in a reply message.

JMSType string The type of the message. This item overrides the valuespecified on the Advanced tab.

JMSProperties complex The message properties. For details, refer to CommonJMS Properties and Headers.

Body depends on themessage type

The body of the message.

requestTimeout integer This field specifies the amount of time (in milliseconds)that the activity waits before it times out.

220

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 221: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

DynamicProperties complex Dynamic properties is an additional parameter to addruntime property to the outgoing JMS messages that arespecified in the Input tab. This is an optional elementwith only one instance. Dynamic property can havemultiple property elements.

Each property element denotes a single dynamicproperty and can contain the following elements:

Name - Required. Name of the property with oneinstance.

Value - Required. Value of the property with one instance.

Type - Optional. Type of the property. If not provided, itwill be considered as string.

The following data types are supported:

● string

● boolean

● short

● integer

● long

● float

● double

● byte

The DynamicProperty will overwrite the valueof a property (with the same name) addedusing the JMS Application Property.

The DynamicProperties will be also added to theoutgoing message.

Output

The following is the output of this activity.

Output Item Datatype Description

JMSHeaders complex The message header fields for the message. See Common JMSProperties and Headers for more information about messageheader fields.

Only properties applicable to this type of message are displayed.

JMSProperties complex The message properties for the message. See Common JMSProperties and Headers for more information about messageproperties.

Only properties applicable to this type of message are displayed.

221

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 222: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

Body as permessage type

The body of the message.

DynamicProperties

complex Dynamic properties is an additional parameter to add runtimeproperty to the outgoing JMS messages that are specified in theInput tab. This is an optional element with only one instance.Dynamic property can have multiple property elements.

Each property element denotes a single dynamic property andcan contain the following elements:

Name - Required. Name of the property with one instance.

Value - Required. Value of the property with one instance.

Type - Optional. Type of the property. If not provided, it will beconsidered as string.

The following data types are supported:

● string

● boolean

● short

● integer

● long

● float

● double

● byte

The DynamicProperty will overwrite the value of aproperty (with the same name) added using the JMSApplication Property.

The DynamicProperties will be also added to the outgoingmessage.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When..

JMSInvalidInputExceptio

n

The input to the activity is not valid.

JMSMessageCreateExcepti

on

The JMS message could not be created.

JMSSessionCreateExcepti

on

The JMS session could not be created.

JMSSendException The JMS send operation failed.

222

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 223: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

JMSReceiveException The JMS receive operation failed.

ActivityTimedOutExcepti

on

The specified timeout has been attained and the activity has notcompleted its execution.

JMS Send MessageJMS Send Message is a synchronous activity that sends a message to the specified JMS destination.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Messaging Style None Select from one of the following available options:

● Generic

● Queue

● Topic

JMS Connection None The JMS connection. See JMS Connection for moreinformation.

Destination Yes The name of the destination of the outgoing message.

Message Type None The type of the message. This can be one of the following:

● Text: the message is a java.lang.String.

● Byte: a stream of bytes.

● Map: a set of name or value pairs. The names are strings,and the values are simple datatypes (JAVA primitives),an array of bytes (use the Binary datatype whenmapping this data), or a string. Each item can beaccessed sequentially or by its name.

● Object: a Java object that can be serialized.

● Object Ref: an object reference to a Java object.

● Simple: a message with no body part.

● Stream: a stream of Java primitives, strings, or arrays ofbytes. Each value must be read sequentially.

● XML Text: the message is XML text.

223

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 224: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following fields.

Field Description

Reply ToDestination

The destination to use for replies for this activity.

If more than one job has the same Reply To Destination, each jobmay not receive the correct reply. Ensure to specify an expressionin this field that assigns a different Reply To Destination to eachprocess instance.

Deliver Mode The delivery mode of the message. Can be one of the following:

● Persistent: signifies that the messages are stored and forwarded.

● Non_Persistent: signifies that the messages are not stored and may be lostdue to transmission failure.

● TIBCO_EMS_Reliable_Delivery: this mode is only available when usingTIBCO Enterprise Message Service. See the TIBCO Enterprise MessageService documentation for more information.

JMSExpiration(msec)

Corresponds to the JMSExpiration property that specifies how long themessage 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 inmilliseconds.

Priority The priority of the message. You may set the priority to a value from 0-8. Thedefault value is 4.

Type The value to supply to the JMSType header property.

ApplicationProperties Type

Any application-specific message property that is part of the message. This isspecified by the JMS application properties shared configuration object.

OverrideTransactionBehavior

Overrides the default behavior of a transaction group. If this activity is in atransaction group, the JMS message is normally committed or rolled backwith the other participants in the transaction.

If this check box is selected, the JMS message does not participate in thetransaction.

Input Editor

The Input Editor tab defines the schema to use for outgoing messages whose message type is Map,Stream, or XML Text. Map messages are name or value pairs, and you can use the schema to define thestructure of the outgoing message. After defining the schema on the Input Editor tab, it becomes the

224

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 225: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

structure used for the body of the message displayed on the Input tab. For the XML Text message type,select an XSD element. For Map and Stream message types, select an XSD type in the Input Editor tab.

Input

The following is the input for the activity.

Input Item Datatype Description

Destination string The destination to which to send the message. This inputitem overrides the Destination field on the General tab.

replyTo string The destination to use for replies for this activity.

If more than one job has the same Reply ToDestination, each job may not receive thecorrect reply. Ensure to specify an expression inthis field that assigns a different Reply ToDestination to each process instance.

JMSExpiration integer Specifies how long the message can remain active (inseconds). If set to 0, the message does not expire.

JMSPriority string The priority of the message. This item overrides thepriority set on the Advanced tab.

JMSDeliveryMode string The delivery mode of the message. Can be one of thefollowing:

● Persistent: signifies that the messages are stored andforwarded.

● Non_Persistent: signifies that the messages are notstored and may be lost due to transmission failure.

● TIBCO_EMS_Reliable_Delivery: this mode is onlyavailable when using TIBCO Enterprise MessageService. See the TIBCO Enterprise Message Servicedocumentation for more information.

JMSCorrelationID string This ID is used to link a response message with its relatedrequest message. This is usually the message ID of arequest message when this field exists in a reply message.

JMSType string The type of the message. This item overrides the valuespecified on the Advanced tab.

JMSProperties complex The message properties. For details, refer to CommonJMS Properties and Headers.

Body depends on themessage type

The body of the message.

225

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 226: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

DynamicProperties complex Dynamic properties is an additional parameter to addruntime property to the outgoing JMS messages that arespecified in the Input tab. This is an optional elementwith only one instance. Dynamic property can havemultiple property elements.

Each property element denotes a single dynamicproperty and can contain the following elements:

Name - Required. Name of the property with oneinstance.

Value - Required. Value of the property with one instance.

Type - Optional. Type of the property. If not provided, itwill be considered as string.

The following data types are supported:

● string

● boolean

● short

● integer

● long

● float

● double

● byte

The DynamicProperty will overwrite the valueof a property (with the same name) addedusing the JMS Application Property.

The DynamicProperties will be also added to theoutgoing message.

Output

The following is the output of the activity.

Output Item Datatype Description

MessageID string The unique identifier of the message.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When..

JMSInvalidInputExceptio

n

The input to the activity is not valid.

226

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 227: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

JMSMessageCreateExcepti

on

The JMS message could not be created.

JMSSessionCreateExcepti

on

The JMS session could not be created.

JMSSendException The JMS send operation failed.

Reply to JMS MessageReply To JMS Message is a synchronous activity that sends a reply to a previously received JMS queueor topic message. The Reply For Event field in the General tab lists the activities that can receive theJMS message. The activity you select determines the response of the reply message.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label of the activity.

Reply For Event A drop-down list of activities that can receive JMS queue or topic messages.The activity you select determines the message this activity replies to. Thereply-to queue or topic name from the message in the selected activity is usedto send the reply message. The listed activity is WaitforJMSRequest.

Message Type The type of the message. This can be one of the following:

● Text: the message is a java.lang.String.

● Byte: a stream of bytes.

● Map: a set of name or value pairs. The names are strings, and the values aresimple datatypes (JAVA primitives), an array of bytes (use the Binarydatatype when mapping this data), or a string. Each item can be accessedsequentially or by its name.

● Object: a Java object that can be serialized.

● Object Ref: an object reference to a Java object.

● Simple: a message with no body part.

● Stream: a stream of Java primitives, strings, or arrays of bytes. Each valuemust be read sequentially.

● XML Text: the message is XML text.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following fields.

227

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 228: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Deliver Mode The delivery mode of the message. This can be one of the following:

● Persistent: signifies that the messages are stored and forwarded.

● Non_Persistent: signifies that the messages are not stored and may be lostdue to transmission failure.

● TIBCO_EMS_Reliable_Delivery: this mode is only available when usingTIBCO Enterprise Message Service. See the TIBCO Enterprise MessageService documentation for more information.

JMSExpiration(msec)

Corresponds to the JMSExpiration property that specifies how long themessage 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 inmilliseconds.

Priority The priority of the message. You may set the priority to a value from 0-8. Thedefault value is 4.

JMSType The value to supply to the JMSType header property.

ApplicationProperties Type

Any application-specific message property that is part of the message. This isspecified by the JMS application properties shared configuration object.

Input Editor

The Input Editor tab defines the schema to use for outgoing messages whose message type is Map,Stream, or XML Text. Map messages are name or value pairs, and you can use the schema to define thestructure of the outgoing message. After defining the schema on the Input Editor tab, it becomes thestructure used for the body of the message displayed on the Input tab. For XML Text message type,select an XSD element. For Map and Stream message type, select an XSD Type in the Input Editor tab.

Input

The following is the input for the activity.

Input Item Datatype Description

Destination string The destination to which to send the request. This inputitem overrides the Destination field on the General tab.

replyTo string The destination to use for replies for this activity.

If more than one job has the same Reply ToDestination, each job may not receive thecorrect reply. Ensure to specify an expression inthis field that assigns a different Reply ToDestination to each process instance.

JMSExpiration integer Specifies how long the message can remain active (inseconds). If set to 0, the message does not expire.

228

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 229: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

JMSPriority string The priority of the message. This item overrides thepriority set on the Advanced tab.

JMSDeliveryMode string The delivery mode of the message. Can be one of thefollowing:

● Persistent: signifies that the messages are stored andforwarded.

● Non_Persistent: signifies that the messages are notstored and may be lost due to transmission failure.

● TIBCO_EMS_Reliable_Delivery: this mode is onlyavailable when using TIBCO Enterprise MessageService. See the TIBCO Enterprise Message Servicedocumentation for more information.

JMSCorrelationID string This ID is used to link a response message with its relatedrequest message. This is usually the message ID of arequest message when this field exists in a reply message.

JMSType string The type of the message. This item overrides the valuespecified on the Advanced tab.

JMSProperties complex The message properties. For details, refer to CommonJMS Properties and Headers.

Body depends on themessage type

The body of the message.

229

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 230: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

DynamicProperties complex Dynamic properties is an additional parameter to addruntime property to the outgoing JMS messages that arespecified in the Input tab. This is an optional elementwith only one instance. Dynamic property can havemultiple property elements.

Each property element denotes a single dynamicproperty and can contain the following elements:

Name - Required. Name of the property with oneinstance.

Value - Required. Value of the property with one instance.

Type - Optional. Type of the property. If not provided, itwill be considered as string.

The following data types are supported:

● string

● boolean

● short

● integer

● long

● float

● double

● byte

The DynamicProperty will overwrite the valueof a property (with the same name) addedusing the JMS Application Property.

The DynamicProperties will be also added to theoutgoing message.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When..

JMSInvalidInputExceptio

n

The input to the activity is not valid.

JMSMessageCreateExcepti

on

The JMS message could not be created.

JMSSessionCreateExcepti

on

The JMS session could not be created.

JMSSendException The JMS send operation failed.

230

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 231: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Wait for JMS RequestWait for JMS Request is a signal-in activity that waits for the receipt of a message for the specified JMSdestination.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Messaging Style Yes Select from one of the following available options:

● Generic

● Queue

● Topic

JMS Connection None The JMS connection. See JMS Connection for moreinformation.

Destination Yes The destination from which a reply to this message shouldbe received.

Message Type None The type of the message. This can be one of the following:

● Text: the message is a java.lang.String.

● Byte: a stream of bytes.

● Map: a set of name or value pairs. The names arestrings, and the values are simple datatypes (JAVAprimitives), an array of bytes (use the Binary datatypewhen mapping this data), or a string. Each item can beaccessed sequentially or by its name.

● Object: a Java object that can be serialized.

● Object Ref: an object reference to a Java object.

● Simple: a message with no body part.

● Stream: a stream of Java primitives, strings, or arrays ofbytes. Each value must be read sequentially.

● XML Test: the message is XML text.

231

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 232: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Durable Subscriber Yes Specifies a durable subscription.

Specify a name in the Subscription Name field that isregistered with the JMS application as the durablesubscriber name. This field is only available, if theMessaging Style is Generic or Topic.

Subscription Name Yes The subscription name registered with the JMS applicationfor durable subscriptions. This field is only available whenthe Durable Subscriber check box is selected.

After a durable subscription is created, it can only beremoved by accessing the administration tool of the JMSprovider. See the documentation of the JMS provider formore information about managing durable subscriptions.

Suppress LocalMessages

Yes Specifies to not receive messages on the specified topicname when the message origin is the JMS application onthe same connection as the process engine.

If your process publishes and subscribes to messages withthe same topic name, this option is useful if you want tospecify whether to receive messages sent by the same JMSapplication that published the message.

Selecting this check box prevents the process fromreceiving messages sent by the same connection.

Keep this check box clear to specify that the messages sentby the same connection should be received.

Max Sessions No Specifies the maximum number of client sessions that canconnect with the messaging server. This property isenabled only when the Client ACK mode is used.

The default value is 1.

Description

Provide a short description for the activity.

Event

The Event tab has the following fields.

Field Description

Event Timeout(seconds)

This field specifies the amount in seconds. If no value is specified in this field,the message waits indefinitely. If zero is specified, the event is discardedimmediately, unless this activity has already been executed.

232

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 233: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Activity Timeout(msec)

This field specifies the amount of time (in milliseconds) to wait if the filechange occurs before this activity is executed in the process instance. If theevent timeout expires, an error is logged and the event is discarded.

Advanced

The Advanced tab has the following fields.

Field Description

Message Selector A string to determine whether a message should be received. The syntax ofthe message selector is determined by the JMS provider.

See the JMS provider documentation for more information and syntax for amessage selector string.

ApplicationProperties Type

Any application-specific message properties that is part of the message. Thisis specified by the JMS application properties shared configuration object.

Output Editor

The Output Editor tab defines the schema to use for messages of type Map, Stream, or XML Text. Mapmessages are name or value pairs, and using this schema you can define the structure of the retrievedqueue message. The schema defined on the Output Editor tab becomes the body of the message on theOutput tab.

Conversations

You can initiate and join the conversation here. Click the Joining existing conversation button tojoin existing conversations.

Output

The following is the output of this activity.

Output Item Datatype Description

JMSHeaders complex The message header fields for the message. See Common JMSProperties and Headers for more information about messageheader fields.

Only properties applicable to this type of message are displayed.

JMSProperties complex The message properties for the message. See Common JMSProperties and Headers for more information about messageproperties.

Only properties applicable to this type of message are displayed.

Body as permessage type

The body of the message.

233

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 234: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

DynamicProperties

complex Dynamic properties is an additional parameter to add runtimeproperty to the outgoing JMS messages that are specified in theInput tab. This is an optional element with only one instance.Dynamic property can have multiple property elements.

Each property element denotes a single dynamic property andcan contain the following elements:

Name - Required. Name of the property with one instance.

Value - Required. Value of the property with one instance.

Type - Optional. Type of the property. If not provided, it will beconsidered as string.

The following data types are supported:

● string

● boolean

● short

● integer

● long

● float

● double

● byte

The DynamicProperty will overwrite the value of aproperty (with the same name) added using the JMSApplication Property.

The DynamicProperties will be also added to the outgoingmessage.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When..

ActivityTimedOutExcepti

on

The specified timeout has been attained and the activity has notcompleted its execution.

234

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 235: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Mail Palette

The Mail Palette is used to receive incoming emails or send outgoing emails.

Receive MailReceive Mail is a process starter activity that polls a POP3 mail server for the new mail. After detectingand retrieving a new mail, the Receive Mail activity starts the process.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty Description

Name None The name to be displayed as the label for the activity in the process.

Host Yes The host name or IP address for the mail server.

Port Yes The default port (110) used to connect to POP3 server.

User Name Yes The username for logging into the POP3 server.

Password Yes The password for logging into the POP3 server.

PollingInterval(sec)

Yes The polling interval (in seconds) to check for new mail. The default is5, if no polling interval is specified.

Delete Mail None Select this check box to delete the mail from the POP3 server afterprocess starter has retrieved it.

To delete mail, place a Checkpoint activity immediatelyafter the Receive Mail process starter. This ensures that themessage is not lost in the event of a machine failure.

Alternatively, you can leave this field clear.

EnableConfidentiality

None This check box specifies whether a Secure Sockets Layer (SSL) Clientshould be used to specify the SSL configuration. When this check boxis selected, the SSL Client field displays.

SSL Client Yes The name of the resource. In the SslClientResource ResourceTemplate wizard, create a resource to connect to the SSL client.

Test Connection Button

The Test Connection button tests the connection to the specified mail server. Use this button to ensurethat your Receive Mail activity is properly configured to receive mail from the specified mail server.This button is enabled only when the Host, User Name, and Password fields on the General tab arepopulated.

235

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 236: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Description

Provide a short description of the process in this field.

Advanced

The Advanced tab contains the following fields:

Field Description

SequencingKey

Contains an XPath expression that specifies which process runs in a sequence.Process instances with sequencing keys evaluating to the same value, are executedin the sequence the process instance was created.

Custom Job id This field can contain an XPath expression that specifies a custom ID for the processinstance.

Provide RawMessage

When selected, this field specifies the whole message to be provided in the binaryform. The output schema changes to include an element named rawMessage thatcontains the message instead of bodyText and mimeEnvelopeElements.

The Receive Mail process starter uses the javax.mail API. This API assumes thatthe content type of the message is multipart/mixed. When the multipart subtypeis not mixed (such as multipart/signed or multipart/alternative) or whenanother content type is used (for example, application/*), the javax.mail APImay not correctly parse the message.

Select this check box to send the raw message to a Java Invoke activity that usesthe Java activation framework to implement the appropriate handlers to processthe message. For more information on how the Java activation framework can beused for this purpose, refer to the API documentation for javax.activation andjavax.mail.

You can also feed the binary message to the javax.mail.MimeMessage constructorin the form of a java.io.InputStream to construct a MimeMessage object. Thedefault javax.mail API handler is used in such a case.

Write to File Select this check box to specify that the incoming messages whose body andattachments (or raw message size, if Provide Raw Message is selected) exceed thespecified threshold size, must be written to a file instead of being stored in memory.You can accept large incoming messages without consuming more memory. Theincoming message is written to the file with mail headers when body andattachment exceeds the specified size.

Selecting this check box displays the Directory, Creating Non-Existing Directories,and Threshold Size fields.

Do not select to keep the incoming messages in memory.

The files created by using this option are not deleted automatically. Youmust manage the storage used by these files and delete them when theyare no longer used.

Directory The directory to write messages that are above the specified threshold. The processengine does not attempt to create the directory, if the specified directory does notexist. Therefore, create the directory before starting the process engine.

236

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 237: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Create Non-ExistingDirectories

The directory to write messages that are above the specified threshold.

If the specified directory does not exist, the process engine does not attempt tocreate the directory. Therefore, select the check box to create the directory beforestarting the process engine.

Not selecting this check box with one or more non-existing directories in thespecified path in the Directory field, raises an exception.

ThresholdData Size(bytes)

The maximum size (in bytes) of an incoming message that can be kept in memory.Messages larger than the specified size are written to a file in the specifieddirectory. The file name is an output so that the subsequent activities in the processproperties can access the file and read its contents.

Specifying zero (0) in this field determines all incoming messages to be saved to afile.

Output Editor

Incoming messages may contain custom headers. From the Output Editor tab, define a custom schemafor the headers of the incoming mail messages. You can also specify any standard header supported bythe javax.mail package. For example, X-Mailer or X-Priority. Values of headers in the incomingmessage populates the corresponding defined output headers of the same name.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations. For details about conversations, refer to Application Development.

Output

The following is the output of the activity.

Output Item Datatype Description

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.

replyTo string The reply to list of the email.

subject string The subject of the email.

sentdate string The date the email was sent.

Headers complex This element contains the schema you defined on the OutputEditor tab. You can specify custom headers that can be included inthe incoming mail messages.

bodyElement string Contains a choice element.

You can either provide the bodyText element or fileName element.

237

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 238: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

mimeEnvelopeElement

complex This field is available when the Provide Raw Message check boxon the Advanced tab is not selected.

Contains the message attachments. This element contains arepeating element named mimePart that comprises each mimeattachment.

mimeHeaders complex This element contains the mime header for each mimePart.

mimeHeaders contain the following information:

● content-disposition - To suggest a filename for an attachment,use "*;filename=<filename>" in this element.

E-mail servers may alter or ignore the suggestedname.

● content-type

● content-transfer-encoding

● content-id

● any element

See http://www.faqs.org/rfcs/rfc2045.html for more informationabout MIME headers and their syntax.

When the contentType is specified as "text/*" (forexample, "text/xml"), specify the attachment content ineither the textContent input element or the file namestoring the attachment in the fileName input element.When the contentType is anything other than "text/*":● The attachment content must be in the binaryContent

input element.

● The file name storing the attachment must be in thefileName input element.

binaryContent |fileName |textContent

choice This element contains the mime attachment. It can be any of thefollowing:

● binaryContent: the content of the attachment when theattachment is binary data.

● fileName: the file name of the attachment written on the disk.

● textContent: the content of the attachment when the attachmentis text data.

Send MailSend Mail is a synchronous activity that sends an email by way of an SMTP server.

General

The General tab has the following fields.

238

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 239: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in the process.

SMTPProperty

Yes The property name of the SMTP server.

If your server is configured for using a different port, specify it inthis field.

Description

Provide a short description of the Send Mail activity here.

Advanced

The Advanced tab has the following fields.

Field Description

Allow Non-Standard EmailIDs

By default, email IDs specified in the to, from, cc, bcc, or replyTo input elementsmust conform to the RFC 822 standard for email addresses.

Select this check box to specify email IDs that do not conform to the RFC 822standard. This is useful for sending mail to a server that has extensions forsending email to devices such as a fax machine.

For more information about email address syntax, see http://www.faqs.org/rfcs/rfc822.html.

When this field is not selected, not all of the RFC 822 syntax rules areenforced. For example, addresses composed of simple names (with no"@domain" part) are allowed.

For more information on enforcing RFC 822, see the description of the strict flagof the parse method of javax.mail.internet.InternetAddress at http://javamail.kenai.com/nonav/javadocs/javax/mail/internet/InternetAddress.html.

Input Editor

You may want to add custom headers to outgoing mail messages. From the Input Editor tab you candefine a custom schema for the headers of the outgoing mail message. You can specify any standardheader supported by the javax.mail package. For example, X-Mailer or X-Priority.

Input

The following is the input for the activity.

Input Item Datatype Description

username string The username to use when authenticating to the mail server.

password string The password to use when authenticating to the mail server.

from string The email address of the sender.

239

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 240: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

to string The recipient list for the email. Use this repeatable element tosend mail to more than one recipient.

Provide a list of "to" recipients in a single string by using either acomma or a semicolon (but not both in the same string) asdelimiters.

cc string The "cc" (carbon copy) list for the email. Use this repeatableelement to place more than one recipient on the "cc" list, ifrequired.

Provide a list of "cc" recipients in a single string by using either acomma or a semicolon (but not both in the same string) asdelimiters.

bcc string The "bcc" (blind carbon copy) list for the email. Use thisrepeatable element to place more than one recipient on the "bcc"list.

Provide a list of "bcc" recipients in a single string by using either acomma or a semicolon (but not both in the same string) asdelimiters.

replyTo string The "replyTo" list for the email. Use this repeatable element toplace more than one recipient on the "replyTo" list.

Provide a reply to list in a single string by using either a commaor a semicolon (but not both in the same string) as delimiters toseparate the addresses in the list.

subject string The subject of the email.

sentDate string The date stamp for the email.

The email server provides the actual date stamp for theemail, so this input item is ignored. Do not attempt toplace a value in this input item.

bodyElement complex Contains a choice element.

You can either provide the bodyText element or fileNameelement.

bodyText string The text of the email message.

fileName string The file name of the attachment written to the disk.

Headers complex Contains the schema you defined on the Input Editor tab. Specifycustom headers for the outgoing mail messages.

Specify any standard header supported by the javax.mailpackage. For example, X-Mailer or X-Priority.

To use attachments, specify the Content-Type header asmultipart/* (where * is a valid subtype of the multipart).

240

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 241: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

contentType string The mime content type for the message. You can specify acharacter encoding in this element for the encoding of the body ofthe message.

mimeEnvelopeElement

complex Contains the message attachments.

mimePart complex This repeating element comprises each mime attachment.

mimeHeaders complex This element contains the mime header for each mimePart.

mimeHeaders contain the following information:

● content-disposition - To imply a filename for an attachment,use "*;filename=<filename>" in this element.

E-mail servers may alter or ignore the suggestedname.

● content-type

● content-transfer-encoding

● content-id

● any element

See http://www.faqs.org/rfcs/rfc2045.html for more informationabout MIME headers and their syntax.

When the contentType is specified as "text/*" (forexample, "text/xml"), specify the attachment content ineither the textContent input element or the file namestoring the attachment in the fileName input element.When the contentType is anything other than "text/*":● The attachment content must be in the

binaryContent input element.

● The file name storing the attachment must be in thefileName input element.

binaryContent |fileName |textContent

choice This element contains the mime attachment. It can be any of thefollowing:

● binaryContent: the content of the attachment when theattachment is binary data.

● fileName: the file name of the attachment written on the disk.

● textContent: the content of the attachment when theattachment is text data.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

241

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 242: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

InvalidInputException The input is not valid.

UnknownHostException The mail server host name is not resolved.

The exception contains the name of the mail server host.

SendFailedException The send operation failed for some reason.

242

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 243: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Parse Palette

The Parse palette provides shared configuration resources for parsing and rendering theformatted text. This is useful if you want to transform the formatted lines of text into a data schema ortransform a data schema into a formatted text string.

The text lines can be formatted either by delimiters separating each field or offsets can be specified todetermine where each field begins and ends.

MimeParserThis activity is responsible for parsing MTOM messages into a SOAP message that contains binaryattachments as an inline data of the SOAP message. The output can be either in a Text or a Binaryformat.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Input Style The input message format. (Currently only MTOM is available.)

Output Style The output message format.

You can select either Text or Binary format for the output messages.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following.

Field Description

Generate Strict ParsingErrors

Select this check box to generate strict parsing validation errors.

Input

The following is the input for the activity.

Input Item Datatype Description

MimeBinaryData Binary This is the incoming binary data.

Output

The following is the output of the activity.

243

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 244: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

soapMessage Binary or String Depends on the type selected in the Output Style format.

StrictValidationErrors

Complex This displays only when the Generate Strict Parsing Errorscheck box is selected.

ErrorString String Shows strict parsing validation error logs.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When...

XOPParseException The input has XOP related exceptions.

MimeParseException The input has MIME related exceptions.

InvalidXMLException The input has invalid xml related exception.

Parse Data

The Parse Data activity takes a text string or input from a file and processes it by converting itinto a schema tree based on the specified Data Format shared resource.

You can use any mechanism to obtain or create a text string for processing. For example, you can usethe Read File activity to obtain text from a file. You can also use this activity to specify a text file to read.

You can use this activity in various scenarios. For example, a user has a file comprising multiple lineswith comma-separated values (as in data obtained from a spreadsheet) and this data has to be insertedinto a database table. In such a scenario, read and parse the file into a data schema with the Parse Dataactivity. Then, use JDBC Update activity to insert the data schema into a database table.

General

The General tab has the following fields.

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

Data Format No The Data Format shared resource to use when parsing the textinput.

Input Type No Specify the type of input for this activity.

Input can either be String or File. If the input is a text string,provide the string to the text input item. If the input is a file,provide the file name and location to the fileName input item.

244

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 245: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty? Description

Encoding Yes The encoding of the input file.

To enable this field, select the File option in the Input Typefield . Any valid Java encoding name can be used.

Skip BlankSpaces

No Select this check box to skip any empty records when parsingthe text input.

When this check box is not selected, parsing stops at the firstblank line encountered in the input.

ManuallySpecify StartRecord

No You can specify the record in the input where you want to startparsing.

This is useful if you have a large number of records and youwant to read the input in parts (to minimize memory usage).

Selecting this check box displays the startRecord input item.See Parsing a Large Number of Records for more informationon how to read the input stream in parts.

Strict Validation No Validates every input line for the specified number of fields forthe fixed format text.

For example, if the format states that there are three fields perline and this check box is selected, all lines in the input mustcontain three fields.

Continue OnError

No Continues parsing the next record in the input afterencountering an error, if any.

If an error occurs, the error information is separated from theoutput of the successfully parsed records and is provided in theoutput schema of the activity.

When this check box is not selected, the Parse Data activityquits parsing if an error is encountered while parsing therecords in the input.

Irrespective of whether this check box is selected or not, theParse Data activity quits when any data validation errors occur.

Input

The following is the input for the activity.

Input Item Datatype Description

text string The text string to parse.

This input item is available only when String is specified in theInput Type field of the General tab.

245

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 246: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

fileName string The location and name of the file to read. The file's content isused as the input text string for this activity.

This input item is available only when File is specified in theInput Type field of the General tab.

startRecord number The line number of the input stream to begin parsing. All linesbefore the specified line are ignored. This input item is availableonly if the Manual Specify Start Record check box on theGeneral tab is selected.

The input stream begins with the line number 1 (one). This isuseful for reading the input stream in parts to minimizememory usage.

See Parsing a Large Number of Records for more information.

noOfRecords number The number of records to read from the input stream. Specify -1if you want to read all records in the input stream.

This is useful for reading the input stream in parts to minimizememory usage.

See Parsing a Large Number of Records for more information.

SkipHeaderCharacters

integer The number of characters to skip when parsing. You can skipover any file headers or other unwanted information.

Output

The following is the output of the activity.

Outputitem Datatype Description

Rows complex This output item contains the list of parsed lines from the input. This isuseful to determine the number of records parsed by this activity.

The schema specified by the Data Format resource is contained in thisoutput item.

schema complex The schema containing the data from the parsed input text. This outputitem contains zero or more parsed records.

ErrorRows This output item is available when you select Continue on Error, anderror(s) while parsing the records in the input.

Raw input data is put in the error string.

This field contains the list of error lines for the records from the inputthat failed parsing.

246

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 247: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Outputitem Datatype Description

done boolean true if no more records are available for parsing. false if there aremore records available.

This output item is useful to check whether there are no more recordsin the input stream when reading the input in parts to preservememory.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown When..

FileNotFoundException The specified input file cannot be located.

BadDataFormatException The input format is not valid.

Parsing a Large Number of Records

The input for this activity is placed in a process variable and takes up memory as it is being processed.When reading a large number of records from a file, the process may consume significant machineresources. To avoid too much memory, you may want to read the input in parts, parsing and processinga small set of records before moving on to the next set of records.

This procedure is a general guideline for creating a loop group for parsing a large set of input recordsin parts. You may want to modify the procedure to include additional processing of the records, or youmay want to change the XPath expressions to suit your business process. If processing a large numberof records, do the following:

1. Select and drop the Parse Data activity on the process editor.

2. On the General tab, specify the fields and select the Manually Specify Start Record check box.

3. Select the Parse Data activity and click the group icon on the tool bar to create a group containingthe Parse Data activity.

4. Specify Repeat Until True Loop as the Group action, and specify an index name (for example, "i").

The loop must exit when the EOF output item for the Parse Data activity is set to true. For example,the condition for the loop can be set to the following: string($ParseData/Output/done) =string(true())

5. Set the noOfRecords input item for the Parse Data activity to the number of records you want toprocess for each execution of the loop.

If you do not select the Manually Specify Start Record check box on the General tab of the ParseData activity, the loop processes the specified noOfRecords with each iteration, until there are nomore input records to parse.

You can optionally select the Manually Specify Start Record check box to specify the startRecordon the Input tab. If you do this, you must create an XPath expression to properly specify the startingrecord to read with each iteration of the loop. For example, the count of records in the input starts atzero, so the startRecord input item could be set to the current value of the loop index minus one. Forexample, $i - 1.

247

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 248: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Render Data

The Render Data activity takes an input of a data schema and renders it as a text string. Theschema processed is based on a specified Data Format shared resource.

You can use this activity in various scenarios, for example, retrieving a result set from a database table.You may want 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.

● Use the Render Data activity to render the data schema as a formatted text string.

● Use the Write File activity to write the string to a file.

General

The General tab has the following fields.

FieldModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

Data Format No The Data Format shared resource to use when rendering the textoutput.

Input

The following is the input for the activity.

Input Item Datatype Description

Rows complex The element containing the list of items to render.

root complex The complex element containing data schema (specified by the DataFormat shared resource) to render as a text string. This is a repeatingelement which renders more than one output record.

Output

The following is the output of the activity.

OutputItem Datatype Description

text string The output text string as a result of rendering the specified dataschema. Line breaks separate records of the data schema.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

248

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 249: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Fault Thrown When..

BadDataFormatException The output format is not valid.

249

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 250: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Rendezvous Palette

Using the Rendezvous palette you can send and receive TIBCO Rendezvous® messages.

To run Rendezvous® applications on UNIX, set the LD_LIBRARY_PATH variable and RV_HOMEspecifying the RV lib path.

You must install Rendezvous® if you want to use the Rendezvous palette features. Refer to the productreadme, readme.txt, for the supported versions.

Datatype ConversionWhen sending or receiving Rendezvous® messages, ActiveMatrix BusinessWorks™ converts the fieldsof the message to the correct datatypes. Data in the incoming Rendezvous® messages is converted toActiveMatrix BusinessWorks™ datatype (and represented in the activity’s output). Data in an outgoingmessage is converted to Rendezvous® datatypes.

The following tables describe the corresponding datatypes between ActiveMatrix BusinessWorks™ andTIBCO Rendezvous, depending upon whether ActiveMatrix BusinessWorks™ is sending or receivingthe message.

Rendezvous® to ActiveMatrix BusinessWorks™ Datatype Conversion

Rendezvous® Datatype XSD Dataype

TIBRVMSG_BOOL boolean

TIBRVMSG_I8 byte

TIBRVMSG_I16 short

TIBRVMSG_I32 int

TIBRVMSG_I64 long

TIBRVMSG_U8 unsignedByte

TIBRVMSG_U16 unsignedShort

TIBRVMSG_U32 unsignedInt

TIBRVMSG_U64 unsignedLong

TIBRVMSG_F32 float

TIBRVMSG_F64 double

TIBRVMSG_OPAQUE hexBinary or base64Binary, depending upon what is defined inthe schema.

TIBRVMSG_DATETIME date

TIBRVMSG_STRING string

250

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 251: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

ActiveMatrix BusinessWorks™ to Rendezvous® Datatype Conversion

XSD Datatype TIBCO Rendezvous Datatype

boolean TIBRVMSG_BOOL

byte TIBRVMSG_I8

short TIBRVMSG_I16

int TIBRVMSG_I32

long TIBRVMSG_I64

integer TIBRVMSG_I64

unsignedByte TIBRVMSG_U8

unsignedShort TIBRVMSG_U16

unsignedInt TIBRVMSG_U32

unsignedLong TIBRVMSG_U64

float TIBRVMSG_F32

double TIBRVMSG_F64

hexBinary or base64Binary,depending upon what is defined inthe schema.

TIBRVMSG_OPAQUE

date TIBRVMSG_DATETIME

dateTime TIBRVMSG_DATETIME

time TIBRVMSG_STRING

string TIBRVMSG_STRING

Field Names in MessagesA Rendezvous® message can contain field names that are not compliant with XML naming rules. Forexample, XML element names can neither begin with a number, nor can they contain special characters,such as # or ^. When activities in the Rendezvous palette send or receive messages, element names inthe input schemas or output schemas for the activity must comply with XML naming rules. Anyelement in referenced schemas in the input schemas or output schemas is automatically altered tocomply with XML naming rules. From the XML-Compliant Field Names field, you can handle theincoming or outgoing messages when the field names are not valid XML names.

When the XML-Compliant Field Names field is clear, any field name in the incoming or outgoingmessages not compliant with XML naming rules, is altered to comply with the rules. When this field isselected, field names in the message are left unaltered.

When publishing a message with XML-Compliant Field Names field not selected, the field names inthe message sent over the transport to the receiving application are altered to comply with XML

251

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 252: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

naming rules. By selecting this field, you can send the message with the original field names intact; noalterations are made to the field names. This is useful in the case where you reference a schema in theInput Editor tab that contains invalid XML names. The receiving application receives the message withthe original field names, if the XML-Compliant Field Names field is not selected.

When receiving a message, not selecting the XML-Compliant Field Names field ensures that fieldnames in the incoming message are altered to comply with XML naming rules. If the message containsfields that do not comply to XML naming rules, the output schema of the subscriber activity mustspecify the correct altered name to match the altered name of the field in the incoming message.Keeping the field clear leaves the field names of the message intact.

Not selecting the XML-Compliant Field Names field involves extra processing of incoming andoutgoing messages. If you are certain that messages contain only field names that comply with XMLnaming rules, you can clear this field to improve performance.

Globalization SupportRendezvous® activities use bw.palette.messageEncoding property as the wire format encoding.

If this property is not set, the default wire format encoding value which supports all the character set, isUTF-8. To change the wire format encoding other than UTF-8, set the bw.palette.messageEncodingproperty to the required encoding. In design time, you can specify the property in VM arguments ofDebug/Run Configurations like -Dbw.palette.messageEncoding=ISO8859-1 in the DebugConfigrations dialog. See the following screenshot for reference.

ISO8859-1 supports English and other western European languages that belong to ISO Latin-1 characterset. UTF-8 can send and receive characters that are not in the ASCII and Latin-1 character set.

In run time, you can specify the property in the config.ini file of the AppNode. For details, refer toAdministration guide.

252

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 253: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Rendezvous PublisherRendezvous Publisher is a synchronous activity that publishes a Rendezvous® message on the specificsubject with the specified message content.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Subject Yes The subject on which to publish the Rendezvous® message. Specifya subject on the Input tab to override this value.

Transport Literal Value/ModuleProperty

The Rendezvous® transport parameters. These are specified asRendezvous Transport shared configuration resource.

Pre RegisterListener

Yes When using TIBCO Rendezvous Certified Messaging (RVCM), thisfield specifies the cmnames of the RVCM subscribers. Thepublisher preregisters with any expected listeners. If multiplecmnames are specified, separate each cmname with a comma.

See the Rendezvous® documentation for more information aboutRVCM.

XML Format None If selected, the body of the Rendezvous® message is placed into asingle field named XML. This field is a byte array containing thebody of the message. The datatype of the field is TIBRVMSG_XML.

XMLCompliantField Names

None Specifies whether the field names of the outgoing message shouldbe altered so that they comply with XML naming rules.

Clear this check box to alter only the field names that do notcomply with XML naming rules. When selected, the field namesare left unaltered.

Description

Add a short description for the activity.

Input Editor

Define a schema element for the body of the Rendezvous® message.

Input

The following is the input of this activity.

253

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 254: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldDataSource Description

subject string The subject of the Rendezvous® message.

replySubject string The subject to send replies for this Rendezvous® message. This isuseful if you want to use the Wait for Rendezvous Message activitylater in the process to receive replies to the message.

preRegisterListner

string When using TIBCO Rendezvous Certified Messaging (RVCM), thisfield specifies the cmnames of the RVCM subscribers. This allows thepublisher to pre-register with any expected listeners. If multiplecmnames are specified, separate each cmname with a comma. Anylisteners preregistered on the Transport tab are also preregisteredwith the listeners specified in this element.

body complex The body of the Rendezvous® message.

This field displays only when any schema is provided in the InputEditor tab.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When..

TransportException The transport cannot be created.

SerializationException The message cannot be serialized.

RVPluginException An error occurred when sending the message.

Rendezvous Reply To RequestRendezvous Reply to Request is a synchronous activity that is used to send a reply to a receivedRendezvous® message.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

254

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 255: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Reply to None The TIBCO Rendezvous activity or process starter that receivedthe request. This is a selection list of the following availableactivities that can receive Rendezvous® messages.

● RendezvousSubscriber

● WaitForRendezvousMessage

Reply Subject Yes The reply subject of the received TIBCO Rendezvous message.You can override this value by specifying a subject on the Inputtab.

XMLCompliantField Names

None Select this check box to specify whether the field names of theoutgoing message should be altered so that they comply with theXML naming rules.

Clear this check box to alter only the field names that do notcomply with XML naming rules. When selected, the field namesare left unaltered.

Description

Provide a short description for the activity.

Input Editor

Use the Input Editor tab to define a custom schema for the body of the Rendezvous® message.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

Input

The following is the input for the activity.

Input Item Datatype Description

replySubject string The reply subject of the Rendezvous® message.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See the Error Codes guide for moreinformation about error codes and the corrective action to take.

Fault Thrown When..

RVPluginException An error occurred when sending the reply message.

255

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 256: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Rendezvous SubscriberRendezvous Subscriber is a process starter activity that creates a process when a Rendezvous®

message on the specified subject is received.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Subject Yes The subject on which to listen for the Rendezvous® message.

Transport Literal Value/ModuleProperty

The Rendezvous® transport parameters. These are specified as aRendezvous Transport shared resource.

XML Format None If you select this check box, the body of the incomingRendezvous® message is a single field named "xml". This field is abyte array containing the body of the message.

ActiveMatrix BusinessWorks™ automatically deserializes the xmlfield and represents the message as a schema tree in this activity’soutput.

When selected, the Need Input Filteration check boxgets disabled.

Need OutputFilteration

None Specifies that only fields that match the name and datatype of theschema elements specified on the Output Editor tab should beprocessed. Any elements that do not match the specified schemaare ignored and not included in this activity’s output.

This is useful if you need only a subset of the fields of anincoming message. Any unnecessary fields are not included in theactivity output. This saves memory, and consequently improvesthe performance.

This option is valid, only when the XML Format checkbox is not selected. Do not select this check box whenthe XML Format check box is also selected.

XMLCompliantField Names

None Specifies whether the field names of the incoming message shouldbe altered so that they comply with XML and ActiveEnterprisenaming rules. Only field names that do not comply with XML andActiveEnterprise naming rules are altered when this check box isnot selected. When selected, field names are left unaltered.

256

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 257: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Raw-RV-Object Mode

None Selecting this check box disables XML Format, Needs OutputFiltration, and XML-Compliant Field Names check boxes.

Select this check box to specify that the body of the RV message isthe output as a Java object reference. A subsequent Java Invokeactivity in the process can accept the reference as an inputparameter and then construct the RV message from the object. Touse the Java object, the Java Invoke activity must cast the objectreference as a byte array. For example:

TibrvMsg tibrvMsg = new

TibrvMsg ((byte[])in_var_1);

Where in_var_1 is the input parameter for the Java Invokeactivity that is mapped to the object reference of the objectcontaining the Rendezvous® message.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following fields.

Field Description

Sequence Key This field can contain an XPath expression that specifies which processes shouldrun in a sequence. Process instances with sequence keys that evaluate to thesame value, are executed sequentially in the sequence the process instance wascreated.

Custom Job Id This field can contain an XPath expression that specifies a custom job ID for theprocess instance.

Output Editor

Use the Output Editor tab to define a custom schema for the body of the Rendezvous® message.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

Output

The following is the output of the activity.

257

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 258: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Datatype Description

sendSubject string The subject of the received message.

replySubject string The reply subject of the Rendezvous® message.

Rendezvous Request ReplyRendezvous Request Reply is an asynchronous activity that publishes a Rendezvous® message on thespecified subject with the specified message content. A reply to the message on the specified replysubject and with the specified reply message content is received by this activity. This activity waits for areply on the reply subject and outputs the content of the reply. This activity uses the INBOX mechanismto ensure that reply messages are received only by the process that sent the request.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Subject Yes The subject on which to publish the Rendezvous® message. Youcan override this value by specifying a subject on the Input tab.

Transport Yes The TIBCO Rendezvous transport parameters. These arespecified as a Rendezvous Transport shared configurationresource.

Request Timeout(msec)

Yes The length of time to wait (in milliseconds) for a reply to theRendezvous® message. If no reply is received in the specifiedtime limit, it returns an error.

Pre-registerListener

Yes When using TIBCO Rendezvous Certified Messaging (RVCM),this field specifies the cmnames of the RVCM subscribers. Thesender can preregister with any expected listeners. If multiplecmnames are specified, separate each cmname with a comma.

See the TIBCO Rendezvous documentation for moreinformation about RVCM.

XML Format None If this check box selected, the body of the Rendezvous® requestand reply messages is sent as a single field named "xml". Thisfield is a byte array containing the body of the message.

258

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 259: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Needs OutputFiltration

None Specifies that only fields in the reply message that match thename and datatype of the schema elements specified on theOutput Editor tab should be processed. Any elements that donot match the specified schema are ignored and not included inthis activity’s output.

This is useful if you need only a subset of the fields of a replymessage. Any unnecessary fields are not included in theactivity output. This saves memory, and consequently improvesperformance.

This option is only valid when the XML Formatcheck box is not selected.

XML CompliantField Names forInput

None Specifies whether the field names of the input message shouldbe altered so that they comply with XML naming rules. Onlyfield names that do not comply with XML naming rules arealtered when this check box is not selected.

Select this check box if you want the field names to beunaltered.

XML CompliantField Names forOutput

None Specifies whether the field names of the outgoing messageshould be altered so that they comply with XML naming rules.Only field names that do not comply with XML naming rulesare altered when this check box is not selected.

Select this check box if you want the field names to beunaltered.

Description

Provide a short description for the activity in this field.

Input Editor

In the Input Editor tab you can define custom schemas for the body of the outgoing Rendezvous®

request and body of the incoming Rendezvous® response.

Output Editor

In the Output Editor tab you can define custom schemas for the body of the outgoing Rendezvous®

request and body of the incoming Rendezvous® response.

Input

The following is the input for this activity.

Input Item Datatype Description

subject string The subject of the Rendezvous® message.

259

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 260: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

replySubject string The reply subject for this activity.

timeout number The amount of time to wait (in milliseconds) for a reply to theRendezvous® message. If no reply is received in the given timelimit, an error is returned.

Output

The following is the output of this activity.

Output Item Datatype Description

ReplySubject string A reply message can optionally have a reply subject,presumably so that the two applications can communicate withfurther messages. This element contains the reply subject set onthe reply message, if one is set. If no reply subject is set on thereply message, this element is not populated.

Fault

The Fault tab lists the possible exceptions that can be thrown by this activity. See the Error Codes guidefor more information about error codes and the corrective action to take.

Fault Thrown When..

TransportException The transport cannot be created.

SerializationException The message cannot be serialized.

RVPluginException An error occurred when sending the message.

ActivityTimedOutExcepti

on

A timeout has been reached.

Wait for Rendezvous MessageWait for Rendezvous Message activity waits to receive a Rendezvous® message with the specifiedsubject.

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

260

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 261: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Subject Yes The subject on which to listen for the Rendezvous® message.

Transport Yes The Rendezvous® transport parameters. These are specified as a Rendezvous Transport shared configuration resource.

XML Format None If this check box is selected, the body of the incomingRendezvous® message is expected to be a single field named"xml". This field is a byte array containing the body of themessage.

TIBCO ActiveMatrix BusinessWorks automatically deserializesthe xml field and represents the message as a schema tree inthis activity’s output.

Needs OutputFiltration

None Specifies that only fields that match the name and datatype ofthe schema elements specified on the Output Editor tab shouldbe processed.

Any elements that do not match the specified schema areignored and not included in this activity’s output.

XML-CompliantField Names

None Specifies whether the field names of the incoming messageshould be altered so that they comply with XML andActiveEnterprise naming rules. Only field names that do notcomply with XML naming rules are altered when you clear thischeck box.

Select this check box to leave the field names unaltered.

Description

Provide a short description for the activity.

Event

The Event tab has the following fields.

Field Description

Event Timeout (seconds) A message may arrive before this activity is executed. This fieldspecifies the amount of time (in seconds) a message waits if it isreceived before this activity is executed. If the event timeout expires,an error is logged and the event is discarded.

Activity Timeout (msec) Specify the amount of time (in milliseconds) for an activity to waitbefore it is executed.

261

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 262: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Editor

From the Output Editor tab you can define custom schemas for the body of the outgoing Rendezvous®

request and body of the incoming Rendezvous® response.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

Output

The Output tab has the following fields.

Output Item Datatype Description

sendSubject string The subject of the received message

replySubject string The reply subject of the Rendezvous® message

Fault

The Fault tab lists the possible exceptions that can be thrown by this activity. See the Error Codes guidefor more information about error codes and the corrective action to take.

Fault Thrown When..

ActivityTimedOutExcepti

on

A timeout has been reached.

262

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 263: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

REST and JSON

The activities of REST and JSON Palette can be used to invoke RESTful web services and exposeprocesses as RESTful web services. The activities in this group can also be used to convert data betweenJSON format and XML format.

BW JSON UtilsBW JSON utils provide an easier way to create XML schema (XSD files) from JSON payload or SQLstatements.

Create XSD Schema from JSON payload

To create schema from an available JSON payload:

1. From the Project Explorer pane, right-click on the Schemas folder and click New > XML SchemaFile from JSON Payload.

2. In the JSON to Schema Wizard, enter a schema file name in the Schema File Name field.

3. Enter the JSON payload, to be used during the conversion, in the JSON Sample field, and clickNext.

A validation error displays in TIBCO Business Studio™ if any values from the JSONpayload are not valid.

If the conversion is successful, the message JSON payload parsed successfully...Created schema<Name>.xsd displays in the JSON to Schema Wizard window, and you can close the wizard.

Create Schema from an SQL String

To create SQL schema, do the following:

1. In the Process package, click Resources > JDBC Connection Resource and verify whether the JDBCconnection is able to connect to the database successfully.

2. Right-click the fully configured JDBC Connection Resource > BW JSON Utils > Create Schemafrom SQL.

3. In the SQL Query Builder, provide the query statement to fetch the required information and clickOK.

4. A "Schema has been created successfully under the Schemas folder with <Name>.xsd."message is displayed.

Invoke REST APIInvoke REST API asynchronous activity invokes RESTful web services and receives responses from theservice provider.

For the Invoke REST API activity to work, an HTTP Client shared resource is required. In the HTTPClient shared resource, make sure Apache HttpComponents (Supported by HTTP and REST) isselected as the Implementation Library in the HTTP Client section.

General

The General tab has the following fields.

263

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 264: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty Description

Name No The name to be displayed as the label for the activity in theprocess.

HTTP Client Yes The HTTP client resource.

Resource Path No The resource of the REST service.

Spaces and special characters are not supported inthe path and query parameter name.

HTTP Method No The REST methods used for the requests.

Select from one of the following available methods:

● POST

● GET

● PUT

● DELETE

● Patch

Request Type No The value of the Content-Type header set while invoking theREST operation.

● JSON: the service provider returns the data in the JSONformat.

● XML: the service provider returns the data in the XMLformat.

● Custom: to override the Content-Type value in the Inputtab, select CUSTOM and provide the value in the Inputtab.

Response Type No The value of the Accept header set while invoking the RESTOperation.

● JSON: the service provider returns the data in the JSONformat.

● XML: the service provider returns the data in the XMLformat.

● Custom: to override the Accept header value in the Inputtab, select CUSTOM and provide the value in the Inputtab.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following fields.

264

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 265: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Output HTTP ResponseHeaders

Request Entity Processing This field has two values:

● BUFFERED: the request entity is buffered in memory to determinethe content length that is sent as a Content-Length header in therequest.

● CHUNKED: the entity is sent as chunked encoded (no Content-Length is specified, entity is streamed). The Transfer-Encodingheader is set to Chunked.

The default value is Chunked.

Input

The following is the input for the activity.

Input Item Datatype Description

Message Body The body of the HTTP request message.

asciiContent string The ASCII content (ASCII content of the request like POST orPUT to the server) of the request to the HTTP server.

265

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 266: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

HttpHeaders string The header of the HTTP request. The header structure isdefined by the HTTP protocol. See the HTTP protocolspecification for more information about the fields andcontent of the header of an HTTP request.

● Accept: specifies the media types that are acceptable forresponse messages for the incoming request. For example,text/*,text/html. Media types are described in theHTTP specification.

● Accept-Charset: specifies the character sets that areacceptable for response messages for the incomingrequest. For example, iso-8859-5, unicode-1-1. Charactersets are described in the HTTP specification.

● Accept-Encoding: specifies the content-coding values thatare acceptable for response messages. For example,compress, gzip.

● Content-Type: the media type of the entity body sent tothe receiver. Media types are described in the HTTPspecification.

● Content-Length: indicates the size of the entity body sentto the receiver.

● Connection: the requestor can specify options desired forthis connection. For example, the option close specifiesthat the requestor would like the connection to be closedwhen the request is complete.

● Cookie: See the HTTP specification for more informationabout this field.

● Pragma: is used to include implementation-specificdirectives that might apply to the receiver. See the HTTPspecification for more information about using this field.

DynamicHeaders complex The dynamic header is an additional header parameter toadd runtime headers to the outgoing HTTP messages. TheDynamicHeaders consists of the following information:

● Name: the name of the header

● Value: the value of the header

Output

The Output tab has the following fields.

Output Item Description

StatusCode The HTTP Response Code.

ReasonPhrase ReasonPhrase is intended for giving a short textual description ofStatusCode.

266

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 267: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Output Item Description

mesageBody The body of the response message. This is asciiContent.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown when...

HttpCommunicationExcep

tion

An HTTP exception occurred when trying to execute the specifiedmethod, or when trying to read the response.

HttpClientException The HTTP server replied with a message that has the 4XX status code.

HttpServerException The HTTP server replied with a message that has the 5XX status code.

Support for Path and Query Parameters

Invoke REST API activity supports both Path and Query parameters. For Path Parameters, encloseeach path parameter in { } brackets. For example, if the resource path is set as /books/{isbn}, aPathParameters element is added to the activity input.

Multiple path parameters can be defined in a similar way. The activity also supports static URL contentmixed with path parameters, for example, /books/{isbn}/events/{author}.

Query parameters are defined using the pattern /staticUrl?Param1&Param2.

A QueryParameters element is added to the Input tab of the activity with each of the parameter listed.For example, if the resource path is set as /books?isbn&author, a QueryParamters element is added tothe activity input.

Policy

Activities that support policies will display the Policy tab. To associate a new or existing policy with the

Invoke REST API activity, click the Add Policy to Activity icon. To edit policy details, click Go to

selected Policy icon. The Policy tab has the following fields.

267

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 268: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Name The name of the policy.

Type The type of policy associated with the activity. The Invoke REST API activitycan support the Basic Credential Mapping policy.

Description A description of the policy.

Restrictions on XML SchemaThis topic lists the restrictions on XML Schema.

General Restrictions

● No wildcards or attribute wildcards. For example, any element and any attribute is not supported.

● Complex types may not contain both an attribute and a child element with the same local name.

● Complex types may not be of the pattern "simple type plus attributes".

● Complex types may not contain mixed content.

● Attributes that are not part of the default(empty) namespace, cannot be used for Complex Elements.

● The 'choice' and 'sequence' compositors may not have maxOccurs > 1 (same as the restriction on'all' in the schema specification).

● Substitution groups are not supported.

● Element of simple type with an attribute is not supported.

● The elementFormDefault can only be qualified for schemas used by REST binding and JSONactivities.

● Schemas should not contain cyclic dependencies on other schemas

● Schemas should not have a type that has two child members with the same local name, but differentnamespaces.

Restrictions on JSON

● Arrays must have homogeneous content.

● Arrays cannot directly contain arrays ( [ [ ... ], [ ... ] ] )

Not currently supported

● Binary content in JSON as a special case

Parse JSONParse JSON activity takes the JSON data, processes it, and converts it into XML data.

General

The General tab has the following fields.

268

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 269: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ProcessProperty/ModuleProperty Description

Name None The name to display as the label for the activity in the process.

Schema Type None Specifies the mode for the output data. The following are thesupported schema types:

● Generic: converts a JSON string to an XML string

● XSD: converts a JSON string to an XML document definedusing a schema specified in the Output Editor.

The default value in this field is the XSD schema type.

Ensure the schema resource you select does notcontain cyclic dependencies on other schemas , or atype that has two child members with the same localname, but different namespaces.

Badgerfish None Specifies the following conversion rules:

● Select this check box for converting JSON data to XML datawith the mapping of XML namespace, XML attribute,CDATA, and so on.

● Do not select this check box if you want normal conversionrules for mapping data from JSON to XML.

Input Json Style None Specifies the method to parse the data.

● None : Select this option to exclude the root element in theJson string.

● Json with Root : Select this option to include the rootelement in the input Json string.

● Anonymous Array : Select this option to accept a Json arraywithout the parent element, where the root element hasexactly one child of the type Array.

Description

Provide a short description for the activity.

Output Editor

From the Output Editor you can define or reference an XML schema for the activity output. You canuse the BW JSON Utils tool to generate an XML schema file with a specified JSON file. Refer to BWJSON Utils for more information.

Input

The Input tab has the following fields.

269

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 270: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

json string The input JSON data for translation.

Output

The output for the Parse JSON activity varies depending on the data schema you specified in theSchema Type field on the General tab.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown when...

JSONParserException An exception occurred when parsing the JSON data.

Render JSONRender JSON activity takes XML data and renders it as a JSON string.

General

The General tab has the following fields.

Field

LiteralValue/ProcessProperty/ModuleProperty Description

Name None The name to be displayed as the label for the activity in theprocess.

Schema Type None Specifies a schema type for the output data. The following are thesupported schema types:

● Generic : converts an XML string to a JSON string

● XSD : converts an XML string to a JSON document definedusing a schema specified in the Output Editor.

The default value in this field is the XSD schema type.

Badgerfish None Specifies the following conversion rules:

● Select this check box for converting JSON data to XML datawith the mapping of XML namespace, XML attribute,CDATA, and so on.

● Do not select this check box if you want normal conversionrules for mapping data from JSON to XML.

270

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 271: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ProcessProperty/ModuleProperty Description

Output JsonStyle

None Specifies the method to render the data.

● None : Select this option to exclude the root element in theJson string.

● Json with Root : Select this option to include the root elementin the input Json string.

● Anonymous Array : Select this option to return a Json arraywithout the parent element, where the root element hasexactly one child of the type Array.

Description

Provide a short description for the activity.

Input Editor

From the Input Editor tab, you can define or reference an XML schema for the activity input. You canalso use the BW JSON Utils tool to generate an XML schema file with a specified JSON file. See BWJSON Utils for more information.

Input

The input data for the Render JSON activity is in the XML format. The schema type of the XML datavaries depending on the schema type you specified in the Schema Type field on the General tab.

Output

The Output tab contains the following field.

Field Description

jsonString The translated data in JSON string format.

Fault

The Fault tab lists the possible exceptions thrown by this activity. See Error Codes for more informationabout error codes and the corrective action to take.

Fault Thrown when...

JSONRendererException An exception occurred when rendering the data.

271

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 272: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Policy Resources

Policies are resources which you can define and configure in TIBCO Business Studio™. You can define apolicy and then reference it from multiple activities or binding in the same or different process. Forexample, you can define a Basic Authentication policy, and refer to the policy from an HTTP ReceiverActivity in one process and a Send HTTP Request Activity in a separate process.

Basic Authentication Policy

Applying this policy ensures that users cannot access your application unless their credentials areverified.

Basic AuthenticationThe Basic Authentication policy resource provides options you can configure when you set up a basicauthentication security policy.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the policy resource package.

Name The name of the policy resource.

Description A short description of the policy resource.

Service Provider Details

The service provider you select authenticates user name and password credentials. The ServiceProvider Details section has the following fields.

Field Description

SelectAuthenticationType

Select a way to authenticate user credentials:

● LDAP Authentication● XML File Authentication

LDAP Resource Create a new LDAP Authentication resource, or specify an existing LDAPAuthentication resource. The Basic Authentication policy references theLDAP Authentication resource you select.

XML File Resource Create a new XML Authentication resource, or specify an existing XMLAuthentication resource. The Basic Authentication policy references the XMLAuthentication resource you select.

272

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 273: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Basic Credential MappingConfigure the Basic Credential Mapping policy resource to set up a basic credential mapping securitypolicy.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the policy resource package.

Name The name of the policy resource.

Description A short description of the policy resource.

Credential Mapping

You can choose to enforce either Fixed credential mapping or Conditional credential mapping.

Fixed

Select this option to ensure that a fixed set of credentials is applied to all users regardless of their usertype or role. The Fixed section has the following fields:

Field Description

Identity Provider Select an Identity Provider to authenticate user credentials

Conditional

Select Conditional credential mapping to enforce credential mapping for authenticated users andanonymous users. Credentials are mapped for authenticated users if the request comes from anauthenticated service. Credentials are mapped for anonymous users if the request comes from anunathenticated service.

The Conditional section has the following fields:

Field Description

Role based IdentityProviders

Type roles for authenticated users and associate an Identity Provider witheach role. You can reuse the same Identity Provider for multiple roles.

AuthenticatedIdentity Provider

Select an Identity Provider shared resource for authenticated users.

273

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 274: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

AnyonymousIdentity Provider

To allow anonymous users access to your secure application, specify anIdentity Provider. To not allow anonymous users access, do not specify anIdentity Provider .

Application logic can also affect how credentials are mapped foranonymous users. For example, application logic might dictate thatanonymous requests are redirected to specific entry points. If ananonymous request is directed to an enforced entry point, therequest is rejected.

WSS ConsumerConfigure the WSS Consumer policy to enforce confidentiality, integrity, and timestamping, andcredential mapping.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the policy resource package.

Name The name of the policy resource.

Description A description of the policy resource.

Shared Resource for WSS Processing

The Shared Resource for WSS Processing section has the following fields.

Field Description

WSSAuthentication

The WSS Authentication shared resource that the WSS Consumer policyreferences.

Service Provider Details

The Service Provider Details section comprises of the Confidentiality tab, the Integrity tab, theTimestamp tab, and the Credential Mapping tab.

Confidentiality

To maintain confidentiality, the policy can be configured for an outbound request to be encrypted andan inbound response to be decrypted at its endpoint. The Confidentiality tab has the following fields:

274

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 275: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Encrypt Request Specify the following fields:

1. Trust Provider: Select a Trust Provider shared resource.

2. Key Alias: Specify a Key Alias.

3. Algorithm Suite: Specifies the algorithm suite required for performingcryptographic operations with symmetric or asymmetric key basedsecurity tokens. An algorithm suite specifies actual algorithms andallowed key lengths. The default selection is Basic128. You can select adifferent algorithm suite from the drop-down menu.

4. Encrypt: Specify to Encrypt Parts or to Encrypt Elements of the message.

a. Encrypt Parts: Select this option to encrypt the Body, Header, or bothparts of the message.

b. Encrypt Elements: Select this option to encrypt elements in therequest message. When specifying the Element, ensure you alsospecify the Namespace of the element, and Prefix of the element if ithas one.

Decrypt Response No additional configuration required.

Integrity

To maintain integrity, the outbound request can be signed and the signature verified in the inboundresponse. The Integrity tab has the following fields:

Field Description

Sign Request Specify the following fields:

1. Subject Provider: Select a Subject Provider shared resource.

2. Digest Algorithm for Signature: The algorithm takes as input a messageof arbitrary length and produces as output a 128-bit "fingerprint" or"message digest" of the input. Default type is SHA-256. You can select adifferent type from the drop-down menu.

3. Algorithm Suite: Specifies the algorithm suite required for performingcryptographic operations with symmetric or asymmetric key basedsecurity tokens. An algorithm suite specifies actual algorithms andallowed key lengths. Default type is Basic128. You can select a differentalgorithm suite from the drop-down menu.

4. Sign: Specify to Sign Parts or to Sign Elements.

a. Sign Parts: Select this option to sign the Body, Header, or both partsof the message.

b. Sign Elements: Select this option to sign elements in the requestmessage. When specifying the Element, ensure you also specify theNamespace of the element, and Prefix of the element if it has one.

275

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 276: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Verify Signature onResponse

Select from the following options from the drop-down menu Verify parts thatare signed :

1. Entire message

2. Message header

3. Message body

Timestamp

Under the Timestamp tab, configure the following fields to insert a timestamp in an outbound requestand verify a timestamp in the inbound response.

Field Description

Set Timestamp onRequest

Specify time-to-live in seconds.

Verify Timestampon Response

No additional configuration required.

Credential Mapping

Under the Credential Mapping tab, select either Username Token credential mapping or SAML Tokencredential mapping to map credentials to the outbound request.

Field Description

No Credentials Select this option to ensure credential mapping is not enforced.

Username Tokenbased CredentialMapping

Select Fixed or Conditional:

● If you select Fixed, specify an Identity Provider resource in the IdentityProvider field.

● If you select Conditional, specify the types of users your application willmap credentials for. You can choose to map credentials for authenticatedusers with roles, authenticated users, and anonymous users. Refer to BasicCredential Mapping for configuration details. .

276

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 277: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

SAML Token basedCredentialMapping

Configure the following fields:

1. SAML Token Profile: Select a token type. Specify either SAML 1.1 Token1.1 or SAML 2.0 Token 1.1 .

2. Sign SAML Assertion: If you select this option, specify a SubjectProvider, a Digest Algorithm for Signature, and an Algorithm Suite.

3. SAML Issuer Name: Type a SAML issuer name.

4. SAML Assertion Validity: Select SAML Assertion Validity (forever) toensure that the SAML assertion is valid indefinitely. Optionally, you canselect Specify Validity Period (sec) to specify the number of seconds theSAML assertion is valid .

WSS ProviderThe WSS Provider policy acts on the server side to ensure that the confidentiality, integrity, andtimestamp of a request remains secure.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the policy resource package.

Name The name of the policy resource.

Description A short description of the policy resource.

Shared Resource for WSS Processing

The Shared Resource for WSS Processing section has the following fields.

Field Description

WSSAuthentication

The WSS Authentication shared resource that the WSS Provider policyreferences.

Service Provider Details

The Service Provider Details section comprises of the Authentication tab, Confidentiality tab, theIntegrity tab, and the Timestamp tab.

Authentication

The Authentication tab has the following fields that you can enable to enforce authentication on arequest message.

277

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 278: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

No Verification Select this option to ensure that credentials are not authenticated throughuser name token or SAML token.

Verify usernametoken

Select this option to authenticate user credentials through user name token. Ifyou select this option, ensure you have configured the User Authenticationtab on the WSS Authentication Shared Resource.

Verify SAML token Select this option to authenticate user credentials through SAML token.

Select one of the following confirmation methods:

1. Bearer

2. Holder of Key

3. Sender Vouches

Select one of the following security token types:

1. SAML 1.1 Token 1.1

2. SAML 2.0 Token 1.1

Specify Issuer Name

Confidentiality

An inbound request can be decrypted and an outbound response can be encrypted to maintainconfidentiality. The Confidentiality tab has the following fields:

Field Description

Decrypt Request No additional configuration required.

Encrypt Response Specify the following fields:

1. Trust Provider: Select a Trust Provider shared resource.

2. Key Alias: Specify a Key Alias.

3. Algorithm Suite: Specifies the algorithm suite required for performingcryptographic operations with symmetric or asymmetric key basedsecurity tokens. An algorithm suite specifies actual algorithms andallowed key lengths. The default selection is Basic128. You can select adifferent algorithm suite from the drop-down menu.

4. Encrypt: Specify to Encrypt Parts or to Encrypt Elements of the message.

a. Encrypt Parts: Select this option to encrypt the Body, Header, or bothparts of the message.

b. Encrypt Elements: Select this option to encrypt elements in theresponse message. When specifying the Element, ensure you alsospecify the Namespace of the element, and Prefix of the element if ithas one.

278

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 279: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Integrity

Maintain integrity by verifying the signature on an inbound request and signing an outbound response.The Integrity tab has the following fields:

Field Description

Verify Signature onRequest

Select from the following options from the drop-down menu Verify parts thatare signed :

1. Entire message

2. Message header

3. Message body

Sign Response Specify the following fields:

1. Subject Provider: Select a Subject Provider shared resource.

2. Digest Algorithm for Signature: The algorithm takes as input a messageof arbitrary length and produces as output a 128-bit "fingerprint" or"message digest" of the input. Default type is SHA-256. You can select adifferent type from the drop-down menu.

3. Algorithm Suite: Specifies the algorithm suite required for performingcryptographic operations with symmetric or asymmetric key basedsecurity tokens. An algorithm suite specifies actual algorithms andallowed key lengths. Default type is Basic128. You can select a differentalgorithm suite from the drop-down menu.

4. Sign: Specify to Sign Parts or to Sign Elements of the message.

a. Sign Parts: Select this option to sign the Body, Header, or both partsof the message.

b. Sign Elements: Select this option to sign elements in the responsemessage. When specifying the Element, ensure you also specify theNamespace of the element, and Prefix of the element if it has one.

Timestamp

To track the time of the request, a timestamp is inserted in the request. The Timestamp tab has thefollowing fields:

Field Description

Verify Timestampon Request

No additional configuration required.

Set Timestamp onResponse

Specify the time-to-live in seconds.

279

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 280: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Shared Resources

Shared resources are used to define a resource that contains configuration data that can be referencedfrom multiple processes.

You can define a shared resource and then reference it from multiple activities in the same or differentprocess. For example, you can define a JDBC Connection resource and then use it in any of the JDBCactivities in your process to connect to the database.

Shared resources such as JDBC Connection, JMS Connection, HTTP Connection, and so on areavailable at design-time. At runtime, the referencing activities and event sources have full access totheir instances and configuration. Shared resources can be grouped in packages, similar to the wayprocess packages and Java packages are presented in the file system.

When defined in an application module, shared resources are not visible outside the applicationmodule. However, when defined in a shared module, they are visible outside the shared module.

For more information refer to "General Concepts" in the Concepts guide.

Data FormatThe Data Format shared resource contains the specification for parsing or rendering a text string usingthe Parse Data and Render Data activities. This resource specifies the type of formatting for the text(delimited columns or fixed-width columns), the column separator for delimited columns, the lineseparator, the fill character, and field offsets for fixed-width for fixed-width columns.

You must also specify the data schema to use for parsing or rendering the text. When parsing text, eachcolumn of an input line is transformed into the corresponding item in the specified data schema. Thefirst column of the text line is turned into the first item in the data schema, the second column istransformed into the second item, and so on. Each line is treated as a record, and multiple lines result ina repeating data schema containing the lines of the input text string. The following figure illustrateshow an input text string is parsed into a specified data schema.

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. Thefirst item of the data schema is transformed into the first column of the text line in the output textstring. Rendering a data schema into a text string is exactly the opposite process of parsing a text stringinto a data schema.

280

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 281: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Data Format Editor

This editor contains General, Data Format Configuration, Data Format Editor, and Field Offsetssections.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the resource.

Description A short description of the data format.

Data Format Configuration

You can define the structure of the data file using the Data Format Configuration.

Field Description

Format Type The Type of formatting for the text. The text can be either Delimiter separated orFixed format.

When you select the Delimiter separated option, the text in each column isseparated by a delimiter character, specified in the Col Separator field. Each line isseparated by the character specified in the Line Separator field.

When Fixed format option is selected, the text in each column occupies a fixedposition on the line. For fixed format text, you must specify the fill character, theline length, and the column offsets.

Col Separator This field specifies one or more separator characters between columns when"Delimiter separated" is specified in the Format Type field.

When rendering text, each element in the input data schema is separated by thecolumn separator in the output text string. If more than one character is specified inthis field, the Render Data activity places the entire string specified in this fieldbetween each column. For example, if ":;" is specified in this field, then ":;" displaysbetween each column in the rendered string.

When parsing text, each column becomes an element in the output data schema. Ifmore than one character is specified in this field, the Parse Data activity uses therules specified in the Col Separator Parse Rule field to determine how to parse thedata.

281

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 282: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Col SeparatorParse Rule

Specifies the rule to use for multiple column separator characters when parsingdata. The choices are the following:

● Treat all characters entered as a single column separator string.

The characters entered into the Col Separator field are treated as a single stringthat acts as a separator. For example, if the specified Col Separator is ":;" thenApple:;Orange:;Pear is treated as three columns.

● Treat each character specified as a potential column separator

Any of the characters will act as a column separator. For example, if thespecified Col Separator is ":;" Apple;Orange:Pear is treated as three columns.

LineSeparator

Specifies the character(s) that determine the end of each line. Available LineSeparator characters are:

● New Line

● Carriage Return

● Carriage Return/Line Feed(windows)

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 characterin the output text string.

The last line in your input file must be terminated by the specified line separator.

Fill Character When processing fixed format columns, this is the type of character that is used tofill the empty space in a column and between columns. This field is only availablewhen you select the Fixed format option in the Format Type field. The fill characteris used only by the Render Data activity.

You can select any one from the following available options:

● Space: fills with a space

● Dash: fills with a dash

● Others: specify your own custom fill character in the Fill With 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 andthe column width is 10, the remaining 7 characters are filled with the specified fillcharacter.

Data Format Editor

You can define a custom schema for the text in the Data Format Editor. You can define your owndatatype here. After defining the data type, the data specified here is used to parse a text string into thespecified schema or render the specified schema as a text string. The Header element contains thefollowing:

● @attribute

● (any element)

● primitive

● (any element)

282

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 283: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Offsets

When processing fixed format text, you must specify the line length and the column offsets. Thisenables the Parse Data or Render Data activity to determine where columns and lines begin and end.You can specify the format of fixed-width text using the Field Offsets.

The line length is the total length of input lines, including the line separator characters. Include theappropriate number of characters for the selected line separator in the Data Format Configuration tothe total length of each line.

The column offset is the starting and ending character position on each line for the column. Each linestarts at 0 (zero). For each column of the line, you must specify the name of the data item associatedwith this column(this is the same name you specified for the corresponding elements in the dataschema), the starting offset for the column, and the ending offset for the column.

Each column offset can begin where the last column offset ended. Many fixed format data files are usedby databases or are generated by automated processes. These files have rigid file record formats andmay not have additional padding space between the columns. When you define each column offset tobegin where the last column offset ends, you can read the data more quickly. This is because you canread sequentially the bytes of the input reords.

Consider the following text file. The first two lines of the file indicate offset numbers (each 0 indicatesanother 10 characters), and the fill character between columns is spaces:0 12 30 450123456789012345678901234567890123456789012345678901234567857643 Smith Chris Account57644 Jones Pat Marketing57645 Walker Terry Development

Delimeter Separated Fields

When processing delimiter-separated text, each field in the input line is separated by the delimiterspecified by the Column Separator field. Leading and trailing spaces are stripped from each field andthe specified Line Separator determines when a new record starts.

In some situations, you may not be able to choose a column separator character that does not display inany column data. For example, if you choose a comma as the column separator, there may be commasin some of the column values. To process data that contains column separator characters in a column,you can surround the column with double quotes (" "). You can also use double quote to includeleading and trailing spaces as well as line breaks in a field. If you want to display a double quote in afield, escape the double quote by using two consecutive double quotes. That is, use "" to represent adouble quote in a field.

The following data illustrates input lines with each field separated by commas. some fields, however,contain commas, leading or trailing spaces, double quotes, and line breaks.

57643, Smith, "Chris", Accounting , "State: Be prepared!"

57644, Jones, "Pat ", Marketing , "Statement: To paraphrase JFK, ""Ask not what your

company can do for you, ask what you can do for your company.""

57645, Walker, "Terry", Development, "Statement: May goal si to be CEO someday."

Notice that Pat Jones' statement spans two lines and contains double quotes as well as a comma. Theentire field is surrounded by double quotes, so it is still treated as part of the same record.

283

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 284: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FTL Realm Server ConnectionThe FTL Realm Server Connection shared resource describes the connection parameters for connectingto a Realm server and creation of the Realm object to be used by the FTL palette activities. Use thisshared resource when configuring activities in the FTL palette.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the resource package.

Name The name to be displayed as the label for the resource.

Description A short description of the resource.

FTL Realm Server Connection Configuration

This section has the following fields.

Field

LiteralValue/ModuleProperty Description

FTL Realm Server URL Yes The URL of the FTL realm server.

FTL Secondary RealmServer URL

Yes The URL of the backup FTL realm server.

FTL Application Name Yes The name of the FTL application, which includes a set ofendpoints and formats as configured in the realm server.

The Browse button can be used to browse the FTLapplications defined on the Realm server.

FTL ApplicationInstance ID

Yes The ID of the FTL application instance.

Username Yes The username of the FTL realm server.

Password Yes The password of the FTL realm server.

Test Connection

When you click the Test Connection button, the activity connects to the remote FTL Realm server onthe specified port using the specified username and password. You can use this button to determinewhether the specified connection configuration is correct.

284

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 285: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FTP ConnectionFTP Connection shared resource describes a connection to an FTP server. Use the FTP connectionswhen configuring activities in the FTP palette.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the resource.

Description A short description of the activity.

FTP Connection

This section has the following fields.

Field

LiteralValue/ModuleProperty? Description

Host Yes The host name or IP address of the FTP server.

Port Yes The port number of the FTP server. For connections inside of afirewall, 21 is the default when no value is specified in thisfield.

User Name Yes The user name to use when logging into the FTP server.

Password Yes The password to use when logging into the FTP server.

Mode Yes Specify whether you want to use Active or Passive mode toconnect to the FTP server.

285

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 286: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty? Description

ConnectionTimeout (msec)

Yes The timeout specified in this field (in milliseconds) applies tothe following scenarios:

● Making the control socket connection to the FTP Server

● Making the data socket connection to the FTP server(passive mode)

● Waiting for the data socket connection from the FTP server(active mode)

● Reading a reply from control socket after sending a FTPcontrol command

● Reading data from the data sockets

The default is 60000 milliseconds.

If the specified time is reached when attempting any of theseoperations, the activity using this FTP connection terminateswithout error and takes any matching success transitions to thenext activity in the process.

Remote FilenameEncoding

None A drop-down list of values for specifying the characterencoding of file names supplied to FTP commands using thisconnection.

The encoding specified in this field is used when sending pathand file names supplied to FTP commands that use this FTPConnection resource. Set this field when the FTP server has adifferent system encoding than the machine where the engineis running.

Firewall Yes Specifies whether the FTP host resides outside of a firewall.Selecting this checkbox enables the Proxy Host, Proxy Port,and Proxy User Name fields. If this check box is selected, youmust supply the Proxy Host and Proxy Port fields with thename and the port of the proxy server used to access sitesoutside of a firewall. You can optionally specify the user nameand password for the proxy server, if required.

Proxy Host Yes Specifies the host name or IP address of the firewall server.This is used when the remote FTP server is outside of afirewall.

Proxy Port Yes Specifies the port number of the firewall server. This is usedwhen the remote FTP server is outside of a firewall.

Proxy User Name Yes Specifies the user name to use to connect to the proxy server, ifnecessary. This is used when the remote FTP server is outsideof a firewall.

286

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 287: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty? Description

Proxy Password Yes Specifies the password to use for the specified user name whenconnecting to the proxy server, if necessary. This is used whenthe remote FTP server is outside of a firewall.

Test Connection

When you click the Test Connection button, the activity attempts to connect to the specified remote FTPserver on the specified port using the specified username and password. You can use this button todetermine whether the specified connection configuration is correct.

Available Commands

The Available Commands button displays a dialog with details about which FTP commands areavailable on the specified remote server. FTP servers on different operating systems and from differentvendors support slightly different commands. Use this button to determine the available commands onthe remote FTP server before attempting to execute them with the FTP Quote activity.

Security

Select the Confidentiality check box to display the SSL Client field.

Field Description

SSL Client The name of the resource.

In the SslClientResource Resource Template wizard, create a resource toconnect to the SSL client.

HTTP ClientThe HTTP Client resource template represents an outgoing HTTP connection.

General

The General section has the following fields.

Field Description

Package The name of the package

Name The name to be displayed as the label for the resource

Description A short description of the shared resource

HTTP Client

This section has the following fields.

287

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 288: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty? Description

ImplementationLibrary

No Specifies the implementation library to be used:

● Apache Commons(Supported by HTTP and SOAP): mustbe used for SOAP binding.

● Apache HttpComponents(Supported by HTTP and REST):must be used for REST binding, when the Invoke REST APIactivity needs to be used.

The default is Apache Commons(Supported by HTTP andSOAP).

The HTTP palette activities work with both ApacheCommons and Apache HttpComponents.

Basic credential mapping is not supported with the ApacheCommons(Supported by HTTP and SOAP) library. To enforcebasic credential mapping on REST or HTTP activities, you mustselect Apache HttpComponents(Supported by HTTP andREST) library.

DisableConnectionPooling

Yes Indicates whether to use the single or multi-threadedconnection manager.

The default value is False.

Maximum TotalConnections

Yes Specifies the maximum number of concurrent, active HTTPconnections allowed by the resource instance to be opened withthe target service. This property is enabled only if connectionpooling is enabled (the Disable Connection Pooling parameter isunchecked).

The default value is 200. For applications that create many long-lived connections, increase the value of this parameter.

Idle ConnectionTimeout(ms)

Yes Keep-alive time (in milliseconds) for idle HTTP connection inthe Persistent Connection Pool.

Maximum TotalConnections PerHost/Route

Yes Specifies the maximum number of concurrent, active HTTPconnections allowed by the resource instance to the same hostor route. This property is enabled only if connection pooling isenabled (the Disable Connection Pooling parameter isunchecked).

This number cannot be greater than Maximum TotalConnections. Every connection created here alsocounts into Maximum Total Connections.

The default value is 20.

288

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 289: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty? Description

Stale Check Yes Selecting this check box determines whether the staleconnection check is to be used. Disabling the stale connectioncheck can result in slight performance improvement at the riskof getting an I/O error, when executing a request over aconnection that has been closed at the server side.

Default Host Yes The name of the host that accepts the incoming requests.

For machines that have only one network card, the default valuelocalhost specifies the current machine. For machines withmore than one network card, this field specifies the host nameof the card used to accept the incoming HTTP requests.

The default is localhost.

Default Port Yes The port number on which to invoke outgoing HTTP requests.

The default is 80.

Thread Pool No Specifies a queue of threads available to run a queue of tasks.

Thread pools are used to improve performance when executinglarge numbers of asynchronous tasks by reducing per taskinvocation overhead, provide a means of bounding, andmanaging the resources consumed when executing a collectionof tasks.

You can optionally create this client thread pool to routemessages to the target service. The thread pool resource can becreated by either selecting a thread pool resource template orcreating a new one. See Thread Pool for more information.

Advanced

This section has the following fields.

Field

Literal Value/ModuleProperty? Description

Socket Timeout Yes Specifies the number of milliseconds to wait for data before theconnection is severed.

The value 0 is interpreted as an infinite timeout and is usedwhen no socket timeout is set in the HTTP method parameters.

ConnectionTimeout

Yes Specifies the number of milliseconds to wait while a connectionis being established.

The value 0 is interpreted as no timeout.

289

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 290: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty? Description

Accept Redirect Yes Indicates whether the HTTP method should automaticallyfollow HTTP redirects.

This option is used when client connection receives the redirectresponses from server like Moved Permanently, MovedTemporarily, Temporary Redirect and so on.

The default value is False.

Retry Count Yes Specifies the maximum number of retry attempts for connectingto the server if an exception occurs.

The default value is 3.

Use SingleCookie Header

Yes Select this check box if multiple name/value pairs must be sentin a single non-repeating Cookie header element for outgoingHTTP requests.

The default value is False.

Use Non-PreemptiveAuthentication

Yes Select this check box if you want to use non-preemptiveauthentication.

Log Request/Response Time

Yes Select this check box to log the time required for sending andreceiving the HTTP response in the Send HTTP Requestactivity.

HTTP Proxy No Specifies the HTTP proxy server to be used to gain accessoutside of a firewall. The Proxy Configuration sharedconfiguration resource specifies the configuration of the proxyserver. See Proxy Configuration for more information.

Security

Security can include any combination of the following characteristics:

Field Description

Authentication To be included when the messages must be authenticated. Authenticationcan be performed with user names and passwords.

Identity Provider : Provides username and password credentialsencapsulated in an identity provider resource. Selecting this check boxactivates the Identity Provider field.

You can enforce authentication on requests by selecting theAuthentication check box, or by associating the Basic CredentialMapping policy with REST or HTTP activities. If you choose touse the policy, ensure the Authentication check box on the HTTPClient resource is not selected.

290

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 291: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

KerberosAuthentication

Selecting this check box will enable Kerberos Authentication.

Kerberos Authentication requires a few additional configurations. Seesection "Kerberos Authentication Configuration", for more information onthese configurations.

Supported only for Apache HttpComponents(Supported by HTTPand REST).

Username Enter the Active Directory username to be used for the Kerberosauthentication.

This field is enabled only when the Kerberos Authentication field isselected.

Password Enter the password for the specified username.

This field is enabled only when the Kerberos Authentication field isselected.

DefaultConfidentiality

To be included when encrypting or decrypting messages.

Selecting this check box will enable the SSL with default configuration. Fordetails, refer to SSL Client Configuration.

If you select Default Confidentiality, there is no need to create ashared resource. SSL is enabled with Default Configuration. Ifcustom configurations for SSL are required, select Confidentiality.When using Default Confidentiality ensure that the correct rootcertificates are present at the <TIBCO_HOME>\tibcojre64\1.8.0\lib\security\cacerts trust store.

Confidentiality To be included when encrypting or decrypting messages.

Selecting this check box displays the SSL Client Configuration field. Fordetails, refer to SSL Client Configuration.

Kerberos Authentication Configuration

The krb5.conf file and login.conf file are present under the config folder at TIBCO Home/bw/6.3/config.

Configure the files as specified below:

● login.conf : It is recommended that no changes are made to the login.conffile.

● krb5.conf : Configure the following values according to the Kerberos environment:

— libdefaults

— realms

— domain_realm

Persistent ConnectionsPersistent connections maintain a pool of connections that can be reused by Send HTTP Requestactivities to avoid opening and closing the connection. Persistent Connection Manager is created by

291

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 292: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

HTTP Client shared resource. Hence, each HTTP Client shared resource has its own persistentconnection pool.

A Send HTTP Request activity requires a connection to the HTTP server. The activity exclusively usesthe connection until the HTTP server sends the response message. If you have many process instancesconnecting to a HTTP server, each Send HTTP Request activity opens a connection, holds theconnection until the activity completes, and then closes the connection. Opening and closing a largenumber of connections causes a significant overhead. Persistent connections play a significant role insuch scenarios.

Not all HTTP servers support the use of persistent connections. To determine whether the HTTP serversupports the use of persistent connections, read the documentation of that HTTP server.

Using persistent connection manager you can specify the total number of connections and themaximum number of connections per HTTP server. The total number of connections signify theaggregate connections to all HTTP servers handled by that connection pool.

HTTP ConnectorHTTP Connector resource describes the characteristics of the connection used to receive incomingHTTP requests. This resource is used when the process requires an HTTP request on a specific portwhere the HTTP server is running. For example, the process starter HTTP Receiver and the signal-inWait for HTTP Request activity receiving HTTP requests.

There can be only one process with an HTTP Receiver or Wait for HTTP Request activity that uses thesame HTTP Connection resource. With this restriction the HTTP server listening for the incomingrequests dispatches the request to the correct process.

General

The General section has the following fields.

FieldModuleProperty Description

Package No The name to be displayed as the label of the resource package.

Name No The name to be displayed as the label for the resource.

Description No A short description of the activity.

Basic Configuration

The Basic Configuration section has the following fields.

292

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 293: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty Description

Host Yes Do not change the value for this property. By default, itis set to the BW.HOST.NAME module property.

Specifies the name of the host that accepts the incoming requests.For machines that have only one network card, the default valuelocalhost specifies the current machine. For machines that havemore than one network card, this field specifies the host name ofthe card that will be used to accept incoming HTTP requests.

If there is more than one network card on the machine, and youspecify localhost in this field, all network cards on the machinelisten for incoming HTTP requests on the specified port.

When using local host for the system property, use the full nameof your machine as the host in the client.

You can start more than one HTTP server on a singleport by using Context and Path fields on HTTPReceiver and Wait for HTTP activities. Ensure thatyou use a different port, if different Context or Pathare not specified.

Port Yes Specifies the port number on which to listen for incoming HTTPrequests.

Do not use port 7777. It is reserved for internal use.

Accept QueueSize

Yes Specifies the number of connection requests to be queued beforethe operating system starts sending rejections. The default valuesare: -1 and 0.

These default values signify that the queue size is 50 or OS-specific.

AcceptorThreads

Yes Specifies the number of acceptor threads. Acceptor threads areHTTP socket threads for an HTTP connector resource that acceptthe incoming HTTP requests.

The default value is 1.

Advanced Configuration

The Advanced Configuration section has the following fields.

FieldModuleProperty Description

Header Buffer Size(B)

Yes Specify to set the size of the buffer for request headers. An idleconnection at most has one buffer of this size allocated. Thedefault is 4K.

293

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 294: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty Description

Use Non-BlockingIO Sockets

Yes Select this check box to use non-blocking threading model forNIO buffers.

Use this connector when there are many connections with idleperiods. The default is true.

Request BufferSize (B)

Yes Specify to set the size of the content buffer for receivingrequests. These buffers are used only for active connectionsthat have requests with bodies that do not fit within the headerbuffer. The default is 8K.

Use Direct Buffers Yes Specify to determine whether direct byte buffers are used ornot. The default is True.

Response BufferSize (B)

Yes Specify to set the size of the content buffer for sendingresponses. These buffers are used only for active connectionsthat are sending responses with bodies that will not fit withinthe header buffer. The default is 24K.

URI Encoding Yes Specifies the character encoding used to decode the URI bytes.

If you do not set any value for uriEncoding, the default UTF-8is used.

Max Idle Time(ms)

Yes Specify to set the maximum idle time for a connection. TheMax Idle Time is applied in the following cases:

● When waiting for a new request to be received on aconnection; when reading the headers and content of arequest

● When writing the headers and content of a response

Jetty interprets this value as the maximum time between theprogress made on the connection. The timeout is reset ifimplemented by jetty if a single byte is read or written.

Enable DNSLookups

Yes Selecting this check box enables a domain name system (DNS)lookup for HTTP clients so that the IP address is resolved to aDNS name. This can adversely affect the throughput. Thischeck box is not selected as default. Select this check box onlywhen required.

The default is False.

Low Resource MaxIdle Time (ms)

Yes Specifies to set the period in ms for the connection to be idle.

This results in the server rapidly closing idle connections togracefully handle high load situations.

Compression Yes Specifies if the output of the HTTP Connection is compressedusing the HTTP/1.1 GZIP compression.

The acceptable values for this field are: True or False

The default is False.

294

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 295: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty Description

Linger Time (ms) Yes Specifes to set the LINGER_TIME on the connection socket.This setting affects only the close connection socket.

CompressibleMime Types

Yes Specifies the list of MIME types for which HTTP compressionmay be used. The default value for this comma separated lististext/html, text/xml, text/plain.

Session Timeout(s)

Yes The timeout (in seconds) for the HTTP session to expire afterinactivity.

Max Post Size Yes Specifies the maximum size in bytes of the POST that thecontainer FORM URL parameter parsing can handle.

By default, the value of this field is set to 2M or 2097152 bytes.Setting the value less than or equal to zero disables the limit formaxPostSize.

Reverse ProxyHost

Yes Specifies the name of the reverse proxy host that accepts theincoming requests.

Max Save Post Size Yes Specifies the maximum size in bytes of the POST that thecontainer can save/buffer during FORM or CLIENT-CERTauthentication.

● FORM authentication: the request message is saved whilethe user is redirected to the login page. It is retained untilthe user authentication succeeds or the session associatedwith the authentication request expires.

● CLIENT-CERT authentication: the request message isbuffered for the entire duration of the SSL handshake. Afterprocessing the request, the buffer is emptied.

However, in both the cases the buffering happens before theuser authentication. By default, the value of this field is set to4K or 4096 bytes. Setting the value to -1 disables the limit forthis field.

Reverse Proxy Port Yes The reverse proxy port number on which to listen for theincoming HTTP requests.

Minimum QTPThreads

Yes The Queued Thread Pool (QTP) uses the default job queueconfiguration to The QTP threads accept the requests from theacceptor threads.

This field specifies the minimum number of QTP threadsavailable for the incoming HTTP requests. The HTTP servercreates the number of threads specified by this parameterwhen it starts up. The default value is 10.

295

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 296: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty Description

Maximum QTPThreads

YesThis field specifies the maximum number of threads availablefor the incoming HTTP requests. The HTTP server does notcreate more than the number of threads specified by thisparameter. The default value is 75.

Enable AccessLogs

Yes Select the Enable Access Logs check box to print the HTTPaccess logs.

Disable HTTPMethods

Yes Disable specific HTTP methods by adding the requiredmethods to the field list.

To add a method to the list, click the Add icon . To removea method from the list, select the required method and click the

delete icon .

The first time you click the Add icon , bydefault the TRACE method is selected and added tothe list of methods to be disabled.

Share AcrossApplications

Yes Select the Share Across Applications check box to share thesame HTTP Connector shared resource across severalapplication modules.

This check box is applicable if the HTTP Connectorshared resource is present in the shared module. Itwill not be applicable if the HTTP Connector sharedresource is present in the application module.

Security

Security can include any combination of the following characteristics:

Field Description

Confidentiality To be included when encrypting or decrypting the messages.

Selecting this check box displays the SSL Server Configuration field. Usethis field to specify the SSL parameters for the HTTP Connector sharedresource. For details, refer to SSL Server Configuration.

Imported projects display the Authentication check box under the Security section if the check box wasselected in a previous version ActiveMatrix BusinessWorks™ 6.x. Authentication remains enabled onthe HTTP Connector resource if you do not clear the check box. If you clear the Authentication checkbox, a warning message is displayed prompting you to confirm your action. To remove authenticationfrom the resource, click OK.

Once you have removed authentication from the resource, you can reapply it using the BasicAuthentication policy. For additional details, refer to the section "Enforcing Basic Authentication" in theApplication Development guide.

296

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 297: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Identity ProviderIdentity Provider shared resource provides user name and password credentials.

General

The General section has the following fields.

Field Description

Name The name of a Identity Provider shared resource.

Description A short description of the shared resource.

Identity Provider

This section has the following fields.

Field Description

Username Enter a user name.

Password Enter a password.

JDBC ConnectionJDBC Connection resource describes a JDBC connection. JDBC connections are used when specifyingactivities from the JDBC palette.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the shared resource

Description A short description of the shared resource

JDBC Connection

This section has the following fields.

Field

LiteralValue/ModuleProperty? Description

Connection Type None Specifies the kind of JDBC connection you want to create.

MaximumConnections

Yes The maximum number of database connections to allocate.The default maximum is 10. The minimum value that can bespecified is 1.

297

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 298: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty? Description

Login Credentials Yes The user name used to connect to the database.

The password used to connect to the database.

JDBC Drivers

This section has the following fields.

Field

LiteralValue/ModuleProperty? Description

Database Driver Yes The name of the JDBC driver class. If you select a supporteddriver from a list of supported drivers, the Database URLfield is populated with a template for the URL of the driver.

The following drivers are packaged:

● PostgreSQL

● Microsoft SQL Server

In addition, the JDBC palette also supports the MySQL,Oracle, and DB2 database.

When editing this field, you can also specify for the JDBCPalette to use a custom JDBC driver. For instructions on howto do this, refer to the section Using Custom Drivers.

Custom drivers must be compliant with the JDBC4.0 API Specification.

Database URL Yes The URL to use to connect to the database. A template of theURL is supplied for the selected JDBC driver. You mustsupply the portions of the URL that are in angle brackets (<>).

Login Timeout Yes The length of time (in milliseconds) to wait for a successfuldatabase connection.

Only JDBC drivers that support connection timeouts can usethis field. If the JDBC driver does not support connectiontimeouts, the value of this field is ignored. Most JDBC driverssupport connection timeouts.

Test Connection

Click the Test Connection button to test whether the specified configuration fields result in a validconnection to a database.

298

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 299: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Installing Supported Drivers for Run Time

If you want to use other databases, other than PostgreSQL or Microsoft SQL Server, you must add themseparately. This is a one time process for every installation of ActiveMatrix BusinessWorks ™ .

To add the drivers at run time for Oracle, MySQL or DB2, run the bwinstall command from<BW_Home>/6.x/bin. Ensure that you run bwinstall with no arguments to access the help andinstructions to add the driver to the run time.

The script creates driver bundles and adds it to that specific ActiveMatrix BusinessWorks ™environment. Any AppNodes that are created and started in that ActiveMatrix BusinessWorks ™environment include the drivers automatically.

Since the drivers are part of the system and not part of each application, all the applications on aparticular AppNode use the same drivers. However, this is not true of AppSpaces. The drivers belongto an AppNode and not an AppSpace.

Supported Drivers

The following database drivers are supported:

● com.mysql.jdbc.Driver

● orga.postgresql.Driver

● oracle.jdbc.OracleDriver

● com.microsoft.sqlserver.jdbc.SQLServerDriver

● com.ibm.db2.jcc.DB2Driver

The following Data Direct Drivers are supported:

● tibcosoftwareinc.jdbc.postgresql.PostgreSQLDriver

● tibcosoftwareinc.jdbc.mysql.MySQLDriver

● tibcosoftwareinc.jdbc.sqlserver.SQLServerDriver

● tibcosoftwareinc.jdbc.db2.DB2Driver

● tibcosoftwareinc.jdbc.oracle.OracleDriver

Using Custom Drivers

Installing custom drivers comprises of three parts:

1. Enabling the JDBC palette to use custom drivers.

2. Configuring the JDBC Connection Shared Resource to use a custom driver.

3. Setting up drivers for run time.

Enabling Custom Drivers

In TIBCO Business Studio™ , you can enable the JDBC palette to use custom drivers. Before you do this,ensure that you place the drivers at the <BW_Home>/config/design/thirdparty location.

1. Click Click Here to Set Preferences. Optionally, go to Windows > Preferences > BusinessWorks >Palettes > JDBC.

2. Select the Allow use of custom driver check-box and click Apply.

299

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 300: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

3. Click OK and restart TIBCO Business Studio™ for this configuration to take effect.

Configuring Use for a Custom Driver

Follow these steps to configure the JDBC Shared Resource to use a custom driver:

1. Open the JDBC Connection Shared Resource from the Project Explorer.

2. Click in the Database Driver field, and select the custom.jdbc.driver option from the drop-downmenu.

3. Edit the following fields that display under the Login Timeout (msec) field:

● Database Driver: Type the name of the driver class to use.● Database Name: Type the name of the database to connect to. If the database name is the name

of a schema, type the schema to connect to.● Jar File: Type the name of the Jar archive file stored at BW_HOME/config/design/thirdparty.

This file to create the driver. If you are adding multiple Jar files, separate the file names withcommas.

To ensure that TIBCO Business Studio™ creates a driver bundle for the application atrun time, confirm that the Jar archive file is stored under the third party folder at<BW_Home>/config/design/thirdparty.

4. Click Test Connection. If you have entered the correct database connection details, and havealready created a plugin project to support the custom driver, TIBCO Business Studio™ confirmsthat you have successfully connected to the database.

If you are unable to connect to the database you specified, check the configurations youmade to the JDBC Connection Shared Resource. The database connection field can alsofail if you have not created a plug-in project to support the custom driver at run time. Inthis case, TIBCO Business Studio™ displays a warning message indicating that it does notrecognize the custom driver you selected. Click OK and complete step 5.

5. Optional. Follow these steps:

a. In the Create New Plug-in Project wizard that displays, enter a name in the Project name field,accept the default selections, and click Next.

b. In the Content pane, accept the default values, and click Next.c. In the Custom Driver Properties pane, edit the following fields:

Refer to your JDBC driver documentation for additional details.

● Datasource Class: Type the name of the class that ActiveMatrix BusinessWorks™ will use toestablish a connection data source between the JDBC Connection Shared Resource and thedatabase.

300

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 301: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

● Pooled Datasource Class: Type the name of the class that ActiveMatrix BusinessWorks willuse to create a pooled connection data source data source between the JDBC ConnectionShared Resource and the database.

d. Click Finish, and the newly created plug-in project displays on the Project Explorer pane. Clickthe custom plug-in project to expand it.

e. Click the src folder to display the java file, and double-click the java file to edit it. Locate thefollowing instructions in the Java file, and follow them to import packages that contain thedatasource and pooldatacourse classes: /****************************** TODO************************************ * Import the packages from jar that contain the data source and drivers * * by hovering over the data source class name with your mouse and ** select the import option **************************************************************************/

f. Edit the methods and properties provided in the template file, or add your own.

Methods with the @Override annotation can be modified. Whether you edit @Overridemethods, do not remove them from the template file.

Setting up Custom Drivers for Run Time

Follow these steps to set up custom drivers for run time:

1. Export the custom driver JAR file by right-clicking on the Plugin-Project from the Project Pane andclicking Export > Plug-in Development > Deployable plug-ins and fragments.

2. In the Export wizard, complete the following steps:

a. Select a plug-in project.

b. On the Destination tab, and specify <BW_HOME>/system/shared as the target directory toexport the runtime bundle.

3. Click Finish to export the plug-in project as a JAR file. The JAR file is exported to the plugins folderat <BW_HOME>/system/shared/plugins.

The plugins folder is automatically generated after you export the JAR file, but you candelete this folder after moving the JAR file to the shared folder at <BW_HOME>/system/shared.

Uninstalling Drivers for Run Time

To uninstall the drivers at run time for Oracle, MySQL or DB2, run the bwuninstall command from<BW_Home>/6.x/bin. Ensure that you run bwuninstall with no arguments to access the help andinstructions to uninstall the driver at run time.

JMS ConnectionJMS Connection resource describes a JMS connection. This resource is used to specify activities on theJMS palette.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the resource

301

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 302: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Description A short description of the shared resource

Basic Configuration

This section has the following fields.

Field Description

ConnectionFactory Type

A connection factory is the object used by a client to create a connection to aprovider. Select from one of the following available options:

● JNDI: select to look up the connection factory object. Selecting this optiondisplays the Queue Connection Factory and Topic Connection Factoryfields, when the Messaging Style selected is Queue/Topic.

● Direct: select if you want to connect to the JMS server using a URL.Selecting this option displays the Provider URL field and the Supports XATransactions check box. Ensure to select the Queue/Topic in the MessageStyle.

Messaging Style The available messaging style options are:

● Generic:

● Queue/Topic:

You can combine these styles in a single application or the application can useany one of these messaging styles.

Queue ConnectionFactory

This field is available when you select JNDI in the Connection Factory Typefield and Queue/Topic in the Message Style field.

The QueueConnectionFactory object stored in JNDI is used to create a queueconnection with a JMS application.

See the JNDI provider documentation for more information about creatingand storing QueueConnectionFactory objects.

Topic ConnectionFactory

This field is available only when you select JNDI in the Connection FactoryType field and Queue/Topic in the Message Style field.

The TopicConnectionFactory object stored in JNDI. This object is used tocreate a topic connection with a JMS application.

See the JNDI provider documentation for more information about creatingand storing TopicConnectionFactory objects.

ConnectionFactory JNDIName

This field is available only when you select the JNDI in the ConnectionFactory Type field and Generic in the Message Style field.

The GenericConnectionFactory object stored in JNDI is to create connectionwith JMS server.

302

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 303: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

JNDIConfiguration

A JNDI Configuration shared configuration object that specifies the JNDIconnection information. For details refer to, JNDI Configuration.

The New button is used to create a New JNDI Configuration SharedResource using the preferences set by the user.

Provider URL This field is available only when you select Direct in the Connection FactoryType field.

The URL to the JNDI service provider, for example,tcp://<host>:<port>.

Use UFO Use this checkbox when using EMS Unshared State Failover factories. Refer tothe TIBCO Enterprise Message Service User's Guide for details on Unshared StateFailover.

This field appears only when the option Direct is selected in the ConnectionFactory field.

When using Unshared failover setup, if a connection loss is detected to server(A), TIBCO ActiveMatrix BusinessWorks will try to connect to server (B) asdefined in the connection factory configuration.

After enabling this checkbox you can pass the provider URL in the form ofUFO. For example: tcp://serverA:7222+tcp://serverB:7222, whereserverA and serverB are two EMS servers configured for the Unshared StateFailover.

Unsupported Features and Activities

● JMS Palette

— JMS Queue Requestor

— JMS Topic Requestor

— Any other Requestor activity

● SOAP Palette

— All Activities

● Service Palette

— All activities

● AE Adaptor

— All activities

Looking up factories using JNDI is not supported

● UFO factories cannot be retrieved through JNDI directly.

Test Connection

Click the Test Connection button to test the connection specified in the configuration of this resource.

303

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 304: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Using Third Party JMS Drivers

ActiveMatrix BusinessWorks™ currently packages EMS drivers. In addition, the JMS palette alsosupports the IBM Websphere MQ and JBoss JMS drivers.

Adding Drivers for Runtime

If you want to use other JMS servers, other than the JMS servers mentioned in the section, Using ThirdParty JMS Drivers you must add them separately, for run time. This is a one time process for everyinstallation of ActiveMatrix BusinessWorks™. To add the JMS drivers at run time for IBM WebsphereMQ, or JBoss run the bwinstall command from <BW_Home>/6.x/bin. Ensure that you run bwinstallwith no arguments to access the help and instructions to add the driver to the run time.

The script creates driver bundles and adds it to the specific ActiveMatrix BusinessWorks™environment. Any AppNodes that are created and started in that ActiveMatrix BusinessWorks™environment includes the drivers automatically. Since the drivers are a part of the system and not partof each application, all the applications on a particular AppNode use the same drivers.

However, this is not true of App Spaces. The drivers belong to an AppNode and not an AppSpace.

To use another location for the drivers, a preference is provided in TIBCO Business Studio™ which canbe updated for the JMS palette to use drivers at design time.

To change the Directory Preference in TIBCO Business Studio™, navigate to Windows > Preferences >BusinessWorks > Palettes > JMS

If you have changed the preferences and want to use other databases with the JMS palette at designtime, place the drivers at <BW_Home>/6.x/config/design/thirdparty location.

Field Description

One click JNDI Resourcename

The name of JNDI Connection shared resource which is auto createdwhen you click the New button. This is used only if the shared resourceuses JNDI and not Direct.

Default JNDI NamingURL

The default URL to be added in the JNDI Connection shared resourcewhen a new resource is created.

Generic ConnectionFactory Name

The value to be added in the Generic Connection Factory field when anew JMS Connection Shared Resource is created.

304

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 305: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Queue ConnectionFactory Name

The value to be added in the Queue Connection Factory field when anew JMS Connection shared resource is created.

Topic ConnectionFactory Name

The value to be added in the Topic Connection Factory field when anew JMS Connection shared resource is created.

Directory Preferences Click the Browse button and navigate to the location where the driverlibraries are stored.

While testing the JMS connection for JMS drivers other than EMS, ensure that only the jars related tothe selected third party JMS driver are present in the location specified in the directory preference.

Uninstalling Drivers for Run Time

To uninstall the drivers at run time for IBM MQ or JBOSS, run the bwuninstall command from<BW_Home>/6.x/bin. Ensure that you run bwuninstall with no arguments to access the help andinstructions to uninstall the driver at run time.

Security

Security section has the following field.

Field Description

Login Credentials The login credentials to log on to the JMS server. Click the Username+Password radio button, if you want to use this option for a secure login. Thisdisplays the Username and Password fields.

Advance Configuration

This section has the following fields.

Field Description

Auto-generateClient-ID

Select this check box if you want to automatically generate the client ID if noclient ID is specified or if the specified ID is already in use.

When this check box is selected, a value cannot be specified for the clientID.

When an automatically generated client ID is required, the following format isused for the client ID:

BW-<projectName>-<topic or queue>-<engineName>-<timestamp>

Do not select this check box if you do not want to use the value specified in theClient ID field. If no value is specified in the Client ID field, no client ID is set.If the value specified in the Client ID field is already in use, it throws anexception.

Selecting the Auto-generate Client-ID check box generates a newClient ID every time a connection is made to the JMS Server. If youare using Durable Subscribers, manually set the client ID for theJMS Connection.

305

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 306: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Client ID The client ID for the connection. The JMS providers have a provider-specificformat for client IDs.

See the JMS provider’s documentation for more information about client IDs.

Each connection must use a unique client ID. If you do not specify a value inthis field, ActiveMatrix BusinessWorks™ ensures the uniqueness of the clientID for each connection.

SSL

Select the Confidentiality check box to configure the SSL connection parameters.

JNDI ConfigurationJNDI Configuration shared resource provides a way to configure the JNDI configuration that can beshared with other activities. This resource can be specified in any resource that permits JNDIconnections. For example, JDBC Connection and JMS Connection can use JNDI connections.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the shared resource

Description A short description of the shared resource

JNDI Connection

This section has the following fields.

Field

LiteralValue/ModuleProperty? Description

JNDI Provider No The name of the JNDI connection.

Initial ContextFactory

Yes The initial context factory class for accessing JNDI.(com.tibco.tibjms.naming.TibjmsInitialContextFactory).

Naming ProvidingURL

Yes The name of the JNDI provider URL. For example,tibjmsnaming://localhost:7222.

Security

This section has the following field.

306

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 307: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Login Credentials The login details to access the JNDI connection. Select any one of thefollowing options.

● None: Selecting this radio button will not display the Username+Password option.

● Username+Password: Valid username and password to access the JNDIconnection.

Java Global InstanceYou can use Java Global Instance shared configuration resource to specify a Java object to be sharedacross all process instances in a Java Virtual Machine (JVM).

When the engine is started, an instance of the specified Java class is constructed. When the processengine is shut down, if specified, a cleanup method is invoked on the object. The object is releasedbefore the engine shuts down. Any Java Invoke activity can be configured to access the shared Javaglobal instance when the process engine runs. Any Java Invoke activity can access the shared javaglobal instance by invoking the static methods of the configured Java class.

If multiple process instances access the shared Java global instance, you may want to ensure that onlyone process instance can access the object at a time. You can accomplish this by either declaring themethods of the configured class as synchronous or by using a critical section group.

General

The General field has the following fields.

Field Description

Name The name to be displayed as the label for the resource

Description A short description of the resource

Java Global Instance

The section has the following fields.

Field Description

Class Use the Browse a Class button to locate the class you want to use.

Method Select a constructor from the drop-down list of constructors available for thisclass. This is used to construct the class when the engine is started.

This field displays only the default constructor with no parameters orconstructors that have only parameters of Java primitive types. You cannotcreate an object using a constructor that requires an object, array, or non-primitive type for a parameter.

307

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 308: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Parameter Input The input parameters for the constructor selected in the Method field. Eachinput parameter has the following three fields:

● Parameter: the name of the parameter

● Type: the datatype of the parameter

● Value: specify a value for the parameter in this field

When string is the datatype for the parameter, do not use quotesaround the string when specifying the value.

Advanced Configuration

This section has the following fields.

Field Description

Invoke CleanupMethod

Selecting this check box signifies that you want to invoke a method on theobject before the object is released from memory when the engineterminates. You can perform cleanup activities, such as closing connections,releasing resources, and so on.

Selecting this check box enables the Cleanup Method field.

Cleanup Method This field is only available when you select the Invoke Cleanup Methodcheck box.

You can specify the name of the method to invoke before the object inmemory is released. The method selected cannot contain any parameters,therefore only methods without parameters are listed in this field. Anyvalues returned by the selected method are ignored, but exceptions raisedby the selected method are sent to the log.

Keystore ProviderKeystore Provider shared resource provides an access to a keystore.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the keystore provider resource.

Description A short description of the resource.

Keystore

This section has the following fields.

308

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 309: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

Literal Value/ModuleProperty? Description

Provider None The name of the keystore provider. Select from the followingavailable options:

● SUN

● IBMJCE

Default: Empty. The first matching provider supporting theformat is selected.

URL Yes The location of the external keystore.

Password Yes The password for the keystore.

Type None The type of the keystore: JCEKS, JKS, PKCS#12.

Default: JKS

Refresh Interval Yes Refresh interval, greater than 0. If the keystore provider isaccessed after the refresh interval has expired:

● The refresh timer is reset to zero.

● The operations on the keystore provider are performed onthe refreshed copy.

The default value is 3600000.

LDAP AuthenticationAn LDAP Authentication shared resource represents configuring the connection to an LDAP server.This connection is used by component implementations to look up names in an LDAP directory server.

LDAP authentication is primarily used for HTTP basic authentication in ActiveMatrix BusinessWorks™6.x and the fields largely used are:

● Server URL: LDAP Server Location, such as, ldap://10.107.170.145:389

● User Search Expression: search expression for the user, such as (&(cn={0])(objectclass=user))

● User DN Template: user distinguished name template, such ascn={0},cn=users,dc=na,DC=tibco,DC=com

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the shared resource package.

Name The name of the LDAP authentication resource.

Description A short description of the shared resource.

309

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 310: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

LDAP Authentication

The LDAP authentication comprises Connection, Users and Groups, Search, Advanced, and TestConfiguration.

Connection

The Connection tab has the following fields.

Field

Literal Value/ModuleProperty Description

Server URL Yes The URL with the host and port number on which the LDAPserver is listening for connections.

The default is ldap://localhost:389

User SearchExpression

Yes The length of time to search for connection on the LDAPdirectory server.

The default is 0.

Admin UserCredential

None The username and password in LDAP format such ascn={0},CN=Users,DC=ce,DC=na,DC=tibco,DC=com. Create alimited or restricted user that can only search your tree.

Selecting this check box displays the Credentials Provideroption.

CredentialProvider

None The name of the credential provider. In the UserIdResourceResource Template wizard, create a resource to connect to theSSL client.

User SearchBase DN

Yes The LDAP user search expression to be used for performing theuser search. Leave this field blank to start search from the toplevel element in the directory.

The search expression used is (&(cn={0})(objectclass=user)).

User SearchScope

None This specifies the number of levels in the directory server that issearched for a matching user profile. Select any from thefollowing available options:

● Subtree: indicates all the sub-entries (all lower levels)

● One level: indicates all entries immediately (one level)

The default is Subtree.

SSLConfiguration

None Select this check box to configure an SSL Client.

SSL Client None The name of the resource. In the SslClientResource ResourceTemplate wizard, create a resource to connect to the LDAPserver over SSL using SSL client shared resource.

310

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 311: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Users and Groups

The Users and Groups tab has the following fields.

Field

LiteralValue/ModuleProperty Description

User's name Yes The name of the user in the LDAP directory.

Additional userattributes toretrieve

Yes The field specifies the LDAP attribute used to search and retrieve theuser profile. For example, using a different attribute in your directoryserver such as the given name.

GroupIndication

None Specifies the following groups:

● No Group Info● User Attributes Indicates Group: used for grouping the user that

matches the specified attribute. When selected, displays the UserAttribute Group Name field.

● User DN Indicates Group: group of user DN. When selected,displays the User Attribute Group Name field.

● Search Groups:

Selecting the Search Groups option displays the following groups:

● Group Root DN● Group Search Expression● Group Attribute User Names● Group Attribute Group Name● Group Attribute Subgroup Name

Search

The Search tab has the following fields.

Field

LiteralValue/ModuleProperty Description

User SearchScope

None This specifies the number of levels in the directory server that issearched for a matching user profile. Select any from the followingavailable options:

● Subtree: indicates all the sub-entries (all lower levels)

● One level: indicates all entries immediately (one level)

The default is Subtree.

311

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 312: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty Description

Group RootDN

Yes The root distinguished name (DN) group name.

Group SearchScope

None Provides the search scope option, true or false.

● Select true, if you want to scan the entire LDAP tree beneath theDN (subtree scope).

● Select false, if you want to scan only direct children of that DN(one-level scope).

Group SearchExpression

Yes The group search expression property

Advanced

The Advanced tab has the following fields.

Field

LiteralValue/ModuleProperty Description

FollowReferrals

None When you select this check box, the LDAP server does not returnresults. Instead it returns a reference (a referral) to another LDAPserver which may contain additional information such as the namesand locations of other objects.

ConnectionPool

Yes Specify the number of the connections in this field. The default is 10.

All activities that are part of the same transaction, use the sameconnection in the connection pool. The first activity in a transactionattempts to reestablish an invalid connection. If a connection becomesinvalid during a transaction, the transaction is rolled back and must beretried, if necessary.

SearchTimeout(milliseconds)

Yes Specifies the timeout for LDAP search. The default is -1.

Click the Test button to start testing the LDAP search operation.

Test Configuration

The Test Configuration tab has the following fields.

Field Description

Search Results Shows the search results returned by the LDAP search operation.

312

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 313: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Proxy ConfigurationProxy Configuration shared resource is used to specify a proxy HTTP server when HTTP requests aresent outside of a firewall.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the resource.

Description A short description of the shared resource.

Proxy Connection Configuration

This section has the following fields.

Field

Literal Value/ModuleProperty? Description

Host Yes The host name or IP address of the proxy server.

Port Yes The port number of the proxy host.

Security

This section has the following fields.

Field Description

Authentication Select the check box to specify the authentication to be used.

Identity Provider Create a UserId resource in the UserIdResource Resource Template wizard.This provides access to the username and password credentials to access theproxy connection.

Rendezvous TransportRendezvous Transport shared resource describes a Rendezvous® transport. This resource is used tospecify activities from the Rendezvous palette.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the resource.

Description A short description of the shared resource.

313

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 314: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Rendezvous Transport Configuration

This section has the following fields.

Field

LiteralValue/ModuleProperty/ Description

Daemon Yes If Rendezvous is running on a different machine, the Daemonfield is specified as the remote host name followed by thesocket number.

For example: ssl:acct:5785

If Rendezvous® daemon is running on the same machinewhere ActiveMatrix BusinessWorks™ engine is also running,do not specify this field.

Network Yes This field contains the host name, IP address, network name,or interface name. For example, ;224.34.103.4.

Service Yes TIBCO Rendezvous service name in one of the followingformats: <service name>

or <port number>

Security

This section has the following fields.

Field Description

Confidentiality Select the Confidentiality check box to display the SSL Client field.

SSL Client The name of the resource. In the SslClientResource Resource Templatewizard, create a resource to connect to the SSL client.

Authentication Select the Authentication check box to display the Identity Provider field.

Identity Provider Create a UserId resource in the UserIdResource Resource Template wizard.This provides access to the username and password credentials to access theproxy connection.

Advanced Configuration

Here you can specify the RV type.

314

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 315: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

RV Type The type of Rendezvous® connection to use.

● Reliable: standard RV transport

● Certified: RVCM

● Distributed Queue: RVCMQ

SMTP ResourceAn SMTP shared resource template represents a connection to an SMTP server. Using the SMTPResource, you can transfer e-mail messages between servers. The SMTP communications aretransported by TCP to ensure end-to-end transport.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the resource.

Description A short description of the activity.

SMTP

This section has the following fields.

Field

LiteralValue/ModuleProperty? Description

Machine Name Yes The name of the host that accepts the incoming requests. Thedefault value is localhost.

Port Yes The port number on which you can listen for SMTP requests.The default value is 25.

Timeout (ms) Yes The waiting time for a response from the server. The timeoutmust be greater than 0. A timeout of zero is interpreted as aninfinite timeout.

Username Yes The valid username used to authenticate connections to theserver.

Password Yes The valid password used to authenticate connections to theserver.

EnableSTARTTLS

ModuleProperty

Select the Enable STARTTLS check box to use SMTP over SSL.

This checkbox is selected by default.

315

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 316: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Security

Select the Confidentiality check box to display the SSL Client field.

Field Description

SSL Client The name of the resource. In the SslClientResource Resource Templatewizard, create a resource to connect to the SSL client.

SSL Server ConfigurationYou can specify SSL parameters for the HTTP connection here.

The following are the fields in the SSL Server Configuration for the HTTP connector.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the SSL server configurationshared resource.

Description A short description of the SSL server configuration shared resource.

Basic SSL Server Configuration

This contains the following fields.

FieldModuleProperty Description

Identity StoreProvider

No Used to provide identity store.

Key Alias Name Yes The name of the alias used to access the identity.

Key Alias Password Yes The password for the alias.

Enable MutualAuthentication

No Indicates whether the client in the SSL connectionauthenticates to the server. Selecting this check box displaysthe identity fields.

Client Auth Type No Select the type of client authentication from the drop-downlist. The available types are:

● none

● optional

● required

Keystore Provideras Trustore

No The name of a keystore provider resource instance thatmaintains a keystore that confirms an identity.

316

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 317: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Advanced SSL Server Configuration

Use the following fields for advanced SSL server configuration.

FieldModuleProperty Description

SSL SecurityProvider

Yes Optional. The SSL security provider.

This is the name for the JSSE's cryptographicprovider implmenting SSLContext. If you areusing non-default providers, such as PDCS#11ones, you might want to override it.

SSL Protocol No The SSL protocol to use in the SSL connection. Select fromthe following options:

● TLSv1

● TLSv1.1

● TLSv1.2

● SSLv3 – Use of this protocol is discouraged.

The default is TLSv1.

Selecting a protocol implies the support of higher versionsas well.

SSL Cipher Class No The number of bits in the key used to encrypt data:

● No Exportable Ciphers● All Ciphers● At Least 128 Bit● More Than 128 Bit● At Least 256 Bit● FIPS Ciphers● Explicit Ciphers

Explicit Cipher List Yes A list of ciphers. Enabled when SSL Cipher Class is set toExplicit Ciphers. Use the JSSE format for ciphers names.

Verify Remote HostName

No Indicates whether the name on the server's certificate mustbe verified against the server's host name.

If the server's host name is different than the name on thecertificate, the SSL connection fails. You can verify the nameon the certificate against another name by specifyingExpected Remote Hostname.

Selecting this check box displays the Expected RemoteHostname field.

Default: This check box is clear.

317

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 318: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

FieldModuleProperty Description

Expected RemoteHostname

Yes Optional. The expected name of the remote host.

The default is None.

SSL Client ConfigurationYou can specify SSL parameters for the HTTP client shared resource here.

SSL Client Configuration

The General section in the SSL Client Configuration has the following fields.

Field Description

Name The name to be displayed as the label of the SSL Client resource.

Description A short description of the SSL client resource.

Basic SSL Client Configuration

This section has the following fields.

Field Module Property Description

KeystoreProvider AsTrust Store

No The name of a keystore provider resourceinstance that maintains a keystore thatconfirms an identity.

EnableMutualAuthentication

No Indicates whether the client in the SSLconnection authenticates to the server. Selectthis check box to enable the identity fields.

IdentityStoreProvider

No The name of keystore provider resource thatmaintains a keystore used to assert an identity.

Key AliasName

Yes The name of the alias used to access theidentity.

Key AliasPassword

Yes The password for the alias.

Advanced Client SSL Configuration

This section contains the following fields.

318

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 319: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Module Property Description

SSLSecurityProvider

Yes Optional. The SSL security provider.

This is the name for the JSSE'scryptographic providerimplmenting SSLContext. If you areusing non-default providers, suchas PDCS#11, you might want tooverride it.

SSLProtocol

No The SSL protocol to use in the SSL connection:

● TLSv1

● TLSv1.1

● TLSv1.2

● SSLv3 - Use of this protocol is discouraged.

The default is TLSv1.

Selecting a protocol implies the support ofhigher versions as well.

SSL CipherClass

No The number of bits in the key used to encryptdata:

● No Exportable Ciphers● All Ciphers● At Least 128 Bit● More Than 128 Bit● At Least 256 Bit● FIPS Ciphers● Explicit Ciphers

The greater the number of bits in the key(cipher strength), the more possible keycombinations and the longer it takes to breakthe encryption.

The default is At Least 128 Bit.

ExplicitCipher List

Yes A list of ciphers. Enabled when SSL CipherClass is set to Explicit Ciphers. Use the JSSEformat for ciphers names.

319

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 320: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Module Property Description

VerifyRemoteHost name

No Indicates whether the name on the server'scertificate must be verified against the server'shost name. If the server's host name isdifferent than the name on the certificate, theSSL connection fails. The name on thecertificate can be verified against anothername by specifying Expected RemoteHostname.

Selecting this check box displays the ExpectedRemote Hostname field.

Default: This check box is clear.

ExpectedRemoteHostname

Yes Optional. The expected name of the remotehost.

The default is None.

Subject ProviderThe Subject Provider resource provides support for authenticating user credentials through a Keystoreor Trust Store.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the policy resource package.

Name The name of the policy resource.

Description A short description of the policy resource.

Subject Provider

The Subject Provider section has the following fields.

Field

LiteralValue/ModuleProperty Description

CredentialProvider forIdentity Store

None Refers to a Keystore Provider resource. The Keystore Providermaintains the keystore used to assert an identity.

Key AliasName

Yes The name of the alias used to access the identity.

320

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 321: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty Description

Key AliasPassword

Yes The password for the alias.

CredentialProvider forTrust Store

None Optional. Select a Trust Provider resource.

TCP ConnectionThe TCP Connection shared resource specifies the connection information for the TCP server. Thisresource is used when a process acts as a TCP client connecting to a remote server or when a processacts as a TCP server accepting incoming TCP.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the resource.

Description A short description of the activity.

TCPConnection

This section has the following fields.

Field

LiteralValue/ModuleProperty? Description

Host Yes When a process acts as a client, this field specifies the host nameor host IP address of the TCP server to connect to.

When a process acts as a server, this field specifies thehostname or IP address of the machine where the processengine is running. You can specify "localhost" or if the machinehas more than one network interface card, you can specify theIP address of the card you want to use to accept the TCP/IPconnections.

Port Yes This field specifies the port number on which a TCP server islistening for requests.

EnableConnection Pool

Yes Selecting this check box enables the When ExhaustedConnections, Maximum Connections, Maximum Wait Time,and Idle Timeout fields.

321

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 322: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty? Description

When ExhaustedConnections

Yes When the connections are exhausted on the server, selectanyone from the following available options.

● Block: the pool is blocked when the pool is exhausted (thatis, the maximum number of active objects has been reached)until a connection is available, or the maximum wait timehas been reached.

● Fail: when the pool is exhausted (that is, the maximumnumber of connections have been consumed), it fails.

● Grow: when this policy is selected a new connection iscreated for every request of the client, therefore there is nomaximum connection limit.

MaximumConnections

Yes Specifies the maximum number of simultaneous client sessionsthat can connect with the server. This parameter is enabled onlyif connection pooling is enabled (the Enable Connection Poolcheck box is selected). The default value is 10.

Maximum WaitTime (msec)

Yes Specifies the maximum wait time in milliseconds to connect tothe TCP server. This parameter is enabled only if connectionpooling is enabled (the Enable Connection Pool check box isselected). The default value is 10000.

Idle Timeout(msec)

Yes Specify the idle timeout for the connections in milliseconds. Thedefault is -1.

Trust ProviderThe Trust Provider resource maintains the identity of a trusted resource.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the policy resource package.

Name The name of the policy resource.

Description A short description of the policy resource.

Trust Configuration

The Trust Configuration section has the following fields.

322

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 323: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Credential Storeused for Trust

Refers to a Keystore Provider. The keystore is a trust store.

Enable Tust StoreAccess

Select this option to enable acess to the specified trust store.

WSS AuthenticationA WS-Security ASP resource template enables a connection to Web Services Security authenticationservices.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the policy resource package.

Name The name of the policy resource.

Description A short description of the policy resource.

Basic Configuration

The Basic Configuration section has the following fields.

Field Description

Security Token Security Token is an online security credential that adds an extra layer ofidentity protection.

X.509 token is the default selection. X.509 is an ITU-T standard for a publickey infrastructure (PKI) and Privilege Management Infrastructure (PMI).

Enable SignatureVerification

Select to indicate whether to verify the signatures. By default, this option isnot selected. If selected, it activates the Trust Provider field.

Enable Decryption Select to indicate whether to enable decryption. By default, this option is notselected. If selected, it activates the Subject Provider field.

Select both Enable Signature Verification and Enable Decryptionto activate the Subject Provider (with Trust Credential) field.

User Authentication

The User Authentication section has the following fields.

323

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 324: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Select the type ofauthentication

Choose to authenticate users through XML File Authentication or LDAPAuthentication.

XML File Resource The name of the XML Authentication shared resource used to authenticateuser credentials.

LDAP Resource The name of the LDAP Authentication shared resource used to authenticateuser credentials.

XML AuthenticationThe XML Authentication resource provides support for XML file-based authentication.

General

The General section has the following fields.

Field Description

Package The name to be displayed as the label of the policy resource package.

Name The name of the policy resource.

Description A short description of the policy resource.

XML Authentication Configuration

The XML Authentication Configuration section has the following fields.

Field

LiteralValue/ModuleProperty Description

XML File Yes The XML File containing user credentials.

Notify ConfigurationThe Notify Configuration specifies a schema to use for passing data between executing processinstances. The corresponding Receive Notification, Notify and Wait for Notification activities use thesame Nofity Configuration to define the data for inter-process communication. The schema can beempty, if you do not want to pass data between processes.

General

The General tab has the following fields.

Field Description

Package The name to be displayed as the label of the configuration resource package.

324

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 325: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Name The name of the configuration resource.

Description A description of the configuration resource.

Notify Configuration Editor

The Notify Configuration Editor is used to define a custom schema. The schema can be empty, if youdo not want to pass data between processes.

You can define your own datatype on this tab, and you can reference XML schema or ActiveEnterpiseclasses stored in the project. Once defined, the data specified on the tab appears on the Input or Outputtab of the Receive Notification, Wait for Notification or Notify activity where this shared configurationresource is used.

325

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 326: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

TCP Palette

The TCP palette provides activities and resources that can send and receive data using the TCPprotocol. TCP is often the inherent communication layer for high-level protocols such as HTTP or FTP.

You could use the resources in the TCP palette to communicate with HTTP or FTP severs, but theactivities in the HTTP palette or FTP palette are best suited for this purpose. Use this palette whencommunicating with TCP, when there is no corresponding ActiveMatrix BusinessWorks™ palette forthe protocol. For example, using the TCP palette to handle the incoming and outgoing data from acustom application that communicates with other applications by way of TCP.

Using the TCP Palette ActivitiesYou can use the TCP palette activities to create a general sequence of events in a process.

Procedure

1. Create a TCP Connection shared configuration resource that describes the connection information.

2. Depending on whether the process is a TCP client or server, one of the following occurs:a) A connection opens using the TCP Open Connection activity, when a process works as a TCP

client communicating with a TCP server.b) The process starts either with a TCP Receiver process starter or has a Wait for TCP Request

activity that waits for an incoming connection request, when a process works as a TCP serverwaiting for the incoming TCP requests.

3. Use the Read TCP Data and Write TCP Data activities to read and write data to the in process TCPconnection.

4. After the process is complete, close the TCP connection using the TCP Close Connection activity.

Read TCP DataRead TCP Data is an asynchronous activity that reads data from an open TCP connection. Theconnection must be opened by an activity or a process starter that executed previously in the process.

Activities that can open a TCP connection are: TCP Receiver, TCP Open Connection, and Wait forTCP Request. The activity that opens a TCP connection places a handle to the open connection in itsconnectionKey output element. The connectionKey is mapped to this activity’s input.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in the process.

Type None Type of data to be read. This can be either Text or Binary.

Specifying Text in this field enables the Separator and Encodingfields. When Binary is specified, the Bytes To Read field is enabled.

326

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 327: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Separator Yes The type of separator. This activity reads data from the TCPconnection until the separator or the end of the data stream isencountered.

Select User-defined binary separator (specify comma-separatedbyte values) from the drop-down list to enable the User DefinedSeparator field.

User DefinedSeparator

Yes This field specifies the separator character to use.

When Binary is selected in the Type field, a user-defined separatorcan be:

● A string representation of a single byte, or

● A comma-separated byte values (for example, 0x0a, 0x0b, 0x0c,and so on).

For valid string representations of byte values, refer to the Javadocumentation for the decode(String n) method of Java.lang.Byte.

Encoding Yes Specifying Text in the Type field, determines the characterencoding of the text data in this field.

Bytes To Read Yes Specify the number of bytes to be read by this activity.

This field is enabled when you select Binary in the Type field.

Leaving this field blank makes the activity read until the end of thedata stream is encountered.

Timeout(msec)

Yes The time to wait (in milliseconds) for this activity to complete.

Description

Provide a short description for the activity.

Input

The following is the input for the activity.

When Text is specified in the Type field, the Input tab displays connection, encoding, separator, andtimeout elements. Specifying Binary in the Type field displays connection, bytesToRead, and timeoutelements.

Input Item Datatype Description

connection binary The handle to the connection to read the data from.

This connection is obtained from a previously executed activity in theprocess that opened the connection.

327

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 328: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

encoding string Specifies the character encoding of the text when reading the text data.

This value overrides the value specified in the Encoding field in theGeneral tab.

separator string An optional element. Specifies the boundary between the bodyelements after writing the body element to the TCP connection, whilereading the text data.

This element is available only when the User Defined Separatoroption is selected on the General tab.

This value overrides the value specified in the General tab.

bytesToRead

number An optional element. Specifies the number of bytes to be read whenreading the binary data.

This value overrides the value specified in the Bytes To Read field inthe General tab.

timeout number An optional element. The time to wait (in milliseconds) for this activityto complete.

Output

The following is the output of the activity.

Output Item Datatype Description

data? string When the data is specified as text, this output element contains thetext read from the TCP connection. The separator character ifspecified, is not included in the output.

When the data is specified as binary, this output element containsthe binary data read from the TCP connection.

endOfStreamReached

boolean This element is set to true, when the end of the data stream isreached.

This is useful when the activity is in an iteration loop and theactivity is configured to read a number of bytes with each iteration.Use this element in the condition of the loop, to determine whenthe last set of bytes was read.

TCP Close ConnectionTCP Close Connection is a synchronous activity that closes a TCP connection opened by a previouslyexecuted activity or a process starter.

General

The General tab has the following fields.

328

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 329: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field Description

Name The name to be displayed as the label for the activity in the process.

Description

Provide a short description for the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

connection binary The handle to the connection that you want to close.

This value is obtained from a previously executed activity in theprocess that opened the connection.

Output

The activity has no output.

TCP Open ConnectionTCP Open Connection is a synchronous activity that opens a connection to a TCP server. Afterestablishing the connection, the activity places a handle to the open connection in the connection outputelement. The subsequent activities in the process use this connection key for the TCP Connection toread data from, write data to, or close the connection.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty? Description

Name None The name to be displayed as the label for the activity in the process.

TCPConnection

Yes The TCP Connection is a shared configuration resource that specifiesthe connection information for the TCP server. Specify the requiredvalue in the TCP connection property.

Local Host None Specifies the IP address on the local machine to be used as the TCPclient.

Description

Provide a short description for the activity.

Input

The following is the input for the activity.

329

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 330: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

connection complex An optional element. This element contains the information about theTCP server you want to connect to. It comprises host, port, andlocalhost elements.

host string An optional element. The name or IP address of the TCP server youwant to connect to.

This value overrides the value specified by the TCP connectionproperty in the General tab.

port number An optional element. The port number on which the TCP server islistening for requests.

This value overrides the value specified by the TCP connectionproperty in the General tab.

localhost string An optional element. The name or the IP address of the TCP client.

Output

The following is the output of the activity.

OutputItem Datatype Description

connection binary The handle to the open connection.

The subsequent activities in the process use this connection key to readdata from, write data to, or close the connection.

TCP ReceiverTCP Receiver is a process starter activity that starts the process when a client requests a TCPconnection. The connection element in the activity output contains the handle to the TCP connection.The subsequent activities in the process can use this handle for the TCP connection to read data from,write data to, or close the connection.

General

The General has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in the process.

Host Yes The hostname or the host IP address of the TCP server to connectto.

330

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 331: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Port Yes Specify the port number on which this TCP server is listening forrequests.

Enable DNSLookup

None Select this check box to enable a domain name system (DNS)lookup for resolving the IP address to a DNS name.

Select this element only when required, as this mayadversely affect throughput.

Keep Alive None Select this check box to specify for the TCP connections to use thekeep alive feature of sockets.

Description

Provide a short description for the activity.

Advanced

The Advanced tab contains the following fields.

Field Description

Sequencing Key This field can contain an XPath expression that specifies which processesshould run in a specified order.

Process instances with sequencing keys evaluating to the same value areexecuted sequentially in the order of the process instance creation.

Custom Job Id This field can contain an XPath expression that specifies a custom ID for theprocess instance.

Conversations

You can initiate the conversation here. Click the Add New Conversation button to initiate multipleconversations.

For details about conversations, refer to Application Development.

Output

The following is the output of the activity.

OutputItem Datatype Description

connection binary The handle to the open connection. This connection can be used bysubsequent activities in the process definition to specify the TCPconnection to write data to, read data from or close.

331

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 332: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

OutputItem Datatype Description

IP string The IP address of the client sending the TCP request.

Host string The host name of the client sending the TCP request. This field isavailable only when you select the Enable DNS Lookup field in theGeneral tab.

Port integer The port number of the client sending the TCP request.

Wait for TCP RequestWait for TCP Request is a signal-in activity that waits for a TCP client connection request. When aconnection request occurs, the activity places a handle to the open connection in the connection outputelement. The subsequent activities in the process use this connection key to read data from, write datato, or close the connection.

General

The General tab has the following fields.

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in theprocess.

Host Yes The hostname or the host IP address of the TCP server to connectto.

Port Yes Specify the port number on which this TCP server is listening forrequests.

Enable DNSLookup

None Select this check box to enable a domain name system(DNS)lookup for resolving the IP address to a DNS name.

Select this element only when required, as this mayadversely affect throughput.

Keep Alive None Select this check box for the TCP connection to use the keep alivefeature of sockets.

TCP keep alive is different from HTTP keep alive.

Description

Provide a short description of the activity.

332

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 333: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Event

The Event tab has the following fields.

Field Description

Event Timeout(seconds)

A message may arrive before this activity is executed. Specify the amount oftime (in seconds) for a message to wait, if the message is received beforethis activity is executed.

Activity Timeout(msec)

Specify the amount of time (in milliseconds) for an activity to wait before itis executed.

Conversations

You can initiate or join the conversation here. Click the Joining Existing Conversation button to

join multiple conversations. Click the Add New Conversation button to initiate conversations.

For details about conversations, refer to Application Development.

Output

The following is the output of the activity.

OutputItem Datatype Description

connection binary The handle to the open connection. This connection key can be used bysubsequent activities in the process definition to specify the TCPconnection to write data to, read data from, or close.

IP string The IP address of the client sending the TCP request.

Host string The host name of the client sending the TCP request. Select the EnableDNS Lookup field in the General tab to enable this field.

Port integer The port number of the client sending the TCP request.

Write TCP DataWrite TCP Data is an asynchronous activity that sends data on the specified TCP connection. Theconnection must be opened by an activity or process starter that executed previously in the process.

General

The General tab has the following fields.

333

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 334: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty/ProcessProperty? Description

Name None The name to be displayed as the label for the activity in the process.

Type None The type of the data to write. This can be either Text or Binary.

Specifying Text in this field displays the Separator and Encodingfields.

Specifying Binary in this field displays the User Defined Separatorfield.

Separator Yes The type of separator to use. The separator is written to the TCPconnection after the specified data is written.

Select User-defined separator from the drop-down list to enable theUser Defined Separator field.

User DefinedSeparator

Yes This field specifies the separator character to use.

When Binary is selected in the Type field, a user-defined separatorcan be a string representation of a single byte value or it can becomma-separated byte values (for example, 0x0a, 0x0b, 0x0c). Forvalid string representations of byte value, refer to the Javadocumentation for the decode(String n) method of java.lang.Byte.

Encoding Yes When text data is specified, this field determines the characterencoding to use for the text data.

Description

Provide a short description of the activity.

Input

The following is the input for activity.

Input Item Datatype Description

connection binary The handle to the connection that you want to write data to. Thisconnection is obtained from a previously executed activity in theprocess that opened the connection.

data string orbinary

The data to write to the TCP connection. The data type of this field iseither String or Binary, depending upon the data selected in the Typefield in the General tab.

encoding string An optional element. When writing text data, this specifies thecharacter encoding of the text. This value overrides the value specifiedin the Encoding field in the General tab.

334

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 335: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

separator binary An optional element. This is available only when you select the soption on the General tab.

Output

This activity has no output.

335

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 336: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Thread Pool

The thread pool is a queue of threads available to run a collection of tasks. Thread pools are used toimprove performance when executing large numbers of asynchronous tasks by reducing per taskinvocation overhead. This provides a means of bounding and managing the resources consumed whenexecuting a collection of tasks.

General

The General section has the following fields.

Field Description

Name The name to be displayed as the label for the resource.

Description A short description of the resource.

Thread Pool

This section has the following fields.

Field

LiteralValue/ModuleProperty? Description

Core Pool Size Yes Must be greater than or equal to zero. The default is 5.

Max Pool Size Yes The maximum number of threads in the pool. Must be greaterthan zero and greater than or equal to core pool size.

The default is 10.

Keep AliveTime (s)

Yes The length of time an idle thread remains in the pool before beingreclaimed, if the number of threads in pool is more than core poolsize.

The default is 30 seconds.

Autostart CoreThreads

Yes Indicates to create and start the core pool size threads when thethread pool is created. Normally core threads are created andstarted only when new tasks arrive.

Thread PoolName Prefix

Yes A string prefixed to the name of each thread.

Daemon Yes Select the check box to specify whether the threads can be startedas a daemon or a user. The default is false.

Priority Yes The default priority of the threads in the pool. The default is 5.

336

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 337: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Field

LiteralValue/ModuleProperty? Description

Rejection Policy No The policy applied when no thread is available to run a task:

● BLOCKING: the task is blocked until a thread from the threadpool picks up this task.

● CALLER RUNS: the task is run in the calling thread.

● ABORT: the task is aborted and an exception is thrown.

The default is BLOCKING.

337

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 338: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

XML Activities Palette

The XML Activities palette provides activities for parsing XML strings into schemas and renderingschemas into XML strings.

Parse XMLParse XML is a synchronous activity that takes a binary XML file or an XML string and converts it intoan XML schema tree based on the XSD specified.

Parsing Date and Datetime Strings

In XML documents parsed by the Parse XML activity, datetime values are read in accordance with theISO-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 2.00 p.m. on February 10th, 2002 in a time zonethat is 8 hours, 0 minutes behind UTC.

If no time zone field is present, the value is interpreted in the time zone of the machine that isperforming the parsing. This can lead to complications if you are processing XML from a different timezone, so you are encouraged to always use a time zone.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Input Style Can be binary, text, or dynamic.

In binary mode, the binary content is read. The encoding used for parsing thecontent is either the value specified in the forceEncoding input item, the encodingspecified in the XML header or the xmlBinary input item, or UTF-8 (the defaultencoding, if no encoding is specified).

In text mode, (the default and preferred choice) an XML string is passed as aninput item.

In dynamic mode, a choice is offered for input. You can either supply binary ortext input. You can use a choice statement and set substitution in the mapping tosupply the correct type of input at run time.

Description

Provide a short description for the activity.

Output Editor

Use the Output Editor tab to define a schema for the XML output.

Input

The following is the input for the activity.

338

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 339: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

xmlString string The XML string to parse.

This input element is available when the Input Style field in theGeneral tab is set to text.

xmlBinary complex Available when you set the Input Style field in the General tab tobinary.

This input item contains a required bytes item for which you specifythe input XML bytes.

This input item also contains an optional forceEncoding item. Thisspecifies the encoding to use when parsing the XML. If this element isnot specified, the encoding specified in the XML header of the byteelement is used to parse the XML. If the encoding value is not specifiedin the XML header, the default encoding (UTF-8) is used.

xmlBinary|xmlString

choice Available when the Input Style in the General field is set to dynamic.

You can specify a choice statement and set substitution and supply thecorrect input type at run time.

Output

The following is the output of the activity.

Output ItemDatatype Description

XML Schema complex The parsed XML schema is the output of this activity. The contents ofthe schema are determined by the schema defined in the OutputEditor tab.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown when...

XMLParseException An exception occurred when parsing the data.

UnsupportedEncodingExcept

ion

An unsupported encoding was specified in the forceEncodinginput item.

MissingByteCountException An exception occurred while parsing the data with an invalid ormissing byte count.

ValidationException The file specifies a version of XML that the parser is not preparedto handle.

Render XMLRender XML is a synchronous activity that takes an instance of an XML schema element and renders itas a stream of bytes containing XML or an XML string.

339

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 340: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

The Render XML activity takes an instance of an XML schema element and renders it as a stream ofbytes containing XML or an XML string. The schema is processed based on the XSD file specified.

Rendering Date and Datetime Strings

UTC time is used when datetime strings are generated. For example, the time 55 minutes, 31 seconds,and 112 milliseconds after 2.00 p.m.on February 10th, 2002 would be represented by the Render XMLactivity as 2002-02-10T14:55:31.112Z

General

The General tab has the following fields.

Field

Literal Value/ProcessProperty/ModuleProperty? Description

Name No The name to be displayed as the label for the activity in theprocess.

Output Style No Specifies whether the output should be text or binary data.

Format UsingDefaultNamespacePrefix

No Prepends the namespace with the default namespace prefix.

Encoding Yes This field is available only when the Output Style field is set totext. This field specifies the encoding value to place into the XMLheader of the rendered XML data.

You can specify any valid XML encoding value listed in IANA-Charsets.

Description

Provide a short description for the activity.

Advanced

Click the Advanced tab and specify which elements in the input schema can contain CDATA sections.Using CDATA sections you can enclose text within an element that should not be treated as XML.

Click the + button to add elements of the input schema to the list. When you click the + button, a dialogdisplays. Using this dialog locate and select the input schema by location in the project or bynamespace. Use the By Location tab if your input schema is located in the project directory. Use the ByNamespace tab if you constructed the input schema on the Input Editor tab.

Use the X button to remove the elements from the list and the up and down arrows to move elements inthe list.

Input Editor

From the Input Editor tab you can define a schema for the incoming XML data you want to render.

340

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 341: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input

The following is the input for the activity.

Input Item Type Description

byteEncoding

string This is only available when you set the Output Style field in theGeneral tab to binary.

This specified the encoding value to place into the XML header in therendered XML output. This is also the encoding used to encode thebinary data. If this item is not specified, the default encoding of thejava virtual machine used by the process engine is used to encode thebinary data. This value may not be a valid XML encoding.

You can specify any valid XML encoding value listed in IANA-Charset.See http://www.iana.org/assignments/character-sets for a complete list.The encoding names are case sensitive.

XMLSchema

string The XML schema to render. The contents of the schema are determinedby the schema specified in the Input Editor tab.

Output

The following is the output of the activity.

OutputItem Type Description

xmlString string Available when text is selected in the Output Style field in the Generaltab. This item contains a stream of bytes representing the renderedXML.

xmlBytes bytes Available when binary is selected in the Output Style field in theGeneral tab. This item contains a stream of bytes representing therendered XML.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When..

XMLRenderException An exception occurred when rendering the data.

UnsupportedEncodingExce

ption

An unsupported encoding was specified in the byteEncoding inputitem.

MissingByteCountExcepti

on

An exception occurred while rendering the data with an invalid ormissing byte count.

341

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 342: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Transform XMLTransform XML is a synchronous activity that invokes the built-in XSLT processor to apply an XSLTstylesheet to an XML source document and produce a result document.

Normally, transformation of data occurs by mapping process variables to an activity's input andapplying XPath expression to perform any transformation. If you have an XSLT file that you are usingfor transformation, or if an outside source supplies an XSLT file, this activity helps you to use the XSLTfile instead of manually creating the mappings.

For more information about creating and editing XSLT files, see the XSLT specifications at http://www.w3.org/TR/xslt.

General

The General tab has the following fields.

Field Description

Name The name to be displayed as the label for the activity in the process.

Stylesheet The XSLT file shared configuration resource to use when transforming the XML.You can also specify an XSLT stylesheet in the stylesheet input element, if desired.Stylesheets specified in the activity input override the stylesheet specified in thisfield.

Input andOutput Style

Specifies whether the input and output is binary data, text, or an XML tree.

Description

Provide a short description for the activity.

Input

The following is the input for the activity.

Input Item Datatype Description

xmlString binary The XML to transform. If the input/output style is set to binary,this element is named xmlBytesIn. If the input/output style is set totext, this element is named xmlString. If the input/output style isset to tree, this element is named xmlTree.

styleSheet string This optional element contains the XSLT stylesheet to use totransform the XML input. This stylesheet overrides the stylesheetspecified in the styleSheet field in the General tab.

parameter complex This repeating element contains the input parameters for thestylesheet.

Each input parameter is specified as name/value pairs. The name isa string that corresponds to the name of the parameter specified inthe XSLT stylesheet parameter list.

name string The name of the stylesheet input parameters.

342

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 343: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Input Item Datatype Description

value string The value to supply for the specified stylesheet input parameters.

isXMLDocument boolean Specifies whether the parameter is an XML document.

Output

The following is the output for the activity.

OutputItem Datatype Description

xmlString text orbinary orcomplex

A binary or text value or an XML tree containing the output schemaspecified by the XSLT file.

The element is named xmlString and is of type text when you selecttext for the input/output style on the General tab. The element isnamed xmlOutput and is of type binary when binary is selected. Theelement is named treeOutput and is a complex type when you selecttree.

Fault

The Fault tab lists the possible exceptions thrown by this activity.

Fault Thrown When..

XMLTransformException An exception occurred when transforming the data.

UnsupportedEncodingExce

ption

Data was supplied that is encoded in an unsupported encoding.

MissingByteCountExcepti

on

An exception occurred while transforming the data with an invalidor missing byte count.

343

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 344: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Activity Icons Reference

This section gives you a list of the palettes and activities available in TIBCO Business Studio™.

Basic Activities Palette

Critical Section

Throw

For Each Iterate

Repeat Repeat on Error Scope While

Constructor

CompensateEmpty

End

Exit Get Context Invoke Rethrow

Receive Reply Set ContextStart

Set EPR

File Palette

Copy File Create File File Poller List Files

344

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 345: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

File Palette

Read File Remove File

Rename File

Wait for File Change

Write File

FTL Palette

FTL Publisher FTL Reply FTL Request Reply FTL Subscriber

FTP Palette

FTP Change DefaultDirectory

FTP Delete File FTP Dir FTP Get

FTP Get DefaultDirectory

FTP Make RemoteDirectory

FTP Put FTP Quote

FTP Remove RemoteDirectory FTP Rename File FTP SYS Type

345

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 346: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

General Activities Palette

Assign Call Process ConfirmExternal Command

Get Shared Variable Inspector Log Mapper

NotifyOn NotificationTimeout Receive Notification

Set Shared Variable

Sleep TimerWait For Notification

HTTP Palette

HTTP Receiver Send HTTP Request Send HTTP Response

Java Palette

JAVA Invoke Java Process Starter Java To XML XML To Java

346

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 347: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

JDBC Palette

JDBC Call Procedure JDBC Query JDBC Update SQL Direct

JMS Palette

Get JMS QueueMessage

JMS Receive Message JMS Send Message Reply to JMS Message

JMS Request ReplyWait for JMS Request

Mail Palette

Receive Mail Send Mail

Parse Palette

MimeParser Parse Data Render Data

Rendezvous Palette

Rendezvous Publisher

Rendezvous Reply ToRequest

Rendezvous RequestReply

RendezvousSubscriber

347

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference

Page 348: TIBCO ActiveMatrix BusinessWorks Bindings and Palettes ......TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference Software Release 6.3.4 November 2016 Two-Second Advantage®

Rendezvous Palette

Wait for RendezvousMessage

REST and JSON Palette

Invoke REST API Parse JSON Render JSON

TCP Palette

Read TCP Data TCP Close Connection TCP Open Connection TCP Receiver

Wait for TCP Request Write TCP Data

XML Activities Palette

Parse XML Render XML Transform XML

348

TIBCO ActiveMatrix BusinessWorks™ Bindings and Palettes Reference