Tuesday, July 7, 2015

Scripts to Extract an Offline Package

Purpose

To extract an installation package to a file. The extracted file can be installed on the offline process server.

Parameter

Assume that the following parameters are fixed and not changed.
  • BPM Host: localhost
  • SOAP Port: 8880
  • User: bpmadmin
  • Password: bpmadmin
  • Process Application Acronym: GENE
  • Offline Server: OfflineServer
#!/bin/bash
# description: extract Offline Package
#
# Usage:   ./extractOP.sh <SnapshotAcronym>
#
# Example: ./exportPA.sh v1.0
#
# Gene Shen (c)2015
#


TODAY=`date +%Y%m%d`

HOST=locahost
PORT=8880
USER=bpmadmin
PASSWORD=bpmadmin
PANAME=GENE
SERVER=OfflineServer

/bpm/v8/profiles/ProcCtr01/bin/wsadmin.sh -conntype SOAP -port $PORT -host $HOST -user $USER -password $PASSWORD -lang jython -c "AdminTask.BPMExtractOfflinePackage('[-containerAcronym $PANAME -containerSnapshotAcronym "$1" -containerTrackAcronym Main -serverName $SERVER -outputFile /bpm/v8/temp/OP/$PANAME-"$1"-$TODAY.zip]')"