Can i have a BPEL process accept some attachments in Oracle..?!?

Hi friends...!
Can anybody please let me know if there is support for letting a BPEL Process accept some attachment (say an image, a doc, etc..) ??
Should we use SOAPwithAttachments(SwA) for this..??
Are there any examples for doing this..? Is it supported ?
I felt a better, more convenient way is to cleverly design a Human Task in-between...& have the first user "manually UPLOAD" a file as a task Attachment...[there is nice support for it in the Work-List App..!]
Please let me know your views on this ASAP..
Thanks a lot in advance...

Yes it can:
http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/manipdoc.htm

Similar Messages

  • Can we design the BPEL process using API's instead of JDeveloper

    hi' All,
    I might be sounding funnny, however I would like to know "Can we design the BPEL process in 11G from scratch using API's instead of JDeveloper"
    and is there some tutorial which talks about how to do this.
    thanks
    Yatan

    Hi,
    Designing a BPEL process without JDev will not be a good way to go, but you can deploy the process without JDev and also can change the dynamic parameters while deployment. For that you, need a separate ANT script. For Prod Env this is a very common thing.
    ~
    Joy

  • How many different way can we call a BPEL process

    Hi Guys,
    How many ways can we call a BPEL process
    I know 3 ways
    1 ) Thru PLSQL 2) using Java API 3) From another BPEL Process.
    are there any other ways .... if so what are they ..... .
    Thanks
    Tom...

    Hi Tom,
    your normal BPEL process (a regular process you create with the "new BPEL process" wizard), can be configured in Oracle application server to be accessible
    - via SOAP over HTTP or
    - via JMS
    since it is has a WSDL based service interface.
    JDeveloper as well allows additionally more options for starting a BPEL process such as a file based interface, an e-mail as a starter etc.
    Still, I like to see the ESB as a virtualizer of the endpoint protocol, so I suggest you model the BPEL process regularly, exposing its functionality through WSDL and use ESB services that wrap your BPEL process to deal with the actual endpoints.
    Cheers,
    Hajo

  • Can we prioritize certain bpel processes over others during execution

    hi
    I have a specific requirement in BPEL.
    I have some set of processes deployed on BPEL server in default domain. My requirement is out of the set of bpel processes one process should get executed immediately as soon as it is fired. Normally what is happening is if other processes are already invoked, once they are complete then only the processing of this bpel is getting completed.
    Can some one suggest me a way out where this process does not wait for other bpels to complete and gets executed independently.
    Thanks in advance
    Vamsi

    You should build that by yourself. Are you able to use a mechasim as semaphore? That one BPEL process can hold up others?
    http://orasoa.blogspot.com/2008/01/bpel-handling-semaphores.html
    Marc

  • File adapter unable to read file, can it call another BPEL process

    hi'
    I have a XML file to read and I am able to read it by using a File adapter, if the read is success the file is moved to success directory and if the file is invalid its going in the fail directory, now the question is If the file read is not valid at that moment can another BPEL process be invoked, becasue if the file read is invalid then the BPEL process dosent gets initiated due to which I am unable to do anything.
    please advice
    thanks
    Yatan

    Hi,
    You can use file rejection handler which can invoke a user defined BPEL process in case of invalid file. Check :
    http://www.oracle.com/technology/products/integration/adapters/pdf/Adapter_TN_004_Adapter_ErrorManagement.pdf
    HTH,
    Ketan

  • Can't access a bpel process from a standalone java client

    Hi i am using soa suite 10.1.3 and i'm trying to invoke a bpel process from a java client
    I am using the tutorial from this page: http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Tutorial7-InvokingBPELProcesses.pdf but i am trying to do the client in eclipse
    my class from where i want to invoke the proces looks like this:
    import java.rmi.RemoteException;
    import java.util.Map;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.ServerException;
    import com.oracle.bpel.client.dispatch.IDeliveryService;
    import com.oracle.bpel.client.NormalizedMessage;
    public class Invoke {
         public static void main (String args[])
              try {
                   Locator locator = new Locator("default", "bpel", (String)null);
                   IDeliveryService deliveryService =(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
                   String xml =
                        "<ssn xmlns=\"http://services.otn.com\">123456789</ssn>";
                   NormalizedMessage nm = new NormalizedMessage( );
                   nm.addPart("payload", xml );
                   NormalizedMessage res =
                        deliveryService.request("CreditRatingService", "process", nm);
                        Map payload = res.getPayload();
              } catch (ServerException e) {
                   e.printStackTrace();
              } catch (RemoteException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    The problem that i had firs was that the security.properties file could not be found in the config directory of the projects root. I think i resolved this problem by copying the context.properties file from teh rmi tutorial from the folder 102.InvokingProcesses and rename it.
    After this the error that occure was that the file ejb.properties could not be found in the same directory as the security file.
    Does anyone know how to resolve this problem or where did i miss anythink?
    I tried until now all the examples in the tutorial step by step and i couldnt manage to run one
    Thanks
    Best Regards Corneliu

    Thanks now it is working(i think)
    but i have a nother problem
    i got the folowing error:
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
         javax.naming.AuthenticationException: Not authorized [Root exception is javax.naming.AuthenticationException: Not authorized]
    my context.properties file looks:
    orabpel.platform=ias_10g
    java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
    java.naming.provider.url=opmn:ormi://RO1CC29C:6003:oc4j_soa/orabpel
    java.naming.security.principal=oc4jadmin
    java.naming.security.credentials=welcome1
    I haven't change any pasword since i have instaled the SOA Suite
    is the user and password right for a default user and password?

  • BPEL process and JMS to an Oracle AQ

    I have created a bpel process to read from a jms queue which is an Oracle AQ. Using the AQ adapter would be fine too. However I am not clear on the files to configure for oc4j-ra.xml and data-sources.xml and the correct values in the wsdl file for the queue to have everything talk. Does anyone have the steps, Given a database name of DB on port 1521 with a queue name xdb in the oe schema, what values need to be set.

    If you are using a JMS adapter in jdev, did you create your resource provider and jndi connections up in AS?

  • Can I have no transaction processing with esql (proc)?

    Hello all,
    I'm using embedded sql (via proc) and am trying to use the database without transaction processing. I am porting an application from Informix and this is possible with Informix . Is there some way to tell Oracle to autocommit or to turn off transaction processing?
    Thank you for your time.

    Can you connect?  I can not connect to it, but it shows in the finder. (and LG's detector utility)
    I get a:
    "the version of the server you are tryinng is not supported" when acessing a timemachine volume or via Finder>go>connect to server>afp://<ip>
    And fior a standard volume:
    "The server may not exist or is unavailble at this time"
    (ML Server)

  • Can an synchronous ESB process initiate an asynchronous BPEL process?

    I have a requirement to create a synchronous ESB service that initiates an aysnchronous BPEL process returning a success message to the requesting system.
    I can create an esb that receives a paylaod from the requesting system and returns a receipt message, I then created an asynchronous bpel process.
    Although I can initiate the asynchronous bpel process from the ESB I cannot work out how to send back the success message? The routing rules do not allow setting of outgoing messages unless you call a synchronous process?

    Can you make the BPEL process synchronous. Calling a asynchronous process breaks your synchronous message, because what happens if your asynchronous process takes longer that 1 minute. The synchronous process will timeout but the asynchronous process will complete.
    The previous note is correct you can use queues but all this will do is tell you that you posted correctly, you get the same result calling a web service. Asynchronous is fire and forget in a ESB world as it is stateless.
    cheers
    James

  • How can apply Oracle BPEL patch to Oracle BPEL Process manager??

    Hi, Gurus:
    I am new to Oracle BPEL Process manager, I successfully install Oracle BPEL Process manager, but I need to install Oracle BPEL patch and the examples within it.
    so I download bpelpatches.zip, it has over 106 MB.
    It contains:
    1. p4369818_101200_GENERIC.zip
    2. p4343748_101200_GENERIC.zip
    3. p4406640_101200_GENERIC_Patch01.zip
    4. p4469111_101200_GENERIC_Patch02.zip
    I am using window XP, how Can I apply these patches to my system??
    How can apply Oracle BPEL patch to Oracle BPEL Process manager??
    Thanks a lot!!
    Charlie

    don't see any invoke in your client against the intiate operation.. - which creates the correlation
    only 2 of them
    <invoke name="Invoke_1" partnerLink="PartnerLink_1" portType="ns1:CorrelatedBPELProcess" operation="receive1" inputVariable="Invoke_1_receive1_InputVariable"/>
    <invoke name="Invoke_2" partnerLink="PartnerLink_1" portType="ns1:CorrelatedBPELProcess" operation="receive2" inputVariable="Invoke_2_receive2_InputVariable"/>
    compared to this def of the process
    <portType name="CorrelatedBPELProcess">
    <operation name="initiate">
    <input message="client:CorrelatedBPELProcessRequestMessage"/>
    </operation>
    <operation name="receive1">
    <input message="client:CorrelatedBPELProcessRequestMessage"/>
    </operation>
    <operation name="receive2">
    <input message="client:CorrelatedBPELProcessRequestMessage"/>
    </operation>
    </portType>

  • Question: How to call a BPEL process from a PL/SQL procedure

    Hi All,
    Greetings to all BPEL people. I have a question on how can we call a BPEL process from a PLSQL procedure. It might be a stupid question but i wanted to know whether this fetaure is available in BPEL as our scenario requires us to explore if this functionality is available in BPEL.
    Please let me know and also if possible please send me the links for the tutorials if it is available.
    Thanks In Advance,
    Dibya

    Yes u can do it. there are two ways.
    1) First one is using utl_http package of PL/SQL
    In this case u can create SOAP request message & send it as Http request to your deployed BPEL process.
    This package provides some methods like
    set_header,write_text,get_response,read_text etc..
    Following is part of code which may be helpful to you.
    create or replace package body test_book_order_sub_pkg
    is
    FUNCTION test_book_order_sub(p_subscription_guid IN RAW,
    p_event IN OUT WF_EVENT_T
                                            Return VARCHAR2 IS
    soap_request varchar2(30000);
    soap_respond varchar2(30000);
    http_req utl_http.req;
    http_resp utl_http.resp;
    launch_url varchar2(240) ;
         begin
         DBMS_OUTPUT.Put_Line('Subscription : Order has been booked');
         soap_request:='<?xml version="1.0" encoding="UTF-8"?>
         <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header/>
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/BES_BookOrder">
    <ns1:BES_BookOrderProcessRequest>
    <ns1:input>725</ns1:input>
    </ns1:BES_BookOrderProcessRequest>
    </soap:Body>
    </soap:Envelope>';
    http_req:= utl_http.begin_request
    ('http://172.28.5.191:8888/orabpel/default/BES_BookOrder/1.0',
    'POST',
    'HTTP/1.1'
    utl_http.set_header(http_req, 'Content-Type', 'text/xml') ;
    utl_http.set_header(http_req, 'Content-Length', length(soap_request)) ;
    utl_http.set_header(http_req, 'SOAPAction', 'initiate');
         utl_http.write_text(http_req, soap_request) ;
    http_resp:= utl_http.get_response(http_req) ;
    utl_http.read_text(http_resp, soap_respond) ;
    utl_http.end_response(http_resp) ;
    DBMS_OUTPUT.Put_Line(soap_respond);
    return('SUCCESS');
    end test_book_order_sub;
    end test_book_order_sub_pkg;
    2) Second way is make your BPEL process listening to some database Queue(use AQ Adapter). & then put some message in tht queue from ur Pl/SQL code . This will also initiate BPEL instance. Check out AQAdapter tutorials.
    /mishit

  • Email Activity Not sending email when BPEL process fails

    In 11g SOASuite I have a BPEL process which does the following,
    1) Receive response from client
    2) Email activity - Notify with an id received in the request as content
    3) Insert data into a table using db adapter
    Whenever db adapter has some key violations or issues, I notice that no emails are getting dispatched. When I look at EM console it displays that txn has been rolled back after 3rd step. I understand that but it makes me ask this question,
    How can I make the process to send an email at step2 irrespective of an error that happens down stream at step-3? How to make email activity not part of this Txn scope?
    It works as expected(emails are dispatched) when there are no issues at step-3.

    Hi,
    In order to not rollback your transactions, you need to hit a dehydration point, meaning, save your process into the db store and perform a commit until that point.
    It sounds like a simple process, so you can drag a checkpoint activity after the email activity.
    That is one option. Try, and see if it works for you.
    Arik

  • Question on BPEL Process Performance

    Hello,
    We have a BPEL process reading the datafile through file adapter and upserting into DB using DB Adapter. Our requirement is
    If there are 10 records to process and two records (record 5 and 9) fail while inserting/updating for some reason(i.e data type mismatch, column length mismatch etc..), at the end of the process you should see 8 records in the destination table and two records in error table.
    I know there are solutions of this :
    *1) Multiple calls to DB:* Use a While loop in a BPEL process and Invoke DB adapter for each record and use exception handling(Catch all block).
    *2) Invoke Store Procedure:* to prevent multiple calls to DB, create a stored proc on DB side to iterate and insert the records and the stored proc should also return the IDs of failed records back as error response so that you can insert those failed records to a log table or in log files.
    Can you suggest which solution is best in terms of performance and why ??
    Also we need to perform some business validation (i.e NOT NULL check, date format check etc..), Where should we perform this.. at DB level or BPEL process level?? and why..
    Thanks,
    Buddhi

    BPEL is a slow performer.
    Always call a stored procedure to do complex data processings.
    Hence go with the second approach.
    Error records:
    If your going to log errors in the same database, insert the error details direcly into the error table. Dont go back to BPEL.
    Application specific validations should be handled in the application itself.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Automatic resubmission of BPEL process in activities tab

    Hi ,
    As part of exception handling solution , when there is a PL error we have configured the fault policy to send the BPEL to activities tab.
    In some situations there can be hundreds of BPEL process entering the activities tab. Is there an API or means to resubmit them automatically rather than doing it manualy?
    Thanks

    Hi Vikas,
    try with the UDML, you can copy and paste all the element object inside the Presentation Layer and paste in a text file like this, this is the UDML script to create a column inside the Presentation Layer:
    DECLARE FOLDER ATTRIBUTE "Subject Area".."- Client"."Client" AS "Client" UPGRADE ID 2150873025 LOGICAL ATTRIBUTE "Business Model"."Client"."Client"
         *DESCRIPTION {My client description}*
         PRIVILEGES ( READ);
    As you can see in the script the DESCRITPION. So if you write the descritpion for all you object and write the script inside a txt file (script.txt), then you can run this command to apply the change (in your case the DESCRIPTION) ath the Repository.
    <OBIEE_HOME>\OracleBI\Server\bin\nQUDMLExec.exe -UAdministrator -P Administrator -I script.txt -B original_rpd.rpd -O modified_rpd.rpd
    Probably you have to build a system to automate the generation of the UDML script.
    I hope it helps.
    Regards,
    Gianluca

  • How to pass a document as an attachment to a BPEL process?

    Hi Guys,
    Currently I have a BPEL process that get's invoked from a JSP page with some scriplets in it. The following bit of code calls the BPEL process in the JSP scriplet:
    try{       
    String givenNames = request.getParameter("givenNames");
    String sex = request.getParameter("sex");
    String title = request.getParameter("title");
    String staffMemberInd = request.getParameter("staffMemberInd");
    String deceasedInd = request.getParameter("deceasedInd");
    String archiveExclusionInd = request.getParameter("archiveExclusionInd");
    String archiveDt = request.getParameter("archiveDt");
    String purgeExclusionInd = request.getParameter("purgeExclusionInd");
    String purgeDt = request.getParameter("purgeDt");
    String birthDt = request.getParameter("birthDt");
    String salutation = request.getParameter("salutation");
    String preferredGivenName = request.getParameter("preferredGivenName");
    String emailAddr = request.getParameter("emailAddr");
    String autoEnableInd = request.getParameter("autoEnableInd");
    String xml = "<AddUserProcessRequest xmlns=\"http://xmlns.oracle.com/callistaAddUser\">"
    +"<surname>"+surname+"</surname>"
    +"<givenNames>"+givenNames+"</givenNames>"
    +"<sex>"+sex+"</sex>"
    +"<title>"+title+"</title>"
    +"<staffMemberInd>"+staffMemberInd+"</staffMemberInd>"
    +"<deceasedInd>"+deceasedInd+"</deceasedInd>"
    +"<archiveExclusionInd>"+archiveExclusionInd+"</archiveExclusionInd>"
    +"<archiveDt>"+archiveDt+"</archiveDt>"
    +"<purgeExclusionInd>"+purgeExclusionInd+"</purgeExclusionInd>"
    +"<purgeDt>"+purgeDt+"</purgeDt>"
    +"<birthDt>"+birthDt+"</birthDt>"
    +"<salutation>"+salutation+"</salutation>"
    +"<preferredGivenName>"+preferredGivenName+"</preferredGivenName>"
    +"<emailAddr>"+emailAddr+"</emailAddr>"
    +"<autoEnableInd>"+autoEnableInd+"</autoEnableInd>"
    +"</AddUserProcessRequest>";
    Locator locator = new Locator("default","bpel");
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload" , xml );
    NormalizedMessage res = deliveryService.request("AddUser", "process", nm);
    Map payload = res.getPayload();
    Element partEl = (Element) payload.get("payload");
    In my BPEL process I have a human task that I want to attach a document (WORD, PDF etc) to.
    My question is, how can I attach and pass a document as an input parameter to my BPEL process? and what kind of element do I need to create in the XSD file to hold the attached document?
    Any help with this is greatly appreciated.
    Thanks.
    Edited by: user9972209 on Aug 31, 2008 10:57 PM

    In our application, an attachment surfaces in the middle of the lifecycle, but not from the start.
    We were using the following to accommodate the attachment as the part of the payload ...
    <xsd:element name="AttachementMimeType" type="xsd:string"/>
    <xsd:element name="AttachmentMIMEStream" type="xsd:string"/>
    Hope this helps.

Maybe you are looking for

  • Data Federator:  Unioning Multiple Tables into single view possible?

    Hi, I have three different databases with tables containing a portion of the same kind of data and I want to union the three different tables together in Data Federator to present a single logical view that has the complete set of data.  Is this poss

  • Video tearing on iMac (Late 2006)

    Hi, My iMac has been suffering from what i think is video-tearing and horrible refreshrate for a week now. I'm thinking hardware problems. The video-tearing mainly comes up when the screensaver goes on but it's still annoying. The refreshrate is alwa

  • Input buttons do not render in Safari for Mac

    Hi, As a developer I am having difficulties with Safari when it comes to render forms and javascripts. many of them simply are ignored when rendering. I will appreciate if you can login into this page: http://www.headon.com.au/index.php?act=picpolls&

  • ORA-02046 Transaction Already Begun, NET

    I am developing a .NET Web application using C# with ODP.NET. The web application accesses a package created in Oracle 8i. The stored procedures that it contains access data through a dblink to a Oracle 9i database. The first time the web application

  • Project Excellence with SAP Learning Hub

    Never has securing SAP Project Excellence been easier than with the SAP Learning Hub.  Take a look at how two of our valued partners, Steria Mummert Consulting and Nomura Research Institute, are winning with this amazing complete cloud based learning