BPMImport command

Draft comment:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15
This command imports a workflow project into Workflow Center.

Use the BPMImport command in connected mode from Workflow Center server to import a workflow project that was exported from a different Workflow Center server.

The BPMImport command is run using the AdminTask object of the wsadmin scripting client.

Prerequisites

Note: In an environment with multiple security domains configured, use the PALService MBean instead of this wsadmin command. See The Process Application LifeCycle (PAL) MBean.
Draft comment:
Are the following statements correct? What is the securty role information? Should it be run in connected or not connnected mode?
The following conditions must be met:
  • In a network deployment environment, you must run this command on the node containing the application cluster member that handles Workflow Center applications. Do not run this command from the deployment manager profile. The input file is read from the machine on which the connected server is running. If you want to access the file from another machine, establish a remote wsadmin session from the current machine to the server on the machine where the file is stored.
Note: If you are using a SOAP connection, the command can take longer to complete than the specified SOAP timeout value. Although the command continues to run until it is finished, you might see the exception java.net.SocketTimeoutException: Read timed out. To prevent this exception, set a higher value for the com.ibm.SOAP.requestTimeout property in the profile_root/properties/soap.client.props file.

Location

Draft comment:
Is the following statement correct?

Start the wsadmin scripting client from the profile_root/bin directory.

Syntax

BPMImport 
-inputFile input_file_path

Parameters

-inputFile input_file_path
A required parameter that identifies the absolute path for the exported file (a .twx file) you are importing.

Example

The following example illustrates how to import the BILLDISP.twx file into the Workflow Center server. In the example, the user establishes a SOAP connection to the Workflow Center server.

Important: In a network deployment environment, use the port configured for the application cluster member that runs the Workflow Server or Workflow Center applications. To determine the correct port number, see the WebSphere® administrative console Ports collection page (click Servers > Server Types > WebSphere application servers > server_name > Communications > Ports and find the value for SOAP_CONNECTOR_ADDRESS).
wsadmin -conntype SOAP -port 8880 -host ProcessCenterServer01.mycompany.com -user admin -password admin -lang jython

wsadmin>AdminTask.BPMImport('[-inputFile C:\processApps\BILLDISP.twx]')