Assigning score based on criteria

I have the following test case on Oracle 10gR2
CREATE TABLE t (id  VARCHAR2 (60), data clob)
INSERT ALL
    INTO t (id, data) VALUES ('Test_1', '<book title="Tale">
            It was the best of times.
     </book> ')
    INTO t (id, data) VALUES ('Test_2', '<book title="Disclosure">
            Opening times.
     </book>')
    INTO t (id, data) VALUES ('Test_3', '<book title="Blue">
            No of times.
     </book> ')
    INTO t (id, data) VALUES ('Test_4', '<book title="Olympics">
            It was the best of times.
     </book> ')
    SELECT * FROM DUAL
BEGIN
     Ctx_Ddl.drop_Preference ('my_lexer');
END;
BEGIN
     Ctx_Ddl.Create_Preference ('my_lexer','BASIC_LEXER');
     Ctx_Ddl.Set_Attribute ( 'my_lexer', 'mixed_case', 'FALSE');
     Ctx_Ddl.Set_Attribute ( 'my_lexer', 'base_letter','TRUE');
END;
BEGIN
     Ctx_Ddl.drop_section_group ('myxmlgroup');
END;
begin
     ctx_ddl.create_section_group('myxmlgroup', 'XML_SECTION_GROUP');
     ctx_ddl.add_zone_section('myxmlgroup', 'book', 'book');
     ctx_ddl.add_attr_section('myxmlgroup', 'booktitle', 'book@title');
end;
CREATE INDEX t_data_idx ON t (data) INDEXTYPE IS ctxsys.context
     PARAMETERS
          ('LEXER  my_lexer
                  datastore ctxsys.default_datastore
                  filter ctxsys.null_filter
                  section group myxmlgroup'
If searching with the string "times", would it be possible to get the following result
     1. for hits in <book title="Blue"> should have highest score
     2. for hits in <book title="Disclosure"> should have second highest score
     3. for hits in <book title="Tale"> should have third highest score
     4. for hits other than the above 3 should have the lowest score
The result should be for example
ID                         Element                       Score
Test_3                    Blue                    10     -- sample score
Test_2                    Disclosure               8     
Test_1                    Tale                    6     
Test_4                    Olympics               3Could anyone kindly help me on this please
Thanking you in advance
Raj
Edited by: udayaraj on Sep 11, 2012 1:29 AM
Edited by: udayaraj on Sep 11, 2012 1:30 AM
Edited by: udayaraj on Sep 11, 2012 1:34 AM
Edited by: udayaraj on Sep 11, 2012 1:36 AM

Hello Roger
I was trying the solution you had given me on the original data, but the result seems to be not in proper order. Could you kindly have a look?
Oracle DB version - Enterprise edition 10.2.0.5.0
raj@cms> drop table c
  2  /
Table dropped.
Elapsed: 00:00:00.18
raj@cms>
raj@cms> create table c(id varchar2(255), c_type_id number(4), data clob)
  2  /
Table created.
Elapsed: 00:00:00.02
raj@cms>
raj@cms> alter table c add constraint c_PK primary key (id, c_type_id)
  2  /
Table altered.
Elapsed: 00:00:00.02
raj@cms> insert all
  2  into c (id, c_Type_id, data) values
  3  ('POI_DE3_TAX_19701106_0001', 1701, '<n-docbody>
  4                 <poi class="id">POI_DE3_TAX_19701106_0001 DE3_TAX_19701106_0001</poi>
  5                 <poi class="pk">昭和45年11月 6日</poi>
  6                 <poi class="fk">昭和45年 9月30日</poi>
  7                 <poi class="abstract">共同相続人</poi>
  8            </n-docbody>')
  9  into c (id, c_type_id, data) values
10  ('POI_DE3_TAX_19700930_0002', 1701, '<n-docbody>
11                 <poi class="id">POI_DE3_TAX_19700930_0002 DE3_TAX_19700930_0002</poi>
12                 <poi class="pk">DE3 昭和45年 9月30日</poi>
13                 <poi class="fk">昭和45年11月 6日</poi>
14                 <poi class="abstract">有価証券の売買は</poi>
15            </n-docbody>')
16  into c (id, c_type_id, data) values
17  ('POI_DE3_TAX_19701029_0003', 1701, '<n-docbody>
18                 <poi class="id">POI_DE3_TAX_19701029_0003 DE3_TAX_19701029_0003</poi>
19                 <poi class="pk">昭和45年10月29日</poi>
20                 <poi class="abstract">昭和45年11月6日 0001、 昭和45年9月30日 </poi>
21            </n-docbody>')
22  select * from dual
23  /
3 rows created.
Elapsed: 00:00:00.02
raj@cms>
raj@cms> begin
  2       Ctx_Ddl.Drop_Preference('my_jp_lexer');
  3  end;
  4  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
raj@cms>
raj@cms> begin
  2       Ctx_Ddl.Create_Preference('my_jp_lexer','JAPANESE_VGRAM_LEXER');
  3  end;
  4  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
raj@cms>
raj@cms>
raj@cms> begin
  2       ctx_ddl.drop_section_group('poigroup');
  3  end;
  4  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
raj@cms>
raj@cms> begin
  2       ctx_ddl.create_section_group('poigroup', 'XML_SECTION_GROUP');
  3       ctx_ddl.add_zone_section('poigroup', 'poi', 'poi');
  4       ctx_ddl.add_attr_section('poigroup', 'poiclass', 'poi@class');
  5  end;
  6  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
raj@cms>
raj@cms> CREATE INDEX
  2       c_text_index ON c(DATA)
  3  INDEXTYPE
  4       IS CTXSYS.CONTEXT
  5  PARAMETERS(
  6            'transactional
  7            LEXER my_jp_lexer
  8            sync (every "SYSDATE+30/1440" MEMORY 300M PARALLEL 2)
  9            STOPLIST ctxsys.default_stoplist
10            filter ctxsys.null_filter
11            section group poigroup
12            '
13         )
14  /
Index created.
Elapsed: 00:00:00.13
raj@cms> select
  2       id, score(1)
  3  from c
  4  where
  5       contains (data, '<query>
  6                        <textquery>
  7                               <progression>
  8                                      <seq>昭和45年11月 6日 AND (id WITHIN poiclass)*10*10</seq>
  9                                      <seq>昭和45年11月 6日 AND (pk WITHIN poiclass)*10*10</seq>
10                                      <seq>昭和45年11月 6日 AND (fk WITHIN poiclass)*10*10</seq>
11                                      <seq>昭和45年11月 6日</seq>
12                              </progression>
13                        </textquery>
14                 </query>', 1) > 0
15  order by
16       score(1) desc
17  /
ID                                         SCORE(1)
POI_DE3_TAX_19701106_0001                        76
POI_DE3_TAX_19701029_0003                        76
POI_DE3_TAX_19700930_0002                        76
Elapsed: 00:00:00.04
raj@cms>
raj@cms> select
  2       id, xt.class, score(1)
  3  from c, xmltable( '/n-docbody/poi' PASSING XMLTYPE(c.data)
  4                    COLUMNS class VARCHAR2(30) PATH '@class'
  5                  ) as xt
  6  where
  7       contains (data, '<query>
  8                        <textquery>
  9                               <progression>
10                                      <seq>昭和45年11月 6日 AND (id WITHIN poiclass)*10*10</seq>
11                                      <seq>昭和45年11月 6日 AND (pk WITHIN poiclass)*10*10</seq>
12                                      <seq>昭和45年11月 6日 AND (fk WITHIN poiclass)*10*10</seq>
13                                      <seq>昭和45年11月 6日</seq>
14                              </progression>
15                        </textquery>
16                 </query>', 1) > 0
17  order by
18       score(1) desc
19  /
ID                                       CLASS                                                          SCORE(1)
POI_DE3_TAX_19701106_0001                id                                                                   76
POI_DE3_TAX_19701106_0001                pk                                                                   76
POI_DE3_TAX_19701106_0001                fk                                                                   76
POI_DE3_TAX_19701106_0001                abstract                                                             76
POI_DE3_TAX_19700930_0002                id                                                                   76
POI_DE3_TAX_19701029_0003                abstract                                                             76
POI_DE3_TAX_19700930_0002                fk                                                                   76
POI_DE3_TAX_19700930_0002                abstract                                                             76
POI_DE3_TAX_19701029_0003                id                                                                   76
POI_DE3_TAX_19701029_0003                pk                                                                   76
POI_DE3_TAX_19700930_0002                pk                                                                   76
11 rows selected.
Elapsed: 00:00:00.07The results should be in the following order
1. POI_DE3_TAX_19701106_0001 => The string "昭和45年11月 6日" which is being searched, exists in <poi class=pk> so should have higher score
2. POI_DE3_TAX_19700930_0002 => The string "昭和45年11月 6日" which is being searched, exists in <poi class=fk> so should have second highest score
3. POI_DE3_TAX_19701029_0003 => The string "昭和45年11月 6日" which is being searched, does not exist in <poi class=pk> or <poi class=fk> but in <poi class=abstract> so should have the lowest score
Also for the query which extracts the "class", the resultset shows matches for <poi class="id">. The string "昭和45年11月 6日" does'nt exist in <poi class="id"> at all.
Thanking you in advance
Kind Regards
Raj

Similar Messages

  • Select records based on criteria and update those records once read

    hi,
    I am very new to bpel and DB adapters.
    I have a requirement where in I need to query two tables to fetch some records and update these selected records with a new value for field to indicate that bpel has processed these records.
    Once I select these I needs the output to be mapped to the output variable.
    I am able to select the records based on criteria , but how will i lock these records so that these records do not get processed again. This should be a very simple usecase just that I am not aware.
    Thanks,
    Robin

    Once you have finished reading the records fire an update query , update some field in the table so that it does not get picked up next time.
    if you are using polling for picking up the records, then use logical delete scenario, refer....http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/adptr_db.htm#BABEEBIH

  • Work flow issue: Assign agent based on role

    Hi,
    We are facing an issue in SAP workflow.
    How to assign agent based on the role of an employee.
    Thanks for your input.
    Thanks
    Muthukumar

    Hi,
    Make sure that you have configured properly in transaction OMGS.
    If it is done, then we can not do much about it.
    I faced the similar issue and i had to convince the user that it is a porblem.
    PO release workflow has some problems.
    Hope it helps.
    Regards,
    Shashank

  • Assign IP based on MAC

    How do I assign IP based on MAC? For example: I want my desktop (MAC: xx:xx:xx:xx) to have IP 192.168.1.100. I used to have D-Link router, and it was easy to assign IP but I cannot find a way to setup on AirPort Extreme N. Please help. Thank....

    Rajesh,
    Can you be bit more specific. The current program is "Airport Admin Utility" and after searching, I can't find the section or fields you are referring to.
    Thanks,
    Jeff

  • Quickpaint reports not working with assignment set defined with criteria

    Hello,
    I have a problem with quickpaint reports in HRMS. When i run quickpaint report against assignment set defined with criteria it reports following error: APP-PAY-06867 An error occurred during formula execution FFX00_DATA_NOT_FOUND (assignment criteria was &ASG_LOCATION=New York).I defined several assignment sets with different criteria and i always get the same error when i run any quickpaint report.
    The same Quickpaint report works well with assignment set defined by including individual assignment.
    Thanks in advance!
    best regards

    Thanks for uploading the sample reports. 
    I am not abe to reproduce the issue and the graphs generated in both the attached reports are the same except that the width of the graphs being displayed are different as seen in the below images.
    ATML 5.1 Report Graph
    XML Report Graph
    Regards
    Srivinayaka Pandurangan
    National Instruments
    With Best Regards,
    Srivinayaka
    National Instruments

  • How can I display one of two DataTables based on criteria

    I have two DataTables. One DataTable should be displayed or the other DataTable should be displayed in the same JSP based on some criteria. I wish I could put an if statement in the JSP page but how else can I do this? Is there a JSF tag that is like an if statement?

    Hi
    Try to use rendered attribute.
    Create boolean variable in your bean ie private boolean showTab1And in jsp type
    <h:dataTable id="tab1" value="..." var="..."  rendered="#{myBean.showTab1}">
    </h:dataTable>
    <h:dataTable id="tab2" value="..." var="..."  rendered="#{!myBean.showTab1}">
    </h:dataTable>if showTab1 is true, first dataTable shows, otherwise second dataTable is shown.
    Hope it helps
    Martin
    ps. You can combine value of rendered :
    rendered="#{myBean.boolVar1 && myBean.boolVar2 && !myBean.boolvar3}"

  • OIM - Suspend user based on criteria

    I want to disable a user based on some criteria(say one of the profile attribute value changes to false) configured.
    Say one of the attributes of a user changes and due to this change user should be disabled from accessing any of the resources or may be only one of the resources which he is provisioned to?
    Does any one have any idea how this can be achieved?

    This could be accomplished through access policies and denying access based on group membership to certain resources.
    You could possibly create a process update trigger for that field on the Xellerate User process that when that field is modified, it checks the new value of the field to see if it matches your ruleset to be disabled for, and then update the USR_STATUS to be Inactive/Disabled (whichever is the value when disabled) which might in turn trigger the disable action against all their other resources.
    Without testing, this is just an idea that might work.
    -Kevin

  • How do I sum selected entries (currency) in one column based on criteria (specific text) set from a different column?

    Disclaimer:  I'm not a computer guy but I can be taught!
    I am tracking a checking account for a church ministry.  I have one table that holds the line items and the amounts budgeted for each item.  I want to add a column to that table that shows the actual amount spent for that line item.  The reference will come from the second table that contains that actual data.  I have a column that has a dropdown list to select the budget line item and a column that holds the actual amount spent for that transaction.  I want to auto sum the selected currency values based on the selection criteria of the certain budget line item and display it in the first table.
    Any help would be appreciated.

    Hi wcanerday,
    Thanks for the green tick and your feedback. Yes, the SUMIF function is powerful!
    When you adapt the Personal Budget template, make sure that the items in the Category Column (A) on the Budget sheet exactly match the items in the Pop-Up Menus in Column C of the Transactions sheet.
    Editing a Pop-Up Menu in Numbers 3 is easy. Please call back if you need more help.
    Regards,
    Ian.

  • Change vendor evaluation with new scores for automatic criteria

    Hi,
    I would like to delete actual vendor evaluations and revaluate my vendors with new scores for the automatic criteria on time delivery.
    Using the program RMEVALDL doesn't work.
    Does somebody have a suggestion please ??
    Thanks in advance,
    Kind regards

    hi,
    Points scores for automatic subcriteria: The intervals for the automatic subcriteria used must be maintained, otherwise nonsensical scores may result. In addition to the F1 documentation, you should take account of SAP Note 51054. The limit values -99.9% and 99.9% must be maintained. Similarly, the invisible limit 0 must be observed.
    Variance             Score
    -99.9%               1
    +99.9%              100
    A variance of 0% brings the vendor 100 points, whereas a variance of -1% results in a score of 1 point.
    check the following link.
    http://wiki.sdn.sap.com/wiki/display/ERPSCM/KnowledgePaperVendor+Evaluation
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMISVE/MMISVE.pdf
    regards
    sumit simran

  • Dynamically assigning variables based on condition in pl/sql

    I have a script which takes 6 input parameters but based on input 1 parameters 2 to 6 will be assigned to different variables. but the condition is not being checked during variable assignment phase. even if table_update is 'P' para,mater 2 is getting assigned to tariff_group instead of offer_id. Is there any way to solve this problem so that variables get assigned based on condition.
    table_update := '&1';
    if(table_update = 'T')
    THEN
         tariff_group := '&2';
         gf_version := &3;
         tariff_table_name := '&4';
         flag := '&5';
         if(no_rows_tariff(tariff_table_name, gf_version, tariff_group))
         THEN
              if(flag = 'I')
              THEN
                   tariff_column_name := column_tariff(tariff_table_name);
              ELSIF(flag = 'R')
              THEN
                   max_gf_tariff(tariff_table_name, gf_version, tariff_group);
              ELSE
                   DBMS_OUTPUT.PUT_LINE('Please enter correct option for update I- Insert R-Rollback');
              END IF;
         END IF;
    ELSIF(table_update = 'P')
    THEN
         offer_id := &2;
         gf_version := &3;
         promotion_table_name := '&4';
         flag := '&5';

    Although you do not say what your problem is, I suspect that it si something like this:
    SQL> !cat t.sql
    DECLARE
       table_update         VARCHAR2(1);
       tariff_group         VARCHAR2(3);
       gf_version           NUMBER;
       tariff_table_name    VARCHAR2(5);
       offer_id             NUMBER;
       promotion_table_name VARCHAR2(5);
       flag                 VARCHAR2(1);
    BEGIN
       table_update := '&1';
       IF table_update = 'T' THEN
          tariff_group := '&2';
          gf_version := &3;
          tariff_table_name := '&4';
          flag := '&5';
       ELSIF table_update = 'P' THEN
          offer_id := &2;
          gf_version := &3;
          promotion_table_name := '&4';
          flag := '&5';
       END IF;
       DBMS_OUTPUT.Put_Line ('TableUpdate: '||table_update);
       DBMS_OUTPUT.Put_Line ('TariffGroup: '||tariff_group);
       DBMS_OUTPUT.Put_Line ('GfVersion: '||gf_version);
       DBMS_OUTPUT.Put_Line ('Tarifftable: '||tariff_table_name);
       DBMS_OUTPUT.Put_Line ('OfferID: '||offer_id);
       DBMS_OUTPUT.Put_Line ('PromoTable: '||promotion_table_name);
    END;
    SQL> @t T TG1 1 TTN1 F
    old  10:    table_update := '&1';
    new  10:    table_update := 'T';
    old  12:       tariff_group := '&2';
    new  12:       tariff_group := 'TG1';
    old  13:       gf_version := &3;
    new  13:       gf_version := 1;
    old  14:       tariff_table_name := '&4';
    new  14:       tariff_table_name := 'TTN1';
    old  15:       flag := '&5';
    new  15:       flag := 'F';
    old  17:       offer_id := &2;
    new  17:       offer_id := TG1;
    old  18:       gf_version := &3;
    new  18:       gf_version := 1;
    old  19:       promotion_table_name := '&4';
    new  19:       promotion_table_name := 'TTN1';
    old  20:       flag := '&5';
    new  20:       flag := 'F';
          offer_id := TG1;
    ERROR at line 17:
    ORA-06550: line 17, column 19:
    PLS-00201: identifier 'TG1' must be declared
    ORA-06550: line 17, column 7:
    PL/SQL: Statement ignoredAs you can see, the initial assignments for compilation purposes are done prior to actually running the code, and the assignment to offer_id is failing.
    If I change offer_id to a varchar and quote the &2, then the compilation assignemnt works, and the actual logic of the script works:
    SQL> !cat t.sql
    DECLARE
       table_update         VARCHAR2(1);
       tariff_group         VARCHAR2(3);
       gf_version           NUMBER;
       tariff_table_name    VARCHAR2(5);
    offer_id VARCHAR2(3);
       promotion_table_name VARCHAR2(5);
       flag                 VARCHAR2(1);
    BEGIN
       table_update := '&1';
       IF table_update = 'T' THEN
          tariff_group := '&2';
          gf_version := &3;
          tariff_table_name := '&4';
          flag := '&5';
       ELSIF table_update = 'P' THEN
    offer_id := '&2';
          gf_version := &3;
          promotion_table_name := '&4';
          flag := '&5';
       END IF;
       DBMS_OUTPUT.Put_Line ('TableUpdate: '||table_update);
       DBMS_OUTPUT.Put_Line ('TariffGroup: '||tariff_group);
       DBMS_OUTPUT.Put_Line ('GfVersion: '||gf_version);
       DBMS_OUTPUT.Put_Line ('Tarifftable: '||tariff_table_name);
       DBMS_OUTPUT.Put_Line ('OfferID: '||offer_id);
       DBMS_OUTPUT.Put_Line ('PromoTable: '||promotion_table_name);
    END;
    SQL> @t T TG1 1 TTN1 F
    30  /
    old  10:    table_update := '&1';
    new  10:    table_update := 'T';
    old  12:       tariff_group := '&2';
    new  12:       tariff_group := 'TG1';
    old  13:       gf_version := &3;
    new  13:       gf_version := 1;
    old  14:       tariff_table_name := '&4';
    new  14:       tariff_table_name := 'TTN1';
    old  15:       flag := '&5';
    new  15:       flag := 'F';
    old  17:       offer_id := '&2';
    new  17:       offer_id := 'TG1';
    old  18:       gf_version := &3;
    new  18:       gf_version := 1;
    old  19:       promotion_table_name := '&4';
    new  19:       promotion_table_name := 'TTN1';
    old  20:       flag := '&5';
    new  20:       flag := 'F';
    TableUpdate: T
    TariffGroup: TG1
    GfVersion: 1
    Tarifftable: TTN1
    OfferID:
    PromoTable:John

  • ORA-01555 error when assigning values based on geometry

    Hello,
    I have a table with 220,000+ records with street information, and I am trying to assign a municipal area (stored in another table) based on the geometry of the road line and the geometry of the municipal boundary.
    CREATE TABLE TEMP AS SELECT A.ID, B.AREA FROM ROADS A, PLACES B WHERE B.TYPE IN (33,35,36,37) AND mdsys.sdo_relate (a.geometry,b.geometry,'
    mask=inside querytype = window')='TRUE';
    This took a long time to run and it came back with a series of errors, one of which was ORA--01555 'snapshot too old'. I was running other queries on the table (in a separate SQL window) because I'm under a deadline, so i figured that doing multiple things at one time while the spatial query was running was causing the problem. I didn't have time to run it again (it was the end of the day when the error came up, conveniently) so I am trying to work out a solution to this issue.
    Would it be better if I: a) ran the statement again on the whole dataset and did nothing else while it is running, even though it will still take a while, or
    b) broke it up into groups of 50,000 records and run the statement on one group at a time and hope for the best.
    Thanks in advance!

    Assuming you have less municipal areas than roads, the query should perform better by specifying the join order:
    CREATE TABLE TEMP AS (
         SELECT /*+ ORDERED */ A.ID, B.AREA
         FROM PLACES B, ROADS A
         WHERE B.TYPE IN (33,35,36,37)
         AND mdsys.sdo_relate (a.geometry, b.geometry,'mask=inside querytype = window') = 'TRUE');Also, are you sure 'inside' is the right mask to use here? What if a road intersects the edge of the municipality? In that case it wouldn't be returned by this query.

  • Risk Management 10: Assign users based on Org structure

    Hello,
    In GRC Risk Management 10, you can assign users to a risk in the roles tab of a risk. 
    Is it possible to be able to assign any employee in HR org structure to one of these roles such as Risk Owner?
    More specifically, would it be possible to create a link such that only the employees in the assigned organization unit in the risk are shown in the list of users to be assigned to one of these roles?
    Thanks

    we have the scenarioas below
    need to integrate the third party HR system ORG structure entity to the Role based travle management approval task.
    but the process and workflow structure for all the department are same.
    only the roles are different for each user.
    no need to disple the standard  approval role in Process initiation.
    Custom role should be populated based on the selection from the first action.
    example: if the user need cash and he should select the cash need option from
                  first action then the finace approver should appear in next action.
                  if not it should not appear.
    please advice which GP callable object is best for this process.
    i have the plan to use the webdynpros..
    regards
    Sukumar

  • What is B2B setup for grouping transaction sets based on criteria.

    Hi,
    Oracle B2B offers a time bound Batching feature . However to handle following case such as Batching based on Order Number it is required to define the criterion.
    Could you please provide the information on B2B Setup for grouping transactionsets based on input parameter(Invoice id OR Invoice Number or Payment ID ) passing from back end application(BPEL) to B2B.
    For count based batching , my understanding is need to pass information in the format " <BatchMode>:<BatchID>:<Count>:<timeout>:" by parameters delivered with the IP_MESSAGE_TYPE construct. Which paramter of IP_MESSAGE_TYPE construct I have to use for passing the values to B2B in the format " <BatchMode>:<BatchID>:<Count>:<timeout>:"
    I am unable to find Action name attribute of IP_MESSAGE_TYPE construct to pass the values. Please provide the required information.
    Thanks&Regards,
    Sridhar.Rachumallu.
    Edited by: sridhar.rachumallu on Sep 7, 2010 11:06 AM

    Hi Anuj,
    Thanks for the information.
    ACTION_NAME attribute is not available with SCA. Three channels (Default,AQ,JMS ) are provided in B2B adapter for connecting to B2B. Which one supports action_name attribute?
    Design Time:
    Presently by using 'Default' channel of B2B adapter i am connecting to B2B. I am unable to pass the value for b2b property "ACTION_NAME" because invoke activity does not has respective sca normalized message propertie "b2b.actionName". So i am adding input property tab in .bpel file under corresponding B2B Adapter invoke tag as given below.
    <invoke name="Invoke_Put3070EDI820"
    inputVariable="Put3070EDI820_InVar"
    partnerLink="Put3070EDI820"
    portType="ns1:B2B_send_ptt" operation="send">
    <bpelx:inputProperty name="b2b.toTradingPartnerId"
    variable="Variable_TargetTPartner"/>
    <bpelx:inputProperty name="b2b.fromTradingPartnerId"
    variable="Variable_SourceTPartner"/>
    <bpelx:inputProperty name="b2b.documentTypeName"
    variable="Variable_TransactionSet"/>
    <bpelx:inputProperty name="b2b.documentProtocolVersion"
    variable="Variable_EDIVersionNo"/>
    *<bpelx:inputProperty name="b2b.actionName"*
    variable="Var_B2Baction"/>+
    </invoke>
    Defined variable ' Var_B2Baction' as string and assigned the expression as "concat('D:',bpws:getVariableData('Var_B2BBatchID'),':2:60')" and composite instance id expression "ora:getCompositeInstanceId()"mapped to 'Var_B2BBatchID' in BPEL.
    Run time :
    In application message of B2B coming the value as "b2b.actionName=D:608469:2:60". Here count coming as 2 but B2B is not grouping 2 transaction sets.Creating one EDI file for one transaction set.
    Why B2B is not considering incoming value "b2b.actionName=D:608469:2:60" for batching the transaction sets.
    Please suggest me the correct approach if i am wrong.
    Thanks&Regards,
    Sridhar.Rachumallu
    Edited by: sridhar.rachumallu on Sep 8, 2010 4:24 AM
    Edited by: sridhar.rachumallu on Sep 8, 2010 4:25 AM
    Edited by: sridhar.rachumallu on Sep 8, 2010 4:27 AM
    Edited by: sridhar.rachumallu on Sep 8, 2010 4:27 AM

  • Concentrator 3005: Assigning IPs based on username...

    Can someone point me to a paper that will describe how (if possible), that a client logging into a Cisco VPN Concentrator can be given a specific static IP, based on information in a RADIUS profile? (RADIUS is running on an RSA SecureID server, so people authenticating via RADIUS are 2X-factor authenticated.
    Requirement: I need a specific IP address to go to a specific user each time they log in. This way, I can authorize them to certain resources by passing them thru a Firewall on the Private side of the concentrator. For now, I have 70 users, but may balloon to 2,000.
    I can't rely on the "group password" feature, because if users share group passwords, then they can assign themselves an IP from a pool where they don't belong.
    Summary: I need two-factor authentication of an IP address - You must provide 2X-factor authentication to get a certain IP address...

    Hi Charles,
    Thanks for that, an interesting read however I dont believe it is applicable to my situation since I dont use a Cisco RADIUS solution for AAA.
    What I have is 3005's at the perimeter acting as the VPN end-pont. These end-points authenticate connections locally and do XAUTH via a RSA RADIUS server. There is a couple of ASA between the 3005s and the RADIUS servers however they dont do any AAA as such.
    The document you've provided me with seems to indicate authorisation needs to be done on a Cisco device that can store the ACLs, and provides example for using ASAs. I would prefer to do it on the 3005s, if possible and leave the ASAs untouched (assume the rules on the ASA allow all traffic through, and access will be more tightly defined at the 3005).
    If you have any suggestions/further documentation to support my desired setup I'm all ears.
    Thanks in advance
    Cheers
    Scott

  • Need to create report based on criteria between a range of dates

    I am very new to Numbers '09 and a beginner with spreadsheets.  I've searched and can't find a formula that fits this.  I've tried Match/IF  Match/Index  VLookup  If/And formulas but can't get the right results.
    I need to be able to create a report based on data from Master Spreadsheet.  I need formulas that will populate Report Page B8:B17 and D8:D17 from data in Master Spreadsheet that meets criteria range of dates (Report Page B5 and B6).
    The closest I've come was an IF(AND formula, but that left blank lines on my report page.  (I understand why, just not sure how to resolve it.)
    P.S.  I am working in Numbers '09 on an iPad (yes, the samples below are not in the Numbers program, but it was easier to do screen shots on my Mac notebook
    Master Spreadsheet:
    Report Page:

    Hi KC,
    So you are trying to retrieve the dates and associated comments for a specific student in a specific class between the two dates.
    Here's an example, using OFFSET and MATCH, plus an added index column on the Master table. Formulas and discussion below.
    Column E uses IF and AND to determine which rows contain the data to be transferred, thn uses MAX to number those rows.
    Master::E2: =IF(AND(A>=Report :: $B$5,A<=Report :: $B$6,B=Report :: $B$3,C=Report :: $B$4),MAX($E$1:E1)+1,"")
    Fill down to the bottom of column E.
    I don't see a need to repeat the "Date" and "Comment" labels on each row containing a date and comment, so I've placed these as fixed text in A8 and B8 of the Report table, and filled the cells below those with the dates and comments using MATCH and OFFSET.
    A9: =IF(ROW()>MAX(Master :: $E)+8,"",OFFSET(Master :: $A$1,MATCH(ROW()-8,Master :: $E,0)-1,0))
    B9: =IF(ROW()>MAX(Master :: $E)+8,"",OFFSET(Master :: $A$1,MATCH(ROW()-8,Master :: $E,0)-1,3))
    As can be seen, these formulas are identical except for the column-offset argument in OFFSET, shown in bold in the examples.
    Fill both formulas down to the bottoms of their columns.
    Regards,
    Barry

Maybe you are looking for