How to insert values of array of String in BPM

Hello

I have defined an array of strings in the business object, created a data object and want to fill/insert values inside. I searched a lot of messages and tried several options but no luck.

My BO:

" < xs: Schema targetNamespace = ' http://xmlns.Oracle.com/BPM/bpmobject/TestTypes/SimpleArrayBO "elementFormDefault ="qualified"xmlns =" http://xmlns.Oracle.com/BPM/bpmobject/TestTypes/SimpleArrayBO "" xmlns: XS = " http://www.w3.org/2001/XMLSchema " xmlns:bpmo =" http://xmlns.Oracle.com/BPM/bpmobject/ " > ""

< name XS: complexType = "SimpleArrayBOType" >

< xs: SEQUENCE >

< name XS: ELEMENT = "attr1" nillable = "true" type = "xs: String" maxOccurs = "unbounded" / >

< / xs: SEQUENCE >

< / xs: complexType >

< xs: element name = "SimpleArrayBO" type = "SimpleArrayBOType" / >

< / xs: Schema >

Add a script task and tried different ways to fill in the values.

Basic ['a', 'b'] also fails with the error expected "-result tree fragment" rather than "string".

How to manually enter the values?

Thank you

Chandra

Because your input is coming from a few strings and not a table, you can just add a Script activity to your process and to define table of your target XSD using XML.

To do this, you must add a Script to the activity-> in the "Application" tab click on 'Data Associations'-> dragging the "Expression" icon above your target object on the right side (not the table but the table parent)-> open the XPath expression box in the Middle-> click 'XPath Exp' in the drop-down list at the top.

I used your XSD to create the XML file for the logic below:

