Try to call from java code process.

What do we call a task of IOM process from java code?

Thor.API.Operations.tcProvisioningOperationsIntf has long addProcessTaskInstance (long plTaskKey, long plOrcKey) API.

Please visit http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e17334/Thor/API/Operations/tcProvisioningOperationsIntf.html for more information

Tags: Fusion Middleware

Similar Questions

  • Can you call a java code or write a java code to clean or normalize the data in a Disqualification processor?

    Can you call a java code or write a java code to clean or normalize the data in a Disqualification processor?

    We're not your script:

    #! function : doit

    var st = new com.dq.SampleTest();

    function doit()
    {
      st.Inputs(5);
      output1 = st.result;
    }

  • Wander, call from java to sql pl with table out parameter procedure

    Hello
    Please help me? It is urgent for me...
    My Oracle's Code is like this,

    CREATE TABLE TEST_TABLE ( DATE1 DATE, VALUE_EXAMPLE VARCHAR2(20 BYTE), VALUE2_EXAMPLE VARCHAR2(20 BYTE), VALUE3_EXAMPLE NUMBER ); CREATE OR REPLACE TYPE TONERECORDTEST AS OBJECT ( DATE1 DATE, VALUE_EXAMPLE VARCHAR2(20), VALUE2_EXAMPLE VARCHAR2(20), VALUE3_EXAMPLE NUMBER ); CREATE OR REPLACE TYPE TTESTTABLE IS TABLE OF TONERECORDTEST; CREATE OR REPLACE PACKAGE test_collection_procedures AS PROCEDURE testCallProcedureFromJava(start_time IN DATE, end_time IN DATE, table_data OUT TTesttable); END test_collection_procedures; / CREATE OR REPLACE PACKAGE BODY test_collection_procedures AS PROCEDURE testCallProcedureFromJava(start_time IN DATE, end_time IN DATE, table_data OUT TTesttable) IS BEGIN SELECT TONERECORDTEST(date1, value_example, value2_example, value3_example) BULK COLLECT INTO table_data FROM TEST_TABLE WHERE DATE1>=start_time AND DATE1<=end_time; END testCallProcedureFromJava; END test_collection_procedures;

    And it's like my Java Code

    import java.sql.Connection; import java.sql.DriverManager; import oracle.jdbc.OracleCallableStatement; import oracle.jdbc.OracleTypes; import oracle.sql.ARRAY; import oracle.sql.ArrayDescriptor; import oracle.sql.STRUCT; import oracle.sql.StructDescriptor; public class testPLCollectionType { public static void main(java.lang.String[] args) { try{ //Load the driver Class.forName ("oracle.jdbc.driver.OracleDriver"); // Connect to the database Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@serverbd:1521:squema1","user", "password"); // First, declare the Object arrays that will store the data (for TONERECORDTEST OBJECT TYPE) Object [] p2recobj; Object [] p3recobj; Object [] p4recobj; // Declare the Object Arrays to hold the STRUCTS (for TTESTTABLE TYPE) Object [] p2arrobj; // Declare two descriptors, one for the ARRAY TYPE // and one for the OBJECT TYPE. StructDescriptor desc1=StructDescriptor.createDescriptor("TONERECORDTEST",conn); ArrayDescriptor desc2=ArrayDescriptor.createDescriptor("TTESTTABLE",conn); // Set up the ARRAY object. ARRAY p2arr; // Declare the callable statement. // This must be of type OracleCallableStatement. OracleCallableStatement ocs = (OracleCallableStatement)conn.prepareCall("{call test_collection_procedures.testCallProcedureFromJa va(?,?,?)}"); // Declare IN parameters. Realize that are 2 DATE TYPE!!! Maybe your could change with setDATE ocs.setString(1,"01-JAN-04"); ocs.setString(2,"10-JAN-05"); // Register OUT parameter ocs.registerOutParameter(3,OracleTypes.ARRAY,"TTESTTABLE"); // Execute the procedure ocs.execute(); // Associate the returned arrays with the ARRAY objects. p2arr = ocs.getARRAY(3); // Get the data back into the data arrays. //p1arrobj = (Object [])p1arr.getArray(); p2arrobj = (Object [])p2arr.getArray(); System.out.println("Number of rows="+p2arrobj.length); System.out.println("Printing results..."); for (int i=0; i<p2arrobj.length; i++){ Object [] piarrobj = ((STRUCT)p2arrobj).getAttributes();
    System.out.println();
    System.out.print("Row "+i);
    for (int j=0; j<4; j++){
    System.out.print("|"+piarrobj[j]);
    }
    }

    }catch (Exception ex){
    System.out.println("Exception-->"+ex.getMessage());
    }
    }

    }
    Actually when i running the java program it is showing error
    Exception-->ORA-06550: line 1, column 58:
    PLS-00103: Encountered the symbol "VA" when expecting one of the following:

    := . ( @ % ;
    The symbol ":=" was substituted for "VA" to continue.
      I am not getting the error .Please help me out Dhabas Edited by: Dhabas on Jan 12, 2009 3:49 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    // Declare the callable statement.
    // This must be of type OracleCallableStatement.
    ..."{call test_collection_procedures.testCallProcedureFromJa va(?,?,?)}");
    

    Looks like divorced Ja's.

  • How to get to variable in backing_bean from java code

    I need to reach one of my variable in a backing_bean of java code (when click the button I need to get the value of the variable is on one of the backing_bean)
    I have defined the field of beans as session
    what I need to do

    Copy the following code in my bean

    private String loginType.

    public String cb2_action() {/ / I call this method}
    setLoginType ("skip");
    }

    and in this method, I try to get the value of the parameter

    public String getLoginType() {}
    FacesContext fctx = FacesContext.getCurrentInstance ();
    ELContext elctx = fctx.getELContext ();
    Application = fctx.getApplication ();
    ExpressionFactory exprFactory = application.getExpressionFactory ();
    ValueExpression valueExpr =
    exprFactory.createValueExpression (elctx, "#{bindings.loginType.inputValue}", Object.class);
    oracle.jbo.domain.Number departmentId = null;
    loginType = (oracle.jbo.domain.Number) valueExpr.getValue (elctx);
    "" return loginType + ' ";
    }

    When I run the code it returns null

    so, in this case... Set the connection type in a sessionscope... and access it anywhere...

                Map sessionMap = (Map)ADFUtils.evaluateEL("#{sessionScope}");
                sessionMap.put("loginType",loginTypeValue); // loginType value is set here..
    
    //access it outside like
                Map sessionMap = (Map)ADFUtils.evaluateEL("#{sessionScope}");
               sessionMap.get("loginType");
    
  • Run query from java code

    Hi all

    I have a requirement in which I need to create a selection based on the parameter query that user input. If the query will include the parameter if its value is not null.

    Is it possible to add this query in the resource file?

    In case I want to execute java code, how can I call to run the query of theis?

    I tried result Long = ws.executeSQL (query.toString ());

    but it gives an error because executeSQL is for DML queries.

    Please suggest an approach.

    If you do not know the name of the column, you must use createResultSetSQL.

    Jonathan

    http://jonathanhult.com

  • How to simulate BlackBerry options/commands from java code?

    Hi friends,

    For wipe/erase of personal data, we have the following option on BlackBerry phone (model: 9930)
    Options of-> Security-> Security Wipe

    I want to give the same option in my BlackBerry App (e.g.. A button marked "clear data")
    How can I simulate the same functionality through java code

    Can someone please provide some help or provide a reference to the entire API

    Thank you

    Laughing out loud
    You can enter simulation (clicks, presses), and you can launch native applications, if you know their module name, but both approaches have their limitations.

    See http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html... or http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html... to see how to apply.

  • Read current user connected from java code VOImpl

    Hi experts,

    I use Jdev 12.1.3 and I would like to read the value of adf.context.securityContext.getUserName () in the java code of a VOImpl so I can pass it as a parameter to a PLSQL stored procedure.

    How can I do?

    Thank you very much
    Jose.

    You can use the code below:

    String currentUser store = ADFContext.getCurrent () .getSecurityContext () .getUserPrincipal () .getName ();

    Thank you

  • How to create a BPEL Process task using java code

    Hello

    I created a BPEL process (for creating task), in which my requirement is that I need to create a task based on some inputs and assign it to the user in partucular and then get out of this flow.

    earlier, I felt that I will use the human task activity. but when I use that task will be created in the same process and proceedings will be stuck on there until human intervention (the BPEL process waits for the result.).

    is it possible that I can use Java activity and create tasks from java code, 'I know how to assign a specific user task. Please tell me.
    Abhishek

    Published by: abhishek on April 25, 2011 12:42 AM

    Hi Abhishek
    1. you can try this alternative approach and it should work.

    2. basically, most of the BPEL process eventually auto generated Web services (.) WSDL). When we create a BPEL process, everything we do is give diagram of input, output schema and creates a bpel process with the default operation named as "process" in all the old versions as up to 11.2 SOA (and maybe before). BUT SOA 11.3 from, we can create a process BPEL, with our own WSDL and our own scheme. There is no restrictions like having only a single operation named 'process', etc.. In any case, what I mean is, each BPEL process ends up as a WebService, with entry and exit of the payloads of XSD.

    3. from the JDeveloper itself, locate the .wsdl for your BPEL process under the Workflow project. Create a new project of Proxy customer service Web and generate a customer for this wsdl Web service proxy. This will create you Service, Port and JAVA classes equivalent payload theoretically in your case taskpayload.xsd with these 4 items you have. Ignore the full blown the HumanTask which has all the system elements and attributes of a task of bpel. All you need is to undertake a task with your own payload data. Create a simple Client Java (EJB or Servlet later to make more flexible). In this Java client, retrieve the Service object in the proxy and port. Then instantiate the java class that represents the payload. Set 4 values you want and set the user name, etc. You may need some adjustments for the setting of the user. Then the port invoke otherwise (go your java object here).

    Sample code snippet
    prepare the message for BPEL of appeal; Define the fields that can not be null
    MyPayloadRequest myPayloadRequest = new MyPayloadRequest();
    myPayloadRequest.setInitiator("");
    myPayloadRequest.setTitle("");
    myPayloadRequest.setEmployeeName("");
    myPayloadRequest.setEmpContact("");

    web service client Get for BPEL receive point and call: first generate client proxy
    MyBPELPProcess_client_ep serviceClient = new MyBPELPProcess_client_ep();
    MyBPELPProces proxy = serviceClient.getNewMyBPELPProces_port ();
    proxy. Process (myPayloadRequest);

    Please note that you can also use the SOA workflow API and the Manager back call personalized for this first task classes. In this class, you can have the methods of the interceptor, which is called each time a task is initiated, saved, Submit, approve etc etc (all events essentially). This gives you access to all the objects in a workflow with full charge blown. So you can always get the data you pass above and in this custom class, the value of the user, date/time etc..

    It's just a different approach you can try.

    Thank you
    Ravi Jegga

  • Read configuration data source AM from Java Bean code

    Hi experts,


    I use Jdev 12.1.3 and I need to read the name of AM Datasource from Java Code, to get a text like "jdbc/nomsourcededonnees.


    Is this possible?

    Thank you very much
    Jose.

    This object has methods getURL(), getUser() and others.

    But there is no method as getDataSourceName()

    (AFAIK, jdbc connection "knows" nothing about the Data Source)

    You can try something like this inside your AppModuleImpl class:

    this.getSession () .getEnvironment () .get (Configuration.JDBC_DS_NAME)

    Dario

  • How to kill a process of the system of java code.

    Hi,


    i need to kill or remove windows system process like cmd.exe from java code.

    as detached from end process in task mgr.

    i tried below code but its not removed.

    is there a better way we can do this.

    killing a system process from java code will create any issues?


      
    public static void main(String[] args) throws Exception {

      
    String[] cmd = { "cmd.exe" };
      
    Process p = Runtime.getRuntime().exec(cmd);
       p
    .destroy();
      
    }


    any suggestions or ideas are really appreciated.

    Thank you.


    The utility 'tasklist' will give you the same basic information in the Task Manager. You can always capture that and find the line (including the PID) of your application.

    Use your favorite search engine and look for "windows get the pid using java. You will find LOTS of other posts for this same issue.

  • Send messages via the java code, but using definitions of Mail

    Hello

    I want to send mails using java code, but reading the data (body, subject, sender, etc.) of the IOM Mail definitions.

    can someone send me a link or a thread where this method is used?
    or a reference to some Thor API manual.

    Thank you.

    You can use tcEmailOperationsintf API to call IOM Email definitions from java code.

    Here is the snippet of code on the use of this API.

    {} public void getEmailTemp (String email_def_name)
    tcEmailOperationsIntf emailIntf = null;
    resSet tcResultSet = null;
    Map emailMap = new HashMap();
    emailMap.put ("Email Definition.Name", email_def_name);
    try {}
    emailIntf = getUtilityFactory() (Thor.API.Operations.tcEmailOperationsIntf)
    .getUtility ("Thor.API.Operations.tcEmailOperationsIntf");
    resSet = emailIntf.findEmailDefinition (emailMap);
    for (int i = 0; i)< resset.getrowcount();="" i++)="">
    resSet.goToRow (i);
    Void String = resSet.getStringValue ("Email Definition.Subject");
    System.out.println ("subject of the email is:" + sub);
    String body = resSet.getStringValue ("Email Definition.Body");
    System.out.println ("body of the email is:" + body);
                                  
    }
    } catch (tcAPIException e) {}
    System.out.println ("Exception occurred in the getEmailTemp method:" + e);
    } catch (tcColumnNotFoundException e) {}
    System.out.println)
    «cloumn illegal name allowing access to the getEmailTemp method: "+ e);»
    }
    System.out.println ("getEmailTemp smoothly method");
    }

    You can use this code for your reference.

  • Cannot make calls from

    OK, so I'm new to Skype, I did the profile, it is 80%, I added a subscription - he says still Skype credit sucks do not know if it is normal, but I can't make a call... the person should add u before you can call?

    Hello
    Unfortunately you have not provided sufficient information to enable us to answer you. Please indicate your request in detail.

    1. What subscription you have?

    2. in which country are you trying to call?

    3. you try to call from Skype to Skype, a fixed line or a mobile phone?

    Thank you.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • How to get the value on a model that is defined in the java code in email

    Hello

    I created a custom code and send email as well to custom component. I can send emails using the method:

    InternetFunctions.sendMailTo (EmailID, EmailTemplate, subject, cxt);

    But my problem is that I have to get a value in the model of "EmailTemplate" which are defined from java code. but I don't know how to get the value.

    I will highlight in the java code by using this code: binder.putLocal ("ErrorApproveRejectMsg", massegeBody);

    I'm trying to enhance the model using the code below, but not able to get.

    1 < $exec getValue ("#active", "ErrorApproveRejectMsg") $ >

    2 < $exec getValue ("#active", ErrorApproveRejectMsg) $ >

    3 < getValue ("ErrorApproveRejectMsg") $exec $ >

    4 < $exec getValue (ErrorApproveRejectMsg) $ >

    5 < getValue ("#local", ErrorApproveRejectMsg) $exec $ >

    6 < getValue ("#local", "ErrorApproveRejectMsg") $exec $ >

    7 < $ErrorApproveRejectMsg$ >

    8 < $exec ErrorApproveRejectMsg$ >

    Assuming that cxt will be your Service or execution context object

    You can do something like this

    DB. PutLocal ("ErrorApproveRejectMsg", "Error");

    cxt.setCachedObject ("DataBinder", db);

    PageMerger h = new PageMerger (db, cxt);

    cxt.setCachedObject ("PageMerger", h);

    InternetFunctions.sendMailTo (usersEmail, emailTemplate, emailSubject, cxt);

    where db is current databinder object, and you can put any variable custom in the workbook by using the putLocal method.

    Thank you

    Vikram

  • How to trigger an ActionListener JAVA code?

    Hello

    I have the button and the button has an ActionListener attached.

    I want to trigger the ActionListener from java code (no click in the interface).

    How can I do this?

    Thank you.

    I found the answer.

    save.doClick ();

  • MapIDs call from c# Application

    In the past, our developers were able to call Webhelp MapIDs from web applications (using the included Javascript APIs).

    But this time, they're trying to call Webhelp MapIDs from a Visual c# Windows application. We found little of RoboHelp 7 online information on this topic.

    Specifically, developers need to know where RoboHelp stores the MapIDs which correspond to the .htm topic files... similar to what is in the file BSSCDefault.h, but with the filename .htm ("Set Preferences.htm"), not the name MapID internal ('SetPreferences").

    We suppose that this information must be in the compiled file from WebHelp somewhere, but we cannot find anywhere. Does anyone know where RoboHelp says this information? Is it compressed/encrypted, maybe? Or do I have to manually provide the dev team with a report of links MapID every time that I change them?

    See you soon,.

    Adam.

    Hello

    RoboHelp provides CSH API files that can be called from C++ code, you can tell the developer to look into C++ code and call this API.

    The CSH API is located in the location of the folder C:\Program Files\Adobe\Adobe RoboHelp 7\CSH API.

    Put aside each webhelp output location has a list of all the MAPID as well as the location of the HTML file. It is compiled as part of javascript + html.

    You can open the whcshdata.htm file in the webhelp output folder and search for SetCsh (function call. This is the html output to know the MAPID html file mapping.

    Again, it is always best to call the CSH API and then read the code html and analyze and get the MAPID mapping.

    Praful-

Maybe you are looking for

  • best way to clone my boot drive?

    just survived a crash of my Mac Pro desktop computer.  Waiting for a GeForce GTX 680 replacement graphics card.  I need to create a sustainable clone, course of my boot drive. I'd rather NOT have to duplicate everything, just apps, library, system, m

  • Boot CD Satellite C870-196

    + Translated: +. Hello I can't boot to a bootable CD on my laptop.Although I changed boot priority in the BIOS, or I force the recovery on the DVD in Windows 8.The drive reads and serious well.Did you have the same problems and what to do? Thank youK

  • Background picture in XP

    I have a background image, I placed under C:\WINDOWS and selected through office > background. But when I start my machine and personal preferences have been loaded, and I get to the stage where I am asked to type my password to Windows, is another s

  • Not able to click on internet protocol version 4 (TCP/IPv4) it does not open.

    Original title: about ipv4. I could not click on internet protocol version 4 (TCP/IPv4). I want to put the mannul ip but I can't do because of what is not open by clicking. y at - it a solution? Please give me answer fast as you can.

  • Hide no port. for outside users

    Hello I have a cisco ASA 5520 appliance. Now the situation is I have a server in my interior of networks and this server is coordinated with the public ip address and activated port.so 2010 which, apart from the user can access the site to web server