BAR builder behavior for subflows created as .subflow files
Learn how a BAR file is created based on your message flow
design, the subflows that you created as .subflow files, and the build options that you choose.
When you build a BAR file in
IBM® Integration Toolkit, you must consider the following BAR builder behavior:
- When you add an application or an integration service to a BAR file, the BAR builder will automatically include any resources defined within the application project, or the integration service project, including all the required subflows.

- You can leave the BAR file creation option Compile and in-line resources option not selected, so that a message flow is added to a BAR file as a .msgflow source file. Subflows created as .msgflow files cannot be embedded in the message flow. You can only add subflows created as .subflow files to the BAR file.
Note: This is the recommended approach to creating a BAR file that includes message flows and subflows created as .subflow files.

Note: If you try to create a BAR file with the option
Compile and in-line resources not selected, where the message flow has embedded subflows created as
.msgflow files, you get the following error:

- You can choose to select the BAR file creation option Compile and in-line resources so that a message flow is added to a BAR file in its compiled form. Message flows are included in the BAR file as compiled objects, that is, .cmf files. Subflows are included as .subflow source files.
Note: This is not a recommended approach. It is available for compatibility with previous releases of IBM Integration Bus.
