Using a Custom Process Starter in a Project That Gets Information about a Checking Account
Java Event Source allows you to create a custom process starter written in Java.
Prerequisites
Copy the AccountInformation.txt file from TIBCO_HOME\bw\n.n\samples\palette\java\JavaEventSource to c:\tmp directory on Windows and /tmp on UNIX.
Procedure
Result
Understanding the Configuration
This sample uses the Java objects such as, LocalBank, Account, Balance, and SystemProperties. The source for these objects is in the src directory.
The process executes as follows:
- The Java Event Source activity reads balances from the AccountInformation.txt and outputs an instance of the java.util.LinkedList class that contains a collection of all balances.
- The CollectionToArray activity invokes the java.util.LinkedListtoArray method to convert the collection to an array of objects.
- The group then iterates over each object in the array.
- The Balance activity takes the current object in the array and converts its data to an XML document.
- The PublishBalance activity publishes the data from the output of the Balance activity.
Copyright © Cloud Software Group, Inc. All rights reserved.