How to make sure one instance of BPEL process runs at a time.

Hello,
we have a BPEL web service and would like to run the BPEL processes serially. below is our senario
Process "A" kicks of ( 100's of them via file polling)
at some activity (not at the beginning) the BPEL process should check if there are any other BPEL instances of same Process "A" are running? If so then it should wait until the process completes.
is there an API to check what other instances are running and if so if they completed or not?

Have a look at metalink note 779136.1, you have to be on
10.1.3.3.1 MLR#14 or above
10.1.3.4 MLR1
There is a note saying model on a synchronous pattern. There is no instructions on how to do this you need to create a new message definition to the wsdl
<message name ="Dummy">
<part xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Dummy_element" type="xsd:string"/>
</message>
in the port type add an output definition
<portType name="Read_ptt">
<operation name="Read">
<input message="tns:payload_msg"/>
<output message="dummy_output"/>
</operation>
</portType>
here is an example
<definitions
name="GetFile"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/GetFile/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/GetFile/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:pns1="http://xmlns.oracle.com/ComplexFile/correlationset"
xmlns:pc="http://xmlns.oracle.com/pcbpel/"
xmlns:imp1="http://TargetNamespace.com/GetFile"
xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/file/"
>
<import namespace="http://xmlns.oracle.com/ComplexFile/correlationset" location="ComplexFile_Properties.wsdl"/>
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/file/" location="fileAdapterInboundHeader.wsdl"/>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://TargetNamespace.com/GetFile" schemaLocation="sample_1.xsd"/>
</schema>
</types>
<message name="payload_msg">
<part name="payload" element="imp1:payload"/>
</message>
<message name="dummy_msg">
<part name="dummy_string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string"/>
</message>
<portType name="Read_ptt">
<operation name="Read">
<input message="tns:payload_msg"/>
<output message="tns:dummy_msg"/>
</operation>
</portType>
<binding name="Read_binding" type="tns:Read_ptt">
<pc:inbound_binding/>
<operation name="Read">
<jca:operation PhysicalDirectory="c:\temp\inbound\ComplexFile" ActivationSpec="oracle.tip.adapter.file.inbound.FileActivationSpec"
DeleteFile="true" IncludeFiles=".*\..*" PollingFrequency="10" MinimumAge="0"
Sorter="oracle.tip.adapter.file.inbound.listing.TimestampSorterDescending"
OpaqueSchema="false"/>
<input>
<jca:header message="hdr:InboundHeader_msg" part="inboundHeader"/>
</input>
<output/>
</operation>
</binding>
<service name="GetFile">
<port name="Read_pt" binding="tns:Read_binding">
<jca:address location="eis/FileAdapter" UIincludeWildcard="*.*"/>
</port>
</service>
<plt:partnerLinkType name="Read_plt">
<plt:role name="Read_role">
<plt:portType name="tns:Read_ptt"/>
</plt:role>
</plt:partnerLinkType>
</definitions>
cheers
James

Similar Messages

  • How to restrict only one instance of web service running at a time

    Hi All,
    Have a requirement to ensure that only one instance of java web service is active at any point of time.
    Using Application Server 10.1.3.4. Not the soa suite.
    Thanks
    Saikrishna

    Thanks for the reply..
    I have a java web service that pulls up some files produced periodically from remote machine and uploads them to some doc mgmt system and then update the database that what files are uplaoded successfully so that during next run it will ignore those files.
    so, if my web service executes second time before completion of first run. It would pick files that were already processed by first run since the first run might have not updated the databse yet.
    Thanks
    Saikrishna

  • How to make sure all my automatic test case run in one session?

    Hi guys,
        I'm doing some automatic test for our products.
         Now i'm hindered by an issue(maybe,due to my wrong configuration).
         I've wrote some test method in a Coded UI Test project,and these run perfect on local machine.And i build an environment includes Builder Controller,Builder Agent,TestController and Test Agent etc, and that the test cases have been written
    in MTM already. 
          After that,i built the project,deployed the project and run the Coded UI Test on Test Agent machine,and i found it seems that he test cases run on different sessions.I have no idea how to config or set up to make sure all my test cases
    run just in one session.
        Could anyone help me,please?

    Hi dean.chen,
    >>I found it seems that he test cases run on different sessions.I have no idea how to config or set up to make sure all my test cases run just in one session.
    According to your description, could you please tell me what the different sessions are when you run the test cases in MTM?
    Why did you want to run the test cases in one sessions?
    where did you see the test cases run on different sessions?
    Could you please tell me how many test agents machine you use to run these automatic test cases in MTM?
    As far as I know that if you just use one test agent machine to run these automatic test cases in MTM, these test cases will be run one by one on the one test agent machine.
    To help you solve this issue, please tell me more detail message about this issue.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make sure subsribed events processed synchronous in BPEL

    Hi,
    We have a BPEL processing that is triggerred by subscribed EO events. How to make these received events to be processed one by one in BPEL?
    Thanks!
    Susan

    Hi James,
    When i created BPEL and i selected "Subscribed event" and i had no chance to select async and sync. becasue in the dropdown list for BPEL creation, there are async, sync and subscribed event, etc. and i only could choose one.
    Originally, i used mediator for subscribed events. In BPEL new version(1.1), it has subcribed events for BPEL. This is why i use BPEL instead of Mediator. After this switch i got record locking error because of its asynchronous processing. I'm thinking the mediator and BPEL should work same way for "Subscribed events".
    if there is no setup that i can approach for BPEL and make it processing as "Single thread", i will switch back to use mediator.
    Thanks for your reply!
    Susan

  • How to make sure that schema name is not included with generated sqls

    How to make sure that schema name is not included with generated sqls with tableadapter wizard.
    What should I use? Oledb, ODT.NET, where can set that I want "pure" sqls, not schemas, not ", or anything like this
    I want
    "Select a,b from t1" ,not "select "a","b" from schema.t1"
    Also schema name is put in all parameters, all over the place... What if schema name changes. (b1test to b1prod)
    . I now manually edit XML files of dataset. It works but....
    thanks

    The full hardware :
    Processor Intel core due 3.00 MHz
    RAM:1.5GB
    psu:650 Watt (but i baught i cheap one so it may be actually about 400 watt)
    HD Disk:160 GB
    But about the power supply if it not able to run the VGA card ,Is it will not show any screen or it will not able to run the computer??

  • Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times

    Time Capsule only works for one device at a time, how to make it capable to be used for multiple devices at times.
    Please help to set it up, thanks in advance

    You need to give more info..
    Firstly only works for what.. networking.. backup.. wireless. You need more nouns.. more adjectives... describe what you want and what fails.. then we can figure out why.
    Most likely you have bridged it when it should be in router mode..
    Most likely you are using Lion or ML which has the airport utility bridge the TC by default.
    Change it to working as a router. That might help.
    If you press reset button it will default back to router btw.
    If you are on Lion.. use a real utility. http://support.apple.com/kb/DL1547

  • HT4515 How to make sure that after browsing that the webpage is not running in the background, but totally closed down

    How to make sure that after browsing that the webpage is not running in the background, but totally closed down

    Double tap the Home button, tap & hold the Safari icon until it starts to wiggle, tap the red minus sign to remove it from the Multi-Tasking bar. Tap the Home button when finished.

  • I just upgraded to the new 4, but not sure how to make sure all my apps (purchases) get over to the new phone from iphone 3.  can't seem to find instructions. thanks.

    I just upgraded to the new iphone 4, but am hesitant to get it plugged in b/c I don't know how to make sure all the apps purchased on my iphone 3 get to the new phone.  can't seem to find instructions so I'm sure it just "does it", but hesitant to literally pull the plug.  thanks.

    Follow these instructions:  iPhone: Transferring information from your current iPhone to a new iPhone, http://support.apple.com/kb/ht2109

  • Can I find how many instances of BPEL process is in running state ?

    Hi,
    How can I find how many instances of BPEL process is in running state ? Any code/API ? help ? Thanks

    Check the class com.oracle.bpel.client.Locator...
    u can use the method listInstances(WhereCondition wc) to get the required details
    Regards
    Albin I

  • How to draw a perfect circle and how to make sure it is perfectly centered inside a square

    How to draw a perfect circle and how to make sure it is perfectly centered inside a square in Photoshop elements using the Ellipse option.

    1. Create a square canvas.
    2. With the Elipse tool, hold down Shift (Shift forces a circle). Draw the circle anywhere on the canvas (Shape 1 in this example).
    3. Simplify the circle layer
    4. Ctrl-click the layer to select the circle.
    5. Copy the selection to the clipboard (Edit > Copy).
    6. Deselect the selection.
    7. Paste from the clipboard (Edit > Paste). The pasted circle (Layer 1) will be centered.
    8. Delete the original circle layer.
    NOTE: Step 6 is the key. This guarantees that the pasted circle will be centered.
    If you want a circle completely within a square you can simply draw and simplify a circle on any shape canvas. Ctlrl-click the circle to to select it and copy to the clipboard.
    Then do File > New from Clipboard. This creates the circle cropped to a square on transparent background.

  • Would like to verify Time Machine backup but when I enter TM and then open iPhoto, it only provides me a gray window telling me the size of the file. How do I make sure all iPhoto pictures have been backed up on Time Machine?

    Would like to verify Time Machine backup but when I enter TM and then open iPhoto, it only provides me a gray window telling me the size of the file. How do I make sure all iPhoto pictures have been backed up on Time Machine?

    HaJo-aus-BS wrote:
    Since Snow-Leo time machine offers an option to verify backups, but I have found that it does not work for external disks attached by USB or FireWire.
    Yes, that's for network backups only. 
    What can I do to make sure that the backups are OK?
    You can tell if the File System (the various directories, catalogs etc.) is ok by repairing your backup drive, per #A5 in Time Machine - Troubleshooting.
    You can "spot check" whether the Time Machine "Star Wars" display seems correct.
    You can do a full system restore to another disk per #14 in Time Machine - Frequently Asked Questions, then start up from it and see if things are there and seem to work.
    You can keep "secondary" backups (always a good idea).  See #27 in the FAQ post for some suggestions.

  • HT200131 how to make sure only my laptop can connect to my apple tv?

    I don't want to see my flatmate apple tv under "connect"
    how to make sure I don't click on his tv accidentally and he won't be able to connect mine?
    thank you!

    Hey J-Justin,
    Great question! You can name your Apple TV to differentiate it from others in the AirPlay list:
    Apple TV: Change the name of your Apple TV - Apple Support
    http://support.apple.com/en-us/HT200028
    Furthermore, you can setup an onscreen code or password to restrict access for AirPlay. The password method sounds like the best option for your setup:
    Apple TV (2nd and 3rd generation): Understanding AirPlay settings - Apple Support
    http://support.apple.com/en-us/HT202618
    Set a password
    Go to Settings > AirPlay > Security > Password > [set password]. You can use this setting to require a password for AirPlay-enabled devices to connect using AirPlay on the Apple TV. Use this setting if your device will need permanent access and you only want to enter the password once.
    Thanks,
    Matt M.

  • How to make sure the maps are loaded though nokia ...

    Hi,
    I have downloaded new nokia map v.3.0109 to my nokia E75 and loaded maps by using nokia map loader (Asia).
    but still I cant see the all regional map which I downloaded, without usign live internet connection.
    How to make sure the maps are loaded properly to my mobile ?
    with regards
    Moderator's note: Email address removed. It is not wise to publish your personal information on a public forum.
    Message Edited by myn1126 on 27-Jan-2010 07:54 AM

    Hi,
    I have downloaded new nokia map v.3.0109 to my nokia E75 and loaded maps by using nokia map loader (Asia).
    but still I cant see the all regional map which I downloaded, without usign live internet connection.
    How to make sure the maps are loaded properly to my mobile ?
    with regards
    Moderator's note: Email address removed. It is not wise to publish your personal information on a public forum.
    Message Edited by myn1126 on 27-Jan-2010 07:54 AM

  • How to make Address Book obey Preferences? I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8  Address Book 5.0.3 (883) Preferences set at ... General First name following Last name   Sort for Last name Address Format Canada Font size Large Phone format set a

    How to make Address Book obey Preferences?
    I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8
    Address Book 5.0.3 (883) 
    Preferences set at ...
    General
    First name following Last name 
    Sort for Last name
    Address Format Canada
    Font size Large
    Phone format set at
    +1.123.456.7890
    When application quits - it's all forgotten and it self-resets to
    unwanted configuration.

    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.

  • How to give multiple inputs to syn BPEL process in Jdeveloper

    Hi,
    I am new to BPEL . I have created programs which takes single input and after processing displays single output. I want to give more than one input at run time (for ex. employee name,age, salary ) and want to display Multiple output after processing them Instead of Just one that I am doing currently. How I can do that using Synchronous BPEL process . Can some one tell that What will be learning time for BPEL using google and forums, for a 3 year exeperienced person in JAVA and new to BPEL.
    Yogendra Rishishwar

    Hi,
    You just need to change the XSD of your process.
    Someone posted something similar last week : How to change the input and output schema in BPEL process
    Hope it will help you ..
    romain.

Maybe you are looking for

  • Can not get access files from Windows 7 to Claims-based file authorization share

    We have AD level 2012R2, DCs running 2012R2 of course, and we have clustered File Server (3 FSNodes running 2012R2). We enabled 2 policies  KDC Support for claim Kerberos support for claim We created 1 claim type in ADAC (For example "Division" Sourc

  • Lenovo 3000 J115 Memory/RAM Problem

    Hi everyone. According to the Lenovo website, the Lenovo 3000 J115 machine type 7387 is capable of 4GB of RAM. It has two DIMM slots and supports single or dual channel DDR2 memory. I really wanted to run with 4GB of RAM and it was a deciding factor

  • Change the default service order type for repair order - RA

    When creating a repair order (RA), a service order of type SM03 is triggered. The default order type is SM03. How can I change the order type? Thanks in advance...

  • How to pass pdf documents through idocs

    I wanted to know how to pass pdf document along with a transaction code like sales order or travel expense manager with the help of IDOCs.

  • Solaris 10 x86, Linux binairy compatiblity

    Where is the feature ? How does it works ? Where can I find documentation ? Sun is announcing this new feature with all its big Solaris 10 marketing but I can't find anything technical about it . Do you have an idea ?