Invoke two activities in parallel

Hi,
I have a workflow process where I want to achieve the following,
Create two pl/sql function activities and invoke both at the same time after start / any other activitiy. Can anyone tell me if its possible ?
Thanks
Ponraj

Hi,
When you branch from one activity, you can have multiple branches to different activities, e.g. A -> B and A -> C at the same time. The activities will then run in parallel, and you should bring them together using a standard AND activity (so that if B takes 5 seconds and C takes 15, the thread doesn't shoot off as soon as B is finished).
However, there is no such thing as true concurrency - the database cannot run the two activities at exactly the same time, and so will in reality run them sequentially (albeit a fraction of a second apart). Chances are that you would never see the difference, but bear in mind that they will be executed in the same database session, so will not run at exactly the same time. In some situations, you may find that activity B runs before C, and in other situations C will run before B - there is no guarantee which order they will be executed (bearing in mind that you want them to run concurrently, this shouldn't make too much of a difference though).
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com

Similar Messages

  • Need to add two activities in Purchase order workflow template

    Hello,
    I got a requirement for purchase order at workflow template level need to add two activities like below
    a) p.o changed
    b) p.o cancelled.
    once p.o changed based on agent determination agent will receive the mail in his inbox same functionality for p.o cancelled. 
    also at work item level need to add attributes .
    but currently standard workflow for PO release it WS200000075  have only release activity   .
    how to add activity types to be available workflow template also please let me how to do binding for above activities once created?

    Hi vinoth,
    yes this p.o workflow based on release strategy. i was copied the standard workflow template added activities
    one is for changed and another is rejection.
    once functional guy rejected the purchase order rejection  activity  not working properly
    also same problem faced for changed step also while change the p.o value at item level.
    i am using business object BUS2012 adding attributes for work item.
    please guide me how to achieve above functionality also how to do binding for changing and rejection activities?

  • Requirement wherein I want to call two queries in parallel using ABAP Prg

    We are using RSCRM_BAPI to run a query in background and write the results to a table. We later read this table and create a file. I have a requirement u2013 wherein I want to call two queries in parallel using an ABAP program.
    For our discussion assume:
    1) Program : ZCALL_RCRMBAPI  is a program that calls RSCRM_BAPI in background and takes the query name as input
    2) Program: ZMAIN_PROGRAM  this is the main program
    The requirement is to call the ZCALL_RCRMBAPI in a loop. Also within the loop call it in parallel. Basically we have an ODS that stores ; FISCPER. So I call the two queries for a list of FISCPER.
    ZMAIN_PROGRAM - A program that reads a table (ODS ) in our case and call the two programs in a loop and both should run in parallel .
    Now if it was sequential u2013 it was easy u2013 I would just say
    Loop at L_T_FISCPER .
    Update Z_FISCPER with L_T_FISCPER-FISCPER u201C Assume Z_FISCPER is a Z table . The VARIABLE in the query Q1 and Q2 use a customer exit to read this table.
    A)       SUBMIT ZCALL_RCRMBAPI with P_QUERy = Q1 and return .
    B)      SUBMIT ZCALL_RCRMBAPI with P_QUERy = Q2 and return .
    Endloop .
    Question: How do I make these calls in parallel u2013 yet retain control in the main program?
    A)       SUBMIT ZCALL_RCRMBAPI with P_QUERy = Q1 and return .
    B)      SUBMIT ZCALL_RCRMBAPI with P_QUERy = Q2 and return .

    Instead of RSCRM BAPI you can use the RRW3_QUERY_VIEW_DATA function module for greater control over program execution...
    /people/arun.varadarajan/blog/2009/07/29/make-the-most-out-of-query-execution--part-1
    will give you pointers as to how this can be done...

  • How to define a limit in correspondance two activities in SAP PS..?

    Dear experts,
    i m new in SAP PS, acctually i want to know that if in any production project there are two activities , one for working biling and other for non working billing . and if i want to put a limit ( 24 hour) in both activity, means if user fill 22 hr in working activity then he couldn't fill more than 2 hour in non working activity. please give me some suggestion about ths..

    Hi,
    Use Validation for degree of processing in the activity.
    Thanking you
    Vengaiah Chowdary

  • How to Invoke two java methods parallaly

    Hi,
    I need to invoke two Java methods parallaly ,for example if i am having two methods in a class
    public class Test {
        public Test() {
        public static void main(String[] args)
        Test test = new Test();
        String returnString1 = test.test1();
        String returnString2 = test.test2();
        public String test1(){
        String newString1 = "";
        return newString1;
        public String test2(){
        String newString2 = "";
        return newString2;
    }if i run the above class two methods will be invoked one by one(Sequentially).is there any possibility to invoke these two methods parallaly (ie) both methods need to be invoked at the same time.

    import java.lang.reflect.Method;
    class Paralell implements Runnable{
          private Object srcObject;
          private String methodName;
          private Class parameterTypes[];
          private Object parameterArgs[];
          private Object returnObject;
          public Paralell(Object srcObject, String methodName, Class parameterTypes[], Object parameterArgs[]){
              this.srcObject = srcObject;
              this.methodName = methodName;
              this.parameterTypes = parameterTypes;
              this.parameterArgs = parameterArgs;
          public Object getReturnObject(){
             return this.returnObject;
          public void run(){
               Method method = null;
                try{
                    method =  srcObject.getClass().getDeclaredMethod(this.methodName,this.parameterTypes);
                    this.returnObject =method.invoke(this.srcObject,this.parameterArgs);  
                }catch(Exception exp){
                   exp.printStackTrace();
                }finally{
                    method = null;
    }

  • Find the Difference in time for creation of two activities for the same SR

    Hi
    I need to find the difference in time of cretaion of two different activities for an SR. Is there any function which I can use to get the same
    For e.g.
    SR # |Activity Created Date |Duration
    123 12-nov
    123 13 nov 1 day
    Thanks in advance
    Meena

    There's a TIMESTAMPDIFF function.
    An example from the book Oracle CRM On Demand Reporting has the following example...
    TIMESTAMPDIFF( SQL_TSI_MINUTE, Activity."Start Time", Activity."End Time" )
    which would return the difference in minutes.
    As I type this, I'm thinking you probably know this and your problem is how to get the Activity start time for the next activity into this function. I sorry can't think of any way to do that.

  • How do i create two Examples in Parallel operation

    Cont Acq&Graph Voltage-Ext Clk.vi
    Measure Angular Position.vi
    How do i make these two example program in a Parallel execution mode?
    Joe
    Using Ver. 8.0

    I done this in the following way.
    Encoder output is connected to PFI0 and CTR0_SOURCE.
    AI is getting triggered by PFI0 and  Counter Input is configured for Counter Edge.
    Once this over this datas are logging into a file.
    Problem is... as per the flow once i finished the loop i.e pulse count *0.144( which is the angle for each pulse, because i am using 2500PPR Encoder) reaches 70, pulse count will be 486 and the same time if you check the file , we wont have 486 datas in it, we will missing some 50-100 data on that.
    this encoder movement is manual and speed varies always.
    this missing data in file will happen only if the speed of encoder movement increased.
    can we make this independent  of speed ???
    pls refer the attached file for program flow.
    Joe
    Using Ver. 8.0
    Attachments:
    vi.JPG ‏223 KB

  • Two EHP1 in parallel on same host....Please reply ASAP

    Hi,
    We have NW BI 7.0 with two different SIDs. The ABAP is AW1 and J2EE is JW1. They are on the same host. They are ABAP and Portal for our BW system and integrated to each other.
    Can we run both enhance package installation in parallel as they are on the same host?
    Is it possible?
    Please advice us at your earliest as we have to plan our PROD installation in next four weeks.
    I will appreciate your help.
    Regards.
    SC.

    Hi Sume,
    sorry if I confused you. Please use below command:
    ./STARTUP httpport=<port> guiport=<port> -srvarg=/DSUService/abaptoolport=<port> -srvarg=/DSUService/javatoolport=<port>
    jce_policy_zip=/<...>/EHPI/jce_policy-1_5_0.zip
    Also, The externally supplied ports through the command line, i.e. httpport and guiport, have to match the ports in sdtdsu.jnlp file. That file is placed into sdt/htdoc subfolder. The following lines into the file show this information:
    <jnlp href="{...}" codebase="{...}:/" spec="{...}>
    <argument>port=</argument>
    Here the value and have to be the same as the ones supplied from the command line.
    Hope now it is clear.
    Thanks
    Sunny

  • PHP always invokes Two BPEL process Instances

    Hello All:
    I have a BPEL process that I want to invoke from a PHP form. The problem that I'm having is that every time that I invoke the BPEL process from PHP, two instances of that BPEL process get created and invoked in the BPEL manager.
    Has anyone experienced this problem? I know that when I log into the BPEL console and initiate a test instance, I only get one, so my feeling is that it may be PHP. Here is a list of my environments:
    BPEL Server Environment
    OS Version - Microsoft Windows XP
    Oracle SOA Suite v10.1.3.1.0
    Oracle BPEL Console v10.1.3.1.0
    Client Environment
    Server Software - Apache/2.0.55 (Win32)
    OS Version - Microsoft Windows XP
    PHP Version - 5.1.4
    Zend Engine Version - 2.1.0
    Here is my PHP code for invoking the BPEL process:
    <?php
    $wsdl = 'http://localhost:8888/orabpel/default/ChangeCustomerName/1.0/ChangeCustomerName?wsdl';
    try {
         $client = new SoapClient($wsdl);
         $return = $client->process(array("cust_account_id"=>167484,"new_cust_name"=>"TESTING>"));
         if ($return->return_code == 'E') {
         echo 'Error: '.$return->return_message;
         } else {
         echo 'Success!';
    } catch (SOAPFault $e) {
    var_dump($e);
    ?>
    Again the problem is not that I can't invoke a BPEL process or that the BPEL process does not function properly, it is that when I do invoke it from PHP, I get two instances in BPEL.
    Thanks,
    Ben

    If you are using a tool like: soapui.org (Opensource SOAP client tool), and create a soap request, do you get the same behavior. If so, there is an issue in BPEL, otherwise in your PHP environment.

  • 1 bpel process invoking two osb proxies of same wsdl

    Hello,
    We have:
    SCA composite with BPEL process (BPEL1)
    1 WSDL with multiple operations (op1, op2) in OSB
    OSB proxy services (PS1->based on wsdl op1, PS2 -> based on wsdl op2). Both of them are based on same WSDL.
    Now I am trying to invoke PS1 and PS2 from BPEL1 by creating two partner links each referring to two different operations
    (op1 and op2) of WSDL. But I am getting error when trying to invoke PS2 because even if I invoke PS2, it is calling
    operation 1(op1).
    So my question is, can we invoke multiple operations of same wsdl in one BPEL process instance?

    maybe the selection algorithm on the proxy service isn't the correct one, so it can't dispatch to the correct operation
    can you check the value setting of Operation Selection Configuration > Selection Algorithm on you proxy service on the osb
    we mostly use SOAP Body Type

  • How to invoke synchronous services dynamically (parallel) using BPEL

    hi,
    I am working on soa suit 11g(11.1.1.2.0) & weblogic server 10.3.2. I have one requirement in which i need to dynamically route endpoints. To achive this, i have created one table in which i stored endpoints(wsdl url) & i used parallel flow to get that wsdl entry. I am invoking dbadaptor & taking input from parallel activity's as index variable which is unique for each time. Like for one flow it uses 1, second flow it uses 2 and so on. But when i m calling dbadaptor to get wsdl_url from table, everytime it's taking first index_value, hence i am not getting correct wsdl_url from table. If i will get correct url then i will use dynamica partnerlink to call wsdl.
    Could you please tell me any other way to dynamically route end point in BPEL?
    Thanks
    Amit

    Dude,
    I do have same requirement, but I followed the below link and I have created my process. I haven't tested it due to my environment is not yet ready. Even though my strong feeling is that we can achieve using this OSR installation. Just follow link and install OSR, after that take web service partner link and go to Resource pallet and invoke the service which is already exported from OSB, then one window will pop up with message of Check Dynamic......, there you have to check them. Finally all you need to do is..., Test it on another environment and let me know.
    http://biemond.blogspot.com/2009/12/using-oracle-service-registry-in-soa.html
    Cheers,
    Mally

  • Performing a regulation with two loops in parallel

    Hi,
    I'm using two loops running in parallel to make the regulation of a voltage through the automatic control of a motor. In the first loop I read all the time which is the value of my actual voltage. There's also a subVI inside this loop that looks if the voltage is within the specified limits and if not, calculate in which direction and which is the optimal speed of the motor to continue regulating in order to achieve the desirable value. The actual voltage, the direction of the motor and the actual speed are stored in a global variable.
    On the other side I have a loop with a machine state that at the beginning initializes my motor (I control it with serial communication) and it's reading the direction and speed glob
    als and sending this information always to the motor until the first loop detect that our regulation has finished, and the machine state of the second loop stops the motor, and close the serial port.
    In both loops I have a Wait(ms) command, 250ms in the first one (every voltage acquisition needs about 210ms) and 100ms in the second one (I just wrote this times without no idea, just to try them).
    The thing is that this program is working most of the time perfect, BUT for some reason from time to time the subVI get hanged and I have to kill LV. I don't know if my problem comes from the timing in the loops or maybe because in some cases I'm writing and reading to one of the globals at the same time and I get a collapse. Could somebody help me? If I need some kind of semaphores or syncronization issues, could you send me an example? I'm using LabVIEW 7.0.
    Thanks in advance,
    Angel

    The technique you are using is called a functional global variable, and it's generally better programming practice than using a normal global variable. The only potential problem I see is if you are concerned about loosing data. If you just want to send the current values to the motor then you are fine, but if you need to send a command to the motor every time the values are updated then you should consider using a queue. With the functional global you still have the possibility of changing the value in the first loop twice before the second loop ever sees it, or reading it twice in the second loop before the first has had a chance to update it. If this situation wouldn't be a problem then you should be just fine.
    Regards,
    Ryan K.

  • Can i see two docs in parallel in pages for ipad?

    i need two translate a doc in pages. It would be nice to have on the same screen both text: one to read and the other to type the translated text
    Is this possible?
    Thanks!!

    Hi Sandeep,
    I hope that your question was already answered by Ashish. If not, then I would like to point out the following.
    Offline Support is based on Content Type
    Webi - Downloaded Webi documents can be viewed when offline. However, if you would like to do some operations like drill, filter etc. which requires interaction with mobile server, you can do them online and save personal view for that webi document and then it will be available offline.
    Xcelsius Dashboards - Xcelsius dashboards are available offline. Crystal  - Crystal documents can be downloaded as PDF for offline use. Explorer - Explorer personal views are available offline.
    Other content types like Design Studio etc. are not available offline as on today.
    Regards,
    Ashutosh

  • Resource assignment to Parallel activities

    Hi,
    this is regarding resource allocation to Parallel activities. I have two activities that occur in parallel 1. Preparing drawings for table, 2. Preparing drawings for Chari.
    Now these activities occur on the same day (one day duration) and done by one single draft man.
    I have assigned one draft man as a resource to both the activities. (Meaning one draft man will do both activities in one day), the problem is in the histogram it is showing two draft man as a required resource on this particular day.
    Qstn: How to make P6 understand that this single resource will do both activities in one day (and still assign one draft man as resource to both the activities.)
    Thanks in advance..
    Regards,
    Imad

    You need to reduce the units (hours) by one half for each of them. If you currently have them for 8 hours/day and the resources limit is 8, it will show as needing two.

  • Workflow Activities not executing in Parallel

    Hi,
    I am using Oracle Workflow as a dependency management system to load a Data Warehouse.
    Workflow Activities are used to execute a custom PL/SQL wrapper that kick off Oracle Warehouse Builder (OWB) mappings that load target tables with source system data.
    This process works correctly and data is loaded into the Data Warehouse as expected.
    However, when I create a Workflow with activities in parallel they are not loaded concurrently, they load sequentially instead.
    ie.
    START
    => ACTIVITY1 =>
    => ACTIVITY2 =>
    => ACTIVITY3 =>
    AND => END
    In the example above I would expect all 3 Activities to run in parallel, then wait until all 3 are completed at the AND condition.
    All 3 Activities above are DEFERRED to the Background Engine.
    After executing the Workflow and viewing the Workflow Public View WF_ITEM_ACTIVITY_STATUSES_V, it displays all of the Activities in DEFERRED status as expected.
    Workflow then proceeds to execute each Activity one at a time, instead of all 3 at once.
    Any ideas how to execute all 3 Activities in Parallel?
    Thanks.

    Hi,
    If the activities are all PL/SQL, then the Workflow Engine doesn't run anything in parallel - there is only one engine processing the activities. The theory is that it runs so quickly it will look like it's in parallel with no real effect.
    So what you are getting is expected behaviour - it's just that because you have deferred it to the background engine, you have a greater opportunity to see how the engine works.
    HTH,
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com
    NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com

Maybe you are looking for

  • Hp laserjet 1020 does not print

    Operating System Windows 7 PRO 64 bit Does the HP laserjet 1020 work on the above software? Tried to uninstall the printer drivers but failed. Message-setup encountered an abnormal program execution. setup will shut down. This was using the hp uninst

  • Exporting After Effects Files From Final Cut Pro?

    Hey i have a few short clips from adobe after effects that i have exported them from that and imported them into FCP i am now wanting to export the video file from FCP when i do somtimes it will be just a still image even though i have made it a quic

  • Change Request SDCR - Sold to Party has to appear by default from IbaseComp

    Hi, TCode: CHARM_CREATE In this screen I dont want to enter the Sold to party. 'Sold to party' has to come by default  based on the IBase Component entered In Change Request SDCR Transaction. Is there any setting for the same. In case of support desk

  • Fatal exception OE @0028:c1596

    Dear moderators, Before I go on , I searched the web and the creative knowledge base before posting here. After fdisk and reformat and clean install of win98se of course you must update and restart. well I am posting this with out an update to win98s

  • Sample prog's on LDB using Get events and also using LDB_PROCESS

    Hello, Can any one send me programs on LDB by linking it to an executable program using get event and also by using the Function Module LDB_ PROCESS. Please do not provide me the Example prog's available in SAP HELP If you have any sample prog's then