Updated content for multi-level record structure in PLSQL

Hi All,
please help me
Need a FUNCTION which would take PERSON_id as the INPUT PARAMETER and RETURN the FULL DETAILS in a multi-level record structure in PLSQL.
CREATE TABLE people(
name VARCHAR2(5),
person_id number
INSERT INTO people(name,person_id) VALUES ('n1',1);
INSERT INTO people(name,person_id) VALUES ('n2',2);
INSERT INTO people(name,person_id) VALUES ('n3',3);
INSERT INTO people(name,person_id) VALUES ('n4',4);
INSERT INTO people(name,person_id) VALUES ('n5',5);
INSERT INTO people(name,person_id) VALUES ('n6',6);
A person can be assigned many tasks. Below,we can see person_id =1 has 2 tasks 10,20
CREATE TABLE tasks(
task_id number,              --->PK
task_name VARCHAR2(5),
person_id number          -->FK to People
INSERT INTO tasks(task_id,task_name,person_id) VALUES (10, 'cleaning',1);
INSERT INTO tasks(task_id,task_name,person_id) VALUES (20', 'washing',1);
INSERT INTO tasks(task_id,task_name,person_id) VALUES (30, 'sweeping',2);
INSERT INTO tasks(task_id,task_name,person_id) VALUES (40, 'ironing',3);
Each TASK has many ACTIVTIES as below. Below,we can see task_id =10 ---->3 ACTIVITIES of activity_id of 100,200,300
CREATE TABLE activities(
activity_id number,
activity_name VARCHAR2(50),
task_id number,              --->FK  to task table
INSERT INTO activities(activity_id,activity_name,task_id)VALUES (100, 'Clean home',10);
INSERT INTO activities(activity_id,activity_name,task_id)VALUES (200, 'Clean Garden',10);
INSERT INTO activities(activity_id,activity_name,task_id)VALUES (300, 'Clean clothes,10');
INSERT INTO activities(activity_id,activity_name,task_id)VALUES (400, 'Wash car',20);
Write a FUNCTION which would take PERSON_id as the INPUT PARAMETER and RETURN the FULL DETAILS in a multi-level record structure in PLSQL.
Meaning We would get
First ,person_details for a person-->next level is TASKS-->Activities_list in a NESTED RECORD SET
create or replace function person_details(person_id NUMBER)
RETURNs a
PERSON_DETAILS RECORD structure as shown below.A person -->Tasks--> all activities
record PERSON_DETAILS[1]
     person_id,
     name
     TASKS_DETAILS[1]          ---->2nd level
                 task_id[1],
           task_name[1]
               ACTIVITIES[1]----->3rd level
                    activity_id[1],
                    activity_name[1]     
                  ACTIVITIES[2]
                    activity_id[2],
                    activity_name[2]                    
               ACTIVITIES[3]
                    activity_id[3],
                    activity_name[3]
*(1)--Most important part is how do i DEFINE AND DECLARE the RESULT RECORD SET in my FUNCTION?
  (2)--HOW DO WE DYNAMICALLY ALOCATE MEMORY for the record structure based on the no. of rows by each SELECT?
   (3)Access the nested levels and FILL in the DATA in the above record seperately USING SELECT statements.
*/*SELECT 1 ---Find and fill Person*/*
*select person_id,name from people where person_id =1*
*-->From this SELECT fill the OUTER record PERSON_DETAILS[no. of records] -->person_id,name*
*/**SELECT 2 ---I want to FIND all TASKS for THE ABOVE PERSON and fill the next part */*
*select task_id,name from tasks where person_id = PERSON_DETAILS[1].person_id*
*We get three TASK_ids,*
*-->From this, HOW TO fill DATA for each TASK,how to  PERSON_DETAILS[1]->TASKS_DETAILS[1st record].task_id -->person_id,name*
*/**SELECT 3 ---I want to FIND all ACTIVITIES for THE ABOVE TASKS and fill the next part */*
*for EACH of the TASKS found,we need to LOOP and*
*select activity_id,name from activities where task_id = PERSON_DETAILS[1].-->TASKS_DETAILS[1st record]--->ACTIVITY_DETAILS[1].activity_id*
I have tried my best to explain with the tables and the relationships.I just hope its not confusing now.Edited by: user_7000011 on 01-Apr-2009 12:46

try this one.
Learned something new today.
CREATE TABLE temp_clob_tab(result CLOB);
CREATE or replace TYPE task_t AS OBJECT("@task_id"   NUMBER,
                            last_name        VARCHAR2(20),
                             activitylist     activity_tab
create or replace type activity_t as object("@activity_id" number, activity_name varchar2(20));
CREATE or replace  TYPE tasklist_t AS TABLE OF task_t;
create or replace type activity_tab as table of activity_t;
CREATE or replace TYPE people_t AS OBJECT("@people_id" NUMBER,
                             task_name  VARCHAR2(20),
                             task_t          tasklist_t
DECLARE
  qryCtx DBMS_XMLGEN.ctxHandle;
  result CLOB;
BEGIN
  DBMS_XMLGEN.setRowTag(qryCtx, NULL);
  qryCtx := DBMS_XMLGEN.newContext
    ('SELECT people_t(person_id,
                    name,
                    CAST(MULTISET
                           (SELECT e.task_id, e.task_name,cast(multiset
                                    (select activity_id,activity_name from activities a
                                        where a.task_id = e.task_id) as activity_tab)
                              FROM tasks e
                              WHERE e.person_id= d.person_id)
                         AS tasklist_t))
        AS peoplexml
        FROM people d
        where person_id = 1');
  -- now get the result
  result := DBMS_XMLGEN.getXML(qryCtx);
  INSERT INTO temp_clob_tab VALUES (result);
  -- close context
  DBMS_XMLGEN.closeContext(qryCtx);
END;
select * from          temp_clob_tab ;output
<?xml version="1.0"?>
<ROWSET>
<ROW>
  <PEOPLEXML people_id="1">
   <TASK_NAME>n1</TASK_NAME>
   <TASK_T>
    <TASK_T task_id="10">
     <LAST_NAME>cleaning</LAST_NAME>
     <ACTIVITYLIST>
      <ACTIVITY_T activity_id="100">
       <ACTIVITY_NAME>Clean home</ACTIVITY_NAME>
      </ACTIVITY_T>
      <ACTIVITY_T activity_id="200">
       <ACTIVITY_NAME>Clean Garden</ACTIVITY_NAME>
      </ACTIVITY_T>
      <ACTIVITY_T activity_id="300">
       <ACTIVITY_NAME>Clean clothes</ACTIVITY_NAME>
      </ACTIVITY_T>
     </ACTIVITYLIST>
    </TASK_T>
    <TASK_T task_id="20">
     <LAST_NAME>washing</LAST_NAME>
     <ACTIVITYLIST>
      <ACTIVITY_T activity_id="400">
       <ACTIVITY_NAME>Wash car</ACTIVITY_NAME>
      </ACTIVITY_T>
     </ACTIVITYLIST>
    </TASK_T>
   </TASK_T>
  </PEOPLEXML>
</ROW>
</ROWSET>

Similar Messages

  • Project Workflow Extension for Multi level approval

    Hi,
    We have a requirement of 2 or 3 level of approval on Project Workflow for Project Status Change. We are planning to use the Seeded extension provided by Oracle to get the Approver for Project Status Change.
    The extension procedure provided pa_client_extn_project_wf . select_project_approver has only one out parameter that is Approver id. This means it's only possible 1 level of approval.
    Please help me to find out the way how can i make this work for multi level Approval.
    Regards,
    Ram

    Hi Paul,
    Thanks for your suggestion.
    By comments field I'm assuming OfficeTask.Comments field. Problem is, this field is always null. I tried accessing this field in CheckExitCondition activity as well as in OnTaskCompleted but in both the cases, it was null only(I wrote comments while approving
    the task).
    I used a code activity within OnTaskCompleted activity and following code for accessing Comments and Description fields:
    public string officeComments;
            public string officeDescription;
            private void TaskCOmplete(object sender, EventArgs e)
                CodeActivity Sender = (CodeActivity)sender;
                Microsoft.Office.Workflow.Actions.OfficeTask ofctask1 = ((CompositeActivity)Sender.Parent).Parent as Microsoft.Office.Workflow.Actions.OfficeTask;
                officeComments = ofctask1.Comments;
                officeDescription = ofctask1.Description;          
    Please tell me if I'm doing anything wrong here, I'm very new to Workflows. Also, do I need to set any specific property of officeTask for retriving comments?
    Thank you

  • IDOC DELVRY05 - What structure for multi-level packing?

    Hi All
    I am creating DELVRY05 idocs via WE19.
    I am using handling materials, and packing my materials into handling units, which are in turn packed in a further level of handling unit.  So we have eaches packed in boxes, and boxes packed in a container.
    I an set up this scenario directly in VL31N, so I am happy that the data that I want to work with works.
    In WE19 I can set up single layer packing, i.e., eaches packed in containers, but I can not get multi level packing to work.
    I suspect that my organisation of E1EDL37 and E1EDL44 segments is incorrect.
    My question is this:
    What layout should I have for my E1EDL37 and E1EDL44 segments, and what order should they appear in my idoc?
    Thanks in advance.
    James

    James,
    Did you have a solution for this? I'm having the same issue. I couldn't able to make it work correctly. Somewhere I'm missing a small part, but couldn't able to figure it out.
    raj

  • FCC for Multi-level Hierarchy

    Hi Friends,
    Can someone please help me out with this.Below is my Sender Data Type which needs to be converted:
    DT_TRAC_MESG
    (Hierarchy 1)         TRAC_INFO
                      (Hierarchy 2)   TRAC00
                         (Hierarchy 2)GROUP1
                                    (Hierarchy 3)TRAC05
                                    (Hierarchy 3)GROUP2
                                                 (Hierarchy 4)TRAC10
    (Hierarchy 4)                                             GROUP3
                     (Hierarchy 5)                                         TRAC11
    and my input data is as below :
    XXXXXXXXX  TRAC00 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (occurance 1)
    XXXXXXXXXXXXXXXXXXTRAC05XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (occurance 1)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
    I know Std SAP XI doesnt support more than 3 hierarchies but we are using a JMS adapter and this support more than 3 hierarchies.So please help us in achieving this mutli hierarchy conversion.Please atleast provide me the procedure to convert a 3 level Hierarchy structure.
    It would be of great help for me if someone can answer this and asap.
    Thanks & Regards,
    Pradeep.

    Hi
    follow this weblog
    File Content Conversion for Multi Hierarchical Structure
    or
    you can use seeburger to use multi level hierarchy
    SAP PI/XI : Content conversion using Generator mapping functionality of SeeBurger : Part 1.
    SAP PI/XI : Content Conversion using Generator mapping functionality of SeeBurger : Part 2.
    regards
    sandeep
    Edited by: sandeep sharma on Dec 15, 2008 10:45 AM

  • Does Mac have any plans to create and/or update drivers for multi-media hardware that is useless to me after "upgrading" to Mavericks? This is a waste of money for free..

    I have found that since I "upgraded" to Mavericks, many pieces of audio hardware that was compatable with snow leopard is not compatable with mavericks. these machines are supposed to be the best for multi-media, now, without any warning, Mac has really messed this up. What are they thinking. I just converted from PC. Was it a $3000 mistake. MAC....Get BUsy, It can't be that hard to create some drivers that are compatable with common and popular pieces of hardware needed to do the projects I bought this thing for!!!!

    similar problem here. running the latest 13 inch mbpr and ableton live software, mavericks obvsly.
    experiencing crashes only with external soundcards attached. it happened with a usb interface (NI audio 2 dj) and with a echo audiofire 2 (firewire through thunderbold adapt.)
    keyboard and trackpad got unresponsive after the crash with the usb interface as they run on the usb buss I suppose.
    This is interesting: If i m running usb or firewire interfaces plugged in to my thunderbold display at home - i get 0 problems. it just works 100%
    so what does this tell us? is the hardware of the macbook defective?
    but why does the FW interface crash then when attached to the computer directly and not if attached to the display?
    this is extremely frustrating. basically my job is using this machine on stage and i cant use it. i m back to my 2007 macbook now running 10.6, thinking about getting a USED machine which was before mavericks and haswell - think these are the issues and what i would like to know:
    WILL THERE EVER BE A FIX FOR THIS ON THE LATE 2013 MBPr??

  • SPAM update Error for patch level 42 on 7.01

    Hi all,
    While applying SPAM update 42 for 7.01, we received the error below.  We also tried to apply a lower version with the same results.  Your help is appreciated.
    Class CL_OCS_RT_ANALYSIS,Method GET_XML
    The row type of the table "ME->T_PATRTVERS" is not compatible with
    field symbol type "<FS_PATRTVERS>".
    from ST22:
    Runtime Errors SYNTAX_ERROR
    Date and Time 10/10/2011 05:16:00
    Short text
    Syntax error in program "CL_OCS_RT_ANALYSIS============CP ".
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "SAPLSPAM" had to be terminated because
    it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program
    "CL_OCS_RT_ANALYSIS============CP " in include
    "CL_OCS_RT_ANALYSIS============CM002 " in
    line 67:
    "The row type of the table "ME->T_PATRTVERS" is not compatible
    with fie"
    "ld symbol type "<FS_PATRTVERS>"."
    Thanks,
    Domenick

    Dear Domenick,
    This issue you are facing is most probably because of a force reset of SPAM queue in IMPORT_PROPER phase.
    You might have reset the queue forcibly which has created inconsistency in the system and has destoyed SPAM transaction
    related program sources.
    Now in order to resolve this you can try out a small fix.
    You can pick up the class/interface CL_OCS_RT_ANALYSIS============CP from a system which has already been patched with SAPKD70142. You can transport this class to the affected system.
    Once done, try to do the SPAM import. If the SPAM import is successfull it is fine.
    If it not successfull, there is no other way apart from restoring the sytem since the SPAM sources are corrupt.
    Best Regards,
    Abhishek

  • Content Conversion for multi level heirarchy

    Gurus,
    I have the following scenario
    FileXIFile
    Input File structure is as follows
    FH|............  (occurs 1)
    FE|............. (occurs *)
    FED|........... (child of FE and can occur * under FE)
    FT|.............. (occurs 1)
    The file contents are pipe delimited.
    Example file
    FH|.....
    FE|........
    FED|........
    FED|.........
    FE|.......
    FED|........
    FT|............
    As stated above, FED recordtype can occur multiple times under FE
    My inbound message structure is
    .....Header (1)
    ........ErrorRecord (0,unbounded)
    .............ErrorDataRec (0,unbounded)
    .....Trailer (1)
    Recordset Structure - Header,1,ErrorRecord,,ErrorDataRec,,Trailer,1
    Recordset Sequence - Variable
    KeyFieldName - RecordType
    Content Parameters
       I have defined field separator as pipe for each recordset
       I have defined keyFieldValue for each recordset
       I have defined fieldNames for each recordset
    Here is my problem
    The file loads ok. However, ErrorDataRec loads at the same level as ErrorRecord rather than loading under it.
    I have played with fieldNames to define ErrorDataRec as a field under ErrorRecord and not definining as one, doesnot seem to make a difference.
    I need someway to tell the parser that ErrorDataRec needs to be loaded as a substructure of ErrorRecord.
    Anyone has any ideas?
    Regards
    Haseeb

    VJ,
    You are absolutely right it is not possible to get multiple hierarchy using file content conversion.
    Splitbyvalue function would not work in my scenario as I need to group FED records based on first few characters in the first column of FED records. I wrote a UDF to insert context change based on the column value.
    Thanks again for your help.
    Regards
    Haseeb

  • Receiver File content conversion for multi level hireachy

    Receiver channel file content conversion..
    this is SAP proxy to FIle Scenario, which will get invoice details from SAP along with multiple invoice texts for each invoice.
    I would like to have below mentioned payload at Target side,
    <MT_Invoice>
    <File Header>    1...1
    <f1> customer invoices </f1>
    <f2> 12/02/2010 </f2>
    </File Header>
    <Invocie header> 
    <f1> Invoice number1 </f1>
    <f2> customer number1 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no1-text1 </f1>
    </Invoice text>
    <Invoice text>
    <f1> Inovice no1-text2 </f1>
    </Invoice text>
    <Invocie header> 
    <f1> Invoice number2 </f1>
    <f2> customer number2 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no2-text1 </f1>
    </Invoice text>
    <Invoice text>
    <f1> Inovice no2-text2 </f1>
    </Invoice text>
    <Invocie header> 
    <f1> Invoice number3 </f1>
    <f2> customer number3 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no3-text1 </f1>
    </Invoice text>
    <Footer> 1..1
    <f1> have a great day </f1>
    </footer>
    </MT_Invoice>
    for the above payload file should come as mentioned below
    customer invoices 12/02/2010
    invocie number1 customer no 1
    invoice no1-text1
    invoice no1-text2
    invocie number2 customer no 2
    invoice no2-text1
    invoice no2-text2
    invoice no2-text3
    invocie number3 customer no 3
    invoice no3-text1
    have a great day
    For to get the above payloadI have create a message type like
    MT_invoice
    header   1...1
       f1         1
       f2         1
    invoice details   0... unbound
       f1           1
       f2           1
    invoice text     0.... unbound
       f1
    footer       1...1
       f1          1
    Please correct me if my message type declaration was wrong...  
    Please suggest how do i need to approach for message mapping and as well as FCC in File adapter...
    Edited by: Vidyadhar Kurmala on Dec 2, 2010 10:28 AM

    It is not possible to create alternating nodes in graphical mapping tool.
    I recommend using the MessageTransformBean for FCC, as this supports a 2-level hierarchy.
    Then you add a node record like this:
    <MT_Invoice>
    <Record>
    <File Header> 1...1
    <f1> customer invoices </f1>
    <f2> 12/02/2010 </f2>
    </File Header>
    </Record>
    <Record>
    <Invocie header>
    <f1> Invoice number1 </f1>
    <f2> customer number1 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no1-text1 </f1>
    </Invoice text>
    <Invoice text>
    <f1> Inovice no1-text2 </f1>
    </Invoice text>
    </Record>
    <Record>
    <Invocie header>
    <f1> Invoice number2 </f1>
    <f2> customer number2 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no2-text1 </f1>
    </Invoice text>
    <Invoice text>
    <f1> Inovice no2-text2 </f1>
    </Invoice text>
    <Invocie header>
    <f1> Invoice number3 </f1>
    <f2> customer number3 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no3-text1 </f1>
    </Invoice text>
    </Record>
    <Record>
    <Footer> 1..1
    <f1> have a great day </f1>
    </footer>
    </Record>
    </MT_Invoice>

  • Setting aggregation content for logical level in 11g

    Hi Guys,
    When working on with horizontal and vertical federation in OBIEE 11g with multiple data sources here in my case it is essbase and RDBMS.
    1) pulled the columns and dragged into the concerened table.
    2) The related heirarchies have been defined.
    3) when trying to go to one of the LTS and trying to set the logical level aggregation im not able to see the levels columns corresponding nor im getting the get levels option to get them. where am i going wrong?
    when im trying to join a fact by pulling it on to the fact...i can see the levels in content tab,but when i try to define levels and check it its giving me error "There are no levels matching the BI algorithm"
    Any answers wud be appreciated.
    TIA,
    KK
    Edited by: Kranthi.K on Sep 5, 2011 2:52 AM

    It is autocreated,i dint customize it.....Im dropping the RDBMS table onto the Essbase cube dimension table and im not getting the RDBMS content levels that should be defined in the LTS of the table,and the RDBMS table has an level based hierarchy but still no sucess.
    Any more ideas
    UPDATED POST
    Deepak,it was not helpful as i have gone through tht document before....Im trying it in all scenerios to figure out where actually it is going wrong.
    If i dont find the path,i will let you kne what im trying to do so you can help me out.
    UPDATED POST-2
    Any more pointers from the experts.
    Edited by: Kranthi.K on Sep 6, 2011 7:01 AM

  • I don't get Stage content for a level editor

    Hi, first post. I don't get JavaFX. I've gone over tutorials. I understand how to put things in a Stage.content: ..., but I don't get how to use it for my needs.
    I'm trying to make a level editor via browser.
    The Stage consists of a the 2d world of objects and a draggable tool panel. The dragable tool panel isn't too much of a problem since it's just a group with a bit of interaction. What I'm having difficulties with is "understanding" my world content.
    I don't get how I would draw scrollable grid. I don't get how I would use object placements into the content based on visibility list.
    In Swing I would just put my objects in a Vector then cycle through them in an overidden .paint(Graphics g). But JavaFX is declaritive. How do i declare a line drawing routine? how do I add objects to the content.
    I'm very confused. I've spent little over a week(part time) trying to get this.
    Stage
    content: world.getContent()
    World
    function getContent():Group{
    return group
    This is the closest understanding I get.

    #1 This is the last about a game that Im doing, I have a side scrolling panel, take a look at the code to see if it helps you.
    [http://www.athanazio.com/2009/03/16/javafx-cabecudinhos-preview-2009-03-15/|http://www.athanazio.com/2009/03/16/javafx-cabecudinhos-preview-2009-03-15/]
    there is the subversion
    [http://svn.vacavitoria.com/cabecudinhos_1/cabecudinhos_1|http://svn.vacavitoria.com/cabecudinhos_1/cabecudinhos_1]
    #2 about map creation, my suggestion is to use a drawing tool create a SVG file, making sure to add the ids to the elements,
    and I can access the objects thru the code. I use inkscape for this.
    this post shows how to
    [http://www.athanazio.com/2009/03/10/javafx-processo-de-criacao-de-interface/|http://www.athanazio.com/2009/03/10/javafx-processo-de-criacao-de-interface/]
    its in portuguese, but if you follow the pictures, you will figure it out.
    cheers

  • How to retrieve comments from one OfficeTask activity and use them in another OfficeTask activity for Multi level Approval sequential Workflow

    I'm designing a sequential site workflow using Visual Studio 2010 for Project Server 2010. In my case, I have following 6 stages in the workflow:
    1. InitialProposal Stage
    2. Approval Stage1 -- Needs approval from Approver Project Security Group Members1
    3. Rejection Stage
    4. Approval Stage2 -- Needs approval from Approver Project Security Group Members 2
    5. Execution Stage
    6. Completed Stage
    Requirement is workflow should move to Approval stage2 from Approval stage1  if approved by all members of Approver Project Security Group1and it should move to Rejection Stage even if a single member rejects it.
    Workflow should move from Approval Stage2 to Execution Stage if approved by all members of Approver Project Security Group2 and it should move back to Approval Stage1 on rejection by a single member of the group.
    I'm using inbuilt PSWApproval content type and OfficeTask activity for creating approval task for the group members at both stages.
    On task rejected in Approval stage2, task will be assigned again to Approval Stage1 and I want to show comments given by members of Approver Project Security Group2 to the members of Approver Project Security Group1 with this assigned task
    but I'm not able to retrieve comments from officeTask activity.
    My question is where exactly these comments are saved? how can we retrieve them and use them in another officetask activity? If this is not possible then what is the possible solution for meeting above mentioned business requirement?

    Hi Paul,
    Thanks for your suggestion.
    By comments field I'm assuming OfficeTask.Comments field. Problem is, this field is always null. I tried accessing this field in CheckExitCondition activity as well as in OnTaskCompleted but in both the cases, it was null only(I wrote comments while approving
    the task).
    I used a code activity within OnTaskCompleted activity and following code for accessing Comments and Description fields:
    public string officeComments;
            public string officeDescription;
            private void TaskCOmplete(object sender, EventArgs e)
                CodeActivity Sender = (CodeActivity)sender;
                Microsoft.Office.Workflow.Actions.OfficeTask ofctask1 = ((CompositeActivity)Sender.Parent).Parent as Microsoft.Office.Workflow.Actions.OfficeTask;
                officeComments = ofctask1.Comments;
                officeDescription = ofctask1.Description;          
    Please tell me if I'm doing anything wrong here, I'm very new to Workflows. Also, do I need to set any specific property of officeTask for retriving comments?
    Thank you

  • Email notifications for multi level approvals in OIM 11g

    Hi,
    I am using OIM 11g.
    And in my current environment, we have 4 levels of approvals and need to send a different type of email notification in every level to the corresponding approver.
    Can you please let me know how to implement this in SOA composite. first two approvals are sequential and the remaining two approvals are parellel.
    Thanks,
    Swathi

    You have to use combination of switch and if task. In if block you have provide the condition. This conditon will be predicted over some variable. This variable you will set in payload where approver will be decide.
    You can have multiple mail notification or you can set the body content dynamically(set the variable data in payload where the approver is being manipulated) use this variable in body content.
    Kuldeep

  • Any examples of using XSU for multi level nesting

    Are there any examples of inserting into a set of object tables using the XSU where the parent-child relationship is more than 2 levels deep. i.e where you have to use REF's or views to do this.
    I have had no problems with a 2 level insert using object tables but that's not much use to me.
    I know that natively only 2 levels of nesting are supported.
    I may have to resort to parsing the data manually using the PL/SQL parser if I can't get the XSU to do it.
    null

    lAnubisl wrote:
    My customer's solution has several issues generating PDF files and we are looking at the Acrobat SDK as at the instance of the final truth.
    I use Interop.Acrobat.dll as a .NET project reference to open and resave PDF documents. I'd like to do all things I mentioned above.
    After years and years, I have concluded that if you do serious PDF development, you need a set of libraries. For instance, if you are doing typesetting type of work ("vertical center", "horizontal center", "margin", etc., etc) , there is an excellent library from a guy in Germany (land of Johannes Gutenberg and printing presses)...
    ... which turned out to be useless in my next project which dealt with AcroForms.
    I know exactly what you mean by "the final truth", sometimes I wish Adobe had some sort of official validating tool (like XML does).
    Per your comments, I would recommend you to consider this library. It is available in all languages and its output is the same quality as Adobe's or at least in the same league:
           http://www.pdftron.com/pdfnet/index.html
    If you want to comment further, we must go to a different forum, since we are not supposed to discuss any non-Adobe products here.

  • The records in the form are not updated during for newly created records

    Hi,
    I am new in using BIP which is integrated with Siebel. I am using a Data Template. My issue is, when I create new records, they are not included when I generate reports. Thus, these new records exists in back-end but not displayed in BIP.
    Anyone who can help me please?
    Many Thanks in advance.
    Cheers,
    Ann

    check whether in the report, you enable the user document cache option, remove that.

  • Update query for 2 lakhs records

    I have 2 tables with 3 common columns (Col1, col2,Primary). One common column name is primary (oracle key word). No indexes are used on these tables. I need to write an update query as shown below. 
    Emp table
    Col1       col2        primay
    100         101         y
    103         104         n
    201         105         y
    100         101         y
    Dept table
    Col1       col2        primay
    100         101         null
    103         104         null
    000         656         null
    Update query Result
    Col1       col2        primary
    100         101         y
    103         104         n
    Please help me.
    Thanks

    Update dept d
    set d.primay = (select distinct e.primay from emp e where e.col1 = d.col1 and e.col2 = d.col2);
    In emp table there are 100 and 101 with two entries but with same primay value. so to handle such scenarios I have taken distinct iniside select statement.
    if you have a case like where in emp table col1 and col2 are same and having different primay table, then obviously you should tell which value should go and update the dept table and based on what logic.

Maybe you are looking for