How to use GetTemplateInstances API

I´m trying to use the GetTemplatesInstances API but it returns blank. I haven´t
been able to find documentation and specially examples about its use.
I would appreciate any inputs about the issue.
Thanks in advance,
Claudio

Hi,
I am trying to use the same code but it is giving me the following exception.But
it works some time back before i gone through this code.
Any help is appreciated.
java.io.InvalidClassException: com.bea.wlpi.common.WorkflowException; Local clas
s not compatible: stream classdesc serialVersionUID=-7418636980678225986 local
c
lass serialVersionUID=0
at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:5
18)
at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java
:931)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
at java.io.ObjectInputStream.skipToEndOfBlockData(ObjectInputStream.java
:1489)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1211)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:66)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:38)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConne
ction.java:186)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputS
tream.java:165)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:590)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:
319)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
33)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating
response stream ] - with nested exception:
[java.io.InvalidClassException: com.bea.wlpi.common.WorkflowException; Local cla
ss not compatible: stream classdesc serialVersionUID=-7418636980678225986 local
class serialVersionUID=0]
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConne
ction.java:195)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputS
tream.java:165)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:590)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:
319)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
33)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Exception in thread "main" weblogic.rjvm.PeerGoneException: ; nested exception
i
s:
weblogic.utils.NestedException: ***** ASSERTION FAILED *****[ Exception
creating response stream ] - with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating
response stream ] - with nested exception:
[java.io.InvalidClassException: com.bea.wlpi.common.WorkflowException; Local cla
ss not compatible: stream classdesc serialVersionUID=-7418636980678225986 local
class serialVersionUID=0]]
java.io.InvalidClassException: com.bea.wlpi.common.WorkflowException; Local clas
s not compatible: stream classdesc serialVersionUID=-7418636980678225986 local
c
lass serialVersionUID=0
at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:5
18)
at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java
:931)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
at java.io.ObjectInputStream.skipToEndOfBlockData(ObjectInputStream.java
:1489)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1211)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:66)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:38)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConne
ction.java:186)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputS
tream.java:165)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:590)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:
319)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
33)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating
response stream ] - with nested exception:
[java.io.InvalidClassException: com.bea.wlpi.common.WorkflowException; Local cla
ss not compatible: stream classdesc serialVersionUID=-7418636980678225986 local
class serialVersionUID=0]
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConne
ction.java:195)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputS
tream.java:165)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:590)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:
319)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
33)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.NestedException: ***** ASSERTION FAILED *****[ Exception creating
response stream ] - with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception creating
response stream ] - with nested exception:
[java.io.InvalidClassException: com.bea.wlpi.common.WorkflowException; Local cla
ss not compatible: stream classdesc serialVersionUID=-7418636980678225986 local
class serialVersionUID=0]]
at weblogic.rjvm.RJVMImpl.gotExceptionReceiving(RJVMImpl.java:533)
at weblogic.rjvm.ConnectionManager.gotExceptionReceiving(ConnectionManag
er.java:747)
at weblogic.rjvm.t3.T3JVMConnection.hasException(T3JVMConnection.java:60
0)
at weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:
364)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
33)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
"Claudio Letelier" <[email protected]> wrote:
>
Simon, it worked!! thanks again for your help and commitment. I really
appreciate
what you´ve done.
Claudio
Simon Evans <[email protected]> wrote:
hi, i am sure i am not doing anything special. perhaps if you are
authenticated with a user that does not have priviledges, it is not
returning anything. attached is the code.
it is kind of hard to tell what the methods should be returning from
the
javadoc. but i seem to be getting all the instances that i have run(the
status on them is active even though they have finished).
Claudio Letelier wrote:
Well Simon sorry but I have tried the code you have sent and it alsodoesn´t work.
I think that maybe I´m not setting correctly the objects admin, templateDefinitionInfo
and organizationInfo. Can you please explain to me how do you obtainthese objects.
Thanks again,
Claudio
Simon Evans <[email protected]> wrote:
i have not really been using it, but i was just played around with
it
a bit.
actually it seems to be giving me all the instances that have beenrun.
i am calling
Date fromDate = new Date(0);
Date toDate = new Date();
List list =
admin.getTemplateDefinitionInstances(templateDefinitionInfo.getId(),
organizationInfo.getOrgId(), true, fromDate, toDate, 0, 100);
i am not sure about the state though, they all have a state of ACTIVE
even though they are completed. but it seems they only can have two
states, InstanceInfo.WORKFLOW_STATE_ACTIVE and
InstanceInfo.WORKFLOW_STATE_SUSPENDED
are you giving the correct template definition id, and organizationid?
Claudio Letelier wrote:
Simon, thanks for your reply. I´m ussing the admin session bean andI´m also possitive
that there are workflows running. But even in this circumstances
I
still receive
a blank either with getTemplateInstances and getTemplateDefinitionInstancesthat
you suggested. Is this working for you? What I need to do is recoverthe existing
instances even if they are not running. Is there any other way to
try
or walkaround?
Greetings,
Claudio
Simon Evans <[email protected]> wrote:
are you using the Admin session bean?
this will only return a list of currently running workflows. you
may
also want to try getTemplateDefinitionInstances()
Claudio Letelier wrote:
I´m trying to use the GetTemplatesInstances API but it returns
blank.
I haven´t
been able to find documentation and specially examples about its
use.
I would appreciate any inputs about the issue.
Thanks in advance,
Claudioimport java.util.*;
import javax.naming.*;
import javax.management.*;
import weblogic.management.MBeanHome;
import com.bea.wlpi.common.*;
import com.bea.wlpi.server.admin.*;
import com.bea.wlpi.server.principal.*;
import com.bea.wlpi.server.worklist.*;
public class WliClient {
public static void main(String[] args) throws Exception {
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
p.put(Context.SECURITY_PRINCIPAL, "admin");
p.put(Context.SECURITY_CREDENTIALS, "security");
Context ctx = null;
Admin admin = null;
WLPIPrincipal wlpiPrincipal = null;
try {
ctx = new InitialContext(p);
AdminHome adminHome = (AdminHome)ctx.lookup("com.bea.wlpi.Admin");
admin = adminHome.create();
WLPIPrincipalHome wlpiPrincipalHome = (WLPIPrincipalHome)ctx.lookup("com.bea.wlpi.WLPIPrincipal");
wlpiPrincipal = wlpiPrincipalHome.create();
Date from = new Date(0);
Date to = new Date();
int max = 100;
for(Iterator i = wlpiPrincipal.getAllOrganizations(false).iterator();
i.hasNext(); ){
OrganizationInfo info = (OrganizationInfo)i.next();
for(Iterator j = admin.getTemplates(info.getOrgId()).iterator();
j.hasNext(); ){
TemplateInfo ti = (TemplateInfo)j.next();
for(Iterator k = admin.getTemplateDefinitions(ti.getId()).iterator();
k.hasNext(); ){
TemplateDefinitionInfo tdi = (TemplateDefinitionInfo)k.next();
List l = admin.getTemplateDefinitionInstances(tdi.getId(),
info.getOrgId(), true, from, to, 0, max);
for(Iterator m = l.iterator(); m.hasNext();){
InstanceInfo ii = (InstanceInfo)m.next();
String state = "unknown";
if(ii.getState() == InstanceInfo.WORKFLOW_STATE_ACTIVE)
state = "active";
else if(ii.getState() == InstanceInfo.WORKFLOW_STATE_SUSPENDED)
state = "suspended";
System.out.println(ii.getId() + ", " + ii.getName()
+ ", " + state);
} catch(Exception ex){
throw ex;
} finally {
try{ wlpiPrincipal.remove(); } catch(Exception ex){}
try{ admin.remove(); } catch(Exception ex){}
try{ ctx.close(); }catch(Exception ex){}

Similar Messages

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • Where I can find documentations on how to use MyComponse API ?

    Where I can find documentation on how to use MyComponse API ?
    Any example ?
    Thanks

    not 100% sure at which point the callout to BEFOREPROCESSCOMPOSE is done, but during the process logs phase, the data in the CVR$ tables is copied into the clg$ tables, and the cvr$ table dml flags cleared
    unles the query is very complex/long running why not join the clg$ tables (only have the data that has changed, so smaller than the cvr$ tables, to your base tables for determining if relevant within the MyCompose needCompose method?
    an example from one of our MyCompose classes is
    public int needCompose(Connection conn, String clientid) throws Throwable{
    boolean baseDirty = false;
    Statement st = conn.createStatement();
    String sql = null;
    int rowCount = 0;
    int fetchCount = 0;
    ResultSet rows;
    // log user
    // sql = "INSERT INTO qpub_log (TIMESTMP,message) "
    // + " values (sysdate, '" + clientid + " assd' )";
    // rowCount += st.executeUpdate(sql);
    // need to compose if there are any relevant changes to assessment details FOR
    // TIR / SOLO assessments
    // Inspection history checklists
    // PIJ marking sheets
    // INSSI
    // Risk Assessment)
    // also changes to (in case of underlying alterations causing data to be withdrawn)
    // STATUS_LOGS
    // ROLE_ASSGNTS
    if(this.baseTableDirty("CDB_OWNER", "ASSESSMENT_DETAILS")){
    return oracle.lite.sync.MyCompose.YES;
    if(this.baseTableDirty("CDB_OWNER", "STATUS_LOGS")){
    sql = "SELECT count(clg.context_key) "
    + "FROM CDB_OWNER.ROLE_ASSGNTS rola "
    + " ,CDB_OWNER.USER_ACCOUNTS usra "
    + " ,CDB_OWNER.CLG$STATUS_LOGS clg "
    + "WHERE usra.user_name = '" + clientid + "' "
    + "AND rola.rolat_rol_code IN ('INSPECTOR','COVER_INSP','DELEG_INSP') "
    + "AND rola.context_key_by=to_char(usra.par_id) "
    + "AND rola.context_key_for=clg.context_key "
    + "AND clg.staa_seq_no=47 ";
    rows = st.executeQuery(sql);
    rows.next();
    fetchCount = rows.getInt(1);
    if (fetchCount != 0) {
    sql = "INSERT INTO qpub_log (TIMESTMP,message) "
    + " values (sysdate, '" + clientid + " assd stal" + fetchCount + "' )";
    rowCount += st.executeUpdate(sql);
    return oracle.lite.sync.MyCompose.YES;
    if(this.baseTableDirty("CDB_OWNER", "ROLE_ASSGNTS")){
    sql = "SELECT count(clg.id) "
    + "FROM CDB_OWNER.ROLE_ASSGNTS rola "
    + " ,CDB_OWNER.USER_ACCOUNTS usra "
    + " ,CDB_OWNER.CLG$ROLE_ASSGNTS clg "
    + "WHERE usra.user_name = '" + clientid + "' "
    + "AND rola.rolat_rol_code IN ('INSPECTOR','COVER_INSP','DELEG_INSP') "
    + "AND rola.context_key_by=to_char(usra.par_id) "
    + "AND rola.id=clg.id ";
    rows = st.executeQuery(sql);
    rows.next();
    fetchCount = rows.getInt(1);
    if (fetchCount != 0) {
    sql = "INSERT INTO qpub_log (TIMESTMP,message) "
    + " values (sysdate, '" + clientid + " assd rola" + fetchCount + "' )";
    rowCount += st.executeUpdate(sql);
    return oracle.lite.sync.MyCompose.YES;
    // if no relevant changes do not compose
    return oracle.lite.sync.MyCompose.NO;
    }

  • How to use custom API's

    Hi All,
    In OIM how can i use my own/Custom API"S. Wher do i need to place the Jar/Class files. Like in other Identity Management tools (I only have the experience of SUN) you can place the files under WEB-INF/lib or WEB-INF/classes and then can easily use them, does OIM provides this/similar kind of functionality and how we can use that.

    Hi,
    If you want to use custom API to create adapter then put the jar file in <OIM_Install>/xellerate/Java Task/
    folder and if you want to use them to create task Schedular then put it in <OIM_Install>/xellerate/Schedular/
    regards

  • How to use KM APIs, Can we use them in Standalone J2ee Application

    Hi Experts,
    I got KM APIs.
    I need to use them to access the KM Repository Content.
    I m a newbie in SAP KM.
    Can anyone help me to use KM APIs.
    For Eg:
    com.sapportals.portal.security.usermanagement.IUser user = …
    IResourceContext resourceContext = new ResourceContext(user);
    RID rid = RID.getRID("/etc");
    try {
      IResource resource = ResourceFactory.getInstance()
                           .getResource(rid, resourceContext);
      if( resource != null ) {
        // resource found
        System.out.println("resource " + resource.getRID() + " found");
      } else {
        // resource not found
        System.out.println("resource " + resource.getRID() + " does not exist");
    catch( ResourceException e ) {
      // problem while retrieving the resource
      System.out.println(
                        "exception while trying to get resource " + e.getRID()
                        + ": " + e.getMessage()
    How will i get the IUser populated?
    Can i use KM APIs from a standalone J2EE application?
    Can i Populate IUser in standalone J2EE application's Servlet?
    Please help me out.
    Waiting for reply
    -pankaj

    Hi Prem,
    Can u tell me how to deploy a war file on to the SAP J2EE server?
    I know how to deploy on Tomcat Server, but dont have any experience abt SAP J2EE server.
    Does SAP J2EE server also have some Webapp directory like TOMCAT where we have to put our WAR File?
    Or to Deploy a WAR File in SAP J2EE server is different, if yes then wats the procedure to do that?
    And can i access the KM APIs in SAP J2EE Server?

  • How to use the API for DATE, MONTH  AND YEAR

    I would like to use the java api in .util.calender in the java api to get the date.
    How to implement the API for the "DATE","MONTH","YEAR" which are available provide by java?
    can someone give me in one complete code?

    From the Java Developers Almanac 1.4:
        Calendar cal = new GregorianCalendar();
        // Get the components of the date
        int era = cal.get(Calendar.ERA);               // 0=BC, 1=AD
        int year = cal.get(Calendar.YEAR);             // 2002
        int month = cal.get(Calendar.MONTH);           // 0=Jan, 1=Feb, ...
        int day = cal.get(Calendar.DAY_OF_MONTH);      // 1...
        int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); // 1=Sunday, 2=Monday, ...

  • How to use Catalog API's

    Hi,
    Can someone please point me to some references or sample implementation where Catalog and Search API functionality is used.
    I want to create a stand-alone windows application much like APILocator.exe to index and search a set of PDF files.
    Thanks
    -Sanjai

    Hi Leonard,
    Thanks for the response.
    Yes I have downloaded the SDK. I'm looking for something more detail as to how to use the catalog APIs to index set of PDF's and use it to search ( if its possible )
    Thanks again
    -Sanjai

  • How to use java api while java programming especially using javase and java swing?

    i need help for java api for undo, redo, htmleditorkit,editorkit.
    in my project i have to use java swing for desktop application but, i need help for how to implement and how to retrieve java api.
    please reply with example or code..

    i need help for java api for undo, redo, htmleditorkit,editorkit.
    in my project i have to use java swing for desktop application but, i need help for how to implement and how to retrieve java api.
    please reply with example or code..
    You find examples and code by searching the internet, not by using forums.
    Start with The Java Tutorials - it has trails for the bulk of the Java functionality.
    See the trail 'How to Write an Undoable Edit Listener'
    http://docs.oracle.com/javase/tutorial/uiswing/events/undoableeditlistener.html
    You learn by DOING - not by reading. Actually DO the tutorial example and try to understand WHAT it does and HOW it does it.
    Then search for other tutorial trails that are of interest.

  • How to use of API for Cancel Sales Orders

    Hi....
    I want to use API for Cancel Sales Orders. Plz give me advice how we can cancel orders. I know that there is procedure provide in ORACLE APPs (i.e. OE_ORDER_PUB.process_order). But in this procedure i know the how to create and update sales order, but how to Cancel order with the use of this API.
    Plz send me soultion as soon as possible. ITS VERY VERY URGENT BASE.
    Thanks in Advance.

    Hi all,
    We are importing Sales Orders on 11.5.9 using OE_Order_PUB.Process_Order API .We have supplied most of the mandatory fields and the same data works from the front end. When we use the API it throws a Ora 20001.
    A snapshot of the error message.
    SQL> exec pk_process_object.process_order('1o');
    Message Count is :2
    Message is RA-20001: User in Package OE_Header_Util Procedure Get_Order_Number
    Message is :User-Defined Exception in Package OE_Header_Util Procedure
    Pre_Write_Process
    Return Status is ErrorU
    PL/SQL procedure successfully completed.
    --------------------------------------------------------------------------------------------

  • Help! How to use pay_element_link API

    Hi all,
    I am developing HRMS Interface to transfer employee element data from other system into EBS. And I want to use Pay element Link API to implement the requirement.
    The requirement is:
    1.     Using the primary key of NATIONAL_IDENTIFIER_NUMBER (ssn) check to see if the employee exists as an active employee in Oracle.
    2.     Validate that the Element is a valid element and retrieve the Benefit Type from the DFF (ELEMENT_INFORMATION11). If the element is invalid or does not have a Benefit Type defined, flag the record as ‘REJECTED’ and write the error to the log file and move to next record in staging.
    3.     If the employee has another active element assigned for the same Benefit Type, using the API’s terminate the existing element for that Benefit Type.
    4.     Using the API’s add the new element to the employee with the appropriate element entries.
    5.     Flag the status of the record in staging to ‘PROCESSED’.
    The step1 and step2 is logic adjustment. And I have finished them. Next I will finish 3,4 and 5. The fifth step is easy to approach. I can not do 3 and 4 for I do not konw how to use the pay_element_link_API. And I know the 3 wiil use PAY_ELEMENT_LINK_API.update_element_link, the 4 step will use PAY_ELEMENT_LINK_API.CREATE_ELEMENT_LINK. But the most difficult is I do not konw what to pass the parameter to update_element_link and create_element_link. I do not know the meaning of the two procedure's parameter.
    When the element has many entry values, how to import these entry value into the EBS. For example, an element names 'Retirement Plan' and the element has a input value names 'Amount' and the value is 80$. So I want to know how to import the 80$ into EBS by the API. Just means, the 80$ will pass to which one parameter in the create_element_link or update_element_link.
    Please give me some ideas. Thank you so much

    On troubleshooting the HR api's you can use the pyupip logging mechanism . This would allow you to pinpoint what stored procedure section is being executed when the error ocurred.
    set serveroutput on
    spool trace.log
    begin
    hr_utility.set_trace_options ('TRACE_DEST:DBMS_OUTPUT');
    hr_utility.trace_on;
    -- your code here
    hr_utility.trace_off;
    Exception
    when others then
    dbms_output.put_line(sqlerrm);
    hr_utility.trace_off;
    END;
    spool off

  • How to use BEA API Authorization.getRoles?

    I find a bea api class Authorization.getRoles(P13nResource aResource, P13nContextHandler aRequestContext)
    return Map,I wonder know the P13nResource and P13nContextHandler how to creatre ?
    because I want to use the API to return Map roles,please tell me some information

    this code can get roles map:
    P13nContextHandler ctxHandler = EntitlementHelper.getP13nContextHandler(request);
                   HierarchyRoleResource resource = new HierarchyRoleResource(SecurityHelper.getApplicationName(), webAppName, EntitlementConstants.P13N_ROLE_POLICY_POOL, "");
                   Map map = Authorization.getRoles((P13nResource)resource, ctxHandler);

  • How to use tcRequestOperationsIntf API to create a self-request?

    According to documentation, I can use tcRequestOperationsIntf API methods to create and manage requests.
    How can I use these methods to initiate a self-request (for provisioning user a new resource)?
    Because when I create a usual request, it's equivalent to direct provisioning the resource (from the user's resource profile) then all approval processes are bypassed :(

    While tcUserOperationsIntf.provisionResource would provision the resource to the user bypassing the approval, tcRequestOperationsIntf can be used to raise a request to provision a user with a resource along with approval, if approval is defined for that resource in the approval process.
    Here is a sample code for raising a request to provision user (lUserKey) with resource object (lObjectKey)
    ///Created the request object for provisioning the RO
    requestObj = (tcRequestOperationsIntf) utilFactory.getUtility("Thor.API.Operations.tcRequestOperationsIntf");
    HashMap reqMap = new HashMap();
    reqMap.put("Requests.Target Type", "U");
    reqMap.put("Requests.Object Request Type", "Add");
    reqMap.put("Requests.Type", "U");
    lRequestKey = requestObj.createRequest(reqMap);
    //Adding user to be provisioned for
    requestObj.addRequestUser(lRequestKey, lUserKey);
    //Adding object to be provisioned
    requestObj.addRequestObject(lRequestKey, lObjectKey);
    //create the request
    requestObj.completeRequestCreation(lRequestKey);
    Hope it helps,
    Rgds, Ajay

  • How to use wsus api samples

    hi
    i want to use ComplianceReport from wsus api. what shall i do?
    please guide me
    best regards

    I'm confused... are you looking for instruction on how to use Visual Basic?
    Have you read the
    API Samples and Tools Readme?
    Having asked that, a couple of items of significant note:
    You've apparently downloaded the *WSUS v2* Samples and Tools (not sure why it's still linked, but it is). What you'll need to download is the
    *WSUS v3* Samples and Tools.
    The "Compliance Report" you are trying to use is no longer included in the Samples and Tools package because it's now incorporated into the product itself. Have you reviewed the IN-CONSOLE reports yet? Specifically the "...For Approved Updates"
    reports.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • How to use Win_Api_Shell api in forms 6i.

    hi all,
    I don't know how to use apis' in forms. Can u help me please?
    sankar

    Hi,
    The "What's New" release notes is somewhat misleading. However, what was released in SP2 is a framework called Custom Data Provider framework which has extension points for a developer to build new plug-ins which can facilitate in accessing different data sources. I suggest you reading:
    http://help.sap.com/businessobject/product_guides/boexir31SP2/en/xi31_sp2_cdp_dev_en.pdf
    You can visit posting at:
    /people/ted.ueda/blog/2009/08/07/web-intelligence-rich-client-custom-data-provider-plug-in--tracking-forest-fires
    Regards
    Sumitesh

  • How to use excel api in java?

    I need to use excel api in Java to generate data in excel format. Can any one tell any of the use ful Excel api that we can down load from net? i have read about Apache's POi-hssf-Java api. But the jar i downloaaded from Apache site is not working ? Can anybody please send me the jar for taht Api ?

    Hi,
    In fact i was not clear about whcih jar file to download from the apache site. i found one folder structure like this
    -parent
    -bin
    -src
    All these folders contained some zip files. i took the zip files and extracted them. And i set teh class path also . But when i tried to import in java programs ,these jar files are giving compilation errors

Maybe you are looking for

  • Configure WLS for BI Publisher 11g

    Hello all. We have same problem with configure WLS for BI publisher on Lunix x64. We do this: 1. We have WLS instance with ADF apps on server. 2. We need install BI Publisher on that server too 3. We install OBIEE 11 in "Software only" mode 4. We sta

  • Set up network for gaming

    My friend and I have MBPs and want to set up a network so we can play against each other in XP. Can anyone tell me how we do this?

  • How to print Text with Java

    I am new to java, learning fast, lots of new stuff every day. i want to develop an application that can print a report (Text mostly eg. Like an Invoice) to a printer. i am searching the net still cant find nothing that i can understand. Help please

  • How can I read epubs on the iMac?

    I wanted to know how can I read epubs on the imac.  I know for the ipad you can use apps like ibooks.  Is there something like that for the imac?

  • Why doesn't itunes see that my ipod is a video ipod?

    Hi, I am getting really annoyed with this. I have always used a photo ipod 30GB, but I now have a video one. However when I try to add videos to the ipod itunes tells me that not all songs were added to the ipod because they cannot be played on this