Parallel flows not initiating parallely

Hi All,
I have a flowN activity in my BPEL process (PROC1), which creates parallel flows.
Inside each parallel flows I'm calling a another process (PROC2) through partner link.
In my PROC2 I have HumanTask activity, which sends email to the Approver's and waits till that person responds.
The problem is
For EG:
If 2 parallel flows created dynamically, two mails has to send to 2 different approvers(one from each parallel flow) @ same time, but in my case first one flow started its process and the second one starts after the first gets completed.
Could anyone help me how to rectify this.
Thanks
Viki

Hi Marc,
Thanks for your response.
I found the problem.
In PROC2 , I created a partner link for PROC3 (globally).
From each branch of flowN inside PROC2, I'm invoking PROC3, it seems frm each branch call goes to global PROC3 partner link .So parallel flow not working,it works sequentially.
May be if put the partner link inside the scope or something like I create instance of partner link inside each branch would be the best way to solve my problem.
I created a partner link inside my flowN scope , its giving error like not finding wsdl location.
Tell me is it possible to create Partner link inside scope activity.
Thanks
Viki

Similar Messages

  • Parallel Flow in BPEL not working.

    We are using 10.1.3.4.We have a designed a process in bpel where we have parallel flows .Each flow has an invoke activity that calls an external service.
    Each partnerlink has property "nonBlockingInvoke" specified.
    We have also added the property in bpel.xml as below:
    <configurations>
    <property name="inMemoryOptimization">true</property>
    <property name="completionPersistPolicy">faulted</property>
    <property name="completionPersistLevel">All</property>
    </configurations>
    Now after adding the above property along with property "nonBlockingInvoke" specified for each partnerlink we are getting a timeout error.
    once I remove the configuration property it works .Even if we remove the nonBlockingInvoke property then it works.But unfortunately as per our requirement we need parallel processing and inMemory optimisation both.
    Any help on this regards will be highly appreciated.
    my bpel.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BPELSuitcase>
    <BPELProcess id="SyncParallelFlow" src="SyncParallelFlow.bpel">
    <partnerLinkBindings>
    <partnerLinkBinding name="client">
    <property name="wsdlLocation">SyncParallelFlow.wsdl</property>
    </partnerLinkBinding>
    <partnerLinkBinding name="BPELTest1">
    <property name="wsdlLocation">BPELTest1Ref.wsdl</property>
    <property name="nonBlockingInvoke">true</property>
    </partnerLinkBinding>
    <partnerLinkBinding name="BPELTest2">
    <property name="wsdlLocation">BPELTest2Ref.wsdl</property>
    <property name="nonBlockingInvoke">true</property>
    </partnerLinkBinding>
    </partnerLinkBindings>
    <configurations>
    <property name="inMemoryOptimization">true</property>
    <property name="completionPersistPolicy">faulted</property>
    <property name="completionPersistLevel">All</property>
    </configurations>
    </BPELProcess>
    </BPELSuitcase>

    Well, remember inMemoryOptimization works only for Synchronous-Transient (Without any dehydration in between) processes.
    When you set nonBlockingInvoke=true, then each invoke happens in a seperate thread/transaction, which forces dehydration in the process.
    That's the reason in your case it's not working.
    Hope this explains.
    Thanks-
    [email protected]
    http://www.ibiztrack.com

  • Parallel flow

    Hi,
    We have the following requirement. We have a manual task that should be either completed by a user , or if a specified time duration expires it should be automatically completed. We tried using jeopardy notification , but through the jeopardy notification automation we can't use the completeTaskOnExit in order to proceed the task. We also tried using a parallel flow , with the manual task in the first parallel flow and a timer delay on the second parallel flow , but we were not able to complete the manual task in the first parallel flow, when the timer delay expired.
    If you have any experience regarding parallel flows , could you pls help?
    Thanks

    Hi again,
    I am using the following xquery in the jeopardy tab of the automated task :
    declare namespace oms="urn:com:metasolv:oms:xmlapi:1";
    declare namespace context = "java:com.mslv.oms.automation.TaskContext";
    declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";
    declare variable $automator external;
    declare variable $context external;
    let $run :=
    <oms:Run>
    automator:setUpdateOrder($automator,"false"),
    context:completeTaskOnExit($context, "next")
    </oms:Run>
    where (fn:exists($run))
    return
    $run/oms:Null
    but i am getting the following error : External object has wrong class (is class com.mslv.oms.automation.OrderNotificationContextBeanLocal, expected interface com.mslv.oms.automation.TaskContext) . If i use the following :
    declare namespace context = "java:com.mslv.oms.automation.OrderNotificationContext"; i cannot use the completeTaskOnExit function in my xquery, and i get the following error :
    Cannot find a matching 2-argument function named {java:com.mslv.oms.automation.OrderNotificationContext}completeTaskOnExit()
    Can you please help?

  • Bootcamp boots in parallels but not form start up.

    hi i was having problems installing bootcamp and installed it to my partitioned (partitioned by bootcamp installation app) side of the HDD it will load up perfectly within Parallels but not through the boot selection on start up and shows a error about no bootable something.
    should i uninstall the bootcamp and parallels and try to install it again through the utility or how do i set it to be able to boot form start up to it withought a Virtual machine?

    1. Remove the Parallels VM.
    2. Remove the Bootcamp Partition using Bootcamp Assistant.
    3. Create the Bootcamp partition again using Bootcamp Assistant only, build a USB as directed and if necessary.
    4. Bootcamp Assistant will automatically boot to the Windows Installer and start it.
    5. Install Windows as directed by the Installer.
    What kind of problems were you having during the initial installation that made you switch to Parallels-based installation?

  • Cancelling an async call in parallel flow activity

    Hi all,
    As known, each branch of a parallel flow activity must be completed for rest of the BPEL execution continues. Let me expose a scenario:
    Imagine you need to get the current market value of the euro. You have 3 different sources of information that deliver the same result. Using parallel flow activity, you perform calls to these 3 sources. Once the first source calls back, it´s not necessary to wait for the others callback, because you already have the information that you need in your hands. How can I cancel the other waiting async calls? In WLI, we set up the parallel flow as AND or OR type. Using AND (+) means that all branch must be completed so that the process continues. Using OR (-) means that once the first branch is finished, the others will be ignored (cancelled) and the process continues. How can I get the same feature in BPEL?

    Hi Gustavo,
    There may be easier way to do this, but somehow it's not striking at the moment. In the meantime, you can try the following and see. If i get more robust and easier solution, i'll post it here.
    Just thinking aloud here:
    1) Throw a fault e.g. ResponseRecieved in each branch as soon as the branch recieves a response. The fault has to be handled in a fault handler associated with a scope containing the parallel flow. You can leave the fault handler "empty" (no-oos) and proceed with the rest of the activities.
    The above should allow the control to proceed with the activities next to the flow.
    OR
    2) In each flow, as soon as you receive a response after receive activity, invoke a callback port type of the rest of the asynchronous calls and send a dummy callback message. This should mark the completion of the receive activities in other branches. I think correlaiton needs to be handled here.
    Please try if you have not already done so and let me know.
    Thanks-
    www.ibiztrack.com
    BPEL/ESB Training:
    http://www.ibiztrack.com/html/oracle-bpel-soa-training.html

  • Human task - Parallel flow - sharing payload

    Hi All
    Can I have a human task that is assigned parallely to two different user groups, and when the user in one of the group changes/updates the payload, the user in the other group (the other branch of the parallel flow) is able to see the change?
    Thanks
    Satinder

    Hello,
    I have the same problem can anybody help! My project has been locked in this point. if any body can help I do highly appropriate it.
    Thank you so much

  • UM Service Does Not Initially Start

    Hi, everyone!
    Whenever our Exchange 2010 server is restarted, the UM service will not initially start. However, it will start when I then go to manually start it.
    Based on the error logs, it seems like it may have something to do with DNS. The error mentions how 10.4.50.1 resolves to an invalid FQDN. 10.4.50.1 is the IP address to the PBX Gateway, which is the address entered into Exchange's UM Settings. No where
    in the settings did I use the FQDN, which is why this error does not make sense to me.
    I'm wondering if it's simply the service trying to start too soon prior to the network connection being fully established? We're running this on VMWare 5.5. Also, this PBX Gateway is across a VPN, but it's not an accessibility issue as all other traffic
    to the Gateway is flowing properly.
    I was hoping someone may have an idea on what to try.
    It's not a huge deal because I wrote a PS Script that will check if the service is running and attempt to restart it, if it's not. This solves the issue, but it's more of a patch then a plug and I'd rather have things operating "normally."
    Thanks in advance for any suggestions!
    -Eric

    Alright... well, we had to reboot the server and I checked when the server started back up to verify that the UM service started properly. It still did not, despite being set to Delayed Start now.
    So I'm back to being unsure of what to try. I set my PS Script to run at startup and it checks every 15 minutes to ensure UM is running.
    It's more of an annoyance that I'd like to not have, but again, not the end of the world.
    If anyone else has any ideas, I'd be really grateful.
    Thanks!

  • Can't receive headers from JMS Adapter - "Variable is not initialized"???

    I'm using JDeveloper Studio 10.1.3.4.0.4270 to try to build a BPEL process that is initiated by a JMS Adapter. I want this process to access the headers of the incoming message. Despite what Adapter Technical Note #005 says, JDeveloper says I can't do it! Despite the fact that the Receive activity is set up to store the header to a variable, JDeveloper says the variable is not initialized when I try to access it. (At least this is consistent with BPEL Process Manager's behavior -- the runtime also says it's not initialized.) In the following simple code, it looks initialized to me. What am I missing? Thanks.
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
      Oracle JDeveloper BPEL Designer
      Created: Mon Jun 22 18:10:17 CDT 2009
      Author:  memeyer
      Purpose: Empty BPEL Process
    -->
    <process name="BPELHello3" targetNamespace="http://xmlns.oracle.com/BPELHello3"
             xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
             xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/jms/ToHello3/"
             xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/jms/"
             xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
             xmlns:client="http://xmlns.oracle.com/BPELHello3"
             xmlns:ora="http://schemas.oracle.com/xpath/extension"
             xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
      <!--
          PARTNERLINKS                                                     
          List of services participating in this BPEL process              
      -->
      <partnerLinks>
        <partnerLink myRole="Consume_Message_role" name="ToHello3"
                     partnerLinkType="ns1:Consume_Message_plt"/>
      </partnerLinks>
      <!--
          VARIABLES                                                       
          List of messages and XML documents used within this BPEL process
      -->
      <variables>
        <variable name="inputVariable"
                  messageType="ns1:BPELHello2ProcessResponse_msg"/>
        <variable name="header" messageType="ns2:InboundHeader_msg"/>
      </variables>
      <!--
         ORCHESTRATION LOGIC                                              
         Set of activities coordinating the flow of messages across the   
         services integrated within this business process                 
      -->
      <sequence name="main">
        <receive name="Receive_1" partnerLink="ToHello3"
                 portType="ns1:Consume_Message_ptt" operation="Consume_Message"
                 variable="inputVariable" createInstance="yes"
                 bpelx:headerVariable="header"/>
        <assign name="Assign_1">
          <copy>
            <from variable="header" part="inboundHeader"
                  query="/ns2:JMSInboundHeadersAndProperties/ns2:JMSInboundProperties"/>
            <to variable="header" part="inboundHeader"
                query="/ns2:JMSInboundHeadersAndProperties/ns2:JMSInboundProperties"/>
          </copy>
        </assign>
        <bpelx:exec name="Java_Embedding_1" language="java" version="1.3">
          <![CDATA[/*Write your java code below e.g. 
         System.out.println("Hello, World");
    System.out.println("Hello, Whatever");]]>
        </bpelx:exec>
      </sequence>
    </process>

    Hi,
    Your code looks correct to me. However, you should name your durable subscriber: topicSession.createDurableSubscriber(topic, "myDurableSubscriber");
    Then it should be possible to use your JMS provider administration API to check that your durable subscriber is registered with your topic. Once the durable subscriber is registered it will start receiving message.
    To double check that your code is correct, you should test your code with another provide.
    Hope this helps
    Arnaud
    www.arjuna.com

  • XMLTable join causes parallel query not to work

    We have a large table, a column stores xml data as binary xmltype storage, and XMLTABLE query is used to extract the data.
    If we just need to extract data into a column, and the data has no relation with other data columns, XMLTABLE query is super fast.
    Once the data has parent -> children relationship with other columns, the query becomes extremely slow. From the query plan, we could observe that the parallel execution is gone.
    I can reproduce the problem with the following scripts:
    1. Test scripts to setup
    =============================
    -- Test table
    drop table test_xml;
    CREATE table test_xml
    ( period date,
    xml_content xmltype)
    XMLTYPE COLUMN xml_content STORE AS SECUREFILE BINARY XML (
    STORAGE ( INITIAL 64K )
    enable storage in row
    nocache
    nologging
    chunk 8K
    parallel
    compress;
    -- Populate test_xml table with some records for testing
    insert into test_xml (period, xml_content)
    select sysdate, xmltype('<?xml version = "1.0" encoding = "UTF-8"?>
    <searchresult>
    <hotels>
    <hotel>
    <hotel.id>10</hotel.id>
    <roomtypes>
    <roomtype>
    <roomtype.ID>20</roomtype.ID>
    <rooms>
    <room>
    <id>30</id>
    <meals>
    <meal>
    <id>Breakfast</id>
    <price>300</price>
    </meal>
    <meal>
    <id>Dinner</id>
    <price>600</price>
    </meal>
    </meals>
    </room>
    </rooms>
    </roomtype>
    </roomtypes>
    </hotel>
    </hotels>
    </searchresult>') from dual;
    commit;
    begin
    for i in 1 .. 10
    loop
    insert into test_xml select * from test_xml;
    end loop;
    commit;
    end;
    select count(*) from test_xml;
    -- 1024
    2. Fast query. Only extract room_id info, the plan shows parallel execution. The performance is very good.
    =================================================================
    explain plan for
    select *
    from test_xml,
    XMLTABLE ('/searchresult/hotels/hotel/roomtypes/roomtype/rooms/room'
    passing xml_content
    COLUMNS
    room_id varchar2(4000) PATH './id/text()'
    ) a;
    select * from table(dbms_xplan.display());
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | TQ |IN-OUT| PQ Distrib |
    | 0 | SELECT STATEMENT | | 8364K| 15G| 548 (1)| 00:00:07 | | | |
    | 1 | PX COORDINATOR | | | | | | | | |
    | 2 | PX SEND QC (RANDOM) | :TQ10000 | 8364K| 15G| 548 (1)| 00:00:07 | Q1,00 | P->S | QC (RAND) |
    | 3 | NESTED LOOPS | | 8364K| 15G| 548 (1)| 00:00:07 | Q1,00 | PCWP | |
    | 4 | PX BLOCK ITERATOR | | | | | | Q1,00 | PCWC | |
    | 5 | TABLE ACCESS FULL| TEST_XML | 1024 | 2011K| 2 (0)| 00:00:01 | Q1,00 | PCWP | |
    | 6 | XPATH EVALUATION | | | | | | Q1,00 | PCWP | |
    3. The slow query. To extract room_id plus meal ids, no parallel execution. Performance is vert bad.
    ==============================================================
    -- One room can have multiple meal ids
    explain plan for
    select *
    from test_xml,
    XMLTABLE ('/searchresult/hotels/hotel/roomtypes/roomtype/rooms/room'
    passing xml_content
    COLUMNS
    room_id varchar2(4000) PATH './id/text()'
    , meals_node xmltype path './meals'
    ) a,
    XMLTABLE ('./meals/meal'
    passing meals_node
    COLUMNS
    meals_ids varchar2(4000) PATH './id/text()'
    ) b;
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 68G| 125T| 33M (1)|112:33:52 |
    | 1 | NESTED LOOPS | | 68G| 125T| 33M (1)|112:33:52 |
    | 2 | NESTED LOOPS | | 8364K| 15G| 676 (1)| 00:00:09 |
    | 3 | TABLE ACCESS FULL| TEST_XML | 1024 | 2011K| 2 (0)| 00:00:01 |
    | 4 | XPATH EVALUATION | | | | | |
    | 5 | XPATH EVALUATION | | | | | |
    Is the xml binary storage designed to only solve non-parent-children relationships data?
    I would hightly appreciate if someone could help.

    This problem has been confirmed as an oracle bug, currently the bug is not fixed yet.
    Bug 16752984 : PARALLEL EXECUTION NOT WORKING WITH XMLTYPE COLUMN

  • Calling Asynch Service in a Parallel Flow (FlowN)

    Hi,
    In one of the processes, we have a requirement to call an Asynch Service within parallel flow, meaning that, the same Asynch Service would be called several times, with different payload, dependent on the number of lines, which is decided during the run time. When this Async Service is called, the expectation is, after the flow is completed, it will call back the exact location, where the call was made from, to the corresponding line.
    This second Asynch Service is also depicted by a BPEL process. When we have multiple such calls made, the Receive after the invoke from the main process, fails, with the following message:
    <conflictingReceive>
    <part name="summary" >
    <summary>Conflicting receive. Another receive activity or equivalent (currently, onMessage branch in a pick activity) has already been enabled with the partnerLink "MobileNumberPortabilityService", operation name "onResult" and correlation set "" (or conversation id). Appendix A - Standard Faults in the BPEL 1.1 specification specifies a fault should be thrown under these conditions. </summary>
    </part>
    </conflictingReceive>
    When I looked into the conversation id of the sub-process, the conversation id seems to be the same for every process which got initiated as follows:
    bpel://localhost/default/ROTelcoNewOrder~1.0/7358-BpInv14-BpSeq31.330-2
    Given this scenario, how would the sub-process know to call back the exact instance (within the parallel flow), where the call came from, so that it can exactly join the location. Does it require a different kind of implementation, for parallel flows, please..
    Any pointers or guidelines, please..
    Thanks and Regards,
    Vijay.

    Vijay,
    this may be caused by a bug in the FlowN (bugnumber 4944123), where the values used on the invokes are the same for all the calls. For an asynchronous call, this can be bypassed by making two loops based on the number of lines (loop 1 for invoke, loop 2 for receive). That way you won't have any trouble with the correlation as well.
    Hth,
    Mike

  • Error "can not start the configuration in parallel does not correct"

    Hello everybody,
    I have Windows 7 SP1, and when I install Business Objects 4.1 Client, it is install correctly but when i execute the program, for example BO Rich Client, an error appear "can not start the configuration in parallel does not correct" Could you help me?
    Thanks in advance!

    Check this KB
                  1678498  - BI 4.0 Universe Designer Gives Side-by-Side configuration incorrect Error

  • What's the difference between a not-initialed object and a null object

    hi guys, i wanna know the difference between a not-initialed object and a null object.
    for eg.
    Car c1;
    Car c2 = null;after the 2 lines , 2 Car obj-referance have been created, but no Car obj.
    1.so c2 is not refering to any object, so where do we put the null?in the heap?
    2.as no c2 is not refering to any object, what's the difference between c2 and c1?
    3.and where we store the difference-information?in the heap?

    For local variables you can't have "Car c1;" the compiler will complain.That's not true. It will only complain if you try to use it without initializing it.
    You can have (never used, so compiler doesn't care):
    public void doSomething()
       Car c1;
       System.out.println("Hello");
    }or you can have (definitely initialized, so doesn't have to be initialized where declared):
    public void doSomething(boolean goldClubMember)
       Car c1;
       if (goldClubMember)
           c1 = new Car("Lexus");
       else
           c1 = new Car("Kia");
       System.out.println("You can rent a " + c1.getMake());
    }

  • Error :Receiver File Channel not Initialized

    Hi all,
    I am using a file adapter at the receiver side with file content conversion option. When i post a message it shows an error in the message monitoring as "Reciever File Channel not initialized : Unable to proceed : null"
    Please Help.....

    Hi,
    Check if the adapter is active or
    check on this thread:
    File Adapter Not Initialized Error
    the error might be due to FCC. Jsut remove that and see ift he adapter works.
    Regards
    vijaya

  • Error in communication channel " not initialized"

    Hi All,
           I'm working in FIle to mail scenario. In this scenario whenever i upload a text file to the R/3 application server. that file should be sent (as a attachment with a mail) to any email id. I did all the required configuration in IR. but i'm verymuch confused in ID configuration. I have created both sender and receiver communication channel in the same business system which refers a sender (R/3) System.sender communication channel is working fine. but when i activate the receiver communication channel it shows an error "not initialized".
    So kindly let me know,
    1. Should i use business system for my receiver end?,If so how do i create it?
    2. is receiver agreement, receiver determination, interface mapping necessary? If so, how do i configure it? because i'm not using any recever service since i'm sending mail to my mail box.
    note:
    It would be very helpful if u refer any link to find out the recever determination and interface determination configuration for this type of scenario.
    Thanks & Regards,
    hari.

    Provide us the XML formed after mapping.
    make sure that the msg type name is Mail and the name space name is http://sap.com/xi/XI/Mail/30.
    regards
    krishna

  • No Aapter registered for the channel and not initialized

    Hi Guys,
      I am working on Mail 2 File scenario. when the scenario is executed i am getting the  below error in sender MAIL adapter communication channel.
    No adapter registerd for the channel & not initialized
    Thnx,
    Siva

    Hi,
    Depending on your XI/PI version, apply one of the notes below to correct import the ESR content:
    PI 7.1X:
    #1152640 - SAP NetWeaver 7.1 including EHP 1: Importing ESR content
    XI 7.0:
    #836200 - SAP NetWeaver 7.0: Importing Process Integration Content
    XI 3.0:
    #705541 - XI 3.0 (SP1 and higher): Importing XI Content
    Also, check if the service for the adapters are running. Restart the J2EE Engine.
    If not solved, you may try redeploying the adapter's driver.
    Regards,
    Caio Cagnani

Maybe you are looking for

  • How to copy Report from another company (using PLD)

    Hi.. i create a new company, with empty data. Because i stop the training company and now start with live company. In training company, i created so many report, and now i must copy the reports to live company. I try to open two SAP window, and i ope

  • MacBook Pro Closed Screen Fit

    Hi, I have recently received my new MacBook Pro. Overall I am very happy with the purchase however I have one question/comment regarding the fit of the screen when closed. When the screen is closed there is a slight gap on the left hand side when loo

  • Why does Apple TV tell me I need HDCP?

    I have two identical TVs with two identical AppleTVs and two identical HDMI cables.  One Apple TV plays perfectly when I order a movie and the other says I need an HDCP compatible cable.  Why is this happening?

  • Learning portal does not check Prerequisite qualifications while booking

    Hi, We recently upgraded to EP4 and saw an issue on the learning portal. When there are pre-requisite qulaifications attached to a course type, learning portal should check if the Learner has the prerequisite qulaification in his/her qualification pr

  • Freaky Junk mail Problem

    Recently I noticed I was missing some messages people were sending me. I went into my junk mail folder to see where they were. The Outside of the Junk Mailbox said I had several unread messages. When I opened the box however it was empty. I tried reb