The first step in the sample process is to add a Business Process (BP) to the Project.
From the Project Explorer panel, right-click brjBatch_Inbound_LocalFileIn_FTPOut.
Select New⇒Business Process from the context menu.
Rename the Business Process to bpBatch_Inbound_LocalFileIn_FTPOut, and click Save.
In the Project Explorer tree, expand the CAPS Components Library, expand Adapters, and then expand Batch eWay.
Expand the BatchInbound, and BatchLocalFileBatchFTP nodes to expose the Business Process elements.
Populate the design canvas with the following elements from the Project Explorer.
Under BatchInbound, add receive
Under BatchLocalFile, add read
Under BatchFTP, addput
To link the modeling elements, click the element’s connector and drag it to the next element’s connector, as follows:
Start⇒BatchInbound.receive
BatchInbound.receive⇒BatchLocalFile.read
BatchLocalFile.read⇒BatchFTP.put
BatchFTP.put⇒End
Business Rules define the relationship between the input and output Attributes of the elements.
Right-click the link between BatchInbound.receive and BatchLocalFile.read Activities and select Add Business Rule from the context menu.
From the Business Process Designer toolbar, click the Display Business Rules Designer icon.
The Business Rule Designer opens in the lower half of the Business Process Designer window.
Click the Business Rule icon between the BatchInbound.receive and BatchLocalFile.read Activities.
The Business Rule Attributes appear in the Business Rule Designer.
To create the BatchInbound.receive⇒BatchLocalFile.read Business Rule, in the Business Rules Designer, click GUIDFileName and drag it to targetFileName.
A link appears between the two nodes.
Right-click the link between the BatchLocalFile.read and BatchFTP.put Activities, and select Add Business Rule from the context menu.
Double-click the new Business Rule.
From the Business Rule Designer, under BatchLocalFile.read.Output, map payload in the Output pane to payload under BatchFTP.put.Input in the Input pane.
From the Business Process Designer toolbar, click the Synchronize Graphical Model and Business Process Code icon.
This synchronizes the graphical interface to the Business Process code.
Click Save All.