Can we invoke a asynchronous BPEL process from synchronous and vice versa

Hi,
Can we invoke a BPEL asynchronous process from synchronous and vice versa. If so how to perform that.
thanks,
Vijay

Yes you can
sync -- calling --> Asyncc
Async -- calling --> syncc
Perfomance is no issue, depending on your requirements. Not the Syncprocesses are short-running processes, these will time-out after 30 seconds, if no answer is coming from the async process.
Marc
http://orasoa.blogspot.com

Similar Messages

  • Invoking asynchronous BPEL process from java ui

    Hi,
    I am invoking an asynchronous BPEL process from java ui.
    I read somewhere that i can obtain an instance handler uing the lookupInstance() method of class Locator using the conversation id provided by the class NormalizedMessage.
    My code looks like this
    // Connect to Oracle BPEL server
    Locator locator = new Locator("default","bpel");
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // Construct a normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage();
    nm.addPart("payload", xml);
    // Initiate the BPEL process
    deliveryService.post("MyLoanFlow", "initiate", nm);
    //Obtain the instance handler
    IInstanceHandle handle = locator.lookupInstance(NormalizedMessage.CONVERSATION_ID);
    But this is giving the error - can not find any instance with conversation id 'conversationId'.
    Also, if i try to obtain a list of instance handles associated with a process , it does not contain the most recently created instance
    IBPELProcessHandle ph = locator.lookupProcess("MyLoanFlow");
    IInstanceHandle[] iHandler = ph.listInstances();
    out.println(iHandler.length + "<br>");
    if i invoke the process for the first time the output is 0.
    can you please help me. it is urgent.

    Hi Sudipto,
    Regarding your second question,
    deliveryService.post("MyLoanFlow", "initiate", nm);
    IBPELProcessHandle ph = locator.lookupProcess("MyLoanFlow");
    IInstanceHandle[] iHandler = ph.listInstances();
    out.println(iHandler.length + "<br>");
    ---- returns 0 ---
    This is because MyLoanFlow is an asynchronous process in your case. So the control is returned to your java block immediately after the request for a new instance is posted. And your second line of code(querying for the list of instances) is executed even before the instance is created on the server side. You can verify this in two ways:
    1. try creating an instance of a synchronous process using IDeliveryService.request - this will always result in the increment since the current thread is blocked till the new instance is created.
    2. for your case, you can try
    Thread.currentThread().sleep(500); - just allow the server some time for completing the instance before you query it for the list of instances..
    and wrt question 1,
    //Obtain the instance handler
    IInstanceHandle handle = locator.lookupInstance(NormalizedMessage.CONVERSATION_ID);
    But this is giving the error - can not find any instance with conversation id 'conversationId'.
    For setting the conversationId, you could do so by including the following inside your .bpel file
    <bpelx:exec name="test-setConversationId" language="java" version="1.4">
    <![CDATA[
    setConversationId("conversationId");
    ]]>
    </bpelx:exec>
    The code:
    IInstanceHandle ins = locator.lookupInstanceByConversationId(NormalizedMessage.CONVERSATION_ID);
    should fetch you the required instance in this case.
    HTH,
    Anuj

  • OSB -- Invoking an asynchronous BPEL process in Oracle Service Bus

    Hi All,
    Can any one let me know how to invoke the Asynchronous BPEL process in OSB.
    Thanks in Advance,
    Feroz Tasha.

    Hey,
    What i was trying to say was that when you export your OSB project to file system, you can edit the business service in a file editor(e.g notepad, editplus etc).
    In that, instead of suppose 127.0.0.1 u can put a token say @@HOST_NAME@@ and for a port say 7001 as @@PORT_NUMBER@@.
    Then an ant script can replace the values of above 2 tokens with apt values, create a jar out of it and deploy it on the server.
    There are numerous ANT scripts and examples available online.
    Hope this helps.

  • How to call a Asynchronous bpel process from a PLSQL procedure?

    How to call a Asynchronous bpel process from a PLSQL procedure?

    Hi,
    You could do something smart and technical very spiffy with soap-stacks in the database and/or dbms_ws/dbms_http. But I allways find AQ with AQ-adapter the simplest. Let Pl/sql enqueue a message on an aq-queue and subscribe an aq-adapter process on it. That can call your async-bpel process. If you want to get answer back in pl/sql, let the aq-adapter process enqueue a response message on another queue or on the same queue with another consumer name. Give it a correlation-id that you provided in the payload of your request message. Your pl/sql process can then do a dequeue on that correlation-id. It will sit and wait until a message with that correlation id is enqueued on the queue.
    Regards,
    Martien

  • Invoking Forms from JSP and Vice versa

    Hi,
    I am in to a requirement like invoking a screen developed using Oracle Forms 6i from JSP and vice versa.
    1. Could you please anybody help to get the documents to be refered to get more idea on this?
    2. Is it possible only by Oracle ADF?
    Please help me on this.
    Thanks & Regards
    M Thiyagarajan

    Hi All,
    Thanks a lot for the clarifications.
    Actually, integration should happen between forms and JSP. Parameters need to be passed to and forth. I will go through the specified link.
    Also could you please clarify me where exactly, ADF comes into picture? or what are all the advantages when we go for ADF?
    Thanks & Regards
    M Thiyagarajan

  • Hi,Can a WAR file be deployed as EAR file and vice versa.

    Hi,Can a WAR file be deployed as EAR file and vice versa.If so what are the changes we need to do.

    hi tel me in detail why u want 2 do that
    why u want to cnvert a web arch into enterp arch

  • Error while invoking an asynchronous BPEL process

    Hi ,
    I am trying to call an asynchronous BPEL process through java client.
    Following is the code which I got from SOA bpel samples present in the following location
    <SOA_HOME>\bpel\samples\tutorials\102.InvokingProcesses\rmi\com\otn\samples\async
    The code fails while registering the callback
    String convId = GUIDGenerator.generateGUID();
    nm.setProperty(NormalizedMessage.CONVERSATION_ID, convId);
    deliveryService.post("HelloWorld", "initiate", nm);
    // register the callback
    watchdog.registerAsyncCallback(convId, testAsyncHandler,
    locator.getDomainAuth());
    The error says java.lang.NoClassDefFoundError: org/collaxa/thirdparty/json/JSONString
    I tried to search for this in google. But it seems noone has got this error or maybe noone has used this at all.
    Maybe I am missing some jar file, but I am unable locate that.
    Can someone help me in this please.

    Hi,
    These sort of class not found errors come when you are running from a client which does not have all the jar files requried to invoke BPEL using the client API.
    org/collaxa/thirdparty/json/JSONString is orabpel-thirdparty.jar.
    The complete list of Jar files you would need in the classpath are:
    ejb.jar ($ORACLE_HOME/home/lib)
    oc4j-internal.jar ($ORACLE_HOME/home/lib)
    optic.jar ($ORACLE_HOME/opmn/lib)
    orabpel-common.jar ($ORACLE_HOME/bpel/lib)
    orabpel-thirdparty.jar ($ORACLE_HOME/bpel/lib)
    orabpel.jar ($ORACLE_HOME/bpel/lib)
    Hope this helps,
    Regards,
    Shanmu.
    http://www.prshanmu.com/articles/

  • How can user view Central Person ID by Personnel Number and Vice Versa?

    Dear Experts,
    We are not using Concurrent Employment, but since Talent Management requires to use the Central Person object, we have created the relative objects for the employees. What I want to know is, how can user view the Central Person ID by a personnel number and vice versa easily?
    Thanks,
    Steven

    Not User friedly
    This logic is in Function Group HRTMC_PPOM, screens 0700 and 0710.
    You can copy it to Z and change search.
    In transaction OOFRAMEWORKCUST for scenario TMC_PPOM change Report in "Tab Page in Scenario for each Object Type" from HRTMC_PPOM to new Z*.

  • Can't access Subscriber services from Publisher and Vice Versa

    Hi ,
    I am using CUCM 8.5.1(10000-26)
    when connected to Publisher and go to Serviceability then service activation , Feature services or Network services of the subscriber , an error appears telling can't connect to remote node .
    same from Subscriber side .
    Database Replication is in "good" state
    onconfig.ccm reports an error "The onconfig.ccm file on x.x.x.x does not match the publisher."
    Any Advise ?

    Dear
    please cli command to check the relication , you  must check that each node should have a replication status of two (2).
    use this command   (Utils dpreplication runtimestate) and please check the output.I do not see this eror before , but if you did not get a solution , ithink t open a TAC with Cisco. I think the onconfig.ccm file on x.x.x.x does not match the publisher (it is a problemm in linux) , i think the  /opt/informix/etc directory.
    Thank you
    please rate if this help

  • Call SAPGUI transaction from BSP and vice versa

    Hi all
    There was some discussion about this topics before. Maybe someone can just point me to the thread answering this issue:
    1. I need to call a SAPGUI transaction from a BSP application: I want to use SAPGUI, not ITS/webgui, I need single sign on, the SAPGUI transaction could possible run in another SAP system then the BSP.
    As far as I understand I need to create a *.sap file with the correct parameters for sapshortcut. But how does single sign on work? Can I create a logon ticket in my BSP and forward it to sapshortcut?
    2. I need to call a BSP application from a SAPGUI transaction or report, with single sign on but in a MS IE window, not inside a SAPGUI HTML control
    Can I create a logon ticket in my coding an append it to the start url for the BSP?
    any hints?
    thanks
    Michael

    hi Michael,
    For your second issue,to call a BSP application from a SAP GUI in MS IE explorer,
    you can use the Function Module CALL_BROWSER in your report,like
    data url(200) type c.
    url = 'http://<server>.<domain><port>:'.
    concatenate url '/sap/bc/bsp/sap/' into url.
    concatenate url 'znw_poc2_1_prtl/dts.htm' into url.
    concatenate url '?sap-user=<userid>' into url.
    concatenate url '&sap-password=<passowrd>' into url.
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        URL                          = url
    *    WINDOW_NAME                  = ' '
    *    NEW_WINDOW                   = ' '
    *    BROWSER_TYPE                 =
    *    CONTEXTSTRING                =
    *  EXCEPTIONS
    *    FRONTEND_NOT_SUPPORTED       = 1
    *    FRONTEND_ERROR               = 2
    *    PROG_NOT_FOUND               = 3
    *    NO_BATCH                     = 4
    *    UNSPECIFIED_ERROR            = 5
    *    OTHERS                       = 6
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    For this to work you have to enable SSO on your server.
    you can check if it is enabled or not by runnning the BSP application "SYSTEM" ,page "SSO2TEST.htm" .
    Follow the instructions on the page for testing.
    This may not be a great way as your userid password are passed via URL,still it works .
    Hope this helps,
    Regards,
    Siddhartha

  • Import from CSV and vice versa

    Please help me to find how a CSV file can be imported to Oracle 10g DB using ODP.NET provide in VB.NET.I saw an option in OLEDB that the Datasource is given as textfile to be read and OLEDBDataadaptor is reading data from textfile and updating to the DataSet.Is there any such option in ODP.NET??Please help me.
    Thanks in Advance
    Saritha

    I would suggest:
    1) Using the StreamReader to consume each line of the csv
    2) Then use the the "Split()" string method on each line returned as a string to parse the values into an array
    3) Load each array value appropriately into a stored procedure/function and execute through a OracleCommand object
    4) Loop through each line returned in the StreamReader to do the same (until EOF)
    5) Wrap the whole thing in a OracleTransaction object and perform Rollback()/Commit() as appropriate considering the return values of the executed Procedures/Functions (break loop and Rollback() on error thrown).
    It's not one stop shopping but I don't think that you can just cram a text file into the ODP and expect it to try and make an import (I could be wrong).

  • Since upgrading to Lion i can no longer see other computers in my network and vice versa. What has gone on?

    As the title suggests! I can no longer see any of the computers in my network, Mac or otherwise.
    I have checked sharing permissions on all required computers and all seems to be good and have disabled firewalls.
    I notice a few people have had similar problems with screen sharing but I am not even seeing another station to pottentialy share a screen with!
    MBP 2.4GHz Intel Core 2 Duo
    OS X - 10.7

    Regarding the printer:
    From: sterling r: https://discussions.apple.com/thread/5506493?tstart=0
    If that does not help then from braden85:
    This first article is about changing or updating printer software in Mountain Lion, and can be found here:
    OS X Mountain Lion: Change or update printer software
    http://support.apple.com/kb/PH10622
    This next article tells you where to find the printer software for your specific printer brand:
    OS X: Printer and scanner software available for download
    http://support.apple.com/kb/ht3669

  • Can't connect iMac/Leopard with Mac Mini/Tiger and vice versa

    This one has got me tearing my hair out.
    I have an Intel iMac running Leopard and a Mac Mini running Tiger on the same Ethernet network. Both run (adjacent) fixed IP addresses with common subnet mask and gateway. Both access the Internet fine through a single router. But can I share files between the two?
    Neither has firewall turned on while file sharing is enabled. I can see each Mac from the other but when I try connecting first I get 'The server may not exist or is not operational at this time. Check the server name or IP address and your network connection and try again.' Then on clicking OK I get 'This file server is running on your machine. Please access the volumes and files locally.'
    If I try connecting from Finder using Go - Connect To Server I get this error message 'The Finder cannot complete the operation because some data in "afp://MacMininame" could not be read or written.'
    Although I'm running Leopard on the iMac now, this also used to happen when I ran Tiger too.
    Many thanks - GeoffT.

    Fixed it!
    I have Parallels installed on the iMac and it creates two virtual network adapters (Guest-Host and NAT) in System Preferences/Network. For some reason I'd foolishly contrived to manually configure the Nat adapter to the same IP address as the Mac Mini, hence the point-back to the iMac every time.
    Guess we're all allowed the occasional foul up.....
    GeoffT.

  • How can you convert a live RTMP stream to RTMFP and vice versa in flash?

    Assume three computers: A, B, and C. A is streaming live video and audio to B through RTMP. How could that stream be converted to RTMFP and sent through B to C - while at the same time, still going to B as RTMP? How could a live stream from C be similarly sent to B as RTMFP and A as RTMP?
    It doesn't matter to me whether B converts it on the client side, or whether the FMS between A and B convert it. Part of the problem is that B can get streams to and from both A and C, but A and C are effectively disconnected from each other. Another part of the problem is that A has to be able to use RTMP, not necessarily RTMFP, whereas C is guaranteed to use RTMFP. All three clients still need to be able to connect to each other in a live video chat.
    Thanks!

    you don't have to completely redo your project but you will probably need to redo large parts of it.  in addition, there's no quick way of doing what you want and ensuring everything will work well unless you dig into the details of publishing for mobiles.
    it looks like your swf's background is transparent.  you assigned the wmode attribute in your embedding code to be transparent.

  • Calling HTML file from servlet and vice versa...

    i have got few questions..
    1- if a site is made in HTML then what should be used to put user login functionality in it, servlets or jsp or other option(specify)?
    2- im trying to do with servlets, so when im calling doPost method from HTML page and sending data, everything working fine but because of this the page refreshes and the HTML coding get lost, so how can i stop that from happening if possible, like showing the same page with messege = "Logged in".
    3- how can i call an HTML page from servlet?
    4- how can i send data from servlet to HTML page?

    that i m aware of, but when a servlet is called then the page will refresh n it will display the things that you have mentioned in the servlet file n not the things that u have mentioned in HTML file, n the page will be blank if u have not mentioned any HTML coding in servlet file.
    so i need to knw how to call back that prev HTML file so that the things i want to display can be displayed, i knw the same can be done by adding the HTML code in servlet file but i would like to know if there is any way to call back the HTML file.

