BPM 10.3 Studio how to use PAPI from stand alone java client

Would you help me ...., the search for the relevant information in this forum or documentation has not helped!
I'm running the BPM process via studio and trying to call it from the standalone java program.(According documentation
I need ... fuegopapi-client.jar and directory.xml )
Well, of course I could find somewhere directory.xml but it is not the right one .. What are the values(related to directory Service) which are needed to run this
java code agains the process started from the studio... ? So what I should do...? to setup and configure in BPM10.3 Studio to be able to run this code agains the
BPM process ...?
thanks a lot
Tomas
..otherwise the java code look like this ...
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.WORKING_FOLDER, "c:\tmp");
try {
ProcessService processService = ProcessService.create(configuration);
/////////////////// Establish a session ///////////////////
ProcessServiceSession session = processService.createSession("test", "test", "localhost");
/////////////////// 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();
}

Would you help me ...., the search for the relevant information in this forum or documentation has not helped!
I'm running the BPM process via studio and trying to call it from the standalone java program.(According documentation
I need ... fuegopapi-client.jar and directory.xml )
Well, of course I could find somewhere directory.xml but it is not the right one .. What are the values(related to directory Service) which are needed to run this
java code agains the process started from the studio... ? So what I should do...? to setup and configure in BPM10.3 Studio to be able to run this code agains the
BPM process ...?
thanks a lot
Tomas
..otherwise the java code look like this ...
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.WORKING_FOLDER, "c:\tmp");
try {
ProcessService processService = ProcessService.create(configuration);
/////////////////// Establish a session ///////////////////
ProcessServiceSession session = processService.createSession("test", "test", "localhost");
/////////////////// 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();
}

