How to evaluate Expression??

Is it possible to change the expression in “Expression Node” in run-time?
For example: User enters the expression as a string. I need to evaluate it and give the result.
Is it possible to do that?
Any ideas how to sole this problem??

The expression in a formula node cannot be changed at run-time. Instead, use Eval Formula Node (Analyze>Mathematics>Formula palette) or the Advanced Formula Parsing functions on the sub-palette under there. These functions are not in the LabVIEW base package.

Similar Messages

  • How to evaluate dynamic user defined expression

    Hi All,
    I am looking for a solution where I can provide a GUI interface to user where one create their expression/formulas to get some results.
    The description goes like this: Suppose using GUI a user chooses an operator than he can choose it operands and again operands can be another expression. So I am thinking in a tree direction. Once a user is done I can read that expression in IN-ORDER to get the complete expression now my problem is how to evaluate this to get their results?
    Any ideas/solutions are welcome.
    Thanks in advance,
    Regards,
    Sandeep

    I could not get what did you mean by that? I am looking for some help if someone has better idea and architecture to implement it

  • RPE-01038: Failed to evaluate expression null.

    Hi, gurus! :)
    Upon executing a process flow, I got the following error message:
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-01038: Failed to evaluate expression null.  Please modify the expression, redeploy and retry again.
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-02227: Cannot test Control Center user OWF_MGR. This user must match the login credentials of the evaluation location configured on owning module.
    RPE-01003: An infrastructure condition prevented the request from completing.
    java.lang.NullPointerException
    I suspect I got this error from improper use of parameters (just started using). I've searched for answers in the internet, still I am not sure how to efficiently and correctly use parameters. I'm dealing with this "literal" confusion. I would like to confirm the following:
    1. If a local parameter is an integer, how should I set the value and literal field? (say, set value to 0, literal = true?)
    2. How about for while loops? The condition is automatically a string. If I use the paramater par_loc, how should I write it (say, par_loc < 100).
    3. For Assign operators, data type is also an automatic string. What if I want to have an integer value? Or maybe an integer value thru an expression? (e.g. par_loc + 20).
    The questions above somehow summarize the activity I created.
    I'll try to do more tests and research and give you an update if I found any solution.
    Any help will be deeply appreciated. Thank you, gurus!
    Manoy :)

    Thanks, Carsten! :)
    I applied what you suggested. I still got the same error.
    1. Defined the parameter via local variable --> same error as above
    2. Defined it under start activity --> got a new error:
    RPE-02075: Oracle Workflow failed to process the execution request for Activity PF_WHILE:WHILE_LOOP. This may be because dependent objects have not yet been deployed.
    ORA-20007: The execution cannot be activated because not all required parameters have been set
    WB_RT_WORKFLOW_UTIL_10G.Execute_Any_Task(PKG_WL, WB_IK_20090327_083358_51724, 12463, RUN)
    WB_RT_WORKFLOW_UTIL_10G.Execute_Task(PKG_WL, WB_IK_20090327_083358_51724, 12463, RUN)
    Wf_Engine_Util.Function_Call(WB_RT_WORKFLOW_UTIL_10G.EXECUTE_TASK, PKG_WL, WB_IK_20090327_083358_51724, 12463, RUN)
    RPE-02083: Process PF_WHILE has errored Activities. Dependent objects may not have been deployed. You can use Oracle Workflow Monitor to retry the activities or abort the Process
    Did I miss something? :|
    Manoy

  • How to evaluate the dynamic condition string in PL/SQL ?

    Hello, I am solving the issue of checking and validating the event table.
    For Example, the event table namely "Contract_validated" contains some atts about a contract as follow:
    CONTRACT_VALIDATED (SEQ_ID, CO_ID, VALID_T, CHANGE_KEY, ATT1, ATT1_FROM, ATT2, ATT2_FROM, REASON, CHANGE_KEY_ORIG, ATT1_ORIG, ATT2_ORIG)
    In this table, the pairs (ATT1 and ATT1_FROM), (ATT2 and ATT2_FROM) must be compared to check whether the values are changed or not in the update event (change_key = U). If some records have change_key = U but the values does not change, I need to protocol and correct such records.
    The table name and attributes list could be dynamic, and will be provided as parameters. Therefore, I use Dynamic PL/SQL to generate the code to test the conditions between the values between the pairs columns for detecting the invalid event. However, I am stucking in testing the condition phrases because I can not evaluate the condition string in the SELECT statement. I can not use IF because parts of this condition string take the value from a record and collection type. Anyone has the idea how to evaluate the condition in such case, please give me instructions or recommendations (it could be other alternatives to solve the problems)
    Here is the code which generated from my Dynamic PL/SQL string, however, Oracle raise exception error at the EXECUTE IMMEDIATE v_sql command
    SELECT 'x' FROM DUAL WHERE (NVL(v_rec.ATT1, NULL) <> NVL(v_rec.ATT1_FROM , NULL) OR (NVL(v_rec.ATT2, NULL) <> NVL(v_rec.ATT2_FROM , NULL))
    E-0008: Unkown Exception raised in Loop. ORACLE:ORA-00904: "V_REC"."ATT2_FROM": invalid identifier
    vo_traced_list has type Table of VARCHAR2(2000), storing the atts list of table (CONTRACT_VALIDATED), it has value already from other procedure invocation.
    Here is the dynmic PL/SQL code generated dynamically depends on the table name, and attr list:
    DECLARE v_rec CONTRACT_VALIDATED%ROWTYPE;
    TYPE cv_type IS REF CURSOR;
    v_rec_cv CV_TYPE;
    v_cond VARCHAR2(4000);
    cond BOOLEAN := FALSE;
    v_exec VARCHAR2(1000);
    v_default VARCHAR2(10):= 'NULL';
    tk_val CONTRACT_VALIDATED.VALID_T%TYPE;
    pk_val CONTRACT_VALIDATED.CO_ID%TYPE;
    v_cnt NUMBER;
    BEGIN
    OPEN v_rec_cv FOR SELECT /*+ parallel(x,4) */ x.* FROM CONTRACT_VALIDATED x WHERE CHANGE_KEY = 'U' ORDER BY VALID_T;
    FETCH v_rec_cv INTO v_rec;
    IF v_rec_cv%NOTFOUND THEN
    Add_Log('Event_Validating',v_user,v_event_validated,'INFO','I-0001: No-Procession needed');
    ELSE
    BEGIN
    LOOP
    pk_val := v_rec.co_id;
    tk_val := v_rec.valid_t;
    v_cnt := vo_traced_atts_list.COUNT;
    v_cond := '(NVL(v_rec.'|| vo_traced_atts_list(1)||', ' || v_default || ') <> NVL(v_rec.' || vo_traced_atts_list(1)||'_FROM'
    ||' , ' || v_default || '))';
    cond := (BOOLEAN) v_cond;
    FOR v_i IN 2..v_cnt LOOP
    BEGIN
    v_cond := v_cond ||CHR(13)||CHR(10)||'OR (NVL(v_rec.'||vo_traced_atts_list(v_i)||', ' || v_default || ') <> NVL(v_rec.'||vo_traced_atts_list(v_i)||'_FROM'
    ||' , ' || v_default || '))';
    END;
    END LOOP;
    v_exec := 'SELECT ''x'' FROM DUAL WHERE '||v_cond;
    Add_Log('Event_Validating',v_user,v_event_validated,'INFO',v_exec);
    EXECUTE IMMEDIATE v_exec;
    /* Exception raised from here
    E-0008: Unkown Exception raised in Loop. ORACLE:ORA-00904: "V_REC"."ATT2_FROM": invalid identifier
    It seems that Oracle does not understand the dynamic reference v_rec.ATT2_FROM, v_rec.ATT2,... to test the condtion
    IF SQL%ROWCOUNT = 0     THEN -- condition is false ==> traced attributes does not changed
    -- update the REASON = 4 - not interested event
    v_exec := 'UPDATE CONTRACT_VALIDATED SET REASON = 4 WHERE CO_ID = '||pk_val||' AND VALID_T = '||tk_val;
    EXECUTE IMMEDIATE v_exec;
    END IF;
    FETCH v_rec_cv INTO v_rec;
    EXIT WHEN v_rec_cv%NOTFOUND;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,v_event_validated,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    RAISE ge_raise_error;
    END;
    END IF;
    CLOSE v_rec_cv;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,v_event_validated,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    RAISE ge_raise_error;
    END;

    Dear Andrew,
    Thank you so much for your suggestions, however, I think it will be better to let me explain more about the situation.
    I am working at Data Warehousing and Analysis part. The event tables are provided by other applications such as Customer OTLP system, Sales Management, etc. We therefore just have the results stored in the event tables (which could be wrong or inconsistency) and no way to force them to be valid by constraints. Before further processing the events , their records should be checked and overridden if possible, and that is the point I am trying to solve now.
    The Event table names, their attributes list, data types, primary key, timestamp columns etc are dynamic and are provided via parameters. I would like to write a procedure which can check the invalid events (not only update, but also insert, delete), protocol them, and override them if possible before processing further. Because the table name, attribute lists, data type, etc are not known in advanced, to my best knowledge, the only choice is generating dynamic PL/SQL code although it could suck the performance. The code you have seen in my first question is the output from the follwoing procedure, where the i_att_list provides the atts list has been parsed from other procedure invocation, i_pk is the primary key, i_tk is the time key, i_table_name is the table name (which is Event_Validation in previous example). The stucking point I have met now is that I do not know how to test the condition to detect the different between column pairs (ATT1 and ATT1_FROM, ...). Using Select from dual is just a dummy select for testing the where condition which must be formed as a string by that way.
    Thank you very much for your answer and looking forward to seeing your further recommendations or suggestions.
    Regards,
    Tho.
    CREATE OR REPLACE PROCEDURE Update_Validation
    ( i_att_list enum_string, -- list of attributes
    i_pk IN VARCHAR2, -- primary key column
    i_tk IN VARCHAR2, -- time key column
    i_table_name IN VARCHAR2 -- table_name - the columns format be checked
    ) AUTHID Current_User IS
    TYPE LoopCurType           IS REF CURSOR;
    ln_parallel NUMBER := 4;
    ge_raise_error EXCEPTION;
    v_user VARCHAR2(100);
    v_sql VARCHAR2(4000);
    v_string VARCHAR2(4000);
    v_crlf VARCHAR2(2) := CHR(13)||CHR(10);
    BEGIN
    SELECT sys_context('USERENV','current_schema') INTO v_user FROM DUAL;
    v_sql:= 'SELECT /*+ parallel(x,'||ln_parallel||') */ x.* FROM ' ||i_table_name|| ' x '||
              'WHERE CHANGE_KEY = ''U'''||
    ' order by '||i_tk;
    v_string := 'DECLARE v_rec '||i_table_name||'%ROWTYPE;' ||v_crlf||
              ' TYPE cv_type IS REF CURSOR; ' ||v_crlf||
    ' v_rec_cv CV_TYPE; ' ||v_crlf||
              ' v_cond VARCHAR2(4000); ' ||v_crlf||
         ' v_exec VARCHAR2(100);' ||v_crlf||
              ' v_default VARCHAR2(10):= ''~~''; ' ||v_crlf||
    ' tk_val '||i_table_name||'.'||i_tk||'.%TYPE;'||v_crlf||
    ' pk_val '||i_table_name||'.'||i_pk||'.%TYPE;'||v_crlf||
              ' v_cnt NUMBER;' ||v_crlf||
              'BEGIN ' ||v_crlf||
                        'OPEN v_rec_cv FOR ' ||v_sql ||';' ||v_crlf||
                        'FETCH v_rec_cv INTO v_rec;' ||v_crlf||
                             ' IF v_rec_cv%NOTFOUND THEN ' ||v_crlf||
                                  'Add_Log(''Event_Validating'',v_user,i_table_name,''INFO'',''I-0001: No-Procession needed'');'||v_crlf||
                             ' ELSE ' ||v_crlf||
                                  ' BEGIN '||v_crlf||
                                  ' LOOP '||v_crlf||
                                  'pk_val := v_rec.'||i_pk||';'||v_crlf||
    'tk_val := v_rec.'||i_tk||';'||v_crlf||
    'v_cnt := i_att_list.COUNT;' ||v_crlf||
                                            'v_cond := ''NVL(v_rec.''|| i_att_list(1)||'', '' || v_default || '') <> NVL(v_rec.'' || i_att_list(1)||''_FROM'''||v_crlf||
                             '||'' , '' || v_default || '')'';'||v_crlf||
                                            'FOR v_i IN 2..v_cnt LOOP'||v_crlf||
                                                 'BEGIN'||v_crlf||
                                                 'v_cond := v_cond ||CHR(13)||CHR(10)||''OR NVL(v_rec.''||i_att_list(v_i)||''), <> NVL(v_rec.''||i_att_list(v_i)||''_FROM'''||v_crlf||
                                                 '||'' , '' || v_default || '')'';'||v_crlf||
                                                 'END;'||v_crlf||
                                            'END LOOP;'||v_crlf||
                                            'v_exec := ''SELECT ''x'' FROM DUAL WHERE ''||v_cond;'||v_crlf||
                                            'EXECUTE IMMEDIATE v_exec;'||v_crlf||
                                            'IF SQL%ROWCOUNT = 0     THEN -- condition is false ==> traced attributes does not changed'||v_crlf||
                                            '-- update the REASON = 4 - not interested event'||v_crlf||
                                            'UPDATE '||i_table_name||' SET REASON = 4 WHERE '||i_pk||' = '||v_tk||' AND '||i_tk||' = '||tk_val||';'||v_crlf||
                                            'END IF;'||v_crlf||
                                       'FETCH v_rec_cv INTO v_rec;' ||v_crlf||
                                       'EXIT WHEN v_rec_cv%NOTFOUND;'||v_crlf||
                        ' END LOOP;'||v_crlf||
                                  'EXCEPTION' ||v_crlf||
                             'WHEN OTHERS THEN'||v_crlf||
                        'Add_Log(''SCD_VALIDATION'',v_user,i_table_name,''ERROR'',''E-0008: Unkown Exception raised in Loop. ORACLE:''||SQLERRM);'||v_crlf||
                        'RAISE ge_raise_error;'||v_crlf||
                                  'END;'||v_crlf||
                                  'END IF;'|| v_crlf||
                        'Close v_rec_cv;'||v_crlf||
                        'EXCEPTION' ||v_crlf||
                   'WHEN OTHERS THEN'||v_crlf||
              'Add_Log(''SCD_VALIDATION'',v_user,i_table_name,''ERROR'',''E-0008: Unkown Exception raised in Loop. ORACLE:''||SQLERRM);'||v_crlf||
              'RAISE ge_raise_error;'||v_crlf||
                   'END;';               
         Add_Log('SCD_UPDATE_VALIDATION',v_user,i_table_name,'INFO','I-0006: Update Validation : '||v_string);     
         EXECUTE IMMEDIATE v_string;
    EXCEPTION
    WHEN OTHERS THEN
    Add_Log('SCD_VALIDATION',v_user,i_table_name,'ERROR','E-0008: Unkown Exception raised in Loop. ORACLE:'||SQLERRM);
    END Update_Validation;

  • Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

    Hi,
    I am trying to run a long running process, by redirecting to the LongRunningView using the code below. But its throwing exception Can anyone please help
    string strCurrentUrl = SPUtility.OriginalServerRelativeRequestPath;
    strCurrentUrl = strCurrentUrl + "?ListName=" + strListName;
    ////Initiates the Excel Import
    if (ObjdtExcel != null && ObjdtExcel.Rows.Count > 0)
    ExcelImportJob objJob = new ExcelImportJob(strTabName, ObjdtExcel, strFileExt, SPContext.Current.Site.ID, SPContext.Current.Web.ID, strWorkflow, strListName);
    objJob.Title = "Excel Import Job";
    //// Redirect the user to another page when finished.
    objJob.RedirectWhenFinished = false;
    //// Specify if the user can cancel this.
    objJob.UserCanCancel = false;
    //// Specify the refresh rate of the job, here, the page polls every 5 seconds for completion.
    objJob.MillisecondsToWaitForFinish = 15000;
    //// Finally, start the job on a web.
    objJob.Start(SPContext.Current.Web);
    string strUrl = string.Format("{0}?JobId={1}&Source={2}", PROGRESS_PAGE_URL, objJob.JobId, strCurrentUrl);
    SPUtility.Redirect(strUrl, SPRedirectFlags.Default, HttpContext.Current);
    The exception being "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
    Arjun Menon U.K

    Hi Arjun,
    Any update?
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How many airport express can  i install in my home to stream music?

    I plan to buy many airport express in my new Home!
    how many airport express can  i install in my home to stream music?
    Jimmy

    jimmyflo wrote:
    I plan to buy many airport express in my new Home!
    how many airport express can  i install in my home to stream music?
    Theoretically as much as you want but there are technical limitations about the usable bandwidth in the wireless or by the used access point.
    All participants (stations) in a wireless network share the available bandwhith equally and therefore a point will get reached where the throughput in the network became insufficient to stream music.
    Also some routers limit the number of stations could get connected. For instance Apples Airport Extreme have a limit of 50 connected clients and the AP-Express (if used as access point) a limit of 10 simultaneous connections.
    Lupunus

  • HI, do you know how many airport express I can use per Mac????

    I need to know how many airport express can I use simultanously in my Mac ... any idea???

    Thanks for your question, I live in a 3 floor house, the cable router is in the 2nd floor, I already have one connected airport exrpess in the 1st one, but I need to increase the wifi signal in the 3rd one... so for that reason I would like to conecct one additoonal one to my wifi network...

  • How many airport express can I add to my network for the purpose of using the airport express to send audio signal to different rooms in the house? I'm interested I'm running about six different zones.

    How many airport express can I add to my network for the purpose of using the airport express to send audio signal to different rooms in the house? I'm interested I'm running about six different zones.
    What I'm looking to do is to have self powered in ceiling speakers in every room in my house with out having to run wires to every room to carry the audio signal. I would like to use the airport express to do the job of carting the audio signal.
    Here's my set up now I have an airport extreme and one airport express that I use to carry audio to one room.

    FWIW. I have used up to four AirPort Express Base Stations (AX) for streaming sucessfully in pretty much the way you have described. I didn't have a need to try more so I can't attest that more would or would not work.

  • How many airport express can be supported by software remote at one time.

    how many airport express can be supported by software remote at one time?
    I mean remote software can control at one time

    Well Apple makes an iOS application called 'Remote' it's used to control iTunes on a Mac, Or to control an Apple TV Multimedia features.
    Apple also makes "AirPort Utility" for iOS. Airport Utility can be used to configure Aiport Extrem, Airport Express And Time Capsul using an iPad, iPhone or iPod Touch. You can use it to connect to one device at a time. While connected to the device you can configure it to work as part of a larger Airport network. If you want to configure muliple device, you would connect to one device,  configure it,  And then connect to the next device, and configure it, and so on and so fourth.
    I haven't found a limit.
    How big of a network are you trying to make?

  • How many Airport Express...

    How many Airport Express units can be used simultaneously?  I have an audio application that is wireless and could potentially have 12-20 separate areas. The most I have actually ever tried is 4 and it worked fine.  Any limitations that anyone has read about, or has anyone tried this?

    Well, a standard "main" router that will supply DHCP and NAT services for the entire network will be able to allow up to a total of about 250 devices to connect. That would include the AirPorts, and any devices that are connected to the AirPorts and any other devices that you have on the network.
    Each AirPort Express (new version) will handle up to 50 wireless clients. It would be much better to limit that to 20-25 to keep the speed up.  So, you'll have to do some math to try to figure out how many total devices will connect to the network when everything is working.
    You could connect 20 AirPort Express devices to the main router....but you would only be able to connect about 10-15 devices to each Express.
    Or, connect 10 Express devices to the main router and you can connect about 20-25 devices to each Express.
    If you plan to connect to the Internet, keep in mind that all devices will share the bandwidth. If you have a 100 Mbps Internet connection, and 100 clients connected to the network, then each client will get about 1 Mbps. Pretty slow.
    I'm not sure what your audio application is here....the network examples I am providing assume that you will be connecting wireless and wired Ethernet clients to the network.
    If you could detail your proposed system, other users could offer their comments. We're still pretty much guessing at hypotheticals at this point.

  • How many AirPort Express stations can be supported by an AirPort Extreme wirelessly?

    I got one AirPort Extreme in my home and would like to extend the wireless network by purchasing additional AirPort Express.  Wanna know how many AirPort Express stations can be supported by an AirPort Extreme wirelessly?
    Thanks.
    Tony

    Bob -- question for you which I can't answer as I don't have an airport extreme. The newer Extremes can create both G and N networks and can create the N network in the 5 mhz band. Can you increase the number of Express units you can connect wirelessly if you split the load between the 2.4 mhz G and 5 mhz N networks created by the Extreme. (recognizing that the 5 mhz band has less range than the 2.4 mhz band)
    Not an issue for me as I only have three connected wirelessly, but I've always wondered about this. Of my three AX units one connects to a G network created by a Linksys WRT54GS and two connect to the N network created by the AX.
    So instead of 3-4 AX units could it become 6-8?
    Carlos

  • How would I express this correctly

    How would I express this correctly?
    elseif ($row_rs['loggedinip'] != $_SERVER['REMOTE_ADDR'] AND
    now("Y-m-d H:i:s") < $row_rs['lastlogin']+120 minutes) {
    die(header("Location:
    http://domain.com/login.php"));
    else {...

    .oO(jsteinmann)
    >Its not on a unix system
    Doesn't matter. Unix timestamps also work on Windows, they
    are just one
    way to store a time code withing the range of (roughly)
    1902-2038.
    >mysql data is in a datetime format
    You could also let MySQL already return the date as a Unix
    timestamp or
    even do the entire calculation in MySQL, as already
    suggested. You could
    let MySQL return both: the normal 'lastlogin' field and
    another one with
    'lastlogin'+120 minutes or whatever. Or do the entire date
    test in SQL
    and just return a boolean value if the last login was more
    than 120
    minutes ago or not ... there are several different ways.
    Micha

  • How many Airport Expresses possible?

    Been looking far and wide for this answer.... how many Airport Expresses can iTunes stream to at once? I know with iTunes v6 and the firmware update it's possible to stream to more than one... but what's the maximum? Is there a max?
    I know only one stream is possible I'd just like to figure out how many I could get. Thanks in advance.

    Quoting from Apple's Airport Express FAQ:
    Question: Can iTunes send a single AirTunes stream to multiple AirPort Express stations?
    Answer: Yes. With iTunes 6.0.2 or later, you can send an AirTunes stream to multiple remote AirPort Express units, provided that each AirPort Express has the latest AirPort firmware (available here). The maximum number of remote AirPort Express units is three to six in typical conditions. The number that works for you will depend on your environmental conditions (such as building composition and local radio interference), distance to the remote AirPort Express units, and available network capacity relative to your other usage.
    The practical limit on the number of Airport Express devices you can stream to at one time (as indicated in that paragraph) is determined by the available bandwidth of the wireless network.
    The next question, of course, is how many could be supported if all Airport Expresses were cabled to an ethernet network.

  • How many Airport Expresses can you link and still work properly

    How many Airiport Expresses can you link and still work properly.

    It would depend on whether all of these base stations will be interconnected by Ethernet or by wireless and what your goal is with them.
    In a roaming network, where all base stations would be connected by Ethernet, you could have 10+ base stations. Apple has never (at least to me) any limits on the number of base stations that can be used in this type of network.
    In an extended network, where all of the base stations use wireless connections, the practical limit would be 4 or 5 base stations.

  • How to evaluate dynamic XPath expression in BPEL?

    I have an xml file where I keep many settings for my BPEL process. At runtime, I read the file and I want to select values from it based on values in the process payload.
    For example, imagine that the process payload is an order:
    <order>
    <header>
    <id/>
    <customer_id/>
    <team_id/>
    </header>
    <items>
    <item>
    <id/>
    <sku/>
    <price/>
    <quantity/>
    </item>
    </items>
    </order>
    Now, in my xml settings file, I have a section where I keep a mapping of "team_id" and "assignment_group", so that for each team id, I can select the appropriate group to whom a task should be assigned. The relevant section of the settings file will look something like this:
    <assignment_groups>
    <group team_id='0923230'>invoice_approvers</group>
    <group team_id='3094303'>order_approvers</group>
    <group team_id='3434355'>shipping_approvers</group>
    </assignment_groups>
    So, imagine I get an order input to my process where the team_id is '3094303'. Now I have to lookup the correct assignment group in my settings file.
    So, I construct the dynamic XPath expression
    /settings/assignment_groups/group[@team_id=3094303]
    I know that this would evaluate to "order_approvers". However, even though I have the XPath expression in a BPEL variable, and I have my settings file as a BPEL variable also, I don't know how to execute the XPath expression against the settings BPEL variable to retrieve the correct value.
    Any ideas appreciated.
    Thanks,
    Jack

    James:
    Thank you for the response. Incidentally, this is the very same document and section that I have been looking at for guidance. Specifically, the section titled "Dynamically indexing by Constructing an XPath at Run Time" on page 12-13.
    I tried to do something similar to the example at the top of page 13:
    <variable name="iterator" type="xsd:integer"/>
    <assign>
    <copy>
    <from expression="concat('/invoice/line-item[',bpws:getVariableData('iterator'), ']/line-total')"/>
    <to variable="xpath"/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('input', 'payload',bpws:getVariableData('xpath')) + ..."/>
    </copy>
    </assign>
    I am able to achieve the first copy operation to get my dynamic XPath into a BPEL variable and that's fairly straightforward. But I am unable to get the second copy to work. Specifically, I am not sure what to put in the second argument of the bpws:getVariableData function. I have tried many different combinations, but when I try to compile my program, I get the following compilation error:
    Error:
    [Error ORABPEL-10902]: compilation failed
    [Description]: in "C:\code\TrainingWS\SampleGetSettings\bpel\SampleGetSettings.bpel", XML parsing failed because "org.collaxa.thirdparty.jaxen.expr.DefaultFunctionCallExpr".
    [Potential fix]: n/a.
    Thanks,
    Jack

Maybe you are looking for

  • Internet slows down or shuts off for a few minutes, then goes back to normal. What should I do?

    So I've been away for a while and when I got back to US I've had some issues. It's the same internet connection as before, so I'm not sure if that's the problem. When I use an internet browser everything goes well for a while and then internet sudden

  • "Access is Denied" when accessing files in the network

    Hello developers , My JSP application is reading files that reside elsewhere in our LAN (using the "\\\\<some-server>\\<some-shared-folder>\\<some-file>" notation). On my personal Tomcat it works just fine, however the IT deprtment has allocated me a

  • Affecting Flash from HTML

    Hello, I'm trying to affect my flash movie from HTML. For example, if I have a google adsense module, and I want to trigger something in flash each time that link is hit, how would I go about doing that? Any help would be much appreciated!

  • Can I deliver collected info as a pdf?

    I would like to collect information from a user, including uploaded photos, in a skip logic format, then place that information into a pre-formatted document, and then deliver that document back to the user as a pdf. Is this possible with FormsCentra

  • TimeZone_Error

    hi, I am new to oracle adf, when i run the application first time it will give me following error, (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found i have set java o