Execute Decision Activity in PAPI

Hello,
I'm interested in a possibility to control a business decision (activity type "decision") from PAPI.
Could you please provide a code example for it?
For a simple decision activity a user can see in his workspace e.g. buttons "OK" and "Cancel" and then can decide by clicking on one of these buttons.
But how is it possible to do it programmatically using PAPI?
Thanks in advance!
Dimitri

Hi Dimitri,
The algorithms to present percentages in the decision activity presentation is embedded in the decision activity implementation in the engine.
You cannot execute interactive activities from PAPI that have UI associated to them (ie: interactive or global activities with a screenflow). The decision activity falls in this bucket.
However, you can use the HTTP/Servlet API (aka: WAPI) to trigger the execution of an interactive activity. You can look for "HTML API" in the Studio On Line Help for more information.
eduardoc.

Similar Messages

  • Workflow: User Decision Activity doesn't work

    friends,
    URGENT!!!
    I've created a User Decision Activity but it doesn't work.
    It sends a message to SBWP but there the user hit APROVE  OR REJECT, and instead it work, it simply show another screen with only a button labelad "Cancel and keep work item in inblox".
    It simplily doesn't folow.
    I've created an method that executes a standard function 'EDITOR_TABLE' that call a screen to the user put a description text for the rejection. It's market 'Advance with dialog'.
    thanks
    Glauco
    Abap / Workflow Consultant
    msn: [email protected]

    Hi,
    Your patch level seems to be OK.
    pls. try the declaration as 'Data: uid like syst-uname' or you could try directly assigning the sy-uname.
    Try to debug and see the content of the sy-uname, when it hits this code.
    HTH,
    Regards,
    Nataraj.

  • A Method betweeen two User Decision Activity

    Hi,
    Is it Possible to execute a method in between two user Decision Activites which advances with Dialog.The method that has to be executed is just a simple code based on the result of the user decision activity.
    By placing an ordinary activty between these two user decision activity it fails to advance with dialog.
    Also,it has been impossible to use this as a Modal Call after work item execution because this method requires standard Elements like WIActual_Agent which couldnt be passed as parameter also there is not separate binding for secondary methods.
    Please suggest a way to do that.
    Regards
    Imman

    I tried that.I dunno where I'm missing.
    The method which I need to call in between has a piece of code for table updation and is actually not a dialog.
    But this has to be executed between two dialogs.
    A notification is sent to User's inbox with 2 options(1st decision Activity) and on choosing one from that again 4 options(2nd decision Activity) will come.Between this a method has to get executed.
    Ideas pls.
    Regards
    Imman

  • User decision activity not going to the agents(Position Maintained).

    Hi All,
    I assigned a specific Position in the agent field of  the user decision activity. But after assigning, the decisiion step is not going to the expected agent but it getting executed by the WF-BATCH user.
    I have checked the same in the Tcode : PO13 and the corresponding user is the only one maintained for that position.
    Kindly guide what can be the possible reasons. Is there any thing i am missing.
    Thanks,
    Neslin.

    Thanks.Yes.Latest start and latest end are already maintained and there is a Rule when the latest start missed also.  kindly let me know how i can avoid this also..
    How to check whether the position is maintained to the SAP user id?.I have seen the user maintained under the position in Tcode PO13..
    The deadline is calculated 4 days after sydatum.
    One more thing the Workitem got reserved by the WF-batch and executed by WF-batch.
    Edited by: neslin on Jul 28, 2009 7:49 AM

  • 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

  • Can I get the participants of the role of some activity using PAPI?

    Hi all,
    Can I get all participants who have the role of one activity using PAPI? how?
    thanks and regards.

    Hello,
    I have the same problem, how to get the participants of specific role using PAPI ?
    Thanks

  • 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

  • How to execute a active Job in T-code SM37.

    Hi
    How to execute a active Job in T-code SM37.
    Pls help

    hi,
    In SM37 give the job name or user name. then in job status check only the active jobs then u can execute the job..
    Subhash

  • Avoid 2 instances of a BPEL process executing an activity at the same time?

    Hi,
    Is there a way I can avoid execution of an activity from two or more different instances of the same BPEL process at the same time?
    I would like to know if I can lock the activity across BPEL instances so that only one instace can execute an activity at a time?
    Kindly give me possible ways I can achieve this? We are using BPEL PM 10.1.2.
    Thanks,
    Sasi Bhushan

    As HEWizard said, you need to look at 'singleton'
    http://blogs.oracle.com/matt/2006/08/23
    http://orasoa.blogspot.com/2007/05/create-singleton-process.html
    the idea behind a singleton is you can only make one instance of the process. In the process you can handle the sap-activity.

  • Pop up Box while workflow executes an activity step

    Hi Folks!
    I dont know whether this is feasible or not, but please shoot your suggestions.
    I want to display a pop up box in SAP GUI when a workflow executes a particular step. Basically, once my workflow starts, I have included a condition step (it checks the document type). So if the document type is 'X', then the workflow should proceed as usual. However, when the document type 's 'Y', the workflow should throw a pop up message over the screen and the workflow should terminate.
    Now the reason why we want the pop up screen rather than an email/workitem is because we have two workflows that utilize the same business object (FIPP). There was a situation where an end user manually started *(thru 'services for object'-> start workflow) the wrong workflow for a document, due to which the document got posted without getting any approvals.
    So what we would like to achieve is when the user manually starts the wrong workflow, the workflow should proceed and then when the check condition fails the user should get a pop up box immediately in SAP itself saying that the wrong workflow was started.
    Your inputs/comments are most welcome.
    Regards,
    Anwar.

    I am sorry but it is not possible to throw pop up every time, actually workflow consists of background task which got executed without user intervention and in those cases no pop up will come up.
    You can get pop up box for dialog task (such as user decision etc)you have to write down business object method code for that.
    there are many ways you can handle your situation:
    1. Write down the Check FM for FIPP-Posted Event where you can check it whether it is approved or not, If not then do not complete the workflow and start some dialog WI and send across to approvers
    (It is just outline, you have to formulate the solution around this outline).
    2. Also you can check for BAdi or user Exit and directly can write down message for that, It seems more easy.
    Cheers
    Jai

  • Creating attachment in User decision activity.

    I am running a background ABAP report and the output of report is to be attached to the WI for user. The user will receive the decision step with attachment which includes report output as excel.
    please suggest how can I achieve it. How can I attach report output to WF that will be going for user approval.

    Hi Verma,
                      To show Output in Excel Format use document form Template step type and immediately followed by User decision so that when the user executes he will first see the excel sheet then he can take a decision on it.
    If u want a display on the same user decision step type then make that method as default methos and bind it to the USER Decision container.
    Regards,
    Dheepak

  • How to notify a Notification Wait activity using PAPI

    I am trying to use Papi code to release an instance waiting in the notification wait activity of a process deployed in the enterprise server .... for this I am running the papi code from main method of a java class running in eclipse using the notify.send(........) method ........but when the code hits the notify.send(.......) method it is giving the following error :
    Exception in thread "main" java.lang.IllegalStateException: The component must be invoked on a server-side method.
         at fuego.components.ProcessInstance.getCurrent(ProcessInstance.java:590)
         at fuego.components.Notification.send(Notification.java:229)
         at PapiCode.main(PapiCode.java:61
    Can someone point out the error and how to resolve it ??

    Hi,
    I am a little confused with the package name of the classes and components you are invoking. If you are using the Client API PAPI, then the package name should be fuego.papi.*.
    I think you are using the internal components that should be used within a process implementation that assume running in the context of the Engine instead of a pure client application.
    Unless I am interpreting this incorrectly, you should use a client Java Application using PAPI to connect to a deployed process into an OBPM Engine.
    I would recommend you take a look at the very good introduction document that talks about PAPI, explains how to compile a program and also talks about how to write your first PAPI program client. It will also outline all the needed jar files need to include from a client application perspective. The link is: http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html.
    You may alternatively like to check the main Oracle BPM 10gR3 Documentation page through this link: http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/index.html
    HTH,
    eduardoc.

  • Activating Flash paper??

    Hi,
    I have Studio 8 and have tried repeatedly to get flash paper
    to work. Did I need to do a separate activation for this
    application? All the other Studio apps work fine.
    When I try to convert a small word doc to flash/swf or pdf
    the process looks like its running but when I look at Windows Task
    Manager it shows that Word is "not running". My normal default
    printer shows that it has been shifted to the "flash printer" and
    the document (supposedly) being converted shows up in the flash
    printer box but quickly shows an error.
    When I checked the HELP info. It mentions an activation
    process that I do not remember completing (though I did activate
    the Studio 8 Suite)
    It seems that FP is able to run (the window opens and shows
    that it is working...) but it does not "produce" - it just "hangs"
    the document.
    Any Ideas??
    Bob

    I have this too.
    But there is an interesting fact: If I create SWF from PDF, I
    get some bars instead of the text.
    But I can see the bars even with older player versions. -
    The interesting thing is, that previously createt SWFs (half
    year ago) are okay and work fine, even if the method was exactly
    the same. - The newly created swfs are bad, the older ones are
    good.

  • Regarding Attachment in User decision activity:SOFM

    Hi all,
    I have created a smart from in my ABAP code and converted the form to PDF and then  OBJECT key for creating attachment.
    My object key is FOL33000000000004EXT35000000000164.This object key is in abap code in field of table with format
    SWR_ATT_ID-DOC_ID.This abap code is in my method in my z-Business object used in workflow.
    Now i need to send this key value to SOFM in workflow this SOFM is in BO format in workflow.
    As a result type conflicts and SOFM is not getting instantiated in Workflow.
    I need to get thsi key value in my workflow SOFM.
    Please guide.
    Thanks.

    You can use FM
    SAP_WAPI_ATTACHMENT_ADD
    Check this link.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29
    Thanks
    Arghadip

  • Oracle 11G api to execute human activity

    In our oracle 10G process , we have implementation type as method (scripts). we are designing the process for 11G . i looking to move all the scripts to Spring bean and invoke them as service.
    Please provide the steps to be implemented for integrating 11G with Spring . Also will there be any issues with this approach ?
    Thanks

    Yes, it will.
    The difference being discussed here is the 7.x and 8.x APIs, which are fundamentally different. For example OCI7 used the call obndrn whereas OCI8 uses OCIBindByPos.
    As I've heard, all OCI 10.x calls will still be supported, and a few new ones will be added.

Maybe you are looking for

  • I upgraded to the new firefox but the old one is working what do I do ?

    I downloaded the new version of firefox- click the install and waited-the new folder and icon was on my desktop. Yay, then I upgraded an adobe flash in which I had to shut down everything. Once the computer came back the new firefox was gone and the

  • SOS!!! apply resin patch failed !

    I'm using resin3.0.10,and when I use the command below: [root@linusfs lib]# java -cp tangosol.jar:coherence.jar:coherence-web.jar com.tangosol.coherence.servlet.resin30.ApplyPatch /usr/local/resin3/lib I get: Backed up "resin.jar" to "resin.jar.002"

  • Using the iPod docking connectors

    I bought myself an iPod with color display a little while ago, and yet it only came with one connection to a USB port on either the power supply or the computer. I bought an earlier iPod a long time go and we ended up having to get a new connecting c

  • HT1689 Can you find my iPod touch

    Lost my iPod touch  how can I find it

  • Any concern over the inability to change the ODSCOMMON password?

    The oidpasswd utility changes the password for the ODS account and for the ODS_SERVER role. There doesn't seem to be a way to change the password for ODSCOMMON, which is the account that is actually used by OID when connecting to the database. All of