Using the BWDesign Utility
The
bwdesign
utility provides a command-line interface for creating, validating, importing, or exporting resources stored in a workspace.
- To use the
bwdesign
utility, open a terminal and navigate to the BW_HOME\bin. - In command line type: bwdesign -data <TIBCO_BusinessStudio_workspace_absolutePath>. For example, bwdesign -data C:\myWorkspace.
- To view arguments and options for a command, open a terminal, navigate to the
BW_HOME\bin folder, and type
bwdesign help
command at the command line.
Command name and Syntax | Description |
---|---|
cd SYNTAX: cd path | Changes the current working directory to the specified folder.
Arguments:
|
clear SYNTAX: clear | Clears the command-line console. |
diagram:gen_diagrams SYNTAX: diagram:gen_diagrams [project] | Save each process diagram of a project in a .bwd format.
Arguments:
|
edition SYNTAX: edition | Prints out the edition of this BW Studio |
execute SYNTAX: execute file | Executes a batch script file containing a set of commands to execute in sequence.
Arguments:
|
exit SYNTAX: exit | Exits the command-line console. |
generate_manifest_json SYNTAX: generate_manifest_json [options] [ear_location] [manifest_location] | Creates a
manifest.json or ear from the ActiveMatrix BusinessWorks EAR file.
Arguments:
Options:
|
ls SYNTAX: ls [-f|-p] [-a] | List the projects in the current workspace or the files in the current working directory.
Arguments:
|
pwd SYNTAX: pwd | Prints the location of the current working directory. |
quit SYNTAX: quit | Exits the command-line console. |
setedition SYNTAX: setedition -name -t EXAMPLE: setedition -name test.application -t bwcf | Converts projects from their existing editions to this edition of
TIBCO Business Studio for BusinessWorks. If the option
-name is not selected this command sets the edition of all the projects in the workspace to the current edition of
TIBCO Business Studio for BusinessWorks.
Select the option -name, and provide the names of the projects to be converted. Provide comma-separated values to convert multiple projects. The -t tag changes the edition to the specified edition. The values to be used for the editions are Optional. If the -f option is used the following message is not prompted: Are you sure you want to change the edition of the given project. |
system:create SYNTAX: system:create [options] Alternatively, you can use the create command. EXAMPLE: create application test2.application test Note: This example generates test2.application for the test application module.
| Creates resource(s) in the workspace.
Options:
|
system:export SYNTAX: system:export [options] [projects] [output folder] Alternatively, you can use the export command. EXAMPLE: export -ear test2.application -removeunused -path D:\Samples
| Exports BW artifacts from the specified projects in the workspace to a folder. The artifacts can be ZIP or EAR files.
Arguments:
Options:
|
system:import SYNTAX: system:import [options] files Alternatively, you can use the import command. | Imports flat or ZIP projects into the current workspace.
Arguments:
Options:
Output: file status
|
system:importpreferences SYNTAX: system:importpreferences [options] file Alternatively, you can use the
| Imports preferences set in the preferences file.
Arguments:
Output: file status
|
system:validate SYNTAX: system:validate [options] [modules] | Validates BW modules in the current workspace. If you do not provide any module name, by default, it validates all modules.
Arguments:
Options:
At the end of the validation report, the validate command displays the number of errors and warnings for a project. |
system:clean SYNTAX: system:clean project1, project2, project3 | Cleans specific projects (all the projects if none are specified in the command) in the workspace.
Cleans project1, project2, and project3 in the workspace. |
system:delete SYNTAX: delete -f system:delete project1, project2, project3 | Deletes projects from the workspace.
-f - This parameter deletes all the projects in the workspace without any message prompts. Deletes project1, project2, and project3 from the workspace. |
system:generate_manifest_json -project SYNTAX: generate_manifest_json -project <application name present in workspace> <folder location where JSON is created>
| This command generates a JSON file without creating an EAR file in the workspace.
|
export_to_consul SYNTAX: export_to_consul [options] | Export the properties from the specified profile to the Consul key-value store. Options:
|