Alternative scoring for CONTAINS operator?

I am trying to figure out how to query using CONTAINS and get slightly different result set scores than the default is returning. By default, it looks like rows are given the same score as long as they contain the same number of the search terms. For example, given the following table:
ID TEXT
1 Eyes Wide Open
2 Open Your Eyes
3 My Eyes Are Wide Open
4 Eyes Open
5 Open Eyes
If I select based on a CONTAINS of "eyes open", all of the rows are returned with the same weight (which I think I understand based on the description of the default scoring algorithm).
But what I would like is a scoring algorithm that takes into account the number of words matched vs. the total number of words in the column, and preferrably also considers the order of the words in the column to the order they were searched on.
So given the previous table, if I select based on a CONTAINS of "eyes open", I would expect the scores to rank ID 4 the highest, followed by 5, 1, 2, 3. (In this case all of the column words are significant and I am using an empty stoplist).
Does anyone know how to accomplish this scoring behavior? Do I need to implement a new scoring algorithm, or can this be accomplished using a syntax for CONTAINS that I just don't know about?
Thanks for your help in advance.
-Chris

I don't see any way to get exactly what you want using Text, but the method below should do it.
SCOTT@10gXE> CREATE TABLE your_table
  2    (id   NUMBER,
  3       text VARCHAR2 (30))
  4  /
Table created.
SCOTT@10gXE> INSERT ALL
  2  INTO your_table VALUES (1, 'Eyes Wide Open')
  3  INTO your_table VALUES (2, 'Open Your Eyes')
  4  INTO your_table VALUES (3, 'My Eyes Are Wide Open')
  5  INTO your_table VALUES (4, 'Eyes Open')
  6  INTO your_table VALUES (5, 'Open Eyes')
  7  SELECT * FROM DUAL
  8  /
5 rows created.
SCOTT@10gXE> CREATE OR REPLACE FUNCTION list_element
  2       (p_string    VARCHAR2,
  3        p_element   INTEGER,
  4        p_separator VARCHAR2 DEFAULT ' ')
  5       RETURN          VARCHAR2
  6  AS
  7    v_string      VARCHAR2 (32767);
  8  BEGIN
  9    v_string := p_string || p_separator;
10    FOR i IN 1 .. p_element - 1 LOOP
11        v_string := SUBSTR (v_string,
12                      INSTR (v_string, p_separator)
13                        + LENGTH (p_separator));
14    END LOOP;
15    RETURN SUBSTR (v_string, 1, INSTR (v_string, p_separator) - 1);
16  END list_element;
17  /
Function created.
SCOTT@10gXE> VARIABLE search_words VARCHAR2 (30)
SCOTT@10gXE> EXEC :search_words := 'eyes open'
PL/SQL procedure successfully completed.
SCOTT@10gXE> SELECT id, text,
  2           ROUND (100 * COUNT (*) / num_words) AS hit_score,
  3           SUM (order_score) AS order_score,
  4           ROUND (100 * COUNT (*) / num_words)
  5             - SUM (order_score) AS combo_score
  6  FROM   (SELECT id, text,
  7                (LENGTH (text) - LENGTH (REPLACE (text, ' ', '')) + 1) AS num_words,
  8                CASE WHEN position > NVL (LAG (position) OVER
  9                                (PARTITION BY id ORDER BY word_order), 0)
10                  THEN 0
11                  ELSE 1
12                END AS order_score
13           FROM   (SELECT id, text, words, word_order,
14                    INSTR (UPPER (text), words) AS position
15                FROM   your_table,
16                    (SELECT list_element (UPPER (:search_words), ROWNUM) AS words,
17                         ROWNUM AS word_order
18                     FROM   DUAL
19                     CONNECT BY LEVEL <= (LENGTH (:search_words)
20                                 - LENGTH (REPLACE (:search_words, ' ', ''))) + 1)
21                WHERE  INSTR (UPPER (text), words) > 0))
22  GROUP BY id, text, num_words
23  ORDER BY hit_score DESC, order_score
24  /
        ID TEXT                            HIT_SCORE ORDER_SCORE COMBO_SCORE
         4 Eyes Open                             100           0         100
         5 Open Eyes                             100           1          99
         1 Eyes Wide Open                         67           0          67
         2 Open Your Eyes                         67           1          66
         3 My Eyes Are Wide Open                  40           0          40
