How to initialize a data object in bpm 11g?

I created a Business Object with a few attributes,
then a Process Data Object with the type of the Business Object,
and tried to use it in Humantask, set it as Editable.
but I failed editing it when starting the process, it's not editable at all, I don't know why? maybe the Process Data Object is not initialized? or something I missed?
anyone can help? thanks.

If you are using ADFBC, the easiest way is
- drop the data control as ADF form
- add CreateInsert method binding to the pagedef
- add an invokeAction for the createInsert with a refresh property set to renderModel so that an empty creation form will be shown on page load
for insertion
- Finally, add the commit action as button
Sireesha

Similar Messages

  • How to initialize a Type Object??

    Hi,
    I have a procedure as below, which has type t_r_rep_data and a table having this type as record, but when I called this procedure, it has ORA-06530 error: Reference to uninitialized composite. Can you tell me how to initialize a type Object?
    Also, is it this the right way to insert a type record into the table, or can I just just INSERT statement?
    Many thanks
    PROCEDURE add_row
    ( in_row_type_ind CHAR,
    in_ordering VARCHAR2
    ,in_record_type VARCHAR2
    ,in_level1_value VARCHAR2
    ,in_level1_description VARCHAR2
    ,in_level2_value VARCHAR2
    ,in_level2_description VARCHAR2
    ,in_level3_value VARCHAR2
    ,in_level3_description VARCHAR2
    ,in_level4_value VARCHAR2
    ,in_level4_description VARCHAR2
    ,in_amount_as_of_date1 NUMBER
    ,in_amount_as_of_date2 NUMBER
    ,io_table IN OUT t_ntr_rep_data
    IS
    l_row_count NUMBER;
    l_row t_r_rep_data;
    BEGIN
    -- ??? not sure where and how to do the initialization bit
    l_row.row_type_ind := NULL;
    l_row.ordering := NULL;
    l_row.record_type := NULL;
    l_row.level1_value := NULL;
    l_row.level1_description := NULL;
    l_row.level2_value := NULL;
    l_row.level2_description := NULL;
    l_row.level3_value := NULL;
    l_row.level3_description := NULL;
    l_row.level4_value := NULL;
    l_row.level4_description := NULL;
    l_row.amount_as_of_date1 := 0;
    l_row.amount_as_of_date2 := 0;
    SELECT COUNT(*)
    INTO l_row_count
    FROM (TABLE(CAST(io_table AS t_ntr_rep_data)));
    l_row.row_type_ind := in_row_type_ind;
    l_row.ordering := in_ordering;
    l_row.record_type := in_record_type;
    l_row.level1_value := in_level1_value;
    l_row.level1_description := in_level1_description;
    l_row.level2_value := in_level2_value;
    l_row.level2_description := in_level2_description;
    l_row.level3_value := in_level3_value;
    l_row.level3_description := in_level3_description;
    l_row.level4_value := in_level4_value;
    l_row.level4_description := in_level4_description;
    l_row.amount_as_of_date1 := in_amount_as_of_date1;
    l_row.amount_as_of_date2 := in_amount_as_of_date2;
    io_table(l_row_count+1) := l_row;
    END;
    --------------------------------------------------

    Simply write a stud which queries the Oracle Dictionary tables which will return Object Type
    Based on the object_name and User_name

  • How to compare two date Objects

    Hi,
    I have two Calendar Objects, one is coming from client and one is my server time, I need to evaluate that incoming time with server time so that if it is sent before an hour back then i should not do anything on that request Object. I have converted the incoming String into Calendar Object and how can i evaluate these two Calendar Objects including their hours and minutes.
    Thanks in advance
    bajju

    bajjurireddy, ignore Mobiquity's post. It contains no useful information and will only serve to confuse and frustrate you.
    Mobiquity wrote:
    Also make sure that the two date objects are in the same date format..
    public static String DateToDateString(java.util.Date d, String dateFormat)
         throws ParseException {
              SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
              sdf.setLenient(false); // this is required else it will convert
              String dateString = sdf.format(d);
              return dateString;

  • How can I choose data objects which is not displayed

    hi.
    I want to migrate setup data that like as lookups, value set values, users, responsibilities and so on.
    but can not find them in list of data objects.
    az_apis table has all of these list. but why can't see them.
    'iSetup user's guide' guides that it is possible to migrate them. but i don't know how to do.
    plz give me the way.
    thanks a lot.

    # When we configure webserver, we define a port (in your case 8345).
    # If an user connects to the webserver at that port (i.e. 8345), it redirects the request to underlying manage servers of WLS domain, depending on the algorithm and the list mentioned in conf file of webserver (obj.conf)
    # now if you have already configured a virtual host, that is listening on 80 port, and your client/user directly hits it, they will get the application running.
    it is very similar like ---> if you have two Manage servers MS1 and MS2 running on 7001 and 7002 respectively, and you have webserver configured, the client have two choice. Either directly hit the manage servers or hit the webserver. (Here the obvious question is that client should know the manage server ports and ip)
    (I am sorry, iincase I have misunderstood your question, if so could you please re describe the question.)

  • How to convert  a date object to gregorianCalendar

    hi,
    I need to convert Date object to a gregorian calendar object. Can anyone tell me how to do that?
    thanx

    GregorianCalendar gc = new GregorianCalendar();
    gc.setGregorianChange(new Date(Long.MIN_VALUE))
    gc.setTime(new Date());

  • HOW TO : Initialize / On Load of a BPM Object Presentation

    Hi,
    We have a BPM Object Presentation. On Load of the same, we need to enable/disable a UI field basing on data of one of the BPM Object attributes.
    If we put it in constructor, it is not allowing to enable/disable the Presentation UI Component as it is a 'client side' operation.
    Wanted to know where we can put the code to 'initialize' of a presentation or do something 'on load' of the presentation form.
    Regards,
    user8702013

    Hello,
    You can create a method which can be called on the initialization of the screen.
    To map the method with the presentation, you need to click on the presentation(be careful not to select one of the components). You will then see the properties of the entire presentation in the right hand side pane.
    Change the initialization method from <None> to the method you want to call on the loading of the presentation.
    This method will get executed every time the presentation is called.
    If you are making any DB calls or want to interact with some other external resources in this method then change the Server side property of this method to Yes.
    In case of queries revert back.
    HTH.
    Regards,
    Jaydev Doshi

  • How to create a date object with a specific time?

    How can I create a date with today's date but with a specific time, say: 20:00:00?
    Thanks in advance.

    Don't forget about those pesky milliseconds!I'd have gotten away with it too.. if it hadn't been
    for that pesky BigDaddyLoveHandles.I'm in top form today. On the drive in to work I managed to
    push two scooter riders off the road and gave the finger to
    a Prius owner.

  • How do I export data object reference?

    Hello,
    I have a reference variable declared as below -
    DATA: go_myobject TYPE REF TO cl_gos_manager.
    This should be made available in another program. Export statement gives an error stating go_myobject cannot be or contain a reference.
    Please suggest.
    Thanks,
    Sita.

    Hi Sita,
    Let's assume your program name in ZTEST and you written below code.
    DATA: go_myobject.TYPE REF TO cl_gos_manager.
    CREATE OBJECT go_myobject.
    And have access methods of go_myobject.
    If you want to access reference of go_myobject of program ZTEST from other program and your program ZTEST would available in Stack which I assumed your case. You can access reference by get variable (ZTEST)go_myobject from other programs.
    Hope this helps.
    Regards
    Nimesh Patel.

  • How to pass the data to reusable process (11g PS3)?

    I am using reusable process (11g PS3) and want to pass the data from the caller process to the reusable process. But I could not do this since the start event for the reusable process is none start event. When I open the call activity, I am not able to do the mapping for the data association for 2 processes. Please help if you know how to do this.
    Thanks a lot,
    Helen

    Java Threads are what we call light threads because they already share the same memory and thus share their variables.
    On the other hand, processes, which are Heavy threads have separate address spaces and can't share variables. That's why those need to create shared memory spaces so they can share variables. But we don't need that in Java.

  • How do I determine which version of BPM 11g I'm running?

    Any pointers?

    There are few ways depending on what else you installed.
    1. BPM/SOA is on top of exactly matching version of Weblogic Server. So if you know Weblogic Server version like 10.3.5, then it means BPM/SOA is also 10.3.5.
    2. If you already have a BPM/SOA Domain created for this version, go to that Domain root folder/config/config.xml file. And in this file you can find <domain-version> tag that shows the domain version.
    3. Assuming you have the Domain already created/running, and if you have SYS DB Privileges or you can request someone to send you details of records from a Table Named "SCHEMA_VERSION_REGISTRY". This table is visible only for SYS user and directly under Tables section. This Table is NOT in soa_infra or mds schema. This table tells all the different schemas with the prefixes, and corresponding versions. One Database can have multiple versions of RCU with different Prefixes.
    4. Finally, if you do not have any domain created or the easiest way is go to the root folder where Weblogic Server is installed like Weblogic Home and look for entries in files like registry.xml file. Your Middleware_Home/wlserver_10.3/ should have a folder named product.properties and contents of this files tell u all the details including the version. And there is a logs folder also under middleware home that has all logs of the stuff that you installed.
    I know your question was simple, but just wanted to give all the options. Someone can give a one line answer for your question.
    Thanks
    Ravi Jegga

  • How to Update HUMAN TASK Payload SOA/BPM 11G

    Hi ,
    I need to update the Expiration time based on the escalation level for Human task .
    I trying to update the TaskExpiration time on the Java call back when onAssign activity is triggered.
    Even though the execution is successful the task will not be updated with new expiration time..
    Below is  the code snippet
    public class CallBackClass implements IRoutingSlipCallback , IDynamicTaskEscalationPattern {
        public CallBackClass() {
            super();
        public void onTaskAssigned(Task task, String string, String string1,String string2) {
            System.out.println("routing Slip: inside onTaskAssigned");
            System.out.println("Priority :" + task.getPriority());
            task.setPriority(1);
            System.out.println("TaskID :" + task.getSystemAttributes().getTaskId());
            task.setPriority(1);
            System.out.println("Updated Priority :" + task.getPriority());
            getTaskEscalationUser(task);
            System.out.println("Executed getTaskEscalationUser");   
           WorkflowUtil.getRoutingSlip(task.getSystemAttributes().getTaskId()).getGlobalConfiguration().getExpirationDuration().setDuration("PT3M");
    Please update your suggestion or suggest some API which van help me in fixing this task.
    Thanks in advance !!

    Hi:
    Take a look at this post: http://beatechnologies.wordpress.com/2011/08/24/
    Also here is the Oracle Doc: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e10660/oracle/bpel/services/workflow/query/ITaskQueryService.html
    and:
    http://docs.oracle.com/cd/E17904_01/integration.1111/e10224/bp_worklistcust.htm#BHAHBHID
    Hope this helps.
    best
    rolando

  • Why is data object completely emptied by XSLT on Output Data Association?

    I have an activity in a BPM 11g workflow that invokes a DbAdapter that does a Select, which may not return any rows in the normal course of processing.  My Data Associations for the Output uses an XSLT to map the returned values into one of my process data objects, accounting for the fact they could be empty because no row was found.
    The problem: While I only mapped one column from the results of the Select into my data object using an XSLT, when no row is returned, all other values are removed from my data object.  I need those to remain intact in the data object.
    Why is that?  How can I prevent that from happening?
    More details...
    Here is a snippet of my XSLT used to grab the result of the Select into my data object.  Notice it only maps docId, does not include totalEarnings or bW2IsAttached.
    <xsl:template match="/">
      <ns1:InterfaceTable>
        <xsl:if test='/ns0:AccountingDataCollection/ns0:AccountingData/ns0:docId != ""'>
          <ns1:docId>
            <xsl:value-of select="/ns0:AccountingDataCollection/ns0:AccountingData/ns0:docId"/>
          </ns1:docId>
        </xsl:if>
      </ns1:InterfaceTable>
    </xsl:template>
    Here's my process data object contents before the DbAdapter activity runs the Select.  Notice it includes docId, totalEarnings and bW2IsAttached.
    <?xml version="1.0" encoding="UTF-8" ?><MyTestData xmlns="http://xmlns.oracle.com/bpm/bpmobject/Data/MyTestData">
       <docId>123456</docId>
       <totalEarnings>100.0</totalEarnings>
       <bW2IsAttached>false</bW2IsAttached>
    </MyTestData>
    Now after the Select runs, and no row is found (which can happen), I end up with this empty data object:
    <?xml version="1.0" encoding="UTF-8" ?><MyTestData xmlns:ns1="http://xmlns.oracle.com/bpm/bpmobject/Data/MyTestData" xmlns="http://xmlns.oracle.com/bpm/bpmobject/Data/MyTestData"/>
    I need the totalEarnings and bW2IsAttached fields to remain in the data object.  How can I do that?

    I tried using the data object as a second data source to map the values back to themselves, but that did not work for some unknown reason.  Perhaps I'll try that again.
    The only reason I'm using an XSLT is to handle the case of no row returned from the DB Select.  So if there is another way to check that, this would be fine.  How can I check using an exclusive gateway for a row returned?  I just tried to create this setup, but the data object containing the row read from the service activity is not available in the gateway for checking.  This would be the ideal solution if you could tell me how to access the data object holding the result of the Select in the gateway.  Thanks!

  • How to convert string date to long (or Unix date)?

    I'm having difficulty in converting a user supplied date in the format mm/dd/yyyy to a long format such as 1035462807000. Since it's being entered by the user I can't just use the current system date. Any suggestions? Thanks!
    Dave

    Hi man, tsith Gave a good beggining, why dont you try the next code
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.text.ParseException;
    import java.util.Date;
    public class DateToUnix{
        public static void main(String args[]){
            getDateAsLong();
        public static void getDateAsLong(){
            String sStartDate = "12/01/2002";
            Date theDate;
            DateFormat sdf= new SimpleDateFormat("MM/DD/yyyy" );
            try {
                theDate = sdf.parse( sStartDate );
            }catch(ParseException e ){
                theDate = new Date();
            System.out.println( "Converted Start Date:" + theDate.getTime());
    }No mather how you get a Date object, the value you are looking for is a long, and you can get it from such object with the getTime() method.
    Take a look at the Java API @ [http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html#getTime()]

  • Error when i drag a DATA object -- Priority

    Hi,
    I have written two function modules, which are RFC enabled in R3. In VC, when i search for them, i can see them here.
    WHen i drag the First function module, it says, reading function metadata and shows the data in the iview.
    BUT,
    when i drag the Second funciton module, it says,   "PORTAL REQUEST FAILED(no specific exception)" and will not show the data in the iview...
    How to get the DATA object on to IView..
    Anybody knows what might be the problem.
    Regards,
    Manjunatha.T.S

    Hello Pablo,
                I am also facing exactly same problem.
    initially i thought it could be a memory problem, since other modules are working fine.
    My system configuration is :-
    OS:-  Microsoft Windows 2000 server 5.00.2195 (SP 4)
    EP:-  6.0 SR1 (SP 9.0)
    VC:-  6.00.0020
    WAS:- 6.4
    Is this patch available for download.
    Will you please, let me know the location please?
    Thanks & regards,
    Sunil Kulkarni

  • Set Date object to 4:00 pm

    Hi
    How can I set date object to 4:00pm current day.
    I will have to find difference in milliseconds long value starting from 1st january 1970 till today 4:00 pm.
    But how, can I find this value.
    Thanks

    Will below code snippet give me 4:00pm time for current day !
      DateFormat dfm = new SimpleDateFormat("HH:mm:ss");
      Date pm4 = dfm.parse("16:00:00");

Maybe you are looking for

  • 2.2 fixed fetching for me, but 'new mail' sound/vibration remains an issue.

    I'm interested in finding out how many of you have found that mail fetching is now perfectly reliable but you're still not getting the 'new mail' alert... I did a full restore and found that when the mail account was first reinstated, it chimed/vibra

  • Order By Clause in View

    Hi, I have a doubt regarding Order By Clause in Views. As per my knowledge, we can't put an order by clause in the subquery that defines view. But when i created a view in Oracle 9i with the order by clause, view got created. Please see the my view c

  • Unable to figure out paper sizes in PSE 9...

    Hi, I am trying to print a 4x6 photo... when I click print the pse print window opens and asks to select: printer, paper size & print size.  I don't know what paper sizes they are offering, ex: KG, KG.NMg,  PhotoPaper2L, PhotoPaper2L.NMgn, PhotoPaper

  • Can I Manage virtual machines using SCCM? What about Amazon ec2 instances?

    Hi All, As part of my lab environment, I would like to discover and manage virtual machines within ESXi platform and a few on Hyper-V. As part of this,  1] Do we need SC-VMM to create/discover/manage virtual machines or can this be done by using just

  • Jsp class files

    i am using 9iAS 1.0.2.2.2a on windows server family 2000. I deployed my application successfully on server. It is business component containing application developed in JDeveloper 3.2. My application is running successfully. But the problem is My jsp