Process polling records in bpelx:exec help

I have a process which polls the database table for new records. After getting the new database records, i like to pass all records to a process activity called 'Java embedding'. I have to do this because i have to concatenate a column (called file_name) for all records and put in into a queue. The problem is I don't know how to generate java classes for the database table so that I can retreive polling records in the <bpelx:exec> before i can concatenate them and then put them into the queue. I don't know if i have to do any additional setup to get the java classes generated.
Please help,
thanks

I already found out how to do it. But I have another problem.
I could not retrevie the from <bpelx:exec> using the code below:
Element element = (Element) getVariableData("vinDecoderInput");
IVinTranslationsCollection requests =
IVinTranslationsCollectionFactory.createFacade(element);
List vinTranslations = requests.getIVinTranslations();
int count = vinTranslations.size();
addAuditTrailEntry("count is " + count);
The count always equals to 0.
It is not working for what looks like a bug in b2 in java.
Does anybody has any idea about it?
thanks,

Similar Messages

  • How to process next record in oracle PLSQL

    Hi,
    I am processing below record set with the help of BULK COLLECT in Oracle PLSQL Procedure. While processing I am checking model is one that need not be substituted. If it is 'NA' or 'N/A', I need process next record (marked as bold in code snipet)
    Please guide me how to do it ?
    TYPE t_get_money IS TABLE OF c_get_money%ROWTYPE INDEX BY BINARY_INTEGER;
    L_money t_get_money ;
    L_subst_model VARCHAR2(40);
    L_Notify_Manager     VARCHAR2(1);
    L_grade          VARCHAR2(20);
    L_Error_Message     VARCHAR2(1);
    BEGIN
    OPEN c_get_money ;
    FETCH c_get_money BULK COLLECT INTO L_money ;
    CLOSE c_get_money;
    FOR I IN 1..L_money.count LOOP
    -- check if the model is one that need not be substituted
    IF (upper(L_money(i). subst_model) in ('N/A', 'NA')
    THEN
    L_NOTIFY_MANAGER(I) := 'Y';
    L_GRADE(I) := 'ERROR';
    L_error_message(i) := 'substitute Model is not N/A or NA' ;
    -------Here I want to process NEXT RECORD--------
    END IF ;
    END;

    One of the solution for below version of 11g...
    DECLARE
         TYPE t_get_money IS TABLE OF c_get_money%ROWTYPE
                                       INDEX BY BINARY_INTEGER;
         L_money              t_get_money;
         L_subst_model        VARCHAR2 (40);
         L_Notify_Manager   VARCHAR2 (1);
         L_grade              VARCHAR2 (20);
         L_Error_Message    VARCHAR2 (1);
    BEGIN
         OPEN c_get_money;
         FETCH c_get_money
         BULK COLLECT INTO L_money;
         CLOSE c_get_money;
         FOR I IN 1 .. L_money.COUNT LOOP
              IF UPPER (L_money (i).subst_model) IN ('N/A', 'NA') THEN
                   GOTO Nextrecord;
              END IF;
              L_NOTIFY_MANAGER (I)   := 'Y';
              L_GRADE (I)              := 'ERROR';
              L_error_message (i)    := 'substitute Model is not N/A or NA';
            <<Nextrecord>>
              NULL;
         END LOOP;
    END;One of the solution for 11gR1 and above...
    DECLARE
         TYPE t_get_money IS TABLE OF c_get_money%ROWTYPE
                                       INDEX BY BINARY_INTEGER;
         L_money              t_get_money;
         L_subst_model        VARCHAR2 (40);
         L_Notify_Manager   VARCHAR2 (1);
         L_grade              VARCHAR2 (20);
         L_Error_Message    VARCHAR2 (1);
    BEGIN
         OPEN c_get_money;
         FETCH c_get_money
         BULK COLLECT INTO L_money;
         CLOSE c_get_money;
         FOR I IN 1 .. L_money.COUNT LOOP
              IF UPPER (L_money (i).subst_model) IN ('N/A', 'NA') THEN
                   CONTINUE;
              END IF;
              L_NOTIFY_MANAGER (I)   := 'Y';
              L_GRADE (I)              := 'ERROR';
              L_error_message (i)    := 'substitute Model is not N/A or NA';
         END LOOP;
    END;

  • Bpelx:exec - how to get Schema document.

    Hi ALL,
    I am using FileAdpter to read a file. I have few Schemas defined which are not coming through file. I have to initialize schema and I am adding value to their node. Mostly schema elements are boolean so either "true" or "false" comes.
    Here is code I have written.
    I have taken global variable of one schema.
    <variables>
    <variable name="ReceiveEdi272Batch_InputVariable"
    messageType="ns1:Read_msg"/>
    <variable name="Variable_Context" element="ns6:SFEdi272ToCiecaBmsContext"/>
    <variable name="Variable_FileName" messageType="ns9:InboundHeader_msg"/>
    </variables>
    Then I have assign node which sets value to "Variable_Context" as under.
    <assign name="Assign_Variables">
    <copy>
    <from expression="true()"/>
    <to variable="Variable_Context"
    query="/ns6:SFEdi272ToCiecaBmsContext/ns6:GenerateEdi997Xml"/>
    </copy>
    <copy>
    <from expression="true()"/>
    <to variable="Variable_Context"
    query="/ns6:SFEdi272ToCiecaBmsContext/ns6:DoExtraPrintImageStuff"/>
    </copy>
    <copy>
    <from expression="true()"/>
    <to variable="Variable_Context"
    query="/ns6:SFEdi272ToCiecaBmsContext/ns6:UseOuterCIECATag"/>
    </copy>
    <copy>
    <from variable="Variable_FileName" part="inboundHeader"
    query="/ns9:InboundFileHeaderType/ns9:fileName"/>
    <to variable="Variable_Context"
    query="/ns6:SFEdi272ToCiecaBmsContext/ns6:Edi997Context/ns7:EdiFileName"/>
    </copy>
    </assign>
    Now I need this Schema object into my Java Code to call already build API of my company which I can't change. so I am doing as under which throws me ClassCastException.
    <<<<<<<<<<<<<< bpelx:exec Code >>>>>>>>>>>>>>>>>>
    * This value comes from Adapter and runs successfully.
    ediFilename = (String) getVariableData("Variable_FileName", "inboundHeader", "/ns9:InboundFileHeaderType/ns9:fileName");
    * This throws ClassCastException.
    Element xml = (Element) getVariableData("Variable_Context", "/ns6:SFEdi272ToCiecaBmsContext");
    I tried to use XMLElement, and all other possible casting but I am getting ClassCastException.
    So my questions is what does this returns???????????
    The Exception details are as follow:
    <2006-09-19 14:49:25,848> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Done processing File : D:\SFSDTest\inputDir\sf272.d060526.t122130658.w6
    06/09/19 14:49:25 java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
    06/09/19 14:49:25      at bpel.sfsdassignmentbatch.ExecLetBxExe7.execute(ExecLetBxExe7.java:114)06/09/19 14:49:25      at com.collaxa.cube.engine.ext.wmp.BPELXExecWMP.__executeStatements(BPELXExecWMP.java:49)
    06/09/19 14:49:25      at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:197)
    06/09/19 14:49:25      at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3266)
    06/09/19 14:49:25      at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1696)
    06/09/19 14:49:25      at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
    06/09/19 14:49:25      at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:184)
    06/09/19 14:49:25      at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:269)
    06/09/19 14:49:25      at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5239)
    06/09/19 14:49:25      at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1082)
    06/09/19 14:49:25      at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:527)
    06/09/19 14:49:25      at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:332)
    06/09/19 14:49:25      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    06/09/19 14:49:25      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    06/09/19 14:49:25      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    06/09/19 14:49:25      at java.lang.reflect.Method.invoke(Method.java:585)
    06/09/19 14:49:25      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    06/09/19 14:49:25      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    06/09/19 14:49:25      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    06/09/19 14:49:25      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    06/09/19 14:49:25      at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
    06/09/19 14:49:25      at java.security.AccessController.doPrivileged(Native Method)
    06/09/19 14:49:25      at javax.security.auth.Subject.doAs(Subject.java:396)
    06/09/19 14:49:25      at com.evermind.server.ThreadState.runAs(ThreadState.java:620)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    06/09/19 14:49:26      at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    06/09/19 14:49:26      at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    06/09/19 14:49:26      at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
    06/09/19 14:49:26      at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
    06/09/19 14:49:26      at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
    06/09/19 14:49:26      at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    06/09/19 14:49:26      at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    06/09/19 14:49:26      at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
    06/09/19 14:49:26      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    06/09/19 14:49:26      at java.lang.reflect.Method.invoke(Method.java:585)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    06/09/19 14:49:26      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    06/09/19 14:49:26      at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    06/09/19 14:49:26      at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
    06/09/19 14:49:26      at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
    06/09/19 14:49:26      at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
    06/09/19 14:49:26      at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    06/09/19 14:49:26      at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    06/09/19 14:49:26      at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    06/09/19 14:49:26      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    06/09/19 14:49:26      at java.lang.Thread.run(Thread.java:595)
    Please help.
    Thanks and Regard,
    Bhavesh Thaker.

    Hi,
    It's done.
    Basically "getVariableData"Variable_Context", "/ns6:SFEdi272ToCiecaBmsContext");" returns "org.w3c.dom.Node"
    Now facing new problem of FileAdapter. I am going to create new Case so you can find there details.
    Thanks and regards,
    Bhavesh Thaker

  • How to process each records in the derived table which i created using cte table using sql server

    I want to process each row from the CTE table I created, how can I traverse from first row to second row and so on....
    how to process each records in the derived table which i created using  cte table using sql server

    Ideally you would be doing a set based processing rather than traversing row by row as thats more efficient. To answer it specific to your scenario we may need more info. Can you explain with some sample data your exact requirement?
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Processing Several Records in a CSV File

    Hello Experts!
    I'm currently using XI to process an incoming CSV file containing Accounts Payable information.  The data from the CSV file is used to call a BAPI in the ECC (BAPI_ACC_DOCUMENT_POST).  Return messages are written to text file.  I'm also using BPM.  So far, I've been able to get everything to work - financial documents are successfully created in the ECC   I also receive the success message in my return text file.
    I am, however, having one small problem...  No matter how many records are in the CSV file, XI only processes the very first record.  So my question is this: Why isn't XI processing all the records?  Do I need a loop in my BPM?  Are there occurrence settings that I'm missing?  I kinda figured XI would simply process each record in the file.
    Also, are there some good examples out there that show me how this is done?
    Thanks a lot, I more than appreciate any help!

    Matthew,
    First let me explain the BPM Steps,
    Recv--->Transformation1->For-Each Block->Transformation2->Synch Call->Container(To append the response from BAPI)->Transformation3--->Send
    Transformation3 and Send must be outside Block.
    Transformation1
    Here, the source and target must be same. I think you must be know to split the messages, if not  see the below example
    Source
    <MT_Input>
    <Records>
    <Field1>Value1</Field1>
    <Field2>Value1</Field2>
    </Records>
    <Records>
    <Field1>Value2</Field1>
    <Field2>Value2</Field2>
    </Records>
    <Records>
    <Field1>Value3</Field1>
    <Field3>Value3</Field3>
    </Records>
    </MT_Input>
    Now , I need to split the messages for each Records, so what I can do?
    In Message Mapping, choose the source and target as same and in the Messages tab, choose the target occurrence as 0..Unbounded.
    Now,if you come to Mapping tab, you can see Messages tag added to your structure, and also you can see <MT_Input> occurrence will be changed to 0..unbounded.
    Here is the logic now
    Map Records to MT_INPUT
    Constant(empty) to Records
    Map rest of the fields directly. Now your o/p looks like
    <Messages>
    <Message1>
    <MT_Input>
    <Records>
    <Field1>Value1</Field1>
    <Field2>Value1</Field2>
    </Records>
    </MT_Input>
    <MT_Input>
    <Records>
    <Field1>Value2</Field1>
    <Field2>Value2</Field2>
    </Records>
    </MT_Input>
    <MT_Input>
    <Records>
    <Field1>Value3</Field1>
    <Field3>Value3</Field3>
    </Records>
    </MT_Input>
    </Message1>
    </Messages>
    raj.

  • Calling java classes using bpelx:exec (Java Embedding) Erorr

    I try to add java embedding activity.
    So, I add code in this activity:
    <bpelx:exec name="Java_Embedding_1" language="Java" version="1.4"><![CDATA[Element ele=(Element)getVariableData("/StringForSubject");
    ]]>
    </bpelx:exec>
    where ("/StringForSubject") is local variable of scope activity, where situated java embedding activity.
    Try to compile, but JDeveloper show error message:
    Error: Java compilation failed. Failed to compile file(s) "test.bpel". Exception reported is: test.bpel:1156: Class bpel.p0.Element not found. Element ele=(Element)getVariableData("/StringForSubject"); ^ test.bpel:1156: Class bpel.p0.Element not found. Element ele=(Element)getVariableData("/StringForSubject"); ^ 2 errors Please verify that file test.bpel is valid java file or if all required libraries are included in your classpath.
    How can i solve this problem.
    Thank You!!!!

    add an import at the top of the process .. or specify the package ..
    org.w3c.dom.Element
    hth clemens

  • Can not create planning function types (for process empty records)

    Hi! SAP Experts,
         I want to copy 0RSPL_FORMULA to another function types for processing empty records, ZRSPL_FORMULA. I checked this function type via RSPLAN, there is no error!.   But when i try to use it in planning modeler. We found the error message "Infoobject 1FORMULA is does not available in version A". Do we need to create this infoobject?... Anyone know, please let me know.
    Thanks,
    Sake

    Hi!,
    Thanks for your help but I've already put that parameter,HIDDENFORMULAVARTAB->1FORMULA, in my planning function, ZRSPL_FORMULA. I validated it and no error found. But when I go to planning modeler, in web browser, and try to create a new planning function based on ZRSPL_FORMULA. I found the problem as I mention in previous message, "infoobject 1FORMULA is not available in version A". I try to search this infoobject in my system. The result is there is no this infoobject in my system. So, my question is do i need to create it with myself? What kind of infoobject i have to create? Key Figures or Characteristics?
    Anyway, If I have to do this, why 0RSPL_FORMULA still used as normal.
    Brgds,
    Sake

  • How can i initialize variables and append variable in bpelx:exec

    I want to know how to initialize variables in bpelx:exec.
    I try to use java embedded activities for dynamic sql query. But I meet some problems that cannot assign the data to tempVariable. because I don't initialize tempVariable. but I can't initial variables in java embedded actitvities. How can i initialize variables in bpelx:exec ?
    and I want to know to extend child Elment of tempVariables dynamically in bpelx:exec ?
    here is my source.
    <bpelx:exec name="callEmpDB" language="java" version="1.5">
    <![CDATA[
    String url = "jdbc:oracle:thin:@127.0.0.1:1521:wonchoi";
    String user = "scott";
    String passwd = "tiger";
    int index = 1;
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    Node node = null;
    try{                             
    conn = DriverManager.getConnection (url, user, passwd);
    stmt = conn.createStatement();
    String wherescript = "";
    Element empno = (Element)getVariableData("inputVariable","payload", "/client:selConnectDBProcessRequest/client:empno");
    Element ename = (Element)getVariableData("inputVariable","payload", "/client:selConnectDBProcessRequest/client:ename");
    Element job = (Element)getVariableData("inputVariable","payload", "/client:selConnectDBProcessRequest/client:job");
    Element deptno = (Element)getVariableData("inputVariable","payload", "/client:selConnectDBProcessRequest/client:deptno");
    String sql = "select empno, ename, job, mgr, hiredate, sal, comm, deptno from emp where 1 = 1 ";
    if(empno != null && empno.getTextContent() != null && !empno.getTextContent().equals("") )
    wherescript = wherescript + " and empno = " + empno.getTextContent() ;
    if(ename != null && ename.getTextContent() != null && !ename.getTextContent().equals("") )
    wherescript = wherescript + " and ename like '" + ename.getTextContent() +"' " ;
    if(job != null && job.getTextContent() != null && !job.getTextContent().equals("") )
    wherescript = wherescript + " and job = '" + job.getTextContent() +"' ";
    if(deptno != null && deptno.getTextContent() != null && !deptno.getTextContent().equals("") )
    wherescript = wherescript + " and deptno = " + deptno.getTextContent() ;
    sql = sql + wherescript;
    System.out.println("sql : "+sql);
    rs = stmt.executeQuery(sql) ;
    while (rs.next())
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:EMPNO", rs.getString("empno"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:ENAME", rs.getString("ename"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:JOB", rs.getString("job"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:MGR", (rs.getString("mgr")==null? "": rs.getString("mgr")));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:HIREDATE", rs.getString("hiredate"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:SAL", rs.getString("sal"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:COMM", rs.getString("comm"));
    setVariableData("tempVariable", "payload", "/ns1:selEmpOutputCollection/child::*[position()="+index+"]/ns1:DEPTNO", rs.getString("deptno"));
    index++;
    }catch(SQLException sex){                          
    System.out.println("sql error");
    }catch(Exception ex){                             
    System.out.println("error");
    }finally{                             
    try{                      
    rs.close();
    stmt.close();
    conn.close();
    }catch(Exception ex){}
    }]]>
    </bpelx:exec>
    and here is tempVariable examples and schema.
    <tempVariable>
         <part name="payload">
              <selEmpOutputCollection>
                   <selEmpOutput>
                   <EMPNO/>
                   <ENAME/>
                   <JOB/>
                   <MGR/>
                   <HIREDATE/>
                   <SAL/>
                   <COMM/>
                   <DEPTNO/>
              </selEmpOutput>
              <selEmpOutputCollection>
         </part>
    </tempVariable>     
    <xsd:element name="selEmpOutputCollection" type="selEmpOutputCollection"/>
    <xsd:element name="selEmpOutput" type="selEmpOutput"/>
    <xsd:complexType name="selEmpOutputCollection">
    <xsd:sequence>
    <xsd:element name="selEmpOutput" type="selEmpOutput" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="selEmpOutput">
    <xsd:sequence>
    <xsd:element name="EMPNO" type="xsd:decimal" nillable="true"/>
    <xsd:element name="ENAME" type="xsd:string" nillable="true"/>
    <xsd:element name="JOB" type="xsd:string" nillable="true"/>
    <xsd:element name="MGR" type="xsd:decimal" nillable="true"/>
    <xsd:element name="HIREDATE" type="xsd:dateTime" nillable="true"/>
    <xsd:element name="SAL" type="xsd:decimal" nillable="true"/>
    <xsd:element name="COMM" type="xsd:decimal" nillable="true"/>
    <xsd:element name="DEPTNO" type="xsd:decimal" nillable="true"/>
    </xsd:sequence>
    </xsd:complexType>
    thanks

    My bpel project flow is as follows.
    First, I initalize the temp varialbe like this.
    <assign name="setInitialVar">
    <copy>
    <from>
    <ns1:selEmpOutput xmlns:ns1="http://lgesoa.lge.com/EmpSpec/types">
    <ns1:EMPNO/>
    <ns1:ENAME/>
    <ns1:JOB/>
    <ns1:MGR/>
    <ns1:HIREDATE/>
    <ns1:SAL/>
    <ns1:COMM/>
    <ns1:DEPTNO/>
    </ns1:selEmpOutput>
    </from>
    <to variable="tempVariable" part="payload"
    query="/ns1:selEmpOutputCollection/ns1:selEmpOutput"/>
    </copy>
    </assign>
    Second, get Data(ex. 10 Employee Information List) from DB for useing Java embedded activity.
    Third, assing employee info to tempVariable, then BPEL assign just only one Employee Information. and next data can't assign and the BPEL make an error.
    here is my error message..
    <2007-03-02 11:23:26,125> <ERROR> <default.collaxa.cube.engine> <BPELXExecLet::setVariableData>
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure}
    messageType: {null}
    parts: {{summary=oracle.xml.parser.v2.XMLElement@15f80b}}
         at com.collaxa.cube.xml.dom.DOMUtil.copy(DOMUtil.java:536)
         at com.collaxa.cube.engine.ext.BPELXExecLet.setVariableData(BPELXExecLet.java:721)
         at com.collaxa.cube.engine.ext.BPELXExecLet.setVariableData(BPELXExecLet.java:700)
         at bpel.selconnectdb.ExecLetBxExe4.execute(ExecLetBxExe4.java:160)
         at com.collaxa.cube.engine.ext.wmp.BPELXExecWMP.__executeStatements(BPELXExecWMP.java:49)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3271)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1697)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:184)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:269)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5244)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1083)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:132)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:161)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    I analyzed the problem. and I find the reason that is I just assing one XML flag to the temp variable. If i don't initalize the varaible like first step, BPEL make an error above error message.
    thanks
    Won.

  • IN PROCESS DEFECT RECORDING

    Hi
    How to do Result Recording , Defect Recording in the Repetative manufacturing.
    In our senerio their is no Operational Coding
    Once we put the material in the production line we get the finished product only two types of codes are their 1) raw material 2) Finished Goods 
    Now i want to put a inspection point in between the Production  Process and record the Defects after the 3 operation ...
    Regards
    ramanujam

    Hi!,
    You will have to use inspection type "13" as inspection type "03" will not work in case of repetitive manufacturing. Please note that you will have to trigger the inspection lot manually by using transaction MFPR. You can inspection lot with reference to material, plant and production version combination. There you have choice in version selection. Also there won't be any inventory posting in this inspection processing. While defining the rate routing you will have to maintain QM related data. for the intended operations and that routing is to be used while defining the production version. Inspection point related data is to be entered in rate routing header. Once the inspection lot is created manually, rest of the process of result recording etc is normal. I hope this helps in resolving your problem.
    Regards,
    Uday

  • Problem of executing a process under Linux using Runtime.exec

    Hi, All
    I am having a problem of executing a process under Linux and looking for help.
    I have a simple C program, which just opens a listening port, accept connection request and receive data. What I did is:
    1. I create a script to start this C program
    2. I write a simple java application using Runtime.exec to execute this script
    I can see this C program is started, and it is doing what it supposed to do, opening a listening port, accepting connection request from client and receiving data from client. But if I stop the Java application, then this C program will die when any incoming data or connection request happens. There is nothing wrong with the C program and the script, because if I manually execute this script, everying works fine.
    I am using jre1.4.2_07 and running under Linux fedora 3.0.
    Then I tried similar thing under Windows XP with service pack2, evrything works OK, the C program doesn't die at all.

    Mind reading is not an exact science but I bet that you are not processing either the process stdout or the stderr stream properly. Have you read http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html ?

  • I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?

    I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?
    jacknil

    I found an answer to this on another page (I was having the same problem) This worked for me:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    more here: https://discussions.apple.com/thread/5596831

  • Help "An error occured during the installation of assembly 'Microsoft.VC.80.CRT,version="8.0.50727.4053",type="win32".publicKeyToken="1fc8 b3b9a1e3b".process orArchitecture="x86"".Please refer to Help and Support for more information. HRESULT: 0x800736FD.

    Help - I keep getting this message when trying to install iTunes on my computer - I have tried it on 2 different computers - one with Windows 7 and one with Vista - getting same message for both.
    "An error occured during the installation of assembly 'Microsoft.VC.80.CRT,version="8.0.50727.4053",type="win32".publicKeyToken="1fc8 b3b9a1e3b".process orArchitecture="x86"".Please refer to Help and Support for more information. HRESULT: 0x800736FD.
    Thanks

    HRESULT: 0x800736FD
    Are you running Vista or Windows 7, josh?

  • Trap error within loop and process next record

    Hi,
    I am processing each record inside a loop. Now if any exception occurs processing with a single record within loop I want to continue with the next record with proper error message in the log.
    How to achieve the above scenario? Shall I create a savepoint and whenever any error occurs inside the loop I will rollback to that savepoint. Once it is done shall it process the next record automatically?
    Thanks in advance for your reply.
    Thanks,
    Mrinmoy

    Relational databases are about sets.
    They are not about files and records
    Processing records in a loop will make your code slow, and you should avoid using this strategy.
    That said
    Simply enclose the code in it's own begin end block.
    beginn
    <your code>
    exception
    when <your exception> then
    <process the exception not reraising it>
    end;
    No savepoints required.
    Sybrand Bakker
    Senior Oracle DBA

  • Do not process BDC records that result in warnings

    Hi Experts,
    I have a BDC program to create absences.  When the result of the Call Transaction results in a warning, I do not want to process the record.  How can I do this BEFORE running the call transaction (since if I find out that there was a warning after I run the program, it is too late).
    Thanks
    Shane

    HI,
    try finding out the data for which it is giving a warning message. I mean there will be some indicator where it will give the warning message, Like not having proper data or some blank spaces in any fields, etc. If you find out that your problem will be solved. Before you call the transaction check the data is perfect or not.
    Simply check out for common data where it is giving warning.
    By this way i suppose you can avoid posting that data.
    Regards,
    Venkatesh

  • VAT Process in SAP...Any help...

    Hi experts,
    I have a small clarification in standard SAP. Can anyone explain me as following....
    Our client process is to reconcile export transactions and also waived 7% VAT export customers where submission of the proper documents like delivery order, proof of delivery etc., by the customer within 60 days. Some times both DO and POD are missing but client waived VAT. The customer paid the invoice with VAT and resulting VAT variance prevented and both a payment (credit) and the invoice(Debit) perpectually aging on the AR ledger.
    How SAP can help to resolve this issue through automation or proper reporting? Currently VAT documentation is a time consuming and manual process...Please can anyone help me...
    Also, how to prioritized large balances due for payment in AR aged report?
    Regards
    Krishna
    Edited by: Krishna on Dec 11, 2009 9:24 AM

    Hi,
    Please read the available PDF file to General Business Process for VAT.
    http://www.moveaheadonline.com/Articles/pdf/Basic%20Guide%20To%20VAT.pdf
    Thanks
    Chandra

