Activity Id (numeric) using Papi

I'm trying to obtain a numeric id for an espepecific activity but I only found an Activity Id of type String inside Fuego Library.
I read in http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi_javadocs/fuego/papi/Activity.html#getId() that there's a method called getIn, which returns the activity identification numbrers and it's supposed located inside Fuego.Papi.Activity.
I found this library inside fuegopapi-client.jar in OraBPMStudioHome\client\papi\lib
Does anybody know how to built a Java PAPI Program which use fuegopapi-client.jar to obtain Activity' Id.
Thank you.

InstanceInfo istinfo=psession.processGetInstance("/instance ID");
System.out.println("activityID="+istinfo.getActivityId());

Similar Messages

  • 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

  • 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.

  • Using Papi for Filter Activity

    Help,
    I need help for get name ativities.
    I think in use PAPI for it, but I don't sucess.
    I need to see where this activity to stop, passing a correlation.
    someone has any idea ?
    Thanks
    Marcelo

    learned how to do:
    code :
    BusinessProcess bp;
    ProcessService p;
    Fuego.Instance[] res;
    Fuego.Papi.InstanceFilter f;
    String processName;
    bp = BusinessProcess();
    f = InstanceFilter();
    processName = "myprocessid";
    bp.connectTo(url : Fuego.Server.directoryURL, user : "xx", password : "xx", process : processName);
    f.create(processService : bp.processService);
    f.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ALL);
    f.addAttributeTo(variable : VarDefinition.ACTIVITY_ID, comparator : Comparison.IS_NOT,
    value : "xxxx");
    f.addAttributeTo(variable : VarDefinition.ACTIVITY_ID, comparator : Comparison.NOT_CONTAINS,
    value : "xxxx");
    res = bp.getInstancesByFilter(filter : f);
    foreach (inst in res) {
         activity = inst.activityName;
    bp.disconnectFrom();
    }

  • Global Activity to use while using PAPI

    Hi,
    I want to create an instance by adding PAPI code to a web-service or by exposing my process as a web-service. Which Global Activity do we use while creating an instance using PAPI ? Is it Global Automatic or Global Creation?

    Hi,
    You can create a new work item instance in a process using (1) PAPI (the Java API) or (2) PAPI-WS (the web service API) or (3) the process specific web service running on the Engine's port 9000. When you do this, the work item instance goes directly into the Begin activity of the process. Once there the work item instance is created and is automatically routed to the first activity in the process.
    There are many reasons for using Global Interactive and Global Automatic activities in a process but you do not need to use a Global Interactive or Global Automatic activity when creating instances using any of these 3 APIs.
    Once an instance is created using any of these 3 APIs, the work item instance immediately and automatically flows to the next activity in the process downstream of the Begin activity.
    Dan

  • Error while connecting using Papi

    Hi All
    I facing some issue while connecting to ALBPM Studio 6.x using PAPI.
    Exception is as follows
    java.lang.NoClassDefFoundError: fuego/papi/exception/NoPermissionException
         at pageflows.bpmRedirect.TestController.begin(TestController.java:67)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:878)
         at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:808)
         at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:477)
         at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:305)
         at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:335)
         at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:51)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
    I am calling an external servlet(controller) on click of an interactive activity.
    e.g
    Let my process Test is waiting at an interactive activity 'A' which on executing calls an external resource say 'TestController'. For this I had created a 'Server Configuration' in external resources and selected this configuration in Interactive Activity 'A'.
    On the 'TestController' when I able to fetch instanceId, activity name, but when I try to create Papi session I am getting exception mentioned above
    Code used for creating session is as follows
    Properties prop = new Properties();
    prop.setProperty(ProcessService.DIRECTORY_ID,"default");
    prop.setProperty(ProcessService.PROJECT_PATH,"D:/ALBPM6_Workspace/Testing");
    ProcessService processService;
    ProcessServiceSession bpmSession = null;
    try {
         processService = ProcessService.create(prop); //Exception at this line
         try {
              bpmSession = processService.createSession("test","test","localhost");
              } catch (OperationException e) {
              e.printStackTrace();
    } catch (CommunicationException e) {
         e.printStackTrace();
    Also when I run the above mentioned code by just creating a simple java program using main() it runs successfully.
    Please help me in this regard
    Thanks

    This is resolved it was the jar issue.
    Thanks

  • How to terminate Correlation using Papi Call in Java

    Hi ,
    I have process processP1 in which there is a automatic activity A1, within this activity I am creating a correlation with the combination of customer_id and loan_id.
    Correlation.initiate(name : CORRELATION_NAME, values : { customer_id, loan_id });
    After that, there is a subprocess processP2, after the instance is prcessed completely in processP2, I have another automatic activity A2 in processP1 , I am terminating the correlation .
    Correlation.terminate(name :CORRELATION_NAME)
    One issue which I am facing is there is a instance for which a correlation was created, it failed in processP2 and was aborted. This particular instance never went to A2 the correlation was not terminated.
    Whenever the same combination of customer_id and loan_id is getting created, it is showing as duplicate entry.
    Is there a way to clear / terminate that particular correlation? Can It be done using Papi ?
    Any suggestions / advice would help.
    Thanks,

    Sreekant wrote:
    Hi ,
    I have process processP1 in which there is a automatic activity A1, within this activity I am creating a correlation with the combination of customer_id and loan_id.
    Correlation.initiate(name : CORRELATION_NAME, values : { customer_id, loan_id });
    After that, there is a subprocess processP2, after the instance is prcessed completely in processP2, I have another automatic activity A2 in processP1 , I am terminating the correlation .
    Correlation.terminate(name :CORRELATION_NAME)
    One issue which I am facing is there is a instance for which a correlation was created, it failed in processP2 and was aborted. This particular instance never went to A2 the correlation was not terminated.
    Whenever the same combination of customer_id and loan_id is getting created, it is showing as duplicate entry.
    Is there a way to clear / terminate that particular correlation? Can It be done using Papi ?1. Get the instances by using the below method. the below method is avliable in the ProcessServiceSession calss.
    InstanceInfo processGetInstanceByCorrelation(String processId,
    String correlationName,
    Object[] correlationValues)
    throws OperationException
    2. Notiy these instances using the method. the below method is avliable in the ProcessServiceSession calss
    processSendNotification(String targetInstanceOrProcessId,
    String activityName,
    String targetArgumentsSetName,
    Arguments notification)
    throws OperationException
    >
    Any suggestions / advice would help.
    Thanks,Hope this helps
    Narasimha

  • Process Diagram of an instance using PAPI

    Hi,
    I`m trying to get que Process Diagram of an instance with PAPI using processGetDiagram but it doesn`t work, any ideas or examples?
    Thanks a lot

    I dont think there is any way to update the value of any instance variable directly by PAPI.
    What you can do is have a Global Activity with instance access from where you can access all the instance/ external variables.
    You can call this activity using PAPI and can send arguments telling it what to do.
    Let me know if this helps.

  • Update Instance Variables using PAPI

    I have a need to update Instance Variables for a bunch of instances. Can this be done using PAPI? I am writing a global function that can search the instances and update. How can I update these variables...thank you

    Hi,
    I think that the best way of changing instance variables using papi is by adding a global activity (with instance access) and pass the new variable values as arguments. Pay attention that you have to define those arguments in the activity.
    Then, you can assign those values to the instance using PBL.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi_javadocs/fuego/papi/ProcessServiceSession.html#activityExecute(fuego.papi.Activity,%20fuego.papi.InstanceInfo,%20fuego.papi.Arguments)
    I do suggest avoiding sending interruptions to instances, because once the notification is sent (and the papi method returns successfully), the notifications will be processed in another transaction.
    Hope this helps,
    Ariel A.

  • I activated my ipad, used iCloud & Find my iphone with Apple ID named: A@.... But now I've changed address of Apple ID from A@... to the new one: B@... Which Apple ID will be asked to re-activate 7.0.4 ipad - A or B?

    Hello everybody!
    I'm using ipad mini and the iOS is 7.0.4. I used an Apple ID (called: A), and I activated my ipad, used iCloud & Find my iphone with this A account. But now I've changed address of Apple ID from A@.... to the new one: B@.... (just changed email address of Apple ID, not create a new ID), and then I signed out iCloud, old Apple ID, etc... on my ipad and signed in with new id B@.... Everythings seem OK, I can sign in/out iCould, turn on/turn off Find my iphone as well with the new one (B@...)
    But I still have a question (and still confusing with it): What will happend when I restored my ipad? I mean my iOS is 7, so which Apple ID will be asked to re-activate my ipad after I restore it, old id A@.... (this one cannot be used now) or the new one B@...., please?
    Thank you very much for your helpful informations!

    If you've succesfully changed the ID for iCloud and Find my phone, it will be your new ID you use if you need to restore it.

  • I have activated 2 iPhones using my iTunes account, but I now would like to take one iPhone off this account, and start its own iTunes "pairing" in order to back up, without cross syncing between purchases, how can I do this?

    I have activated 2 iPhones using ONE iTunes account, but I would now like to remove one iPhone from the account and add it to a new iTunes account. This is so that I can back it up without cross syncing between purchases/apps on both iPhones.
    Whats the best method for this?
    I'm running Windows 7
    Many thanks

    Whenever a menu choice is grayed out, that is because you have Restrictions turned on in Settings.  Be sure to turn it off.
    You are confusing an itunes store account with an icloud account.  You two can continue using the same ID for itunes (thus sharing purchased music, apps, etc.), but you really should have separate accounts (different IDs) for icloud, since an account is intended for one user to keep his/her devices in sync.
    To create a new icloud account, go to
    http://www.apple.com/icloud/setup/
    Then go to Settings>icloud and scroll to the bottom of the screen and tap Delete Account.  (have restrictions turned off)  That will disconnect the device from the account but will not delete data in icloud or other devices.  Then sign in using the new ID.

  • How do I turn off background ni file activity when not using Labview? files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, nicitdl5.exe

    How do I turn off background ni file activity when not using Labview? I use labview rarely, and I also use my computer for demanding multimedia applications, including multitrack digital audio recording. I need to reduce as much background activity as possible, and taking a look with task manager I see files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, and nicitdl5.exe running even when I haven't used Labview (8 I believe). These files run even after I right click the NI icon on the lower right and turn off the application. I would like the computer to boot up without these files, and for the necessary files to be activated only when I start the program.
    Can this be done or do I have to remove labview from the system to improve performance?
    Thanks

    Hello, those processes are part of running NI services that start when Windows boots.  These processes serve varied purposes and stopping them can have undefined and unknown consiquences for your NI products.  These products run at "normal" priority meaning that they should be preempted by any process running at a higher priority which I would expect your other application to be doing given their time sensitivity.  That being said, in Windows XP (I can't speak for other OSes), you can lower their priorities even greater through task manager (right click the process»set priority) to further remove them from contention for resources.  If you want to prevent them from running you can set the service startup type to "manual" in Control Panel»Administrative Tools»Services.  Right click the process go to Properties and Under the General tab choose Startup Type»Manual.  This will start up the processes only when something directly starts it up.  LabVIEW will start these processes up as it attempts to use them.  When you shut down LabVIEW you will need to manually shut down these processes through task manager.  Again, doing this can cause problems with your NI products on your system and it is not advised.
    Travis M
    LabVIEW R&D
    National Instruments

  • Creating a new work item instance in a process using PAPI

    I'm seeing that there are a lot of questions on this forum about using Oracle BPM 10g's Java API called PAPI.
    I just uploaded a step by step document on how you could do this using JDeveloper 11. Here's the link to this document: 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.
    This is not formal Oracle documentation, but I know from teaching our Oracle BPM Bootcamp class 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.
    Hope you find this useful,
    Dan

    Hi
    i have gone through your example. It gives good information how to connect to BPM engine through java papi client. I have followed exactly the same steps given in the PDF document. But it throws the exception on both java client side and BPM Suite.
    Steps followed :
    1. Import sampleproject.exp into Oracle BPM studio and start the BPM engine.
    2. Imported the fuegopapi-client.jar and Write the JAVA PIPA client to connect Oracle BPM Engine.
    complete example code:_
    import fuego.papi.CommunicationException;
    import fuego.papi.InstanceInfo;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.OperationException;
    import java.util.Properties;
    public class ProcessAPIClient {
         public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "directory.xml");
    configuration.setProperty(ProcessService.PROJECT_PATH, "C:\\Oracle\\OracleBPMWorkspace\\SampleProject" );
    configuration.setProperty(ProcessService.WORKING_FOLDER, "/tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("test", "test", null);
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId)) {
    System.out.println(" -> " + instance.getId());
    /////////////////// Close the session ///////////////////
    session.close();
    /////////////////// Release API Resources ///////////////////
    processService.close();
    } catch (CommunicationException e) {
    System.out.println("Could not connect to Directory Service");
    e.printStackTrace();
    } catch (OperationException e) {
    System.out.println("Could not perform the requested operation");
    e.printStackTrace();
    It throws the following exception and output on java client._
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Could not enhance type with bytecode info: java.lang.NoSuchMethodError: org.apache.bcel.classfile.Method.getArgumentTypes()[Lorg/apache/bcel/generic/Type;
    Creating ProcessService with id 'SampleProject'.
    Local folder /tmp\system\Schema33871921573571055\catalogs found.
    Loading catalogs from local folder: /tmp\system\Schema33871921573571055\catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [SampleProject] ...CatalogManagerCache 23240993:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [SampleProject] REGISTERED!CatalogManagerCache 23240993:
    Managers:
    {SampleProject=fuego.util.LocalCatalogManager@40b187}
    Counters:
    ProcessService 'SampleProject' created successfully.
    Process: /SampleProcess#Default-1.0
    Unreachable Engine Tolerance (seconds):
    by default: 0
    to be used: 0
    This papi client will not cache exceptions which imply that an engine could not be reached.
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/MessageEOFException
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at $Proxy24.<clinit>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at fuego.papi.impl.AbstractProcessControlHandler.newProxyInstance(AbstractProcessControlHandler.java:52)
         at fuego.papi.impl.rmi.RMIProcessControlHandler.createProxy(RMIProcessControlHandler.java:47)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createProcessControl(RMIEngineAccessImpl.java:111)
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1082)
         at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2698)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1675)
         at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2703)
         at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2365)
         at com.eds.comet.bpm.oracle.papi.client.ProcessAPIClient.main(ProcessAPIClient.java:30)
    Caused by: java.lang.ClassNotFoundException: javax.jms.MessageEOFException
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 16 more
    It throws the following exception and output on Oracle BPM Suite._
    Client 'Id=test, Name=test, In=1, Session=564242434' was not found in lists ', PARTICIPANTS' while disconnecting it.
    Please help me to resolve this. I noticed it is able to connect BPM engine and retrieve process list. But while getting instances, it throws the exceptions on both Java Client and BPM engine side.
    Thanks and Regards
    Mahesh

  • I recently inherited a restored iPhone 5 from my uncle and its needs a sim to be activated, could i use my friends sim just to activate my iPhone and then give the sim back once its activated without affecting his contract and later on get a sim ?

    I recently inherited a restored iPhone 5 from my uncle and its needs a sim to be activated, could i use my friends sim just to activate my iPhone and then give the sim back once its activated without affecting his contract and later on get a sim for myself and a contract for me and it all be normal??? Thanks

    The phone MUST have a SIM present in order for activation to complete. The process will not finish otherwise.
    For the OP:
    If the iPhone 5 is locked to a carrier, you must use a SIM from that same carrier. Otherwise I think you would be OK borrowing the SIM to activate the phone.
    ~Lyssa

  • Using PAPI in a Web Service

    I am using Java PAPI code in my Web Service.. I have imported the fuegopapi-client jar in my project. I compile the program, I create a WSDL and deploy it to a server .But I get an exception when I run it. I get the following exception:-
    java.lang.reflect.InvocationTargetException.
    Does anybody know why is this exception..
    The same program works well with the Java PAPI code inside of a simple Java app, but gives this error in a web app.

    Yes, I could use PAPI -WS.. But directly using PAPI-WS exposes all methods inside PAPI-WS.. Or else I have to use the following code inside my web service to call only one method i.e. processCreateInstance and I think I wud get the same exception because of the JAR :-
    import java.net.MalformedURLException;
    import java.rmi.RemoteException;
    import javax.xml.rpc.ServiceException;
    import com.bea.albpm.PapiWebService.OperationException;
    public class CreateInstances {
    public static void main(String[] args) throws MalformedURLException, ServiceException, OperationException, RemoteException {
    java.net.URL url = null;
    org.apache.axis.EngineConfiguration config = null;
    com.bea.albpm.PapiWebService.PapiWebServicePortBindingStub binding = null;
    com.bea.albpm.PapiWebService.InstanceInfoBean value = null;
    //String processId = "/Proceso1";
    //String processId = "/ActividadesExternas";
    String processId = "/PAPIWS";
    String argumentsSetName = "BeginIn";
    //Binding
    //url = new java.net.URL("http", "localhost", 8686, "/papiws/PapiWebServiceEndpoint");
    url = new java.net.URL("http", "localhost", 8585, "/papiws/PapiWebServiceEndpoint");
    config = new org.apache.axis.configuration.FileProvider("client_deploy.wsdd");
    binding = (com.bea.albpm.PapiWebService.PapiWebServicePortBindingStub) new com.bea.albpm.PapiWebService.PapiWebService_ServiceLocator(config).getPapiWebServicePort(url);
    binding.setTimeout(60000);
    //Arguments
    com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry argumentsBeanArgumentsEntry[] = new com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry[1];
    argumentsBeanArgumentsEntry[0] = new com.bea.albpm.PapiWebService.ArgumentsBeanArgumentsEntry();
    argumentsBeanArgumentsEntry[0].setKey("entradaArg");
    argumentsBeanArgumentsEntry[0].setValue("Instancia creada de forma externa mediante PAPI-WS 2.0");
    com.bea.albpm.PapiWebService.ArgumentsBean argumentsBean = new com.bea.albpm.PapiWebService.ArgumentsBean(argumentsBeanArgumentsEntry);
    com.bea.albpm.PapiWebService.holders.ArgumentsBeanHolder argumentsBeanHolder = new com.bea.albpm.PapiWebService.holders.ArgumentsBeanHolder(argumentsBean);
    //Create instance
    value = binding.processCreateInstance(processId, argumentsSetName, argumentsBeanHolder);
    System.out.println("Created instance -> InstanceInfo.id = " + value.getId());
    I found this code in the forum, but I also do not know where is this JAR?
    com.bea.albpm.PapiWebService.OperationException
    Edited by: user8752903 on Sep 2, 2009 7:11 AM

Maybe you are looking for