Tuesday, 8 March 2016

IBM BPM 8.5.6 - Scrabbling with Snapshots

As part of a BPM Advanced 8.5.6 build, I wanted to be able to test the creation/deployment of a Process Application snapshot from a Process Center to a Process Server.

I used this: -

as an aide memoire to remind me how to create a Process Application in Process Designer ( it's been a while ).

Having finished testing, I archived and deleted the snapshot from Process Center.

However, I also wanted to do the same for Process Server, rather than leaving my stuff lying about :-)

This is what I did: -

Connect WSAdmin client to the SOAP port of one of the Process Server AppCluster members

/opt/IBM/WebSphere/AppServer/profiles/PSDmgr01/bin/wsadmin.sh -lang jython -host bpm1.uk.ibm.com -port 46015 -user PSdeAdmin -password passw0rd

List the Process Applications

print AdminTask.BPMListProcessApplications()

Show the details of MY Process Application

print AdminTask.BPMShowProcessApplication('-containerAcronym DMH101')

Name: DaveHay
Acronym: DMH101
Toolkit: false

        List of Snapshots:
                Name: D22
                Acronym: D22
                Created On: 2016-03-07 21:10:33.327
                Created By: User.9
                Is Default: true
                State: State[Active]
                Capability: Capability[Standard]
                No of running instances: 0

                Name: D2
                Acronym: D2
                Created On: 2016-03-07 20:59:26.935
                Created By: User.9
                Is Default: false
                State: State[Inactive]
                Capability: Capability[Standard]
                No of running instances: 0

Delete the Inactive non-default snapshot

print AdminTask.BPMDeleteSnapshot('-containerAcronym DMH101 -containerSnapshotAcronyms D2')

BPMDeleteSnapshot passed.

Deactivate the active default snapshot

print AdminTask.BPMDeactivate('-containerAcronym DMH101  -containerSnapshotAcronym D22 -force')

Delete the now-deactivated default snapshot - using force as it's default

print AdminTask.BPMDeleteSnapshot('-containerAcronym DMH101 -containerSnapshotAcronyms D22 -force')

BPMDeleteSnapshot passed.

With thanks to this: -

No comments: