Could you please let us know the activity where the instance is pending and the activity where you want to move the instance.
Hi BibhutiBhusan, thanks for the reply, the activity where the instance is pending is an interactive activity, and the the activity where I want to move it is also an interactive activity, the problem I believe it's that this activities are not directly linked with a path in the workflow, yet there are another interactive activities in the path between this two activities.
If this can't be done, can I move an instance from an interactive activity to an automatic activity? (at BPM Process level)
(this is a 10g question)
You could add a Grab activity to your process and mark it "from all and to all". Using PAPI, you'd first get the instanceID and then could grab it using this logic:
. . .
InstanceInfo instanceInfo = papisession.processGetInstance(instanceId);
InstanceActivityPairSet pairSet = InstanceActivityPairSet.create();
// Send it to the destination activity
papisession.instancesSendTo(pairSet, "ToActivityName", );