BPMSetDefaultSnapshot command

Use the BPMSetDefaultSnapshot command to designate a default snapshot on IBM® Process Server.

On Process Server, the first snapshot you install is considered the default version. The items within that snapshot run when an event or other trigger that applies to more than one version of a process or service is received. When you install subsequent snapshots, you can use the Make Default Version option in Process Admin Console to ensure the snapshot you want to run is the default.

The BPMSetDefaultSnapshot 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.
The following conditions must be met:
  • Run the command in the connected mode, that is, do not use the wsadmin -conntype none option.

Location

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

Syntax

BPMSetDefaultSnapshot 
-containerAcronym process_application_acronym
-containerSnapshotAcronym process_application_snapshot_acronym

Parameters

-containerAcronym process_application_acronym
A required parameter that identifies the process application acronym. For example, the BillingDispute process application might have an acronym of BILLDISP.
-containerSnapshotAcronym process_application_snapshot_acronym
A required parameter that identifies the process application snapshot acronym.
Tip: If you do not know the acronym for a required parameter, use the BPMShowProcessApplication command to list the details of a process application, including acronyms.

Example

The following example illustrates how to set a snapshot of the BillingDispute process application as the default snapshot. In the example, the user establishes a SOAP connection to the Process Server.

Important: In a network deployment environment, use the port that is configured for the application cluster member that runs the Process Server applications. To determine the correct port number, see the 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 ProcessServer01.mycompany.com -user admin -password admin -lang jython

wsadmin>AdminTask.BPMSetDefaultSnapshot('[-containerAcronym BILLDISP -containerSnapshotAcronym SS8.5.5]')