SCOTT@10gXE>

Similar Messages

  • Workflow Step type for Container Operation

    Hi,
    A STEP in a given Workflow has to have an Agent? Can't I create a Step to get data from the DB into the container and that's it?
    I have created a container variable called "Grade" and I need to fetch the Grade of a User (WF Inititator) from a DB table and populate the "Grade" variable from the container that will be used in further steps.
    The Workflow gets kicked off but when it reaches the STEP, it stays there waiting for something (Action from a user?).
    Thanks & Regards,
    Ernesto

    Ok, now this is getting weird. Will try to explain what I am doing for one single step:
    1) I have my workflow. On PFTC I Have a workflow Template. Under the Container Tab I created a Parameter called "Grade" with the Import/Export check-boxes set and a "CreatedBy" parameter with the import/export check-boxes set as well.
    2) Then on the Workflow Builder I created a Step called Get Grade. This step calls a Custom Task and processes in the background so there is no agent determination.
        2.1) Here I have two bindings: a) Binding Between Workflow Container and Task and between Task and BO Method       
               Get_grade.  The Method Get_grade has 2 parameters (CreatedBy, that is an attribute of the Object and is an import
               parameteter and Grade that it is an import/export parameter).
        2.2) The Binding between the WF Container and the Task is like this:
                  &PROCCONFIRMATION.CREATEDBY& --> &CREATEDBY&
                  &GRADE& <-- &GRADE&
        2.3) Binding Between Task and Method is:
                 &_WI_OBJECT_ID.CREATEDBY& --> &CREATEDBY&
                 &GRADE& <-- &GRADE&   
        2.4) The Code for my method is:
    begin_method get_grade changing container.
    DATA:
          lv_grade TYPE zmm_app_req_info-grade,
          lv_userid TYPE zmm_app_req_info-requestor
    swc_get_property self 'CreatedBy' lv_userid.
    SELECT SINGLE grade FROM zmm_app_req_info
    INTO lv_grade
    WHERE requestor = lv_userid.
    IF sy-subrc IS INITIAL.
      swc_set_element container 'Grade' lv_grade.
    ENDIF.
    end_method.
    The only thing I need is to get the Grade parameter of the WF Container populated. This parameter will be used later on.
    Thanks & Regards,
    Ernesto.

  • Is there a alternative to Plugin-container (or a way to disable It)?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    Is there a alternative to Plugin-container? It just showed up In my system processes when I updated to Firefox 3.6.6. I've never had problems with plugins crashing but ever since plugin-container.exe crashes have happened more frequently and plugins like Adobe Flash are now taking a lot longer to load. I have an older computer and I noticed plugin-container Is a different process and takes up a large amount of memory, didn't have that problem before. Is there a way to disable It? Even though Its suppose to resolve problems, I've never had any before and now that I have It I'm having problems. Any help would be greatly appreciated.
    == This happened
    ==
    Not sure how often
    == I upgraded to Firefox 3.6.6 and for the first time had plugin-container.exe on my computer.
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name
    Firefox
    Version
    3.6.6
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Adblock Plus
    1.1.3
    true
    Classic Compact Options
    1.2.1
    true
    [email protected]
    DownloadHelper
    4.7.2
    true
    FoxTab
    1.3
    true
    Java Console
    6.0.07
    false
    Java Console
    6.0.14
    false
    Java Console
    6.0.15
    false
    Java Console
    6.0.17
    false
    Java Quick Starter
    1.0
    false
    [email protected]
    Personas
    1.5.2
    true
    [email protected]
    Remove New Tab Button
    1.0
    true
    [email protected]
    WOT
    20091028
    true
    Java Console
    6.0.20
    false
    Adobe DLM (powered by getPlus(R))
    1.6.2.63
    true
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar
    0
    browser.history_expire_days.mirror
    180
    browser.places.importDefaults
    false
    browser.places.migratePostDataAnnotations
    false
    browser.places.smartBookmarksVersion
    2
    browser.places.updateRecentTagsUri
    false
    browser.startup.homepage
    http://www.google.com
    browser.startup.homepage_override.mstone
    rv:1.9.2.6
    browser.tabs.autoHide
    true
    dom.max_script_run_time
    0
    extensions.lastAppVersion
    3.6.6
    keyword.URL
    http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
    network.cookie.prefsMigrated
    true
    network.protocol-handler.warn-external.dnupdate
    false
    places.last_vacuum
    1273704069
    print.print_printer
    Dell Photo AIO Printer 924
    print.printer_Dell_Photo_AIO_Printer_924.print_bgcolor
    false
    print.printer_Dell_Photo_AIO_Printer_924.print_bgimages
    false
    print.printer_Dell_Photo_AIO_Printer_924.print_command
    print.printer_Dell_Photo_AIO_Printer_924.print_downloadfonts
    false
    print.printer_Dell_Photo_AIO_Printer_924.print_edge_bottom
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_edge_left
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_edge_right
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_edge_top
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_evenpages
    true
    print.printer_Dell_Photo_AIO_Printer_924.print_footercenter
    print.printer_Dell_Photo_AIO_Printer_924.print_footerleft
    &PT
    print.printer_Dell_Photo_AIO_Printer_924.print_footerright
    &D
    print.printer_Dell_Photo_AIO_Printer_924.print_headercenter
    print.printer_Dell_Photo_AIO_Printer_924.print_headerleft
    &T
    print.printer_Dell_Photo_AIO_Printer_924.print_headerright
    &U
    print.printer_Dell_Photo_AIO_Printer_924.print_in_color
    true
    print.printer_Dell_Photo_AIO_Printer_924.print_margin_bottom
    0.5
    print.printer_Dell_Photo_AIO_Printer_924.print_margin_left
    0.5
    print.printer_Dell_Photo_AIO_Printer_924.print_margin_right
    0.5
    print.printer_Dell_Photo_AIO_Printer_924.print_margin_top
    0.5
    print.printer_Dell_Photo_AIO_Printer_924.print_oddpages
    true
    print.printer_Dell_Photo_AIO_Printer_924.print_orientation
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_pagedelay
    500
    print.printer_Dell_Photo_AIO_Printer_924.print_paper_data
    1
    print.printer_Dell_Photo_AIO_Printer_924.print_paper_height
    11.00
    print.printer_Dell_Photo_AIO_Printer_924.print_paper_size_type
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_paper_size_unit
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_paper_width
    8.50
    print.printer_Dell_Photo_AIO_Printer_924.print_reversed
    false
    print.printer_Dell_Photo_AIO_Printer_924.print_scaling
    1.00
    print.printer_Dell_Photo_AIO_Printer_924.print_shrink_to_fit
    true
    print.printer_Dell_Photo_AIO_Printer_924.print_to_file
    false
    print.printer_Dell_Photo_AIO_Printer_924.print_unwriteable_margin_bottom
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_unwriteable_margin_left
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_unwriteable_margin_right
    0
    print.printer_Dell_Photo_AIO_Printer_924.print_unwriteable_margin_top
    0
    privacy.sanitize.migrateFx3Prefs
    true
    privacy.sanitize.timeSpan
    0
    security.warn_viewing_mixed
    false
    == Firefox version
    ==
    3.6.6
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
    == Plugins installed
    ==
    *-Shockwave Flash 10.0 r45
    *getplusplusadobe16263
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *4.0.50524.0
    *Google Updater pluginhttp://pack.google.com/

    You can set the prefs dom.ipc.plugins.enabled.* to false on the about:config page to disable the plugin-container process.
    dom.ipc.plugins.enabled.npctrl.dll (Silverlight)
    dom.ipc.plugins.enabled.npqtplugin.dll (QuickTime)
    dom.ipc.plugins.enabled.npswf32.dll (Flash)

  • Files are not appended in the container operation step ?

    Hi Guys,
    I have a BPM scenario where i receive a single file with multiple transactions
    1. Receive step receives the file and starts the process
    2 Transformation Step - Splits the file into individual transactions
    3. Block step --ForEach - Block has the follow 2 steps    
            1. Send - Synchronus - sends the request of each individual transaction to a 3rd party system and receives the response.
           2. Container Operation: Appending all the responses into a single file.
        Properties of container operation:
    Target: Multiline element (Block level element)
        Operation: Append
        Expression: Single element similar to structure above with out multiline.
    4. Send Step: I am writing this file locally to a file and this always shows only the last transaction in case of ParForEachMode and first transaction in the case of ForEach mode.
    can anybody explain why the messages are not appending into a single file. any help would be really appreciated
    Thanks,
    Srini

    Hi Liang,
    Check to see if the Sync Send step send every reply messages it received to container operation step:
    You might need to remove the container operation to see if you receive each individual msgs.
    > I have removed the container operation and i am able to see all the individual responses which i basically written to file just to cross check and every thing looks fine.
    Another way to go to workflow log (Complete Process with all the steps) to get debug information:
    SXMB_MONI -> Click "PE" under outbound queue -> Press "Display WorkFlow Log" button -> Click List with technical details -> Click Show Work item Container
    Here you can see the container and XML message used in this process step.
    You might have information on how message be processed in this step
    > I have checked in the workflow log and workflow shows the container operation only in the case of  ParForEach mode and when the block is in the ForEachMode i dont see any container operation step in the workflowlog and even in the ParForEach mode the container operation dosent have any details.
    Your Container Element reference to response message should also defined in block level, since the response message only exist inside the block. However, using process level container element should not cause any problem
    > I have defined the response messsage at block level in the container and the target i have defined it as multiline element defiend at process level. This multiline element is taken as input in the transformation step at prrocess level.
    are there any other alternatives for this process, i dont understand why the container operation is not appending the elments.
    any help would be appreciated
    Thanks,
    srini
    Edited by: srinivas kapu on Feb 25, 2008 12:10 PM

  • I purchased an album and some songs did not fully download.  Message said I did not have enough access privledges for teh operation

    I purchased a guns and roses album from itunes.  All songs did nt down load only some.  error message said i did not have enough access privledges for the operation whatever that means

    This refers to permissions on your computer which must have been changed. Start by using Disk Utility to repair permissions. Then do the following:
    Reset User Permissions and ACLs in Lion/Mountain Lion
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    From the Utilities menu select Terminal. At the Terminal prompt enter: resetpassword. Press RETURN. When the window opens select your startup drive where it says "Select the volume containing the user account:" At the bottom of the window you will see, "Reset Home folder permissions and ACLs." Click on the Reset button.

  • Passing expression values to a container operation

    hello,
    I have a question about passing values to a expression in a container operation. we have a container operation that has a hard coded value for a expression value. we are using a result element of offset days and the expression value is 4. sometimes we want to have this value as a different number. when we do this we have to change the expression value, create a transport , then move thru quality and then prod.   is there a way to have the the expression value passed as a variable to the workflow?
    if the value could be in a custom table that could be changed when ever it was needed and the workflow would read the value from the table.
    I am not fimilar with workflow so the suggestion that I have above might not be correct but I am looking for something on the order of this. if there is a way to accomplish this without having to change the workflow and move it through quality and then production that would be ideal.
    thanks in advance for the help.

    Marcos Suarez wrote:
    It is really a bad idea to use a Container operation step to get a variable value.
    Why? I disagree, using a task has a far greater performance overhead with hardly any benefit, a functional method in a conainer operation is much more efficient. It also makes your workflow a little bit easier to follow.
    Unless I misunderstood something?
    Edit: For the benefit of the original question, there are examples of how to do exactly this (functional method to retrieve/assign values) in the second edition of "Practical Workflow for SAP". And since proceeds go to charity, getting a copy is doubly worthwhile.
    Edited by: Mike Pokraka on Feb 3, 2011 1:55 PM

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • Calling a WS from a servlet...EndpointPort does not contain operation meta.

    Hi all,
    I'm trying to call a service from a servlet but I get an error:
    Error: Endpoint {http://com.susan/SusanWS}SusanWebServiceEndpointPort does not contain operation meta data for: LoginWebService
    ...the WS is up and running (of this I'm sure...cause I also tested it with soapui...and it works..)
    The webservice is running on a local jboss (to which i can successfully connect, and see the wsdl...).
    the servlet is running on a local tomcat (which is also ok...).
    I'm trying to call the WS like this:
    Service service = new Service();
    Call call = (Call)service.createCall();
    call.setTargetEndpointAddress( new URL( wsEndpoint ) ); //http://localhost:8080/webservices/SusanWS (the same I used in soapui...so it should be right)
    call.setOperationName( "LoginWebService"); //name of the method i want to use...
    call.addParameter( "appCode", Constants.XSD_STRING, ParameterMode.IN );
    call.addParameter( "login", Constants.XSD_STRING, ParameterMode.IN );
    call.addParameter( "passwd", Constants.XSD_STRING, ParameterMode.IN );
    //            call.setReturnType( Constants.XSD_INT ); //left this out...should be the cause...
    Object retval = call.invoke( new String[] { appCode, login, passwd} ); //appCode,login,passwd contain the strings i want to  forward as input.if I try to run it I get(in the jboss log...):
    15:41:55,594 ERROR [SOAPFaultExceptionHelper] SOAP request exception
    javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://com.susan/SusanWS}SusanWebServiceEndpointPort does not contain operation meta data for: LoginWebService
    at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:181)
    at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:107)
    at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
    at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
    at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
    don't know if it can help...the soapui request looks like this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://com.susan/SusanWS/types">
    <soapenv:Header/>
    <soapenv:Body>
    <typ:LoginWebService>
    <LoginInfo_1>
    <appCode>WEB_SERVICES</appCode>
    <login>root</login>
    <passwd>root</passwd>
    </LoginInfo_1>
    </typ:LoginWebService>
    </soapenv:Body>
    </soapenv:Envelope>
    anybody has an idea of what I'm doing wrong?
    Edited by: Turbo-555 on Mar 18, 2009 8:36 AM

    if I change the code with:
    //call.setOperationName( wsMethod );
    call.setOperationName( new QName("http://com.susan/SusanWS",wsMethod)); //http://com.susan/SusanWS is the targetnamespace...the error changes into:
    16:55:21,051 ERROR [SOAPFaultExceptionHelper] SOAP request exception
    javax.xml.rpc.JAXRPCException: Cannot find child element: {http://com.susan/SusanWS/types}LoginWebService
    at org.jboss.ws.binding.soap.SOAPBindingProvider.getParameterFromMessage(SOAPBindingProvider.java:799)
    at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindRequestMessage(SOAPBindingProvider.java:282)
    at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:112)
    at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
    at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
    at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)

  • Result element of Container Operation

    Hi Guys,
        When I was learning the workflow template of "Absence Notification", I have a question with the step 'Container Operation'. The result element 'Flag' can be selected from the workflow container when using F4,but I can't find the 'Flag' in the container of this work flow template.
    Can anyone explain this to me? Thanks a lot.

    I think you need to create the workflow container for paratmeter FLAG...
    Please create it and do the neccesary binding....
    Then try F4 in container operation
    Edited by: Swaminathan PJ on Jan 30, 2010 1:17 PM

  • XPATH Predicate for container variable of simple type in BPM

    Hi Experts,
    I have read various threads and blogs with this topic and as I couldn't get a clear view, hence I am raising it here. In my BPM, I am collecting idocs by means of a finite loop. I have used a receive step, container step(to append the idocs) and another container(to increment the counter_variable) in a loop. I want to run the loop for the condition: counter_variable<=3 whereas 'counter_variable' is a container variable of 'simple XSD type(XSD: integer)'.
    All the blogs and threads  have demonstrated like how to use the EX operator with container variable of type 'Abstract interface'. But how can i incorporate the above scenario for a container variable of simple xsd type ? Please share your ideas.
    Regards,
    Laawanya

    so this is what you need to do,
    1. in your loop have a container operation that will increment your simple integer variable each time a message come in.
    2. for your loop the condition will be, left operand (simple integer variable) /= (not equal) 3 (Constant)
    Ref: SAP BASIS (SWCV) -> http://sap.com/xi/XI/System/Patterns -> Integration Process -> BpmPatternCollectPayload
    the only difference here will be the loop condition to be altered as i have mentioned above.

  • Container operation type single

    hi all
    I am facing a problem. i have a BPM which has a block step-->Propertie mode=ForEach. inside this block i define some container operation type single whichs ones take some values. i need that the values of the containers elements update for each message in the block(ForEach).is it possible or i need to define the contasiners as multiline??
    T&R
    Rodrigo

    hi,
    there no way to define it as single and update the value.
    i need the those values to pass them as IMPORT to a Message Mapping. so the containers has to be singles.
    if no, i have to define another step in the BPM to get the first value of the all multiline container operation??
    thanks.

  • BPM : Files are not appended in the container operation step

    Hi Guys,
    I am using the BPM pattern,  "BpmPatternCollectTime"  provided by the SAP  under SAP BASIS 6.4 for the N:1 transformation.
    In the the Message mapping and Interface mapping source structure has "0 to unbounded"  occurance and Target has 1 coourances.. I have given the Time as 5 Minutes to collect the messages...
    I dont know why the files are not being appened? Each time am getting the only one file's content as output other files contents(records) are not being merged.
    Is there anything wrong in the given BPM pattern? or  i  need to do any changes in the container operation step ?
    can anybody explain why the messages are not appending into a single file. any help would be really appreciated...
    Can anybody guide me , how can i debug the BPM?
    Thanks and Regards
    Venkatesh

    Hi Raj,
    The Source and target structure are the same ie, BpmPatternCollectMessageToBeCollected..
    Structure is
        BpmPatternCollectToBeCollected
        ID
        OverallNumber
    In SAP BASIS 6.4 , In the message maaping you can find the
    "BpmPatternCollectMerge". I am using the same mapping..
    The mapping contains the Source field mappings for field element ID and OverallNumber to the same field in the Target.
    After selecting Source's occurance for 0 to unbounded , In the mapping the tool itself is adding two extra nodes as below...
    Messages                                 
      Message1
        BpmPatternCollectToBeCollected
        ID
        OverallNumber
    Mapping is
    Source Structure ->Target Structure
    Messages (1)                  Messages  (1)
    Message1 (1)                  Message1  (1)
      BpmPatternCollectToBeCollected  (0-unbound)  BpmPatternCollectToBeCollected  (1)
        ID  (1)-------> ID (1)
        OverallNumber    (1)-------> OverallNumber
    The line indicates above the mapped fields...ID and OverallNumber is only mapped above.
    Regards
    Venkatesh

  • BPM Container operation not executed

    Hi
    We have a scenario where several Idocs are to be collected to one flat file. I have set up a time loop in BPM to receive idoc (abstract), map idoc to flat file, add flat file to flat_file_list (container operation, append). After 2 minutes the loop ends, and the flat_file_list is mapped to a flat file and sends the flat file to the connected legacy system, via the file adapter.
    Most of the process steps work just fine, but the files are not appended into one file. All mappings are correct, and the FTP adapter correctly sends the files to the FTP server.
    Using the Business Process Engine monitoring I see that all interfaces receive the messages, all mappings are done, but there are no steps for the container operation! Should this container operation be visible in the monitor?
    So it seems that everything is working except the bundling of messages. Does anyone have any experience with this?
    The container operation is setup as following:
    Step name: AddMsgToLst
    Target: FlatFileList
    Operation: Append
    Expression: FlatFile (which is the flat file I am mapping the idoc to)
    Any help is highly appreciated!
    Br
    Kenneth

    Hi Robin
    Thanks for your message. After I insert a new step and save the process, I can't activate the process from the sxi_cache. It says that the Cache entry for directory process is already up-to-date.
    I have tried both with activating first in repository and not activating the process, but in both cases the sxi_cache says it's up-to-date.
    Any suggestions?
    -Kenneth

  • Container operation BPM

    Hi ,
    This question is on container operation inside the BPM (PI 7.0 sorry a bit outdated here )
    why is it that in a container operation you can set a simple type variable to any tag in the payload but not the other way round .
    Is it possible to set an XML tag in a payload with the value in a simple type variable .

    Hi Robin
    Thanks for your message. After I insert a new step and save the process, I can't activate the process from the sxi_cache. It says that the Cache entry for directory process is already up-to-date.
    I have tried both with activating first in repository and not activating the process, but in both cases the sxi_cache says it's up-to-date.
    Any suggestions?
    -Kenneth

  • Container Operation in BPM

    Hi,
    I have a BPM that should change a message with a container operation. The message got the structure:
    message
    |-errorcode
    is it possible to fill the errorcode (string) with a container operation? It is an abstract interface. Or is a container operation only possible with a simple xsd-data type?
    I tried it with an abstract interface, but don't understand how to fill the expression.
    thanks
    chris

    Ok, I guess this, but points for you.
    I tried now to do following:
    S/A-Bridge open -> transformation step -> S/A-Close
    In transformation I mapped request to response, but if I check the BPM he tells me, that the repsonse container is initializied, but not used ?!? Why? In closing S/A-Bridge I use the response.
    thanks

