Specifying Outbound Physical or Logical Directory Paths in Oracle BPEL PM

4-50 Oracle Fusion Middleware Users Guide for Technology Adapters Select the outbound adapter in the External References swim lane in JDeveloper wizard it is present in the composite.xml tab. Create a Binding Property in the Property Inspector for the outbound adapter you must scroll down to find it. Once the Create Property box appears, enter OutputFileDir in the Name field and the actual output dir name, example, C:\outputDir in the Value field. The composite.xml file appears as follows: reference name=FlatStructureOut interface.wsdl interface=http:xmlns.oracle.compcbpeladapterfileFlatStructureOutwsdl.inte rfaceWrite_ptt binding.jca config=FlatStructureOut_file.jca property name=OutputFileDir type=xs:string many=false override=mayC:\outputDirproperty binding.jca reference

4.3.2.2.2 Specifying Outbound Physical or Logical Directory Paths in Mediator

You can specify outbound directory names as physical or logical paths in Mediator. Physical paths are values such as c:\inputDir. You can specify the logical names at design time in the File Directories page shown in Figure 4–20 and then provide logical-physical mapping by using the Endpoint properties. For example, WriteFile is an outbound adapter service. You have specified OutDir as the logical directory name at design time.

4.3.2.2.3 Specifying a Dynamic Outbound Directory Name

For outbound operation, you can specify a dynamic outbound directory name. You can set variables to specify dynamic outbound directory names. ?xml version=1.0 encoding=UTF-8? adapter-config name=ReadAddressChunk adapter=File Adapter xmlns=http:platform.integration.oracleblocksadapterfwmetadata connection-factory location=eisFileAdapter adapterRef= endpoint-interaction operation=ChunkedRead interaction-spec className=oracle.tip.adapter.file.outbound.ChunkedInteractionSpec property name=PhysicalDirectory value=C:\foo property name=FileName value=dummy.txt property name=ChunkSize value=1 interaction-spec endpoint-interaction adapter-config In the preceding example, in the JCA file, the physical directory is set to C:\foo but during run time it is dynamically changed to the assigned value. In this example, the physical directory is dynamically changed to C:\out. You must perform the following steps to specify the dynamic outbound directory name: Note: Ensure that you limit the length of outbound file names the file name, plus the complete directory path to 200 characters. This is not an exact limit but rather a recommendation. When an outbound file name is long for example, 215 characters, a blank file with that name is created in the outbound directory. Oracle JCA Adapter for FilesFTP 4-51 1. Double-click the invoke activity. 2. Click the Browse Variables icon.

3. In the Variable Chooser dialog, click the Create an Object icon.

4. Create a variable MyDir of type xsd:string, as shown in Figure 4–27 . Figure 4–27 Create Variable Dialog

5. Drag and drop an Assign activity from the Component Palette in between the

Receive and Invoke activities in the design area.

6. Double-click the assign activity and click the Copy Operation tab.

7. Click Create and then Copy Operation. The Create Copy Operation dialog is

displayed.

8. In the Create Copy Operation dialog, select Expression from Type and specify the

directory name and path, as shown in Figure 4–28 . The output file is written to this directory.