How to call the GET_SEARCH_RESULTS service in the filter

Hi Experts,

I wrote a custom filter and in the filter, I'll call service GET_SEARCH_RESULTS. But I am getting following error:
intradoc.data.DataException:! csNoServiceDefined, GET_SEARCH_RESULTS
at test.notification.ExpirationNotification.executeService(ExpirationNotification.java:195)
at test.notification.ExpirationNotification.doCustomDailyEvent(ExpirationNotification.java:112)
at test.notification.ExpirationNotification.doFilter(ExpirationNotification.java:51)
at intradoc.shared.PluginFilters.filter(PluginFilters.java:92)
at intradoc.server.ScheduledSystemEvents.checkScheduledEvents(ScheduledSystemEvents.java:161)
to intradoc.server.IdcSystemLoader$ 13.handleManagerEvent(IdcSystemLoader.java:2411)
to intradoc.server.SubjectManager$ 1.run(SubjectManager.java:92)


Here is the code:


/ public class ExpirationNotification implements FilterImplementor
{
public int doFilter (ws, eventData, ExecutionContext cxt DataBinder workspace)
get DataException, ServiceException
{
try {}
Action string = eventData.getLocal ("action");
If (action! = null & & action.equals ("CustomExpNotifyEvent"))
{
doCustomDailyEvent (ws, eventData, cxt);

Back to CONTINUE;
}

} catch (Exception e) {e.printStackTrace () ;}
Back to CONTINUE;
}

protected void doCustomDailyEvent (ws, DataBinder eventData workspace,
ExecutionContext cxt) throws ServiceException, DataException
{
Update ("CustomExpNotifyEvent", "CustomExpNotifyEvent event began...", ws);
Try
{
DataBinder serviceBinder = new DataBinder();
serviceBinder.putLocal ("QueryText', ' dOutDate > ' < $dateCurrent () $ > ' < AND > dOutDate < '< $dateCurrent (30) $ >'" "'");
serviceBinder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
executeService (serviceBinder, "sysadmin", false);
ResultSet results = serviceBinder.getResultSet("SearchResults");
}
} catch (Exception e) {e.printStackTrace () ;}
Update ("CustomExpNotifyEvent", "CustomExpNotifyEvent finished successfully," ws ");
}

Protected Sub update (String msg, String action, workspace workspace) survey ServiceException, DataException
{
long curTime = System.currentTimeMillis ();
ScheduledSystemEvents sse = IdcSystemLoader.getOrCreateScheduledSystemEvents (workspace);

sse.updateEventState (action, msg, curTime);
}

protected void trace (String str)
{
SystemUtils.trace ("scheduledevents", "- custom-" + str);
}
Public Shared Workspace getSystemWorkspace()}
Workspace workspace = null;
WsProvider provider = Providers.getProvider ("SystemDatabase");
If (wsProvider! = null)
workspace = wsProvider.getProvider ((workspace));
Returns the workspace;
}

/**
To get information about a user. Only the "userName" parameter must be
* non-null.
*/
public static getFullUserData (String userName, cxt ExecutionContext UserData,
Throws of Workspace ws) DataException, ServiceException {}
If (ws is nothing)
WS = getSystemWorkspace();
UserData userData is UserStorage.retrieveUserDatabaseProfileDataFull (name of user, ws, null, cxt, true, true);.
return userData;
}

' Public Sub executeService (linking DataBinder, String userName,
Boolean suppressServiceError) throws DataException,
ServiceException {}
get a connection to the database
Workspace workspace = getSystemWorkspace();
Look for a value of IdcService
String cmd = binder.getLocal ("IdcService");
If (cmd is nothing)
throw new DataException("!csIdcServiceMissing");
get the service definition
ServiceData serviceData = ServiceManager.getFullService (cmd);
System.out.println(cmd+"...serviceData---"+serviceData);
If (serviceData is nothing)
throw new DataException (LocaleUtils.encodeMessage)
" ! csNoServiceDefined', null, cmd));
create the object for this service
The service = ServiceManager.createService (serviceData.m_classID, workspace, null, Binder, serviceData);
Get the data from the full user of this user
{if (service.getCachedObject ("propFile") == null)}
UserData fullUserData = getFullUserData (username, service, workspace);
service.setUserData (fullUserData);
Binder.m_environment.put ("REMOTE_USER", username);
ServiceException error = null;
try {}
init service do not return HTML
service.setSendFlags (true, true);
create the ServiceHandlers and producers
service.initDelegatedObjects ();
do a safety check
service.globalSecurityCheck ();
prepare for service
service.preActions ();
run the service
service.doActions ();
perform a cleanup
service.postActions ();
store new data customization
service.updateSubjectInformation (true);
service.updateTopicInformation (binder);
} catch (ServiceException e) {}
error = e;
} {Finally
Delete all temporary files.
service.cleanUp (true);
workspace.releaseConnection ();
}

