How to start a BPEL Process using the File Adapter

Hi
I would like to automatically start a BPEL Process when I store a file in a specific directory. Can this be done using the File Adapter?.
Regards,
Néstor Boscán

Yes, there are samples of how to do this in the BPEL samples directory.

Similar Messages

  • How to Call Custom BPEL Process using JSP

    Hi All,
    I m not able to find out the way " How to deploy Custom BPEL process using JSP." Suppose I m Designing my custom BPEL process , and I want to call process through JSP.
    In order to call the BPEL process using JSP I may get the Reference from Oracle guide, But it is for Existing Example like Hello world, Order Booking.
    But I am facing the problem in order to call the Custom BPEL process.
    In case of Oracle Example it looks Simple but How to call Custom BPEL process using JSP.
    Please help me.
    Thanks&Regards
    Devesh Mishra

    hi
    The BPEL Developer guide give the way to Locate the service.can you please specify where you are getting the problem.
    Thanks,
    Sivakumar

  • Can start a BPEL process using email?

    Hi all
    Is it possible to start a BPEL process for the event of an incoming email??
    Thanks!

    Hi
    Even if I still have the question above, I created a simple BPEL process to test it. The flow is:
    1) The process is started (by BPEL Console, for instance)
    2) Send an email to the specified user
    3) Wait for the email reply
    4) Receive the reply and finish.
    (seems like a 117 tutorial copy and paste no? :-)
    However I´m getting this error when the process is waiting (step 3):
    ORABPEL-02152
    Instance not found in datasource.
    The process domain was unable to fetch the instance with key "506" from the datasource. Please check that the instance key "506" refers to a valid instance that has been started and not removed from the process domain.
    The instance 506 is the process instance and it is there.
    Looking at BPEL Server logs, I found another related error:
    Caught exception while performing 506-BpRcv1-BpSeq0.3-7 work item faultName: {{http://services.oracle.com/bpel/mail}onMessageFault}
    messageType: {null}
    parts: {{summary=<summary>faultName: {{http://services.oracle.com/bpel/mail}onMessageFault}
    messageType: {null}
    parts: {{summary=&lt;summary&gt;EOF on socket&lt;/summary&gt;}}
    </summary>}}
    Environment is a IAS 10.1.2 Release 2 on a Linux box.
    Can you help-me?

  • Cannot process a Fixed Field Length file using the File Adapter (Sender)

    Hi -
    I have checked throughout these posts and blogs but I still have not been able to find a solution to my issue.  When using the File Adapter (Sender) I get a Conversion initialization failed with "xml.keyfieldName", no value found.  Why would I require a key field when I am using fixed field lenghts?  The file is comprised of 2 structures - 1 header and multiple details (see below).  There are no key fields in the flat file that I would be able to use.  Any suggestions?
    011000390      Customer Americas        20080605164317 000000000000000800000008000000000016000000                              
    12345678          100500       100500       Supplier 1                         0000000000030000002008040400                    
    12345678          100501       100501       Supplier 2                         0000000000052000002008042100 
    The File Adapter is configured as follows:
    Document Name = Rfchke00
    Document Namespace = 'my namespace'
    Recordset Name = Rfchke00
    Recordset Structure = Dtachkh,1,Dtachkp,*
    Recordset Sequence = Ascending
    Recordsets per Message = 1
    Key Field Type = String (Case-Sensitive)
    Dtachkh.fieldFixedLengths = 15,25,8,6,1,8,8,8,15,3,31
    Dtachkh.fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11
    Dtachkh.processFieldNames = fromConfiguration
    Dtachkp,fieldFixedLengths = 18,13,13,35,15,3,8,2,21
    Dtachkp,fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9
    Dtachkp,processFieldNames = fromConfiguration
    Thanks,
    Dave

    Hi,
    you can use the module from which u can convert your structure to
    H011000390 Customer Americas 20080605164317 000000000000000800000008000000000016000000
    D12345678 100500 100500 Supplier 1 0000000000030000002008040400
    D12345678 100501 100501 Supplier 2 0000000000052000002008042100
    Please note the extra H,D in the struture added by the module.
    You can then use them as your key fieldValues.. The module should be deployed in Visual Admin and then can be used in the Module tab of your adapter CC
    While writing the content conversion after that please dont forget about the added new characters
    Please note also that i can find that the word supplier kept repeating in all the Dtachkp records
    Please use that
    Also if you feel that the field is of 13 characters and that would cause a problem dont worry... create a dummy field eg split tht 13 to two fields and use the common one as key field Value and identifier... as i see in ure case its like 500 Supplier , 502 Supplier . u can split the first 4 char and the remaing 9 char are key field value.
    try this out
    Rgds
    Aditya

  • PI needs to obtain a zip file via FTP using the File adapter

    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
    Regards,
    Raul Alvarado

    Hello Raul,
    you can do it in futher way ...
    pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
    @ then Use another sender communication channel to pickup all these text file .
    for further clarification you can use these links also. -
    Process txt files in zip file
    Accessing File using FTP from Java Mapping
    File Sender Adapter with FTP protocol
    BR
    Raj

  • Security issues when using the file adapter

    I want to use the file adapter, and in the documentation it states that you can use "directories" and "ftp".
    I want to transfer a file secure and both of these options are not really secure.
    Directory reading is not really secure when you read files from a windows share (SMB protocol).
    Is it possible to make a share more secure in a windows environment?
    In an ftp session everybody can steal the password. Is there a possibility to use "sftp"? Or will this be available?

    Currently we dont have, but we will have it soon.

  • How to configure proxy services to use the file transport?

    Hi,
    I have configured a proxy service to poll for files in the specified folder. And it is configured to use the file transport.
    At runtime, I'm getting the follwing exception -
    <Apr 27, 2012 4:08:28 PM GMT+05:30> <Error> <WliSbTransports> <BEA-381602> <Error encountered while polling the resource for the service endpoint ProxyService$ServiceTypes_SB$BinaryService: javax.naming.NameNotFoundException: While trying to lookup 'wlsb.internal.transport.task.queue.file' didn't find subcontext 'wlsb'. Resolved ''; remaining name 'wlsb/internal/transport/task/queue/file'
    javax.naming.NameNotFoundException: While trying to lookup 'wlsb.internal.transport.task.queue.file' didn't find subcontext 'wlsb'. Resolved ''; remaining name 'wlsb/internal/transport/task/queue/file'
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
         at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
         Truncated. see log file for complete stacktrace
    Request help to resolve this.
    Thanks in advance.
    Regards
    Shyam.V

    Only the business service would rely on the JMS queues, which in turn would trigger an MDB. I have tested the business service and it works fine.
    The problem is only with the polling part of the proxy service.
    Regards
    Shyam.V

  • Can I use the File Adapter to transfer files from/to my own PC

    Hello,
    Would it be possible to set tu the file adapter to send or receive files from my own PC's file system?
    For example I would like to transfer a file from my PC to PI instead of using PI's file system?
    Can I do that?
    Thanks
    Marcelo

    If your PC has Windows-based system, SAP XI is Unix-based, you have a problem: Unix can't connect to UNC-path - Unix doesn't understand path like this "
    mywindowspc\myfilesharefolder\", and Windows can't mount unix-drives. There are has a tool that can mount Windows UNC-file-share on NTFS like dirive UnixFS - but this tool is not freeware and has a problem when you switch off your PC without unmounting your Windows-dirives on Unix system. You can use a SAMBA, but Admins doesn't like to install this to Unix...
    So, if you want to use a File Adapter you can set only FTP path, create FTP-site on your own PC, and so on...
    Another way to send information from/to your own PC is "Plain J2SE Adapter Engine". This is a standalone part of SAP XI, you install it on your PC, configures URL of XI pipline, sets local folders to transfer from/to your PC, masks and types of your files, time to sending, any rules and DOS-commands for "before/after sending and receiving" and so on...
    In case of sending files from PC to XI, files transforms to XI-payload inside this Adapter Engine and then goes like XI-message to pipeline... When you send it back, payloads come to this Adapter Engine and transform to files on your PC.
    I used this Plain J2SE AE on my working notebook for checking sending messages to many different XI Systems.
    For more info: http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/content.htm
    Regards.

  • Can I control  filenaming when archiving  files using the file adapter?

    Hi folks,
    Is there anyway to control the filename used when the File Adapter writes out to an archive?
    Second question, I also need to be able to pass a "filename" to the adapter from an "input file." Is there a way to do this in the file adapter?
    Sincerely,
    lpac

    Hi,
    I have done that with the ftp adapter. In the .xsl file I wrote the following after the <xsl:stylesheet version="1.0" ....> tag:
    <xsl:variable name="INFILENAME" select="ehdr:getRequestHeader('/fhdr:InboundFTPHeaderType/fhdr:fileName','fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')"/>
    <xsl:template match="/">
    <xsl:variable name="OUTFILENAME"
    select="ehdr:setOutboundHeader('/fhdr:OutboundFileHeaderType/fhdr:fileName', $INFILENAME, 'fhdr=http://xmlns.oracle.com/pcbpel/adapter/file/;')"/>
    <opaque:opaqueElement>
    <xsl:value-of select="/opaque:opaqueElement"/>
    </opaque:opaqueElement>
    </xsl:template>
    </xsl:stylesheet>
    To use this with the file adapter, you would have to wirte file where is written ftp.
    Hope this helps,
    Zaloa

  • How to invoke WebService / BPEL process using stubs in Jdeveloper 10g

    HI,
    I created the SyncHelloworld BPEL process as given in tutorial 1.
    Now I created a new project to call this BPEL from Java client.
    I used the JDeveloper to create the stub/skeleton using the wizard by specifying the WSDL file location.I also created the main method by selecting the checkbox in the wizard.
    Now I want to invoke this SyncHelloWorld. There is a method called process. It expects a Element as input and returns a Vector.
    Now how do i pass a string ( which the SyncHelloWorld process expects ) from the main method and call the process method.
    Has anyone tried this ? I am new to this technology.
    What I am trying to do is trying to invoke a webservice. I have the WSDL file and its location. What all I need to do is pass the required parameters as an Element and get the output as Vector.
    Any help would be highly appreciated.
    Thanks,
    Debojyoty

    Hi,
    Did you tried it from the generic soap tester online from that site, or did you download some client testtool ?
    myserver:9700 cant be reached from the site where you're trying to test it.
    this is an internal host.
    or if it can be reached from outside..maybe some firewall problem?
    Message was edited by:
    Eric Elzinga (IT-Eye)

  • How to start a gp process using adobe interactive form.

    Hi ,
    I know that in Guided Procedure it is possible to start a GP Prosees using Adobe form and I am trying to do develop the same scenarion in CE. So can anyone of you tell me about the pre-requisites. What specific configurations should be done in GP, and SMTP Server and NWA to start a gp process by using an Adobe Form.
    Thanks and Regards
    Avijit

    Hi Avijit,
    go through this doc[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e98c87ea-0c01-0010-3798-a4f8db2411c5]
    hope it hlps u...
    Regards,
    Khushboo

  • How to create a inputstream without using the file operation

    Hi friends
    In my application, I have to create a Streamsource object using the below constructor:
    public StreamSource(InputStream inputStream)
        Construct a StreamSource from a byte stream. Normally, a stream should be used rather than a reader, so the XML parser can resolve character encoding specified by the XML declaration.
        If this constructor is used to process a stylesheet, normally setSystemId should also be called, so that relative URI references can be resolved.
    Parameters:
        inputStream - A valid InputStream reference to an XML stream.*[http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) |http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/stream/StreamSource.html#StreamSource(java.io.InputStream) ]*
    But for creating the inputstream, i am creating a tempory file, ie I am using fileinputstream.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.StringReader;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    public class SourceConvertor
        private static Source convertStaxToStream(Source request)
    // here the argument to this method is StaxSource and the return type is StreamSource
            TransformerFactory factory = TransformerFactory.newInstance();
            Transformer transformer = null;
            File fp = null;
            FileInputStream fInp = null;
            try
                transformer = factory.newTransformer();
                fp = new File("tempFile.txt");
                transformer.transform(request, new StreamResult(fp));
                fInp = new FileInputStream(fp);
            } catch (Exception e)
                e.printStackTrace();
            return new StreamSource(fInp);
        public static void main(String args[])
            try
                String message ="<author><name>Rai</name><book>GodOfSmallThings</book></author>";
                Source original = new StreamSource(new StringReader(message));
                Source converted = convertStaxToStream(original);
                TransformerFactory factory = TransformerFactory.newInstance();
                Transformer transformer = factory.newTransformer();
                transformer.transform(converted, new StreamResult(System.out));
            catch (Exception e)
                // TODO Auto-generated catch block
                e.printStackTrace();
    This is not at all a good aproach because evey time it is creating a new file.
    So can anyone suggest a better aproach or idea or a simple code snippet so that i can create the inputstream without creating a temporary file.
    Thanks in advance:
    *[http://www.javamilestone.blogspot.com/  |http://www.javamilestone.blogspot.com/  ] *

    Err, a StreamSource is a Source. Check the Javadoc. You can pass it directly to the transform.

  • How to start a database by copying the files(tablespace, redo, ctl files)

    Hi,
    I have two databases called Q1 and Q2. I am planning to copy from a cold backup files from Q1 to Q2 database.
    could anybody will provide the steps involved in how to copy from one database to another and how to rename the target database after copying and renaming the files in the target database to up and run?
    Please help.
    Thank you.

    For Oracle version from 9i the steps are :
    Perform Cold Backup of the Production database
    1. Note down the datafile, controlfile and redologfile locations on proddb
    2. Shutdown the production database Ensure clean shutdown.
    3. Copy the database files (datafiles, logfiles, controlfiles and parameter file) into the clone destination.
    4. Modify the parameter CONTROL_FILES in the pfile for clonedb to reflect
    the new path of the control files.
    1. Mount the database and rename the datafiles and redolog files.
    export ORACLE_SID=clonedb
    DB02> sqlplus / as sysdba
    DB02> startup mount
    DB02> alter database rename file '/u01/<path_to_proddb_files>/<filename>' to '/u01/<path_to_clonedb_files>/<filename>'
    2. Rename the database with the dbnewid (nid) utility
    3. Edit the pfile and update the new database name
    Modify parameter DB_NAME to reflect the new database name.
    also ensure you make necessary changes to the environment for ORACLE_SID, ORACLE_HOME
    as needed.
    4. Open the clone database.

  • Dynamic Destination based on data in message using the File adapter

    I am unsure of where to start searching for a clue as to how to impement this. Any comments would be much appreciated.
    Scenario
    IDOC   -
    > XI -
    > File adapter -
    > File System
    (DESADV)                                                        (Variable based on info in DESADV. ie Site)
    Essentially I wish to use XI as a router and transformer for certain message types depending on the data within the message itself.
    Is anyone aware of any documentation around this kind of scenario ?
    Additional Notes
    There is the possibilty of have up to 1000 different destinations from the same message, but the message will ONLY be sent to the site addressed within.
    thanks in advance ..

    Hi Richard,
    The scenario requirement is not yet very clear.
    But if you want to route the Idoc to different receiver systems depending the payload value, you may configure it in ID with different business services and then using conditional Receiver Determination using XPath.
    That is one way, and if you want to use the same receiver service and only 100 different target folders on the File System, then you can surely use the Variable Substitution for the Target Directory in NFS File Adapter. You can build the target path with from the payload value in variable substitution table under the advanced tab in File Adapter. Remember to set the "Create Target Directory" indicator under Target tab.
    Hope one of these might be a solution for you. Let me know if you need more detailed information.
    Regards,
    Suddha

  • Which user is used to pick-up and archive files using the file adapter?

    Hi guys,
    which one it is? is it XIPADM?
    thank you,
    Olian

    Hi! Olian,
    You can get archive the file from FTP Server also or else even you can kept the folderrs in your local machine also....its your choice..
    Suppose if you want to Keep and archive directory or else a folder of another copy at which you are sending files from XI  you can follow the below steps...
    1. While configuring the Sender File Adapter you can select the option of ARchive directory ....there in File Adapter Parameters..
    2. Select that radio button and then create first one seperate folder in FTP location and then you can enter that directory path name in the Archive directory 3. Also if you want to delete the files from where the XI is picking the files from the source directory means select option called Delete.......
    3. Then automatically it will be deleted once the file is picked and also it can maintain another copy file in the archive folder or directory...
    I hope it can be useful to you.and this is sufficent to you...
    Regards:
    Amar Srinivas Eli

Maybe you are looking for

  • Variance calculation at reporting level

    Dear All, There are two key figures in my report - Plan and Actual amount. Now user wants to see the variance between these two in % terms. Formula is ( Acutal - plan )/plan *100 . Now this formula works when plan value is not zero when ever the plan

  • Compilation problem in 510

    Product=WLS510 Revision=(Release Level)=510 Problem Description= Hi, So far my application is running with WebLogicServer 451. Now I want to update it from 451 to 510. I have make file which compiles my classes. I looked at the documentation and foun

  • Issues with External Sound Devices & others - 13" Late 2011

    Good day community, Out of curiosity, I run Diablo 3 on OS X and its been unplayable since ROS expansion, massive fps drops and crashes, Blizzard claims Apple stopped improving hd3000 drivers on 10.8.3, is this true? Also when I run the game through

  • How do I archive emails in mail and then delete them from my inbox?

    I need to archive a bunch of emails for a project, and I know that if I put them in a mailbox and then delete them from my inbox, they're gone. So, what's the most efficient way to save 100s of emails that will eventually need to be filed within a pr

  • Sun ONE - compile OK, disaster follows; Eclipse - compile fails

    I hope Sylvia won't rap my knuckles with her ruler for posting an "it won't compile" message here, but this one is more than a bit strange. I was running Sun ONE Studio. It compiles my program w/o errors; then the application runs and crashes my Wind