Grab activity with PAPI-WS 5.7

I have a process with 3 roles, and i have an interactive activity (external) in role 2 with the possibilty of making a grab (external) this activity in the role 3.
How to grab this activity with papi-ws? If i trying run the grab activity the exception informs that is here in another activity (interactive) and if I want grabbed this activity I need take it by workspace.
I know with papi (not papi-ws) is it possible. With papi-ws is possible "grabbed" activity?
My version is 5.7
Edited by marcuscavalcanti at 12/27/2007 5:51 AM

Yes it's possible with PAPI-WS.
1.) you just use activityCommit method in PAPI-WS, and i would suggest that you implement who gets which activity in ALBPM studio for each activity since this is process related information, and it will be easier.
2.) you have instanceGetEvents method to get AuditTrail. But i found out that there is some mistake in WSDL of PAPI-WS since you cannot get any java.lang.Time objects....there are properties for getInstanceStamp for example but it returns PAPI-WS Time object which has no information about datetime.
3.) never used that, so i don't know

Similar Messages

  • Is itpossible recover BPM Object instance from Screenflow in Grab Activity?

    My process has two roles: role1 and role2.
    role2 has an activity of type "Interactive" and the implementation type of this activity is Screenflow, in this Screenflow I have an instance variable of the type BPM Object.
    role1 has a Grab Activity from Interactive Activity that describes above, the Grab Activity has a unconditional transition to another Interactive Activity and this Interactive Activity has the same implementation type of the Interactive Activity of the role2 and points to the same Screenflow.
    I need to recover the values of the BPM Object that filled in role2, in other words, I need the same instance of the BPM Object in Interactive Acitivity of the role2 in the role1.
    If an user filled a field called "name" of BPM Object in the Interactive Activity of the role2, it needs to see that value in the Interactive Activity of the role1 after grabbed this activity of the role2 to role1.
    Is it possible?

    Hi,
    Sure it's just me, but I got a bit lost with the description of what you're trying to do. One place I got lost was in the discussion of roles. Roles are used in Oracle BPM processes for a variety of reasons, but I'm not sure they're germane to your problem so I'm trying to rephrase your question without their use.
    Here's my attempt to rephrase what it is that I think you're trying to do:
    1. I think you have two activities. I'm naming them "Check Credit" and "Final Check"
    2. I'm guessing you have a transition between the two activities "Check Credit" and "Final Check"
    3. Your process has an instance variable that is a BPM Object that I'm naming "customer". Since it's a BPM Object type, it has a variety of attributes (e.g. customer.name, customer.address, etc.)
    4. You have a Grab activity that has its "Runtime" property set to be "Defined" (meaning you have transitions defined coming into and out of the Grab activity). I think you might have a transition going from the "Final Check" activity to your Grab activity and I think you might have a transition going from the Grab to the "Check Credit" activity.
    Does this describe your process? I'm assuming you probably want to have the instance variable revert back to original values of the instance variable object before work was done in one of the activites, but don't want to head too far down this path until you confirm that this is what you want to know.
    Thanks,
    Dan

  • Grab activity - Queries

    Hi,
    I was looking into Grab activity. I have few queries..
    1. Defined Grab - we have both in & out transitions. What value is added by Grab over here? For me it looks simple flow
    2. From all - After each activity in the process, instance will come to Grab but there is only one out transition from Grab. Not able to visualize how it is used in aprocess & how the fow(sequence) is managed
    3. From All-To all - Here actual process flow (as it gets executed) will be based on User choice for "To" from grab. Is it right understanding?
    It will be really great if someone could give business example of how Grab can be used in a process.
    Thanks
    Sujata

    How wud u do it using Global Interactive.. I mean PAPI code can only be used outside BPM .. I guess?
    So where do u write this PAPI code and point it to assign a particular participant to a particular GRAB activity out of a number of participants in the same role i.e. manager?
    Do you use a screenflow inside the Global Interactive and then use Prepare - Commit Methods or how do u call the PAPI code from a Global Interactive to assign the participants to a GRAB activity at runtime?

  • GRAB activity how to .. ?

    Hi there,
    I have a Role that grab from every other role to the point that the project is cluttered with arrows and lines. How to simplify this GRAB'ing to the least cluttering?
    I am thinking about how to code a grab within each role, to grab itself to the GRAB role?
    It is worth the effort? or anyone knows how to go about a better solution or how to code this?
    Thanks
    badam571

    Sourav
    sourav biswas wrote:
    wat i meant was...since as far as i can understand..the GRAB role can grab all instances from all activities...*u can change the runtime property -Grab Type to From ALL/to ALL option*...in that case u dont need to add in coming and outgoing transitions from grab activity....Your suggest is interesting, but I do not think it will work for me, we want to our team lead to grab the developers and redirect their activities, not to grab our project manager or vp. grab ALL/to All may put us in trouble.
    Is there anyway we can grab all lower roles not the ones higher than where the grab is sitting?
    Thanks
    badam571

  • Code Within a Grab Activity

    Hi Everyone,
    I have some questions regarding the grab activity in ALBPM 6.0:
    1.) When is the code contained in the activity's main task executed, before the grab or after the grab's target activity has been selected?
    2.) If it's the latter, how do I know/get which activity the user has selected in the grab? I'm asking since automatic activities are not visible in the grab yet all my interactive activities should have some processing done for them before they are executed. I want to do some activity-specific processing after a target has been selected in the grab but before the instance get's redirected.

    Here is what you do:-
    1) Create a screenflow with 3 activities ,2 automatic and 1 UI Interactive Activity.
    2) 1st activity will be an automatic activity where you put your code to assign participants like the participants list obtained from the db, the activity names etc..
    3) In the UI Interactive Activity, create an UI which displays this info to the end user. The end user can then select an activity and the participant name from the drop down list from the UI and submits.
    3) In the next Automatic Activity, assign the participant based on the info selected i.e. participant.next = participant.find("name") and then appropriately direct the flow to the particular activity selected via. GRAB. This will assign that activity to that user automatically.

  • How to get transitions BPM activities with PAPI?

    Hi:
    I wonder if you can get the transitions of the activities of a process with PAPI. And how do you get?.
    Also, if you can get the expiration time of each activity, and process in general, and how to get those times.
    I hope you can help me and your prompt response.
    Greetings.

    Hi Eduardo,
    Not sure how you'd get the transitions for an activity using PAPI, but here's how you could get the deadline for a work item instance.
    Once you get your instance in the "for" loop below you'd use the PAPI variable "PREDEFINE_DEADLINE". As you know, there is an activity deadline (created by having a Due transition coming out of an activity) and a process deadline (created by setting the predefined variable "deadline" somewhere inside the process). This PAPI logic below uses the instanceInfo's three methods getDeadline(), getProcessDeadline() and getActivityDeadline() to retrieve the instance's deadline, process deadline and activity deadline respectively. Know you know this, but the "deadline" variable stores the time of the either the activity or process deadline that will expire first (e.g. if the due transition coming out of an activity will fire in 5 minutes and the process deadline won't fire for another 30 minutes, the PAPI getDeadline() method returns the activity deadline's time of 5 minutes in the future).
    If the activity does not have a Due transition, the getActivityDeadline() method returns a null value. Similarly, if the process's "deadline" predefined variable has not been set, then the getProcessDeadline() method returns a null value. If both the activity and the process deadlines are null, then the getDeadline() method also returns a null.
    This PAPI logic assumes that you've already done a search and have a list of instances in your "instances.toArray()":
         for (InstanceInfo ii : instances.toArray()) {
           // this gets the deadlines
           Time dl = (Time) ii.getDeadline(); 
           Time adl = (Time) ii.getActivityDeadline(); 
           Time pdl = (Time) ii.getProcessDeadline();
           System.out.println("deadline: " + dl
                                 + "\nactivity deadline: " + adl
                                 + "\nprocess deadline: " + pdl);
           // this gets the role where the work item instance
           //    is currently is sitting
           System.out.println("role name: " + ii.getRoleId());
           // this gets the name of the activity where the
           //    work item instance is currently sitting
           System.out.println("activity name: " + ii.getActivityName());
    . . .Hope this helps,
    Dan

  • Record is not displayed in Historical Reports-Activity with no Customer

    Hi All,
    We have an issue in Historical Reports for Activity.we are using Book of Business also.
    Now the issue is under Activity History as subject area, when an activity doesn't have any Customer it should come as Unspecified in the report.
    Like if it doesn't have account assosiated to it then it is shown as Unspecified in the report.
    But for activity with no customer assosiated to it, it is not showing the entire record (Acitivity) in the report.
    When the Customer field is removed from the displayed columns then we are able to see those activities in the report.
    Note:
    But when the Book of Business is not there previously, it was working fine
    An response is appreciated.
    Thanks & Regards,
    Lemu
    Edited by: Lemu on Dec 28, 2010 10:33 PM
    Edited by: Lemu on Dec 28, 2010 10:34 PM

    Hi,
    Yes we have a workaround for this.
    Since the Primary Customer is not exposed as an Activity filed.
    Copy the value of the Primary Customer and display it in a filed of activity using workflows.
    Then replace the customer filed with this filed.
    Then u will get the activity without customer also cause the customer filed is a normal activity field.
    Hope this helps.
    Regards
    Lemu

  • LASERJET P2015-PROBLEMS WITH PAPER FEED

    We have a HP LaserJet P2015 in the office.  When the paper reaches the halfway point, the printer makes a horrible sound and will not feed the paper.  Anybody have any suggestion?

    So, I cranked up my old PowerBook G4 (OS 10.4.11) which has the older driver for the P2015dn and the problem remains.
    I have made some progress: If I want to print with paper feed from Tray 1, I pull Tray 2 out a few inches, load the paper in Tray 1, start the print job, and the yellow Attention LED flashes indicating an error. Note that the Paper Out light does NOT come on. So I press the Go button, the Attention LED goes out, and the print job completes using the forms in Tray 1 as desired.
    So I'm thinking now, What Error condition? and why does clearing it make it print?
    Certainly seems like a hardware problem to me as this is NOT the way the printer is supposed to work as documenetd in the User Guide.

  • Creation of Activity with campaign

    hi guys,
    Can anybody help for the below scenario.
    I am creating an activity with an 'CAMPAGIN ID'. Once the Campagin id is populated in the activity transaction and click on save button it will become as a preceding document for the activity.
    I am using the function module(BAPI_ACTIVITYCRM_CREATEMULTI) to create an preceding document as marketing campaign for the activity. But it was not working.
    can anyone guide how to approach to the above mention scenario. If possible post sample code.
    Thanks
    Viswa

    Hi Viswa
    Try this.
    Create a Marketing Campaign first.
    On save create activity using actions.
    Thanks

  • How to start with PAPI

    Hi
    Can someone suggest a better way to start with PAPI usage.
    may be a beginners guide in a precise way.. or a sample project that i can carryout locally on my machine without enterprise server.
    a guide that describes the scenarios which require PAPI...
    Any help is appreciated..
    Regds,
    Viswanath

    Here's a step by step document on how you could use the Java PAPI using JDeveloper 11: http://www.4shared.com/file/126507332/e814a3a8/CallingPapi.html. The Oracle BPM project I used for this step-by-step document is also in this zip file. If you're curious, this also describes how to download, install and start JDeveloper 11.
    In this example, you could create a new participant (e.g. "remotePapi") for PAPI session. On Enterprise you are actually creating the session to connect to the Directory Service and not a specific process or Engine.
    This is not formal Oracle documentation, but I know that getting PAPI to work is sometimes a challenge and thought this might help. I tried to write it with the "Java Newbie" in mind so do not panic if you aren't an expert in Java (I'm sure not ).
    This is a simple example that uses most of the logic found in the PAPI documentation on http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html?t=modules/papi/c_Head_PAPI.html in the "Writing Your First Java PAPI Program" section of this document.
    The document provides a step-by-step description on how how to use PAPI to:
    <li> interface to processes running on an Oracle BPM Enterprise Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> interface to processes running on an Oracle BPM Studio Engine
    <li> list processes currently running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> list the work item instances running on the Engine using the same logic that is in the Oracle BPM PAPI documentation
    <li> create a new work item instance in a process and pass in input argument variables to the new instance as it is created.
    I have a similar example of how to do this using PAPI-WS using SOAP-UI. Instead of using SOAP-UI, it could have been any outside environment that could invoke web services.
    Hope you find this useful,
    Dan

  • If imessage is not activated with my phone number, does text messages can be forwarded to my ipad?

    my imessage is not activating with my mobile number, i do not receive code for text forwarding in my ipad/ air 2, my iphone 4s and ipad is operating with the same iOS. plz help i am being able to use call and messages forwarding facilities.

    Hi, uttam_june15.  
    Thank you for visiting Apple Support Communities.  
    I am not sure if you are unable to activate iMessage or that your phone number is not registering with iMessage.  However, here are the troubleshooting articles that cover both scenarios.  
    If you get an error when trying to activate iMessage or FaceTime
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    -Jason H.  

  • Nexus 1010 HA Active with warm standby

    I have deployed two 1010 appliances, the upstream switches are two 6509 wihtout VSS.
    I cannot get the HA up.
    Output of show module is:
    Mod  Ports  Module-Type                       Model               Status
    1    0      Nexus 1010 (Virtual Services App  Nexus1010           active *
    2    0      Virtual Supervisor Module                             powered-up
    Mod  Sw                Hw
    1    4.2(1)SP1(3)      0.0
    Mod  MAC-Address(es)                         Serial-Num
    1    00-19-07-6c-5a-a8 to 00-19-07-6c-62-a8  NA
    Mod  Server-IP        Server-UUID                           Server-Name
    1    10.146.102.10    NA                                    NA
    Output of show system redundancy status is :
    Redundancy role
          administrative:   primary
             operational:   primary
    Redundancy mode
          administrative:   HA
             operational:   None
    This supervisor (sup-1)
        Redundancy state:   Active
        Supervisor state:   Active
          Internal state:   Active with warm standby
    Other supervisor (sup-2)
        Redundancy state:   Standby
    Error in getting supervisor and internal state of other supervisor.
    and the output of show system internal redundancy info is:
    My CP:
      slot: 0
      domain: 25
      role:   primary
      status: RDN_ST_AC
      state:  RDN_DRV_ST_AC_SB
      intr:   enabled
      power_off_reqs: 0
      reset_reqs:     9
    Other CP:
      slot: 1
      status: RDN_ST_SB
      active: true
      ver_rcvd: true
      degraded_mode: true
    Redun Device 0:
      name: ha0
      pdev: f37e8640
      alarm: true
      mac: ff:ff:ff:ff:ff:ff
      tx_set_ver_req_pkts:   319
      tx_set_ver_rsp_pkts:   0
      tx_heartbeat_req_pkts: 61193
      tx_heartbeat_rsp_pkts: 0
      rx_set_ver_req_pkts:   0
      rx_set_ver_rsp_pkts:   0
      rx_heartbeat_req_pkts: 0
      rx_heartbeat_rsp_pkts: 0
      rx_drops_wrong_domain: 0
      rx_drops_wrong_slot:   0
      rx_drops_short_pkt:    0
      rx_drops_queue_full:   0
      rx_drops_inactive_cp:  0
      rx_drops_bad_src:      0
      rx_drops_not_ready:    0
      rx_drops_wrong_ver:    0
      rx_unknown_pkts:       0
    Redun Device 1:
      name: ha1
      pdev: f37e8240
      alarm: false
      mac: 00:02:3d:70:19:81
      tx_set_ver_req_pkts:   314
      tx_set_ver_rsp_pkts:   0
      tx_heartbeat_req_pkts: 61193
      tx_heartbeat_rsp_pkts: 0
      rx_set_ver_req_pkts:   0
      rx_set_ver_rsp_pkts:   5
      rx_heartbeat_req_pkts: 0
      rx_heartbeat_rsp_pkts: 61165
      rx_drops_wrong_domain: 0
      rx_drops_wrong_slot:   0
      rx_drops_short_pkt:    0
      rx_drops_queue_full:   0
      rx_drops_inactive_cp:  0
      rx_drops_bad_src:      0
      rx_drops_not_ready:    0
      rx_drops_wrong_ver:    0
      rx_unknown_pkts:       0
    Can anyone please help in resolving this issue.
    Regards,
    Sabih

    Hi Sabih,
    For a Nexus 1010 pair to form HA redundancy, the communicate with each other via the Control VLAN. You would have specified this during your installation.
    Can you verify that they are both utilizing the same Control VLAN.
    n1010# show svs domain
    Furthermore, ensure that this vlan is defined and forwarding, on the relevant ports, on the upstream 6509s.
    Thanks,
    Michael

  • Access Message Wait Activity from PAPI-WS

    Hi,
    I am trying to access BPM Studio Message Wait activity using PAPI-WS. Am sending object as an argument but the argument values are not available in BPM.
    MessageWait1 - Activity Name
    In - Argument Set Name
    Arguments - Contains object values.
    InstanceInfo instance = session.processGetInstances(processId).get(j);
    session.processSendNotification(instance.getId(), "MessageWait1", "In", arguments);
    Let me know If i am missing anything.
    Thanks,
    Sanjay
    Edited by: Sanjay_21 on Sep 14, 2009 5:32 PM

    Hi Daniel,
    Yes session.processGetInstances(processId) will return array and that's the reason accessing single instance using get(index).
    InstanceInfo instance = session.processGetInstances(processId).get(j);
    I remember, I was able to pass complex argument in ProcessCreateInstance method but unable to pass similar object in Notification method. Can't we pass complex object as did in ProcessCreateInstance.
    Is it possible to provide sample on how to pass complex object
    Thanks,
    Sanjay

  • Design panel not active with php file?

    I have DW CS5 on two computers.  One one the design panel is active with a PHP file. On the other, it is not active.
    I must have a setting wrong on the one computer. What do I need to do to make the design panel active?  The code panel is fine on both.
    It is very hard to work on a PHP file when I can't see the design panel.
    Regards,
    Bill Schaepe

    The problem is that I have a number of PHP files that I need to modify the words in a form and it is hard to see what I am doing.
    You can't do this in Code view?
    On both computers, I just generate a new PHP file.  On the one computer the design panel is active and I can click design tab on it to see the design.  On the other one, I  can't click on the design panel tab to see the design.
    Both the same version revision level of DW?  Both on the same platform?  Do you have an option to click on "Design" under View on the main menu?

  • HT201210 nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and somet

    nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and sometime just hear from other user that it 's difficult to use then force they change phone that use to handle to another.

    It is a feature to discourage the theft of iPhones by making them useless if resold. It's not going anywhere. It's simple: just don't buy a phone until you make sure that the activation lock has been disabled.

Maybe you are looking for