Similar Messages

  • How to use Preloader with stand-alone application in Eclipse? Thank you.

    My IDE is eclipse and my project is a stand-alone application(pure CS architecture with OSGI framework).
    How to use Preloader thus the preloader would be started before my main Application and hid later?
    I found some code in http://docs.oracle.com/javafx/2/deployment/preloaders.htm#BABGGDJG
    but I still don't know how to deploy the Preloader with my startup Application in OSGI framework.
    I give some code of my startup application below:
    public class MyPrjMain extends Application
        private static Stage primaryStage;
         public void start(final Stage stage)
            throws BusinessException
            primaryStage = stage;
            init(primaryStage);
            primaryStage.show();
    }Thanks very much, everybody.
    Edited by: Slash Wang on 2013-2-27 下午5:36

    Your question has already been answered on StackOverflow:
    http://stackoverflow.com/questions/15126210/how-to-use-javafx-preloader-with-stand-alone-application-in-eclipse/15148611

  • How a stand-alone java client to access EJB?

    I have problems to access a ejb.
    ====================================
    client code:
    Properties prop = new Properties();
    prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
              prop.setProperty (Context.PROVIDER_URL,"IIOP://127.0.0.1:1050");
              System.err.println("Attempting to create context...");
              Context init = new InitialContext( prop );
              Object obj = init.lookup("hi_bean");
              hihome home =(hihome)PortableRemoteObject.narrow(obj, hihome.class);
              hi c= home.create();
              System.out.println(c.greeting());
    ====================================================
    in Dos. I have the following command:
    java -Dorg.com.CORBA.ORBInitialHost=127.0.0.1 hiclient
    I already open the EJB application on J2EE server on port 80, but run hiclient
    in dos, it has ClassCastException coming from the code :
    hihome home =(hihome)PortableRemoteObject.narrow(obj, hihome.class);
    dose anyone have any ideas about this?
    Thanks

    Check the JNDI name specified in the xml file.
    Hope this will help
    Ashish Mangla

  • MX 925 - how to force the printer to use paper from lower tray

    Hi' there,
    Several people seems to have the problem, that the printer "wants" to print from the upper tray, - I assume it's because it want's photo paper. Is it possible to FORCE the printer to use paper from the lower tray, when e.g. you have no photo paper, receive the error message, and just want to see the print?
    :-) Sogge

    I found a methoid that while clumsy, works. I have defined another printer on my windows machine that points to the same
    printer as my original printer defination. I have named this printer "Legal" and has defined legal paper as it's default. When
    I print to this printer( DECTYPE, DECNAME) it now defaults to legal.

  • HOW TO USE CLIPS FROM A DVD???

    HOW TO USE CLIPS FROM A DVD???
    i know this may be a stupid and obvious question but i can't seem to figure it out.
    these are not copyrited dvds... mostly home movies and old home movies put onto dvd.
    thank you... much appreciated.

    Studio X has given one suggestion.
    MPEG Streamclip is another:-
    http://www.squared5.com/
    It is free but your computer may not have the QT MPEG 2 Playback Component which costs $20 from Apple as a download.
    If you have access to an Analogue-DV converter you can use that. Also a DV camcorder which has Analogue IN.
    If you have Final Cut Pro installed, you will have the QT component.
    Message was edited by: Ian R. Brown

  • How to use the TCP/IP in Java?Thanks!

    How to use the TCP/IP in Java?Thanks!

    Look at the java.net package, more specifically to classes ServerSocket (The server TPC conection) and Socket (the client TCP conection)
    Abraham

  • How to Use Windows XP theme in Java

    How to Use Windows XP theme in Java.
    I am an developing application which L&F should be like Windows XP.
    Because I am going use this application in different OS.
    Which LookAndFeel I have to use it

    try this in main:
    try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
    catch (Exception exc) {System.err.println("Eroare la incarcarea look & feel" + exc);}

  • How to use HTML Tags in webdynpro java

    Hi,
         Can any body tell me how to use HTML Tags in webdynpro java.
    If u provide me with sample code it will become more usefull.
    Thanks & Regards,
    SN

    HI,
    Please find the steps:
    Create a html file and store in your webdynpro project
    Add the html contents in your file
    & Create a IFRAME UI element and refer you html file
    Now you able to see the html in webdynpro
    Thanks & Regards,
    Ram

  • Does anyone know how to use vlookup from a pop up menu to retrieve another pop up menu?

    Does anyone know how to use vlookup from a pop up menu to retrieve another pop up menu?

    BM,
    Pop-Up menu format is not dynamic. It is created in the Cells Inspector and can't be modified contingent upon the state of other cells.
    You could program a table to list the options available for the previous selection, but it wouldn't be in the form of a Pop-Up.
    Jerry

  • How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application?

    How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application? The DAQmx assitant won't allow me to create a task with hardware that isn't in my system.

    You will need to have at least the DAQ device in your computer to add the chassis. When you add the chassis, don't auto detect the modules. You will have to add the terminal blocks and tell MAX which SCXI module will be connected to the DAQ device. Just make sure you don't test the chassis, when its not there.
    I hope this helps.
    Joshua

  • How to call stand Alone java program from jsp

    Hello all...
    I want to use the stand alone java program in jsp page. I compiled the java program and place the class file in classes folder under web-inf. But when i try to instantiate the java class inside jsp it is not recognizing the class. Where might be the problem
    Plz help....
    Shamim

    hi , this is dheeraj.. i need to know that how to execute java code and class in jsp.. if anyone know about if bt tell me.. i just know that we can use java code by java beans in jsp.. if you know any knowledge regarding this topic please send me.....

  • How to call a stand alone java application from ADF BC JSP, struts or JSF

    Hi,
    My requirement is that there are utilities or stand alone java applications that I want to call from our existing applications.
    We have two seperate applications one ADF BC Struts application we developed using JDeveloper 10.1.2 and another ADF BC JSF application we developed using JDeveloper 10.1.3.2.
    We want to integrate applications like JTwain and others to help us in scanning. The application will be placed on the same server as our application. How can I do this without loosing all the current session information.
    Please help.
    Thanks and regards,

    There are two possible solutions.
    First, if the tool or application you want to integrate, has an Java-API you can use this api and integrate the tool in your application (using one or more jars you add to the classpath).
    Second, if the tool has no java api, you can call the tool via runtime.exec(...) as a shell process. This way you open a command shell in you application and execute the tool like you do on a normal command shell.
    For tide integration and control I recommend the first approach. The second one is only for those tools which don't offer a java api.
    Timo

  • Time capsule - WiFi - can it be used as a stand alone station?

    I have set up my Time Capsule as a WiFi station and it is showing as connected to my iMac, but the amber light it flashing and I cannot get it to go green.  Do I HAVE to connect it to my external router or can it be used as a stand alone WiFI station?  If so, how do I get the light to stop flashing?  The TC was connected by ethernet cable (green light) but that seemed to slow down my access to the Internet so I disconnected that.  Now I can see the back ups but cannot restore from any of them.
    Regards
    Oldmoondog

    The Time Capsule must connect to a modem or other router using a wired Ethernet connection.
    The only exception to this would be a setup where you have one Apple router set up as your "main" router connected to the modem.  In that case, it would be possible for the Time Capsule to connect to the main Apple router using a wireless connection.
    Assuming that the Time Capsule is operating correctly, and that it has been set up correctly, there should be no speed loss when a Time Capsule connects to a modem or other router using an Ethernet connection.
    For example, I have a 50 Mbps Internet connection plan from my Internet Service Provider (ISP). If I cannot the Mac directly to the modem, my speed is usually about 52-55 Mbps.
    If I connect the modem to the Time Capsule using Ethenret, then connect the Mac to the Time Capsule using Ethernet, the speed is almost exactly the same, about 51-54 Mbps.

  • I have a touchsmart tm2 that shot down after I started using it from stand by and now the notebook w

    I have a touchsmart tm2 that shot down after I started using it from stand by and now the notebook wont start

    Hi
    You have a couple of options as I see it please try these steps might help you to fix your issue.
    Resolving Problems with Sleep and Hibernate Mode
    Let us know how it goes!
    *Although I am an HP employee, I am speaking for myself and not for HP.
    ****Click the White Kudos star to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • Error in obtaining token using TokenManager thru a stand-alone java appln

    I am trying to use the IS Java APIs to connect to the directory server and insert a user in the directory from a stand alone java appln.
    I get an SSOException while trying to obtain a Token object from the TokenManager (TokenManager.createSSOToken() method ).
    Following is the dump of the error:
    Exception Message: LDAP authentication failed.
    com.iplanet.sso.SSOException: LDAP authentication failed.
    at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProv
    iderImpl.java:94)
    at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:2
    57)
    at SampleUserOperations.main(SampleUserOperations.java:51)
    However, the principal and password supplied in the code are correct. Following is the code that generates this error.
    public static void main(String[] args)
              int count = 0;
              SSOTokenManager Manager = null;
              SSOToken Token = null;
              AMStoreConnection AMConn = null;
              try
                   //create a token
                   Manager = SSOTokenManager.getInstance();
                   System.out.println("Got a token mgr");               
                   Token = Manager.createSSOToken(new AuthPrincipal("uid=admin,ou=administrators,ou=topologymanagement,o=netscaperoot"), "abcdefg123");          
                                  System.out.println("Got a token");
                   AMConn = new AMStoreConnection(Token);
                   System.out.println("Got a conn");
              catch (com.iplanet.sso.SSOException e)
                   count++;
                   System.out.println("COUNT = " + count + " : " + e);
    The credentials provided in the code are correct. What could be the cause of the error?
    TIA,
    siddharth.

    Tthis class is undocumented and this is the reason why you will not find any documentation. This is not the correct way for a client to authenticate to the is in v6. You need to use the JAAS API. I do not believe that the AuthPrincipal sample works in 6.
    The package for the class is com/sun/identity/authentication/internal/
    rdgs
    Steve