handle any error
If (error! = null) {}
If {(suppressServiceError)
error.printStackTrace ();
If (binder.getLocal ("StatusCode") == null) {}
binder.putLocal ("StatusCode", String
.valueOf (error.m_errorCode));
binder.putLocal ("StatusMessage", error.getMessage ());
}
} else {}
throw new ServiceException (error.m_errorCode, error
(. getMessage());
}
}
}
}

Published by: user4884609 on November 5, 2012 17:05

1 are you sure that the filter you can call occurs AFTER the idc services are loaded?

2. What is a filter of SystemScheduledEvent type? There is a filter 'scheduledSystemEvent '. Could you have mixed the two?

Tags: Fusion Middleware

Similar Questions

  • How to call the filter PS in my own PlugIn MFC

    There are several filters in PS that I use frequently. But it's so bad to find a. I want to write a plugin so that I can see all the filters that I want in the same interface. I try. But when I called filter in my plugin, he always told me that something was wrong and the plugin can't do anything. Can someone tell me how to call from the PS code MFC called Plugin.My filter filter was subsequently. I don't know what's wrong. (ps: my English is so poor... I don't know if there is a syntax error. Sorry).

    Test PIActionDescriptor = NULL;

    SPErr error = kSPNoError;

    Result PIActionDescriptor = NULL;

    error = sPSActionDescriptor-> do (and test);

    sPSActionDescriptor-> PutEnumerated (test, 'GEfk', 'GEft', 'EOPS');

    sPSActionDescriptor-> PutInteger (test, keyEdgeThickness, 2);

    sPSActionDescriptor-> PutInteger(test,keyEdgeIntensity,6);

    sPSActionDescriptor-> PutInteger(test,keyPosterization,2);

    error = sPSActionControl-> Play (& result, eventPosterEdges, test, plugInDialogSilent);

    You can only use the routine to play in an Automation plugin. filters are for access to the pixels only. They can do what an Automation plugin.

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    Hi all

    How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    F2 does NOT an on-screen BIOS setting.

    Is there another trick?  Or, perhaps, defining the procedure step by step to start the BIOS?

    TIA

    Power on the laptop and all logo HP being displayed, press F10.

  • How to call the procedure type table

    Hi I have the below requirement

    Created in the sub table type

    CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);

    create or replace procedure test_proc_type (p_type char_type) is

    Start

    I'm looping 1.p_type.count

    dbms_output.put_line (p_type (i));

    end loop;

    end;

    How to call the procedure with parameter as a type!

    SQL> create or replace type  char_type as table of varchar2(4000)
      2  /
    
    Type created.
    
    SQL> create or replace procedure test_proc_type (p_type char_type)
      2  is
      3  begin
      4    for i in 1..p_type.count loop
      5      dbms_output.put_line (p_type(i) ) ;
      6    end loop;
      7  end;
      8  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL>
    SQL> exec test_proc_type(char_type('A','B','C','D','E'))
    A
    B
    C
    D
    E
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to call the stored procedure when I press the button

    Hello

    I want to know how to call the procedure/SQL statement when I press the button using callable statement.

    can someone give me it please link who knows the steps to do this.

    Thanks in advance,
    SAN

    Hello

    read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html

    ~ Abhijit

  • How to call the variables of the scene inside movieClips

    How to call the variables of the scene inside movieClips

    One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?

    #########
    TEST
    #########

    ttisql:
    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > BACK NUMBER
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    >
    > O_number RETURN;
    >
    > EXCEPTION
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >


    Pro * C case:

    EXEC SQL BEGIN DECLARE SECTION;
    number of num1;
    EXEC SQL END DECLARE SECTION;

    EXEC SQL EXECUTE
    Start
    : num1: = F_SAMPLE ('A');
    end;
    END-EXEC;

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:


    Thank you.

    GooGyum

    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    EXEC SQL BEGIN DECLARE SECTION;
    int num1;
    EXEC SQL END DECLARE SECTION;

    Then it will work very well.

    Chris

  • How to call a custom service Oracle11g UCM in Java to another component code custom?

    I have two Oracle UCM UCMComponent1 and UCMComponent2 components. UCMComponent1 has several custom services. My requirement is that I want to call UCMComponent1 service customized in the java method UCMComponent2.

    Anyone have an idea how I can do this service personalized in the Java method call? I know how to call the existing service of the Complutense University of MADRID in Java method.

    Thank you!

    No difference to call a standard service.  Apply the same methodology.  Provide the parameters expected for the service and call it.

  • How to lock the filter radiation bevel/gradient? or other alternatives?

    Hello

    I'm using the filter bevel to add some kind of radiation gradient 1 to my symbol, but when I turn the symbol of changes in bevel if I flip it. How keep/lock the filter bevel at the same place no matter how I rotate? If this isn't the case, are the other alternatives?
    I also tried radiation gradient tool, but it will not change now when I turn it

    you will need to use actionscript to do.  because the bevel "angle" property, you will need to reassign as the object rotates.

  • How to customize the Filter Table ADF Faces?

    How to customize the filter ADF Faces Table

    I want to filter column == > add filter select only one option

    http://img192.imageshack.us/img192/994/unledixd.PNG | http://img192.imageshack.us/img192/994/unledixd.PNG


    What about Ninja

    Published by: Ninja on August 29, 2011 12:42 AM

    Published by: Ninja on August 29, 2011 12:47 AM

    Check [url: http://hasamali.blogspot.com/2010/10/custom-adf-table-filter-with-drop-down.html] this blog.

    Jean Lou

  • How to apply the filter to a specific column condition, but not to the report?

    Hello

    I'm having a problem in the application of a filter to one of the column condition.
    I have a scheme with the table around 10 dimension tables and a fact. My requirement is to provide a count on the table of facts with associated with some other columns in the dimension tables.

    Lets consider a scenario with tables as sales (Fact), region (Dimension), Year (Dimension), Type of sale (Dimension).

    Now my requirement is to highlight the fields

    City (Region) - city
    Year-
    Sales Count (dirty table) - number of all sales of the fact table
    Sales Count (dirty table) - count of all sales of the fact which type of sale table is 'Cash'

    Here, my question is how to apply the filter condition of Sales Type = 'MONEY in' only on one of the Sales Count column that comes from the fact table. I want to be ordered for the fourth column, the filter condition.

    Can someone let me know how?

    Thank you

    You must do this:

    1) click the button column fx sales. (This procedure does than on fact, not attributes.0

    2) click on the filter button.

    (3) select the size of sales from the left Type "selection list."

    (4) in the filter window, enter CASH, and click OK.

    This will create one filter on sales 'use' size 'type sales' as the filter. It willl filter only to this column.

  • How to call the paint of another method program

    Hello

    I have a custom BitmapField that I would like to drawText, using graphics.drawText. Previously, I had no problem, that I would call setBitmap to the paint method and it would make the drawText. However, he did an infinite loop problem, so I moved it to another function, that will affect the value manually the bmp. Now, I am unable to drawText, that I placed this code in my service object. I would, however, when I select this particular BitmapField to drawText.

    For now, since another function setBitmap is not a very good option because this will call the FieldManager sublayout which I think can be a battery problem. Is there another way I can call drawText?

    What is the reason, once again, to not draw the text from inside her object?  Why must you to setBitmap() to draw the text in the first place?

    Indeed, setBitmap() inside of object causes an infinite loop (I remember this post).  However, it should not be linked to draw text in any way, nature or form.

    Check some (members) variable inside your method object and make the draw you need based on this value.  If you want your bitmapField to draw text under certain conditions, change the value of this member and invalidate(), causing object pick up the change.

    In addition, if your FieldManager sublayout a problem, there are a problem.  Look at this code and fix the bugs rather than them with all kinds of mobile code around masking.

    If you need more assistance, please post here the pieces of code (especially how you would draw the text when it worked) and we'll figure out something.

Maybe you are looking for

  • cannot answer calls without closing messages

    I am unable to respond to calls when an SMS or an email came. I tried to change all my alert settings, and it makes no difference, I can't always answer a call without closing all unread messages and emails. any suggestions?

  • GPS suddenly stopped working on iPhone 4S

    Hello Suddenly, the GPS on my iPhone 4 works a few weeks ago. At first I thought it was the app, but I noticed that is not work in other applications too, so I think it is necessary with the GPS on the phone itself. I did not change anything to cause

  • HP mini fatal error... System. CNU92862L5

    PLO generate password bios for the key! THX!

  • lost functionality of the Multisim student trial

    Hello I'm 17 days on my trial of multisim student and from today I can no longer place components or instruments, but can open existing circuits and perform simulations. Any ideas? Thanks, Dave

  • problems with updates for Windows (for Win XP)

    I have problems with Windows (for Win XP) updates...(1) I installed the hardware updates for my sound card (via Windows update) and now I can't hear the music through my speakers or headphones.  In addition, related to my sound card software do not w