This discussion is archived
3 Replies Latest reply: Nov 7, 2013 8:19 AM by Daniel Atwood RSS

How to move instance between activities

user9960665 Newbie
Currently Being Moderated

I'm working with Oracle BPM 10.3, I have an instance on the activity "Analisis" inside a process, and I want to move this instance to another activity "Reclamo". How do I do it?

Is there any function on the fuego api to do this?

  • 1. Re: How to move instance between activities
    Bibhuti Bhusan Journeyer
    Currently Being Moderated

    Hi User,

     

    Could you please let us know the activity where the instance is pending and the activity where you want to move the instance.

     

    Bibhu

  • 2. Re: How to move instance between activities
    user9960665 Newbie
    Currently Being Moderated

    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)

     

    Thanks!

  • 3. Re: How to move instance between activities
    Daniel Atwood Oracle ACE
    Currently Being Moderated

    (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();

    pairSet.add(instanceInfo);

    papisession.instancesGrab(pairSet, "GrabActivityName");

    // Send it to the destination activity

    papisession.instancesSendTo(pairSet, "ToActivityName", );

     

    Dan

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points