Maybe you are looking for

  • SAP Cloud For Customer : How to change the Logo or Image into the Standard Form Template

    Hi Experts, I have requirement to change the standard template format. I have copy standard template and edit using Adobe Life Cycle Designer to change the logo / image. After changed and upload modified template and change the output setting for pri

  • Passwords in workbooks

    Hi there, need help to a problem in WAD: When exports reports from WAD to my desktop (via excel) and try to open it, it ask me for password to open the excel, but it only happens with some of it... what i want is that never ask me for password when o

  • Generating .ard file

    Hello All, I have developed a solution to create a menu item and displayed a screen painter form using single signon into SAP B1. Now I want to generate an .ard file for my solution by creating an installer program and register with AddRegGenWizard.

  • When not to use SAP PI

    Hi all, Do you agree? [http://architectsap.com/blog/sap-netweaver-pi-7-1-usage-scenarios-when-not-to-use-sap-pi|http://architectsap.com/blog/sap-netweaver-pi-7-1-usage-scenarios-when-not-to-use-sap-pi] Best Regards, Pedro M. D. Pereira

  • Missing Primary Key

    Hi, I have this situation where sometimes the primary key is missing or jumps sequence during record saving. It happens occasionally but I do not know when and how it happens. The primary key is generated automatically by sequence. For example, last