0 votes
219 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 14 views
+1 vote
1 answer 933 views
+1 vote
1 answer 579 views
0 votes
1 answer 147 views
0 votes
1 answer 83 views
0 votes
1 answer 147 views
0 votes
1 answer 40 views
0 votes
0 answers 33 views
0 votes
1 answer 238 views
...