oraext:ParseXml (concat ('))

http://www.w3.org/2001/XMLSchema-instance '.

"" xsi: schemaLocation = "http://xmlns.oracle.com/bpm/bpmobject/TestTypes/SimpleArrayBO xsd/mySimpleArray.xsd.

xmlns ="http://xmlns.oracle.com/bpm/bpmobject/TestTypes/SimpleArrayBO" >. "

', bpmn:getDataObject('string1') '

', bpmn:getDataObject('string2') '

'))

When I 'bpmn:getDataObject('...')', you should rather to insert your data object variables both your process chain.

Hope it gets you going,

Dan

Tags: Fusion Middleware

Similar Questions

  • How to insert values into a view created on multiple tables

    Hi all

    My goal for insert values in a view
    So for this I created a trigger
    then I tried to insert the value in the view, im getting as inserted row, but the value is not getting inserted

    Here are the steps I followed:


    SQL > create table (x int primary key)
    2.

    Table created.

    SQL > create table b (x references a, varchar2 (30)) y
    2.

    Table created.

    SQL > insert into a values (1)
    2.

    1 line of creation.

    SQL > insert into b values (1, 'One')
    2.

    1 line of creation.

    SQL > create or replace view v
    2 as
    3 select a.x, b.x as b_x, a y, and b where a.x = b.x
    4.

    Created view.

    SQL > select * from v
    2.

    X B_X Y
    ---------- ---------- ------------------------------
    1 1 a

    SQL > create or replace trigger v_t
    2 instead of inserting it on v
    3 for each line
    4 start
    case 5: old.x <>: new.x then
    6. Insert in a values(:new.x);
    7 end if;
    case 8: old.b_x <>: new.b_x then
    9 insert into b values (:new.b_x,:new.y);
    10 end if;
    11 * end;
    SQL > /.

    Trigger created.

    SQL > insert into v values (20,20, 'Twenty')
    2.

    1 line of creation.

    SQL > select * from v
    2.

    X B_X Y
    ---------- ---------- ------------------------------
    1 1 a


    Can anyone suggest me a valid query to insert data into a view that is created on several tables.

    Thanks in advance,
    Shalini

    Hi Shalini,

    You don't need the code if in your trigger.
    That's more like code when you update, you don't compare OLD and insert the NEW values on.

    MHO%xe> create table a(x int primary key);
    
    Tabel is aangemaakt.
    
    Verstreken: 00:00:00.11
    MHO%xe>
    MHO%xe> create table b(x references a,y varchar2(30));
    
    Tabel is aangemaakt.
    
    Verstreken: 00:00:01.09
    MHO%xe>
    MHO%xe> insert into a values(1);
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.01
    MHO%xe>
    MHO%xe> insert into b values(1,'One');
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.06
    MHO%xe>
    MHO%xe> create or replace view v as
      2  select a.x
      3  ,      b.x as b_x
      4  ,      y
      5  from   a
      6  ,      b
      7  where  a.x = b.x;
    
    View is aangemaakt.
    
    Verstreken: 00:00:01.07
    MHO%xe>
    MHO%xe> select * from v;
    
             X        B_X Y
    ---------- ---------- ------------------------------
             1          1 One
    
    Verstreken: 00:00:00.04
    MHO%xe>
    MHO%xe> create or replace trigger v_t
      2  instead of insert on v
      3  for each row
      4  begin
      5      insert into a values(:new.x);
      6      insert into b values(:new.b_x,:new.y);
      7  end;
      8  /
    
    Trigger is aangemaakt.
    
    Verstreken: 00:00:01.64
    MHO%xe>
    MHO%xe> insert into v values(20,20,'Twenty');
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.06
    MHO%xe>
    MHO%xe> select * from v;
    
             X        B_X Y
    ---------- ---------- ------------------------------
             1          1 One
            20         20 Twenty
    
  • OFA: how to insert values from the front end of the OPS to the database page

    Hi friends, I am new OAF, iam using jdeveloper version 9.0.3.5

    I created a QueryPG .in this page I HAV set a "create" button on this page when I click that "create" button must navigate to another page (ie) createPersonPG, I have hepatitis has created this createPersonPG in a RegionStyle of = > defaultsinglecolumn, with some of my attribute as "personId, phoneno, e-mail, address" in my createPersonPG I hav also set a button titled "save"...»»» " After you enter the data when I click on save button means a new line should be added to my database table that was my task... for which I wrote the code in my MainCO

    Successful work means:
    --------------------------------------
    I can able to query the data from the database
    From my QyeryPG, I can access createPersonPG

    MY PROBLEM
    -------------------
    When I enter values in the createPersonPG wen I click on "Save" button means that the data that I enter are not save to database, but in my QueryPG I get confirmation that saved successfully in my QueryPG. " I want data to be saved in the database... when I get select * from table_name average, should be a rank more

    can anyone help me with this task please I'll be greateful to you.. _ I was doing this job for more than 20 days Please helpme I complete this task

    Thank you
    Thilib

    my code for in MainCO

    in LICS I HAV written query command and navigate to the code "createPersonPG" like this:

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);
    String actionInMainProgramScreen = pageContext.getParameter (EVENT_PARAM);
    String personId = pageContext.getParameter ("PersonId");
    If (pageContext.getParameter ("GO")! = null)
    {
    System.out.println ("Submit button");
    OAQueryUtils.checkSelectiveSearchCriteria (pageContext, webBean);
    String firstName = pageContext.getParameter ("FirstName");
    String phoneNO = pageContext.getParameter ("PhoneNO");
    [Serializable] parameters = {personId, firstName, phoneNO};
    System.out.println ("AM method is called");
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    am.invokeMethod ("initQuery", parameters);
    }


    If (actionInMainProgramScreen.equals ("Create"))
    {
    System.out.println ("create key");
    () pageContext.setForwardURL
    'OA.jsp?page=/gwp/oracle/apps/xxi/aaaPersonDetails/webui/createPersonPG '.
    null
    OAWebBeanConstants.KEEP_MENU_CONTEXT
    null
    null
    true
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES
    OAWebBeanConstants.IGNORE_MESSAGES);
    }
    }------------------------------------------------------------------------------
    IN MY createPersonCO I HAV wrote this code

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    String paramPersonAction = pageContext.getParameter ("xxParamActionOnPerson");
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    PersonParamList serializable [] = {paramPersonAction};

    If (paramPersonAction! = null & & paramPersonAction.equals ("Create"))
    {
    am.invokeMethod ("createPerson");
    }
    }

    /**
    * How to manage remittances form for form elements in
    * a region.
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    If (pageContext.getParameter ('Save')! = null)
    {
    System.out.println ("first line button Save");
    am.invokeMethod ("saveProgramToDatabase");
    System.out.println ("navigate to home page');
    String message = "saved successfully ';
    OAException exp = new OAException (message, OAException.CONFIRMATION);
    pageContext.putDialogMessage (exp);
    () pageContext.forwardImmediately
    'OA.jsp?page=/gwp/oracle/apps/xxi/aaaPersonDetails/webui/aaaPersonDetailsMainPG '.
    null
    OAWebBeanConstants.KEEP_MENU_CONTEXT
    null
    null
    true
    ADD_BREAD_CRUMB_YES);
    }
    }-------------------------------------------------------
    IN my AM I wrote this code

    ' public void initQuery (String personId, String firstName, String phoneNo)
    {
    System.out.println ("Am initQuery");
    aaaPersonDetailsVOImpl vo = (aaaPersonDetailsVOImpl) getaaaPersonDetailsVO1 ();
    System.out.println ("aaaPersonDetailsVO initQuery method called");
    vo.initQuery (personId, firstName, phoneNo);
    }

    Public Sub createPerson()
    {
    System.out.println ("first createPersonMethod line");
    aaaPersonDetailsVOImpl vo = (aaaPersonDetailsVOImpl) getaaaPersonDetailsVO1 ();
    System.out.println ("Line before if condition createPersonMethod");
    If (!) VO.isPreparedForExecution ())
    {
    System.out.println ("first line If condition createPersonMethod");
    vo.setMaxFetchSize (0);
    }
    System.out.println ("creating New Row");
    Line r = vo.createRow ();
    System.out.println ("new insertion line");
    vo.insertRow (r);
    System.out.println ("inserted row");
    r.setNewRowState (r.STATUS_INITIALIZED);
    System.out.println ("before"sequence initialized");
    Number personId = this.getOADBTransaction () .getSequenceValue "(XXI. PER_DETAIL");
    System.out.println ("after"sequence initialized");
    vo.getCurrentRow () .setAttribute ("Person_Id", personId);
    System.out.println ("sequence number =" + personId);
    System.out.println ("last line of the Create method");
    }

    Public Sub saveProgramToDatabase()
    {

    System.out.println ("before validation.");
    getOADBTransaction () .commit ();
    System.out.println ("new program created.");
    }

    Published by: user13307444 on July 26, 2010 10:20

    Hello

    This could be the problem if there is that data validation is there that does not back up the data on the page. Because for example I had this problem when my database column has been primary key while on the EO page it wasn't. & When I tried to record data EO was allowing me to record, but the database did not allow. Please check your OA

    AJ

  • How to insert values into a table

    Hello Experts,

    I would like to know if its possible to fill data in one table by performing a loop.

    I have the following table:
    Draw)
    NUMBER OF NUM,
    START_DATE DATE NOT NULL,
    END_DATE DATE NOT NULL,
    CHAR DEFAULT ACTIVE (1 BYTE) 'Y')

    Now my table must contain the foll:
    NUM start_date end_date active
    1 2010-01-23 21:00 30/01/2010 19:00 Y
    2 2010-01-30 21:00 02/06/2010 19:00 Y

    I have an initial date and the end_date is always (start_date + 7) and the beginning of the next by the previous end_date but time varies from 19:00 to 21:00.


    This is what I have at the moment, but I'm stuck out of
    CREATE SEQUENCE num_seq
    MINVALUE 1
    START WITH 1
    INCREMENT BY 1
    CACHE 10
    
    CREATE OR REPLACE procedure draw_date IS
    
    
    begin
    
    INSERT INTO draws
    (num,
    start_date ,
    end_date,
    active )
    VALUES
    (num_seq.nextval,
    ?,
    ?+7 days,
    Y);
    COMMIT;
    end;
    but I'm kind of stuck a bit for the date

    Thank you

    Hello

    You can try something like:

    INSERT INTO draws
    (num,
    start_date,
    end_date,
    active)
    with last_date as (select trunc(max(end_date)) dt from draws)
    select
    num_seq.nextval,
    last_date.dt + 21/24,
    last_date.dt +7 +19/24,
    'Y'
    from last_date;
    COMMIT;
    

    Untested code because I don't have the create table and insert orders... and I'm feeling lazy today.
    ;)

  • How to use a control to change the part of array of strings? Insert in the string table?

    Please see the attached illustration.  The paintings of two strings which I'm trying to maniuplate are surrounded and the value is (bad) highlighted in yellow.

    It is a part of a Subvi on a comprehensive program where I address three different cDAQ chassis, which are named cDAQ9188-TBL01-Remote, remote-TBL02-cDAQ9188, cDAQ9188-TBL03-distance max.

    I intend to have three separate executables running simultaneously but independently, each dedicated to a different frame.  Rather than manually changing the only integer and create a new Create_Task 002 and 003. VI for each of them, I would have the whole selectable by the user.  Simple 1, 2, or 3 before starting the program and inserted it in the correct place (cDAQ9188-TBL0X-remote X of the location).

    I managed to insert characters in the simple strings, but nothing seems to work with table 1 d of string.  Is there a chance for this or should I be building my channels tables quite differently?

    You'll just have to change the 1,2,3,... in your tables of strings with the appropriate format specifier, then add digital control and two knots in String Format and Bob is your uncle.

  • How to read formatting excel worksheet as an array of strings

    I use the report tool to read an excel spreadsheet in an array of strings of LV.  It works fine except that it reads the precision of digital cells (~ 10 digits of precision).

    In my workbook I have displayed accuracy the value 2.  Is it possible to read the table such that it is displayed instead of the way it is stored internally?  (BTW, I understand how to do this)

    manually by parsing the string array and limit myself to the accuracy but would prefer to use excel itself to determine accuracy)

    sachsm,

    This should allow you to get the text from a cell or a range of cells.  Sort of do a "paste special" 'values '.

  • How to perform an addition of column values in an insert query that would insert in the 3rd column, and the values how to insert into another table.

    I have two tables (2) RESULT TAB (1)

    CREATE TABLE TAB

    (

    NUMBER OF SNO

    A NUMBER,

    B THE NUMBER.

    NUMBER OF THE SUM

    );

    CREATE AN ARRAY OF RESULT

    (

    NUMBER OF SNO

    NUMBER OF THE SUM

    )

    my doubt is:

    (1) I want to insert a table TAB, my question is how to insert a column to the SUM using the column A AND B... Here im adding two values of the column and store result in the AMOUNT column.

    SNO   A  SUM           

    1 100 150 250

    2 300 100 400

    I want to like this, it is possible with single insert query?


    (2) at the time of the insertion TAB of values that SNO, and the values of table TAB $ insert in the table of RESULTS... is it possible these two inserts at the same time?

    in fact, im using another this table.fro TAB and easy to understand I write like that, please solve this problem

    First, you post in the wrong forum as this one is only for Oracle's SQL developer tool. So you might ask your question in the general forum of SQL.

    Second, you might solve your problems with bind variable:

    Insert tab

    (sno, a, b, sum)

    values

    (: SNO,: A: B: A + B :))

    You should not use sum as column name because it is a reserved word.

    More you cannot insert into two different tables with a single SQL, but you can use PL/SQL to do this:

    Start

    insert into tab values (: SNO,: A: B: A + B :);)

    insert into result values (: SNO,: A + B :);)

    end;

    If you meet sno from a sequence, you could do something like this:

    Start

    insert into values tab (seq_sno.nextval,:,: B,: A +: B) return sno in: SNO.

    insert into result values (: SNO,: A + B :);)

    end;

    Hope that helps,

    dhalek

  • How to divide a string into an array of strings in separate tables

    Greetings,

    I have an array of strings which displays strings in a text file. I read each line of the text file and put it in an element of the matrix of the chain.

    Now, I'm trying to divide each string for each part of the chain, then put in a separate table. Each element in the chain is separated by a comma. I hit a brick wall at this point and would like to help please?

    The purpose of this is so that I have 4 tables that will be ready their item values and set variables based on these values until I went through all the elements in each array.

    Attached example.

    Also my VI is attached.

    Thanks in advance for your help.

    Then just use Index Array on 2D array provided.

  • How do the function of table 1 d search case-insensitive for the array of strings

    How do the function of table 1 d search case-insensitive for the array of strings

    Hi Karine,.

    convert the two (table and search for the string) to lowercase before using this feature...

  • How to create an array of strings listing by program?

    How to create an array of strings listing by program? I'm trying to programmatically create an Enum containing a list of tests to run, based on the selection of the user.

    My code ranging from control on LAVA has a demo VI to convert an array of strings of an enum.

    Tone

  • How to insert the value from the FORM to another database table?

    Hi all

    I have the following problem.

    I have a form that has a tabular layout for the MATURED_FD_DTLtable. (all about 20 line items)

    CREATE TABLE MATURED_FD_DTL

    (

    ACCT_FD_NO VARCHAR2 (17 BYTE) NOT NULL,

    CUST_CODE NUMBER (9),

    FD_AMT NUMBER (15),

    FD_INT_BAL NUMBER (15),

    TDS NUMBER (15),

    CHQ_NO NUMBER (10),

    CREATED_DATE DATE,

    CREATED_BY VARCHAR2 (15 BYTE),

    PREV_YR_TDS NUMBER (15),

    ADD_FD_AMT NUMBER (15),

    DESCRIPTION VARCHAR2 (100 BYTE),

    P_SAP_CODE NUMBER (10),

    P_TYPE VARCHAR2 (1 BYTE)

    )

    By clicking on 'SAVE' button, all values will be automatically is stored in the MATURED_FD_DTLdatabase table.

    But I want to insert these values in another table called TEMP.

    I want to insert values of form only, no table select.

    How can I do this?

    Help me.

    Is Oracle Designer 6i.

    Answer:

    BEGIN

    Commit_form;

    PREMIER_ENREGISTREMENT;

    LOOP

    insert into TEMP_MATURED_FD_DTL

    SELECT * FROM MATURED_FD_DTL WHERE ACCT_FD_NO =: acct_fd_NO;

    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

    NEXT_RECORD;

    END LOOP;

    PREMIER_ENREGISTREMENT;

    COMMIT;

    MESSAGE ("RECORD UPDATED AS PAID '");

    MESSAGE (' ', no_acknowledge);

    END;

  • How to insert the value of table display

    Hi all

    I have a page element named that email and set this as view only, now I need to insert this value in the table I use insert statement like this: P255_EMAIL, but it gives an error.


    Can someone tell me how to insert this

    Thanks and greetings
    srikkanth. M

    Srikkanth,
    A single display element is not rendered at the point of entry to the difference of the other editable on the page elements, if you look at the html code of any view one item and compare it with a textfield should be clear.

    You can have another element hidden with the value that can be returned in the process
    OR

    Here's a little something that does not need any additional items to make the item view alone and still available in the world as a normal part

    Do not say P100_MY_ITEM like a textfield
    But in the text of element Pre_ give you

    <span class="display_only" >&P100_MY_ITEM.</span><span style="display:none">
    

    And in the text of item Post_ put

    </span>
    

    Hide the textfield object, it shows the value of the item as a single text to display.

  • Can anyone tell how to insert a string between the two another string...?

    Can anyone tell how to insert a string between the two another string...?
    For example: String1 = 'ABC '.
    String2 = "XY".

    I want that the chain of output like "AXYBC".

    If you have the Position where you want to place your chain, this might work:

    SQL> r
      1  declare
      2    vStr1 varchar2(20) := '123456789';
      3    vStr2 varchar2(20) := 'aa';
      4    nInsertPos number := 3;
      5    vResult varchar2(20);
      6  begin
      7    vResult := substr(vStr1, 0, nInsertPos) || vStr2 || substr(vStr1, nInsertPos+1);
      8    dbms_output.put_line(vResult);
      9* end;
    123aa456789
    

    If you want to insert it after a special character, you can search for the position of your character with the help of instr

    concerning

  • How can I hilight a section of an array of strings?

    I have a VI that displays an array of strings.  The display is about 20 high of 20 channels of wide channels, while the berries in it are much more important.  I compare two files to find the differences.  When differences are found, I want to somehow hilight or focus on the block or the string that is different.  Is there a way to do this?  Is there a way I can visually hilight part of my array of strings?  I looked through the nodes of different property, but could not find something for this.

    Thanks for the help,

    Jeremy Backer

    Hi JMBacker,

    I don't know if tables can highlight a particular section.

    But you could do a thing.

    Display table in a table, and then display the background color of these special cells where the differences lie.

    Ritesh

  • How to find the mode of a string array

    Hey guys,.

    Then I came across this little problem that I thought I could solve easily enough, but it turned quite messy.

    I have this array of strings, and I want to find the most frequent entry in this array. Let's say I have the following table.

    Apple

    Apple

    Kiwi

    Orange

    Apple

    the mode would give me apple. I thought to convert the strings into a number and then find fashion as usual.

    But if the chain is too long, it seems a superelevation of unique number used to represent.

    Any ideas on a clean way to do this?

    This can also work

    Nick

Maybe you are looking for

  • Intermittent connectivity device

    Hi, I have an Airport Extreme (Zoom modem).  We have several wireless devices (computers, IPad, mac, iPhone, PlayStation).  Of them connect at some point, but none of them connect all the time.  We unplug / restart the modem and the router and can ge

  • HP Mediasmart DVD on a6750t will not display data channel 5.1 via SPDIF or HDMI

    So, I got a desktop HP custom computer new Friday. Started playing with it on Saturday. I called Sunday morning to request an RMA number and return shipping label. Here's my saga: ----------------------------------------------------------------------

  • Change my system

    I had installed Corel Digital Studio program, when I downloaded the photos to make a slide show and when I closed the program. I had the Blue Screen of Death, had to do a system recovery. Now, I'm not able to redownload the program Corel Digital Stud

  • Help to set up a WLC2100

    Hello! I'm new to a wirelless world and my manager give me work to set up a wlc2100 and join an air lap1242g to the controller, so the problem is that I have configured the wlc connectivity and one have access to the browser web wlc... Next I configu

  • How to locate specific model for my HP Pavilion Notebook dv9500us number?

    HP web site for software downloads & pilot offers 5 submodels for my HP Pavilion dv9500us notebook. I want to download the updated HP drivers, but don't know how to identify which of the 5 models to download the drivers from. My machine will not prop