Maybe you are looking for

  • Need new battery for my MacBook Pro!

    Hi, I am just trying to figure out what exactly the replacement battery for my MacBook Pro is. It is a MacBookPro2,2 Intel Core 2 Duo. ASMB012 is the device name under battery info - but i can't find that info anywhere. Please help! dave

  • Combining old itunes Libraries

    Hi, I have 3 different macs that have music in itunes that was downloaded when that was the computer I was using at the time (laptops) now I want to combine all 3 libraries in one "House" Computer. How do I do it. I have very few itunes purchases. Th

  • Convert PDF file to Word

    When I convert the PDF File to Word it appears to be converting but when done and downloaded the word docutment is only showing diamonds and dollars signs.  I thought it was just webdings and tried to change the font but that doesnt work.

  • Startup beeps indicate "no good banks"

    I have a Power Mac G5 tower, with a 2.3ghz dual-core processor (2005 model), and a terrabyte of disk space.  When I tried to turn it on today, instead of booting up, it emitted 3 beeps, then the fan started blowing loudly, and the light would flash i

  • Samsung galaxy note3

    Sorry how it is possible that Samsung galaxy note 3 does not supported by adobe flash player. Nothing in Google store . I can not believe All time I use Samsung phones and even old tabs were able to install this application. But what happened with no