Maybe you are looking for

  • How to receipt demand draft(DD) received from customer  ?

    Dear all, Explaining problem in detail,Client has made a scrap sale(ar invoice) to customer for Rs.74025.76, need to collect tax colleceted as source(TCS) for above amount which calculates to Rs.838, Rounding off is Rs.0.24. Customer paid for ar invo

  • Dynamic Lead Columns

    We have a requirement where users need to enter 3 Key figure values for 3 periods against 0MATERIAL.  The layout should show as follows: MaterailKeyFigureMonth1Month2Month3 SKU1----KF125--20----20 SKU1----KF25 USD-5 USD---6 USD SKU1----KF32---2-----2

  • Query the name of the parent table in a foreign key constraint

    Hello, Does anyone know how to query for the parent table name in a foreign key constraint? I don't see that relationship in ALL_CONS_COLUMNS or ALL_CONSTRAINTS. Thanks in advance, Michael

  • One Solution For No Sound for imovie on Export to ipod from QT

    In converting edited imovie projects to video ipod movies, I found the video had sound only for the first edited "clip" in the timeline. I finally solved this problem by extracting the audio from the clips- then saving the project. I convert the proj

  • Facebook gets timed out always, clearing cookies caches did not help

    My OS is Vista on one computer and Windows 7 on the other. The problem has started after I recently upgraded FIREFOX on both computers. Everytime I try opening FACEBOOK it gets timed out. Any help to resolve the issue will be appreciated.