Picking Individual Records from Transform Activity

Hi ,
Can anyone suggest me how to pick individual records from the transform activity.
The Output of Transform Activity is as follows
<InvokeInsertServiceInputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="DeptCollection"><DeptCollection xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/top/InsertService" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/InsertService">
<ns2:Dept>
<ns2:deptno>77</ns2:deptno>
<ns2:dname>Cafetaria</ns2:dname>
<ns2:loc>Chennai</ns2:loc>
</ns2:Dept>
<ns2:Dept>
<ns2:deptno>88</ns2:deptno>
<ns2:dname>HelpDesk</ns2:dname>
<ns2:loc>Whitefield</ns2:loc>
</ns2:Dept>
</DeptCollection>
</part></InvokeInsertServiceInputVariable>
I want to pick deptno 77 & 88 individually.

Count the number of records that you have using a count() function. This function returns the number of nodes of a particula xml element.
Initialize iterator variable with 1.
start a while loop with condition iterator<=count
<begin of while loop>
do your activities
increment the iterator
<end of while loop>
in your case
deptcolletion/dept[iterator] gives you a handle of every node.
Check out the xpath tutorial from w3schools.com . that will help
Message was edited by:
AshishSharma

Similar Messages

  • Picking Individual Records in a loop

    Hi,
    Can any one suggest me how to pick and display individual records within a loop.
    The records are inputed as a Collection and I want to pick the records one by one from the collection

    After follow the suggestion the AshishSharma to manipulate individual records through the index, example:
    bpws:getVariableData('SelectAllLegado_OutputVariable','FornCollection',concat('/ns3:FornCollection/ns3:Forn[',bpws:getVariableData('count'),']/ns3:cdForn'))
    The count is variable the control while.
    The cdForn is data recovered.
    This is recovered with a assign.

  • SQL to group the records and apply logic to pick one record from each group

    Hi Friends,
    I am looking for a query to group the records on certain columns in a table and then from each group I want to pick only one record based on certain rules.
    May be having data laid out will make my point more clear to you. Here you go :
    CREATE TABLE AD_LIST
      FILE_NAME             VARCHAR2(50 BYTE),
      ACTIVITY_START        DATE,
      ACTIVITY_END          DATE,
      DIVISION              VARCHAR2(50 BYTE),
      ITEM_CODE             VARCHAR2(50 BYTE),
      MULT                  NUMBER,
      RETAIL                NUMBER,
      AD_PAGE               VARCHAR2(1 BYTE),
      FORECAST              NUMBER,
      MEMO                  VARCHAR2(50 BYTE)
    INSERT INTO AD_LIST VALUES ('FILE_1','01-APR-2010','15-APR-2010','B',1111,5,10,'A',10,'This must be in my result');
    INSERT INTO AD_LIST VALUES ('FILE_1','01-APR-2010','15-APR-2010','B',1111,1,1,'B',15,'Must not be in my result');
    INSERT INTO AD_LIST VALUES ('FILE_1','01-APR-2010','15-APR-2010','B',1111,6,15,'C',11,'Must not be in my result');
    INSERT INTO AD_LIST VALUES ('FILE_1','16-APR-2010','30-APR-2010','N',1111,4,20,'D',40,'Must not be in my result');
    INSERT INTO AD_LIST VALUES ('FILE_1','16-APR-2010','30-APR-2010','N',1111,5,15,'E',30,'Must not be in my result');
    INSERT INTO AD_LIST VALUES ('FILE_1','16-APR-2010','30-APR-2010','N',1111,1,2,'F',20,'This must be in my result');
    CREATE TABLE PAGE_RANK
      AD_PAGE VARCHAR2(1 BYTE),
      RANK NUMBER
    INSERT INTO PAGE_RANK VALUES ('A',1);
    INSERT INTO PAGE_RANK VALUES ('B',2);
    INSERT INTO PAGE_RANK VALUES ('C',3);
    INSERT INTO PAGE_RANK VALUES ('D',4);
    INSERT INTO PAGE_RANK VALUES ('E',5);
    INSERT INTO PAGE_RANK VALUES ('F',6);
    COMMIT;
    SELECT * FROM AD_LIST
    FILE     ACTIVITY     ACTIVITY          ITEM               AD
    NAME     START          END          DIV     CODE     MULT     RETAIL     PAGE     FORECAST     MEMO
    FILE_1     4/1/2010     4/15/2010     B     1111     5     10     A     10     This must be in my result
    FILE_1     4/1/2010     4/15/2010     B     1111     1     1     B     15     Must not be in my result
    FILE_1     4/1/2010     4/15/2010     B     1111     6     15     C     11     Must not be in my result
    FILE_1     4/16/2010     4/30/2010     N     1111     4     20     D     40     Must not be in my result
    FILE_1     4/16/2010     4/30/2010     N     1111     5     15     E     30     Must not be in my result
    FILE_1     4/16/2010     4/30/2010     N     1111     1     2     F     20     This must be in my resultNow, from the table AD_LIST I want to group the records based on FILE_NAME, ACTIVITY_START, ACTIVITY_END, DIVISION, ITEM_CODE.
    So in my example here we have 2 set of records grouped based on the columns specified.
    Also we have one more table, PAGE_RANK, which has a rank corresponding to each ad_page number. Here 1 is higher rank than 2. Hence ad page 'A' takes priority over 'B'. Similarly for all other ad pages.
    Now, we need to pick one ad from each group of ads by determining the highest ranked ad page within the group and the value for mult and retail must be replaced with the value that has min(retail/mult). So, using the above data we will have the one having ad page = 'A' and ad page = 'D' as the final results since they have highest ad page rank in their group.
    The value for mult and retail values for ad_page 'A' = min (10/5 , 1/1, 15/6) = 1,1(mult,retail).
    The value for mult and retail values for ad_page 'D' = min (20/4 , 15/5, 2/1) = 1,2(mult,retail).
    Finally I have this query below
    SELECT a.file_name,
           a.activity_start,
           a.activity_end,
           a.division,
           a.item_code,
           FIRST_VALUE (a.mult) OVER (PARTITION BY a.file_name, a.activity_start, a.activity_end, a.division, a.item_code ORDER BY (a.retail /
                                                                                                                                    a.mult))
                                                                                                        mult,
           FIRST_VALUE (a.retail) OVER (PARTITION BY a.file_name, a.activity_start, a.activity_end, a.division, a.item_code ORDER BY (a.retail /
                                                                                                                                      a.mult))
                                                                                                      retail,
           FIRST_VALUE (a.ad_page) OVER (PARTITION BY a.file_name, a.activity_start, a.activity_end, a.division, a.item_code ORDER BY (b.RANK))
                                                                                                     ad_page,
           a.forecast,
           a.memo                                                                                                
      FROM ad_list a, page_rank b
    WHERE a.ad_page = b.ad_pageThis query is giving me all the records but with the values what I wanted in Ad_Page, Mult and Retail columns.
    How can I pick only one from each group.
    I am getting this FILE     ACTIVITY     ACTIVITY          ITEM               AD
    NAME     START          END          DIV     CODE     MULT     RETAIL     PAGE     FORECAST     MEMO
    FILE_1     4/1/2010     4/15/2010     B     1111     1     1     A     15     Must not be in my result
    FILE_1     4/1/2010     4/15/2010     B     1111     1     1     A     10     This must be in my result
    FILE_1     4/1/2010     4/15/2010     B     1111     1     1     A     11     Must not be in my result
    FILE_1     4/16/2010     4/30/2010     N     1111     1     2     D     20     This must be in my result
    FILE_1     4/16/2010     4/30/2010     N     1111     1     2     D     30     Must not be in my result
    FILE_1     4/16/2010     4/30/2010     N     1111     1     2     D     40     Must not be in my resultBut I want this FILE     ACTIVITY     ACTIVITY          ITEM               AD
    NAME     START          END          DIV     CODE     MULT     RETAIL     PAGE     FORECAST     MEMO
    FILE_1     4/1/2010     4/15/2010     B     1111     1     1     A     10     This must be in my result
    FILE_1     4/16/2010     4/30/2010     N     1111     1     2     D     20     This must be in my resultI have to run this query for thousands of such group combination.
    Hope some one can throw some light on this query.
    Thanks in advance,
    Raj.

    Frank,
    You are marvelous.
    That is what I was expecting, but basically I want to display the row with highest page rank which is 'A' and 'D' in this case.
    So I have changed my query as below using yours :
    WITH mainq AS
         (SELECT a.file_name,
                 a.activity_start,
                 a.activity_end,
                 a.division,
                 a.item_code,
                 FIRST_VALUE (a.mult) OVER (PARTITION BY a.file_name, a.activity_start, a.activity_end, a.division, a.item_code ORDER BY (a.retail /
                                                                                                                                          a.mult))
                                                                                                        mult,
                 FIRST_VALUE (a.retail) OVER (PARTITION BY a.file_name, a.activity_start, a.activity_end, a.division, a.item_code ORDER BY (a.retail /
                                                                                                                                            a.mult))
                                                                                                      retail,
                 --FIRST_VALUE (a.ad_page) OVER (PARTITION BY a.file_name, a.activity_start, a.activity_end, a.division, a.item_code ORDER BY (b.RANK))
                 a.ad_page,
                 a.forecast,
                 a.memo,
                 ROW_NUMBER () OVER (PARTITION BY a.file_name, a.activity_start, a.activity_end, a.division, a.item_code ORDER BY b.RANK)
                                                                                                 AS r_num
            FROM ad_list a, page_rank b
           WHERE a.ad_page = b.ad_page)
    SELECT *
      FROM mainq a
    WHERE r_num = 1
    FILE     ACTIVITY     ACTIVITY          ITEM               AD
    NAME     START          END          DIV     CODE     MULT     RETAIL     PAGE     FORECAST     MEMO
    FILE_1     4/1/2010     4/15/2010     B     1111     1     1     A     10     This must be in my result
    FILE_1     4/16/2010     4/30/2010     N     1111     1     2     D     40     Must not be in my resultMy apologies that I gave you wrong forecast and memo values in my earlier post.
    But that is what I wanted and your input greatly helped me to save lot of time by using in one single query.
    Earlier I was using cursor to do that and it was not doing any good performance wise.
    Thanks to every body for your time and your efforts.
    I appreciate it.
    Have fun.
    ~Raj

  • Picking the records from IT2011.....

    Hi All,
    I am writing the report as per the clients requirement. for this i am using the IT 0007, 2010, 2011. Here i am using the LDB PNP for this report. i have declared  as below.
    INFOTYPES: 0007, 2010,2011.
    The infotypes are filling with the records which are existing in the infotype. Here even old data is also filling in the infotypes that means data other than the selected date from the selection screen.
    To avoide this i have written provide statement as follows.
    provide * from P2011  between pn-begda and pn-endda.
    but i did not get any data from the above statement. My requirement is i need to fetch the records from the IT2011 for the entered date. can anybody tell how to fetch the records from the time infotypes for entered date.
    Thanks & Regards,
    Giri.

    Hi..
    I suggest to use PNPCE LDB and use input as other perion option for selection screen
    and you will get all the recordes valid during the period which you give and the recordes will coming in to the tables 0007, 2010,2011.and just you can read or loop the table.
    TABLES : pernr.
    INFOTYPES: 0001,
               0007,
               2011,
               2010 .
    NODES:  peras.
    TYPES : BEGIN OF ty_final,
           pernr TYPE persno,
           ename  TYPE emnam,
            PBTXT TYPE PBTXT,
            BTRTX TYPE BTRTX,
            END OF ty_final.
    DATA : it_final TYPE TABLE OF ty_final,
           wa_final TYPE ty_final.
    DATA go_table         TYPE REF TO cl_salv_table.
    START-OF-SELECTION.
    GET peras.
      SORT p0001 BY endda DESCENDING.
      READ TABLE p0001 INDEX 1.
      wa_final-pernr = p0001-pernr.
      wa_final-ename  = p0001-ename .
      CALL FUNCTION 'HRWPC_RFC_WERKS_TEXT_GET'
        EXPORTING
          werks      = p0001-werks
        IMPORTING
          werks_text = wa_final-PBTXT.
      CALL FUNCTION 'HRWPC_RFC_BTRTL_TEXT_GET'
        EXPORTING
          werks      = p0001-werks
          btrtl      = p0001-btrtl
        IMPORTING
          btrtl_text = wa_final-BTRTX.
    loop at p2010.
    endloop.
      APPEND wa_final TO it_final.
      CLEAR wa_final.
    END-OF-SELECTION.
      CALL METHOD cl_salv_table=>factory
        IMPORTING
          r_salv_table = go_table
        CHANGING
          t_table      = it_final.
      go_table->display( ).

  • Picking unique records from huge set of records

    Hi db experts,
    Could anyone help me in having a query which is based on partitioned table with 400,00,000 records each day . It has member number unique and I want to pick unique ones say for dates between 20-jan-2007 and 20-apr-2007.
    How can I proceed to write query. Am expecting query which will only pull unique records in less possible time.
    Thanks in advance
    Ravikanth

    The table has 400 lakh records each day my mistake - I misread the original post.
    Is this a one-off exercise or an ongoing requirement? What are you going to do with the data once you've got it - do you need more columns than the numbers? Do you have a feel for how many unique numbers there are per day and over the entire quarter?
    The easiest way to do this would probably be to create an extract table (maybe a temporary one) and vary the query I posted to insert the unique numbers into this table for each day i.e. run it multiple times against a smaller data set. Then you can select the unique numbers from the extract table to get the finished set.
    Of course, whether this is a viable solution depends on the answers to the questions I posed above. The more information you give us the easier it is for us to advise you.
    Cheers, APC

  • Pick Common records from 2 internal tables

    Hi,
    I have 2 similar internal tables it_bseg1 (contain records based on the Posting Date BUDAT of document) & it_bseg2 (contain records based on the Customer Code KUNNR). Both these tables contains some common records. And I want these common records only. So please tell me to get the common records in the easiest way.
    Regards,
    Vishal

    Hi,
    There must be atleast one common field for these two internal tables to get the common records.
    If you identify the common field then you can use this logic.
    Loop at it_bseg1 into wa_bseg1.
    Read table bseg2 into wa_bseg2 with key <commonfield > = wa_itab1-<commonfield>.
    If sy-subrc eq 0.
    Append wa_bseg1 to it_bseg3.
    Endif.
    Endloop.
    Now it_bseg3 contains the common records.
    If there is no use of it_bseg1 in your further development then you can do teh logic without declaring third internal table it_bseg3.
    Loop at it_bseg1 into wa_bseg1.
    Read table bseg2 into wa_bseg2 with key <commonfield > = wa_itab1-<commonfield>.
    If sy-subrc ne 0.
    delete it_bseg1 where <commonfield> = wa_itab1-<commonfield>.
    Endif.
    Endloop.
    Now it_bseg1 contains teh common records of it_bseg1 and it_bseg2.
    Hope this will help.
    Regards,
    Swarna Munukoti.
    Edited by: Swarna Munukoti on Sep 3, 2008 2:05 PM

  • How to check at what time the extractor has picked records from r3 tables

    Hi experts ,
    If we want to know exactly at what time the Extractor has picked up the records from r/3 tables .
    or if we want to know the time stamp of extractor picking the records from r3 tables after r3 entries
    Regards ,
    Subash Balakrishnan

    Hi,
    The following are few function modules which will give you the information you need based upon the area you are working in.
    SD Billing: LOG_CONTENT_BILLING
       Delivery: LOG_CONTENT_DELIVERY
    Purchasing: LOG_CONTENT_PURCHASING etc...
    See if the above FMs help you in any way...

  • XI: Sender JDBC Communication Channel is not getting picked the records

    Hi All,
    Here I 'm facing an Issue with my sender JDBC communication Channel. Previously it was working fine but It is not Picking the records from the JDBC table.
    Communication Channel is in active mode only.
    I have checked in RWB communication Channel monitoring there i didn't get any error or success messages but channel is showing healthy status only(Green)
      But i had created the new communication channel..with the same parameters which are in the older communication channel.. and sender agreement level also i had changed.. so now  new channel is working fine.... I didn't understand what is the problem with previous communication channel.
    Thanks

    Hi yadav,
    do you have TWO CCs polling at the same time via JDBC?
    This could be the problem --> a conflict between both CCs.
    Switch off ONE CC:
    Regards Mario

  • How to delete the single record from the  ODS

    HI,
       I want to DELETE  the particular record from ODS.. how to delete that..
    plz give me the solution.. it's urgent..
    with regards
    @jay

    Hi Prakash,
        You can delete a particular record from ODS by specifying the key field name in Selective deletion button available in Contents tab in the manage screen of ODS. But it will only delete the record from the active data table and not from the Change log and new data table . You should be very carefull if you are doing in Production system as there is chance of deleting other records accidentally.
    Go to Selective deletion button - > Click on delete selection -> Enter the key field values of the record you want to delete-> Press save button to save as Variant -> Go back and click on selection button -> Chosse the background job type -> Click on start button.
    Regards,
    Prakash

  • JCA Polling Adapter not picking up records

    Hello All
    I have been trying to configure a JCA polling adapter to pick up records from the Database, the first time I configured it, it read a whole bunch of records. Now I have configured the following in the database and am getting no records being polling.
    1. Poll for new or changed records
    2. Update a field in the table F40g02 for logical delete
    3. Read value = READ, UNREAD value = UNREAD, Reserved value = RESERVED
    4.Polling interval 5 seconds, Database XROWS per xml document 1, Database Rows per Transaction 10
    I ran the SQL specified in the adapter and I get a record. Does anyone have any idea.
    I have seen this warning in the EM
    Database Adapter <oracle.tip.adapter.db.inbound.IPAddrPollingService getUniqueMarkReservedValue> The markReservedValue of distributed polling might not be a unique value.  To make it so, you can add the last x digits (default = 2) of the host IP address using this format for the MarkReservedValue: [original_val]${IP[-x]}
    Regards

    Hello
    The problem I am facing is I can't get the records that are processed (already READ) to not poll again despite the value being changed to the READ value configured, if I set the READ value in the configuration it will poll every record all the time despite the fact it is equal to the READ value.  Then if I set the READ value and any other value no records will poll.
    Consider 4 records in the DB (currently in test I have 431 but I have used distributed locking and ReturnSingleResultSet to limit it)
    ID = 1, STATUS = PROCESSED
    ID = 2, STATUS = UNPROCESSED
    ID = 3, STATUS = UNPROCESSED
    ID = 4, STATUS = OTHER
    Config 1: If READ = PROCESSED records 1,2,3,4 will poll
    Config 2: If READ = PROCESSED, UNREAD = UNPROCESSED no records will poll
    Config 3: If READ = PROCESSED, UNREAD = UNPROCESSED, RESERVED = OTHER no records will poll
    Config 4: If READ = PROCESSED and TOPLINK STATUS not equal string "PROCESSED" then records 1,2,3,4 will poll
    What I want is Record 2 and 3 to poll which I believe is config 3 should do. However I believe there have been some changes that relate to distributed polling for clusters in 11.1.1.3 onwards which means in jdeveloper (11.1.1.6) when I go to re-config the db adapter after setting the RESERVED value it disappears from the editor .
    JCA properties obviously with a MarkReservedValueand MarkUnreadValue column jumping in.depending on which config I am trying
          <property name="DescriptorName" value="dbPollBlockRecords.F40G02"/>
          <property name="QueryName" value="dbPollBlockRecordsSelect"/>
          <property name="MappingsMetaDataURL" value="dbPollBlockRecords-or-mappings.xml"/>
          <property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
          <property name="MarkReadColumn" value="STATUS"/>
          <property name="MarkReadValue" value="PROCESSED"/>
          <property name="PollingInterval" value="700"/>
          <property name="MaxRaiseSize" value="1"/>
          <property name="MaxTransactionSize" value="10"/>
          <property name="NumberOfThreads" value="1"/>
          <property name="ReturnSingleResultSet" value="true"/>   (This property has been manually configured, will unfortunately poll all records that match without it)
    Regards

  • Comparing two tables and picking the records

    I have two tables A and B.  I have to compare a column ID in both table A and table B  A.ID=B.ID  And based on the above comparison if the match is found I need to pick the records from table A and if no match then need to pick the records from table B  My problem is if I join then I will have table A and table B as one record and will be difficult to separate out.  Please let me know how this can be acheived.  Thnx.

    I have two tables A and B.  I have to compare a column ID in both table A and table B  A.ID=B.ID  And based on the above comparison if the match is found I need to pick the records from table A and if no match then need to pick the records from table B  My problem is if I join then I will have table A and table B as one record and will be difficult to separate out.  Please let me know how this can be acheived.  Thnx.

  • Inserting null values from FileAdapter to DB Adapter thru Transform activit

    Hi,
    i am trying to insert a record from a file to DB for that i have used FileAdapter and DB Adapter in between it have used Tranform activity for passing from fileadpter receive var to Db Adapter Invoke var can .in the Bpel Instance values are passed up to tranform activity
    below the xsl code and Bpel code
    Xsl
    +<?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="XSD">
    <schema location="test3_1.xsd"/>
    <rootElement name="readrecord" namespace="http://TargetNamespace.com/pickfile"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="XSD">
    <schema location="insertintoTbl_table.xsd"/>
    <rootElement name="XxempCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/insertintoTbl"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 10.1.3.5.0(build 090730.0200.1754) AT [FRI MAY 20 16:46:20 IST 2011]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/insertintoTbl"
    xmlns:tns="http://TargetNamespace.com/pickfile"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    exclude-result-prefixes="xsl xsd nxsd tns ns0 bpws ehdr hwf xref xp20 ora orcl ids">
    <xsl:template match="/">
    <ns0:XxempCollection>
    <ns0:Xxemp>
    <ns0:empcode>
    <xsl:value-of select="/tns:readrecord/tns:C1"/>
    </ns0:empcode>
    <ns0:emptr>
    <xsl:value-of select="/tns:readrecord/tns:C2"/>
    </ns0:emptr>
    <ns0:name>
    <xsl:value-of select="/tns:readrecord/tns:C3"/>
    </ns0:name>
    <ns0:division>
    <xsl:value-of select="/tns:readrecord/tns:C4"/>
    </ns0:division>
    <ns0:dept>
    <xsl:value-of select="/tns:readrecord/tns:C5"/>
    </ns0:dept>
    <ns0:doj>
    <xsl:value-of select="/tns:readrecord/tns:C6"/>
    </ns0:doj>
    <ns0:designation>
    <xsl:value-of select="/tns:readrecord/tns:C7"/>
    </ns0:designation>
    <ns0:qualification>
    <xsl:value-of select="/tns:readrecord/tns:C8"/>
    </ns0:qualification>
    </ns0:Xxemp>
    </ns0:XxempCollection>
    </xsl:template>
    </xsl:stylesheet>
    +
    Bpelcode
    +
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Thu May 19 19:43:57 IST 2011
    Author: naveenv
    Purpose: Empty BPEL Process
    -->
    <process name="FileToTbl" targetNamespace="http://xmlns.oracle.com/FileToTbl"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/BPELINSERT/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns5="http://xmlns.oracle.com/pcbpel/adapter/db/insertintoTbl/"
    xmlns:client="http://xmlns.oracle.com/FileToTbl"
    xmlns:ns6="http://xmlns.oracle.com/pcbpel/adapter/db/top/insertintoTbl"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/pickfile/"
    xmlns:ns3="http://TargetNamespace.com/pickfile"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/inserttoTbl/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <partnerLink myRole="Read_role" name="pickfile"
    partnerLinkType="ns1:Read_plt"/>
    <partnerLink name="insertintoTbl" partnerRole="insertintoTbl_role"
    partnerLinkType="ns5:insertintoTbl_plt"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <variable name="Receive_1_Read_InputVariable"
    messageType="ns1:readrecord_msg"/>
    <variable name="Invoke_1_insert_InputVariable"
    messageType="ns5:XxempCollection_msg"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <receive name="Receive_1" partnerLink="pickfile" portType="ns1:Read_ptt"
    operation="Read" variable="Receive_1_Read_InputVariable"
    createInstance="yes"/>
    <assign name="Transform_1">
    <bpelx:annotation>
    <bpelx:pattern>transformation</bpelx:pattern>
    </bpelx:annotation>
    <copy>
    <from expression="ora:processXSLT('Transformation_1.xsl',bpws:getVariableData('Receive_1_Read_InputVariable','readrecord'))"/>
    <to variable="Receive_1_Read_InputVariable" part="readrecord"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="insertintoTbl"
    portType="ns5:insertintoTbl_ptt" operation="insert"
    inputVariable="Invoke_1_insert_InputVariable"/>
    </sequence>
    </process>
    +
    can anyone please help me

    Hi,
    yes i could see the values in the trsnaform activity
    Receive_1
    [2011/05/20 06:02:49 PM] Received "Receive_1_Read_InputVariable" call from partner "pickfile" less
    -<Receive_1_Read_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="readrecord">
    -<readrecord xmlns="http://TargetNamespace.com/pickfile">
    <C1>579
    </C1>
    <C2>EMPLOYEE
    </C2>
    <C3>NITIN RAO
    </C3>
    <C4>IME
    </C4>
    <C5>ORACLE
    </C5>
    <C6>4-Jan-99
    </C6>
    <C7>Senior Consultant
    </C7>
    <C8>B.TECH
    </C8>
    </readrecord>
    </part>
    </Receive_1_Read_InputVariable>
    Transform_1
    [2011/05/20 06:02:49 PM] Updated variable "Receive_1_Read_InputVariable" less
    -<Receive_1_Read_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="readrecord">
    -<readrecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/BPELINSERT/" xmlns="http://TargetNamespace.com/pickfile">
    <db:EMPCODE>579
    </db:EMPCODE>
    <db:EMPTR>EMPLOYEE
    </db:EMPTR>
    <db:NAME>NITIN RAO
    </db:NAME>
    <db:DIVISION>IME
    </db:DIVISION>
    <db:DEPT>ORACLE
    </db:DEPT>
    <db:DOJ>4-Jan-99
    </db:DOJ>
    <db:DESIGNATION>Senior Consultant
    </db:DESIGNATION>
    <db:QUALIFICATION>B.TECH
    </db:QUALIFICATION>
    </readrecord>
    </part>
    </Receive_1_Read_InputVariable>
    Invoke_1
    [2011/05/20 06:02:50 PM] Invoked 1-way operation "inserttoDb" on partner "inserttoDb". less
    -<Invoke_1_inserttoDb_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/BPELINSERT/"/>
    </part>
    </Invoke_1_inserttoDb_InputVariable

  • Looking for app or technique to record to dvd individual chapters from a  movie dvd i own, not related to idvd or iMovie?

    looking for an app or technique to record to dvd individual chapyers from a movie dvd that i own?  not related to  idvd or imovie

    Is this a commercial copy-protected DVD or a home-made video DVD?

  • Error on activation of data records from ODS object

    hi,
    Kindly help with my BW Problem, the error occured on the
    activation of ODS. The error says "<i>Request
    REQU_43MNOPW29W4F5M037J7OAFP52 in ODS ZPUR_O01 must have QM
    status green before it is activated</i>" and "<i>Activation of data
    records from ODS object ZPUR_O01 terminated</i>"
    I tried to check the data in the ODS Object by choosing
    <LS>Administrator Workbench > data targets > context menu on ODS
    Object ZPUR_O01 but the status are green and when i tried to
    activate it the logs says "<i>ODS object ZPUR_O01 was built
    incorrectly. Cannot update request
    REQU_43MODQ3GF69X17B71ZKQMN85I(20,154)
    ODS object ZPUR_O01 was built incorrectly. Cannot update request
    REQU_43MQ8A8F0L1US5COQTUUWX3BA(20,155)
    ODS object ZPUR_O01 was built incorrectly. Cannot update request
    REQU_43MQ8OQQTY21YQ37RMA1WMO06(20,156)
    Data to be activated successfully checked against archiving
    objects                                   
    Activation of data records from ODS object ZPUR_O01 terminated</i>"
    Please help me with this problem.

    Hi Jay
    U need to update these requests to ODS
    REQU_43MODQ3GF69X17B71ZKQMN85I(20,154)
    REQU_43MQ8A8F0L1US5COQTUUWX3BA(20,155)
    REQU_43MQ8OQQTY21YQ37RMA1WMO06(20,156)
    1) delete the current request
    2)Reconstruct the requests above three request
    3)and then Load the current reqest (REQU_43MNOPW29W4F5M037J7OAFP52)
    Then only u will be able to activate the ODS....
    This is an serialization issue...
    hope it helps
    regrds
    AK
    assign points if usefull

  • Error during activation of DSO - Activation of M records from DataStore obj

    Hi All,
    Below is the error i am getting while activating the DSO, Even though similar post on this topic, solution not mentioned, any solution greatly appreciable.
    When -
    During Activation of DSO
    State of DSO -
    Request become "RED", It is available for reporting, some records in Active table, some in new table and some in new table.
    Job Log -
    Error when inserting the data record for data package
    Process 000105 returned with errors
    Error when inserting the data record for data package
    Process 000106 returned with errors
    Process 000107 returned with errors
    Data pkgs 000001; Added records 1-; Changed records 0; Deleted records 0
    Log for activation request ODSR_4GXKRYHMY97R9U62M6U52XXXY data package 000001...000001
    Errors occured when carrying out activation
    Analyze errors and activate again, if necessary
    Activation of M records from DataStore object Z_DSPO terminated
    Report RSODSACT1 ended with errors
    Job cancelled after system exception ERROR_MESSAGE
    Detail log -
    Error when inserting the data record for data package                                                  106
    Message no. RSODSO_PROCESSING002
    Diagnosis
    Failed to store data records persistently. Possible causes are:
    You tried to save a record that is already stored in the database.
    This error only occurs with DataStore objects with option "Unique Data Records".
    A unique index was created for the table of active data.
    You can check this in the Data Warehousing Workbench by choosing "Display" for the DataStore object and opening the "Indexes" folder.
    There is a technical problem on the database.
    Thanks,

    HI PT,
    I am also getting the same error like i have loaded the data into DSO and tried to activate the init request but it has become red and checked in log found that there are some SID Generation errors so please give me the step by step solution.
    SID Generation
    Data Package 000056
    Data Package 000064.
    Thanks in advance,
    Jay

Maybe you are looking for

  • My iPhone is (seemingly randomly) deleting songs from my playlists. How do I get it to stop?

    I don't know why it's happening, but it's really annoying. My first one was a 3GS, and I had made a playlist for all the songs in one CD, because i'd gotten a single and then the rest of the CD once it actually came out, and even though iTunes counte

  • I'm new to mac book pro need help with the dock

    'm new to mac book pro and I accidentally delete from the dock the Utilities and Documents Icon. How do I put it back? I already tried moving from

  • Recording audio from external radio

    Is it possible to plug my external radio into the iPad and then do scheduled recordings of radio shows? I am currently doing this with my iMac and Audio Hijack Pro. I am looking for something similar with the iPad.

  • Comes Facebook intigrie with the new Ios 5.1 ?

    I want facebook intigrie with the new ios 5.1 and i think that other users want it too

  • Open *.MAT file

    Hello, For some reason I cannot open a matlab file.  The file has been ftp'd and is called "Failed MAT file.zip" I can open other .mat files just not this particular one.  I am using DIadem 2012 SP1.  When I load the data into the data portal it says