0 votes
1.6k views
in Process Server by (700 points)
We wanted to migrate in-flight instances from our old snapshot to the new code base. We wanted to know what are the different ways to get the migration of inflight data. I was going through the forums and found we have 2 ways to get it done,

1. Using command line - https://www.ibm.com/support/knowledgecenter/SS964W/com.ibm.wbpm.ref.doc/topics/rref_bpmmigrateinstances.html

2. Using the Migrate Inflight data in the Process Admin Console.

When we deal with more than 15000 active instances, is there ways to get it done in batches?

1 Answer

0 votes
by (2.3k points)
selected by
 
Best answer

The JavaScript API has the ability to migrate a specific instance using the TWProcessInstance.migrateTo() command.  You would have to write your own code to leverage this, but it would be fairly easy to write a small PA that would allow you to select specific instances (or a range of instances) and issue this command to them.  The argument to the command is the TWProcessAppSnapshot that you wish to migrate to.

Note: I haven't used this in the real world myself, so you might want to test a good bit before using.  The command is documented here - http://www.ibm.com/support/knowledgecenter/SSFTN5_8.5.0/com.ibm.wbpm.ref.doc/ae/doc/JSAPI.html

by (700 points)
Thanks for your response. I found this js API function in the forum. This is suitable for selective instance migration rather than bulk.

If you run in batch over 18000 instances, you will see session will be timed out.

A basic thumb rule, when you wanted to use JS API to execute a loop better not to touch more than beyond 200. Because it will eat up the server memory which leads to the hung threads.

Related questions

0 votes
1 answer 541 views
+1 vote
2 answers 5.0k views
+1 vote
2 answers 5.0k views
0 votes
1 answer 1.6k views
0 votes
1 answer 1.3k views
0 votes
1 answer 411 views
0 votes
1 answer 609 views
0 votes
1 answer 982 views

635 questions

495 answers

98 comments

2.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...