Maybe you are looking for

  • HELP !!! hands free paring bb bluetooth with car stereo 2011 kia sorento

    I was able to pair my bb 8530 curve with my kia sorento 2011 car stereo via Bluetooth,  but  once  I leave the car, and come back the connections  always  fail. I do have my Bluetooth "discoverable" on my option settings I have only check mark "hands

  • Does application needs to be replicated

    Our partner requirement is to stream 50 min long video clippings centrally located. Users located elsewhere are connected through VSAT. Which kind of replication is suggested and do we need to replicate the application (PL/SQL server pages) also. Any

  • CC paydown calculator

    Is there a tool that will let you input CC APRs and balances and see how a payment will impact the monthly minimum payment?  Thanks! 

  • Best Practices for BI, ADF and Oracle Forms installations on Weblogic

    Hi, I'm researching options on upgrading to Oracle 11g Middleware. My company currently has Oracle Forms 10g running on Oracle Application Server. We are interested in using Oracle Forms 11g, ADF and Jdeveloper, and Business Intelligence with Oracle'

  • Adobe ID login failure: Unknown Error

    I don't know where to get help on this so I'll try here. I have problem with my Samsung Galaxy Note 10.1 (Wifi) and with the ebook readers in particular. I downloaded couple of ebook apps from Play store (former Android market) and tried to download