Expression builder in BPEL

Im trying to manipulate a file name at runtime. Right now I have the inbound header mapped to the outbound header so that the file gets to its destination with a dynamic filename. We are picking up multiple files Ex. KL* and the customer wants the same file name as was picked up. So anyway now they want it picked up as a .dat file and dropped off as .txt
I am lokoing through the expression builder via jdeveloper and see there are many funtions. From the looks of it there is something to modify this extension i want to change but im having a hard time finding one or documentation explaining what each of these functions do
any help please

Well assuming the below would be my Xpath statement because there is no statement in here that says read a specific file.txt it is read in in dynamic what i mean is we say pick up DEF*.dat so we want any DEF.dat to get read in but at the same time we want the original name stay on the file as it gets processed. So we may have DEF123, DEF456, DEF789 get read in but they will keep their file names as going through
<variable name="Inbound_Head" messageType="ns3:InboundHeader_msg"/>
So first off when creating variables i never knew there was a way to make a "temp variable" so if I could create a "temp" one then
concat(substring(bpws:getVariableData('gdotltest.dat')), 1, string-length(ns3:InboundHeader_msg('gdotl.dat')) -3 '.dat')
ok and then when you are saying
"First save your fileName " Are you saying the name as the file name i want as in right now it is gdotltest.dat
are you saying assign the variable for ns3:InboundHeader_msg as 'gdotltest.dat
I am sort of seeing where you want to to go with this just help me out a little more if you could
So i got this variable that is associated with DEF*.dat filename right
Ex. ns3:InboundHeader_msg = DEF*.dat
So then i want to create a temp variable name something like ns7:InboundHeader_msg_TempVar <--------- just saying for example correct me on any syntax error and im going to want to associate this variable i made up with DEF*.txt so that when my bpel interacts with this hmmmmmmm thinking about this now how will this keep the dynamic file naming convention still going if now im associating a new variable with a file coming throguht that is suppose to keeps it s name ? Sorry to sound confusing but explain one last time how we are keep the first half of the file name dynamic and making the .dat or .txt or .doc unique to just output as .dat ?

Similar Messages

  • JDeveloper BPEL Expression Builder : getFaultAsString()  not found

    Problem:
    In the JDeveloper BPEL Expression Builder Dialog (Assign activity) I see only 4 functions under " Advanced Functions" menu.
    1. created-nodeset-xxxx
    2. generate-guid
    3. lookup-xml
    4. parseXML.
    I expect functions like getFaultAsString() to be there. Without i I can not get the fault string. Can you please help ?
    Version Information:
    Oracle J Developer : Studio Edition Version 11.1.1.3.0
    Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
    ADF Business Components     11.1.1.56.60
    BPMN Editor     11.1.1.3.0.6.84
    Java(TM) Platform     1.6.0_18
    Oracle IDE     11.1.1.3.37.56.60
    SOA Composite Editor     11.1.1.3.0.25.57
    Versioning Support     11.1.1.3.37.56.60
    Thanks in advance!

    Hi,
    You can put directly the function: ora:getFaultAsString()
    Type ora:get and press Ctrl-Space - this will open all the possible available functions.
    Arik

  • BPEL Expression Build problem

    Hi,
    While developing the BPEL process, the Expression builder doesn't repyly for a long time when we have to build the big expressions?
    Is there any solution/alternative to over come this?
    -- i have one idea of editing the .bpel file and writing the expression in the source directly, any better ideas please?
    --Khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi Frank,
    I believe you meant to say:
    das BPEL forum ist
    BPEL
    sorry, couldn't resist ;)
    John

  • XPath Expression Builder Performance after Oracle FMW PS4 Upgrade

    Hi,
    Is there anyone out there on OFMW PS4 and facing performance issues with the BPEL Assign 'XPath Expression Builder'. We have a scenario where the BPEL process has to reference many schemas (arnd. 50+) from referenced Partner Link WSDLs and its own composite. The Expression Builder seems to be very very slow (takes minutes to load) as compared PS2 (only seconds).
    Are we alone on this one / anyone has any experience/fix/workaround?
    BTW,
    We've unchecked the "Validate" check box from SOA Preferences, still no luck.
    Regards,
    Srinath.

    Hi,
    Is there anyone out there on OFMW PS4 and facing performance issues with the BPEL Assign 'XPath Expression Builder'. We have a scenario where the BPEL process has to reference many schemas (arnd. 50+) from referenced Partner Link WSDLs and its own composite. The Expression Builder seems to be very very slow (takes minutes to load) as compared PS2 (only seconds).
    Are we alone on this one / anyone has any experience/fix/workaround?
    BTW,
    We've unchecked the "Validate" check box from SOA Preferences, still no luck.
    Regards,
    Srinath.

  • Human task expression builder (10.1.3.1 GA)

    When I open up the Expression builder while inside the humanTask builder/editer/whatchamacallit I cannot see any BPEL variables. The Title displayed in the Expression builder is schema (vs the BPEL variables I see elsewhere). This gives me access to Task variables which isn't what I want. I want access to BPEL variables to use my dynamic expressions.
    In addition to the above the expression builder is essentially broken within the humanTask. <Control><space> doesn't work properly.
    This has behaved the same in both the developer preview and GA versions. Tell me that this some stupid configuration parameter that I've got fouled up. I can't deal with it as I'm currently experiencing.

    The Expression editor inside of the Human Task editor does not show the BPEL variables as the XPath expressions are not evaluated from the context of a BPEL instance, but are executed in the context of the Human Task instance. This is not a bug.
    In order to refer to BPEL variables, one can use input parameters (as noted by John above). You can also map the output parameters from the task to BPEL variables - once the Human Task activity completes.
    Please refer to section 15.6.5.2.1 of Oracle® BPEL Process Manager Developer's Guide for details.
    Best Regards,
    Sidda

  • Issue with Expression Builder Popup on UI

    In one of our UI's we have column which has an expression and an image as the value.One clicking the image an expression builder popup opens,where we can change the expression value(which will later gets updated in the column).This is how the column looks:
    <af:column sortProperty="Condition" filterable="true" sortable="true" filterFeatures="caseInsensitive"
    headerText="#{bindings.OrchestrationProcessStatusLogic1.hints.ConditionDisplay.label}"
    width="400" id="column3" showRequired="true">
    <af:panelGroupLayout id="pgl1" layout="horizontal">
    <af:outputText value="#{row.bindings.ConditionDisplay.inputValue}"
    id="outputText5" partialTriggers="eb1"/>
    <af:spacer width="10" height="10" id="s1"/>
    <eb:expBuilder expBuilderBean="#{dooStatusExpBuilderBean.expBuilderBean}"
    tabModels="#{dooStatusExpBuilderBean.tabModels}"
    id="eb1"
    expBuilderListener="#{dooStatusExpBuilderBean}"
    expValue="#{row.bindings.ConditionDisplay.inputValue}"
    rendered="#{!pageFlowScope.releasedProcess}"/>
    </af:panelGroupLayout>
    </af:column>
    When we enter an expression in the popup and click OK,we are implementing a certain method(processValueChange(ExpBuilderEvent evt) from oracle.bpel.expbuilderdc.model.ExpBuilderListener) in dooStatusExpBuilderBean to check the correctness of the expression.
    When we enter an incorrect value in the Expression builder pop up and click 'OK',An error message is displayed and Expression Builder popup closes and the old value of expression is retained in the column.Is this the default behaviour? Wouldn't it be more practical if the expression builder popup remains open in case we enter incorrect expression and click OK.
    We don't have the handle over expression builder pop up ,Is there a way we can override the default behavior and keep the pop up in case of an invalid expression and errors?
    Any inputs on this would be really helpful.
    Thanks,
    Sowjanya.
    Edited by: 905801 on Jan 9, 2013 9:08 AM

    You should all this the supplier of the component.
    We don't now about the component.
    Timo

  • Expression Builder: convert string to number

    Hi all,
    I'm having trouble building a field validation rule for bank account numbers.
    The numbers have 12 positions, so I cannot use a string or text number.
    The validation rule to be implemented is that the last two digits are calculated based on the first 10 (modulo 97).
    However, when I use the Mid function to pick the first characters, I am unable to do any calculations on it. Apparently, the string to number conversion doesn't work (it should work when I read the manual, as it says that when using an operator between two data types, the second type is converted to the first (cf. example of 1234+abcd (should result in 1234 as to the manual))). So I tried '1*Mid(...)' or '0+Mid(...)'. Syntactically the expression builder accepts it and I can save it. BUT when I change the particular value on the screen, it gives me an SSO error (not the Field Validation error message I entered).
    Why isn't there simply a function ToNumber (like ToChar)????? How could I workaround this?
    Any input very welcome!
    Frederik

    Apparently, I was a bit confused when typing the first sentence, it should be:
    The numbers have 12 positions, so I cannot use an integer or number data type, but have to use String.

  • Logical SQL about Expression Builder

    Dear all
    I am Michel.
    When I was always trouble,
    everyone will go to support this Forum, I am glad.
    I want to fix Logical SQL about Expression Builder of Oracle BI 11.1.1.3.
    In detail, Business each year, fiscal year you want to make is to display
    the beginning of the fiscal year of April 1, always, the data,
    "OUTPUT_DATE" from April until March the following year.
    Currently being output error is as follows.
    :[nQSError: 22020] Function Subtring ( argument 1) does not support non-text types. (HY000)
    I want to fix logical SQL is as follows.
    case when substring("app_support"."TABLE_NAME"."OUTPUT_DATE" from 4 for 5)
    in ('04','05','06','07','08','09','10','11','12')
    then Cast
         Concat
    Substring(
                   Cast(
                        "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
              FROM 4 for 8
         '04-01'
    AS DATE
    when substring("app_support"."TABLE_NAME"."OUTPUT_DATE" from 4 for 5)
    in ('01','02','03')
    then timestampadd(SQL_TSI_YEAR,-1,
         Cast
         Concat
              Substring(
                   Cast(
                       "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
                   FROM 4 for 8
              '04-01'
    AS DATE
    For reference, logical SQL follows,
    there is no error, and it is operating normally.
    Cast
         Concat(
              Substring(
                   Cast(
                        "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
              FROM 0 for 5
         '-01')
    AS DATE
    I will grad to reply message.
    Thanks and regards.

    Dear Fame and all
    Hello.Thanks you for reply.
    Hi,
    You Missed END key word in the statement.Sorry,I mistake copy & paste only.
    So,The problem is still not resolved.
    The following shows, that the error has been corrected in the first message.
    Dear all
    I am Michel.
    When I was always trouble,
    everyone will go to support this Forum, I am glad.
    I want to fix Logical SQL about Expression Builder of Oracle BI 11.1.1.3.
    In detail, Business each year, fiscal year you want to make is to display
    the beginning of the fiscal year of April 1, always, the data,
    "OUTPUT_DATE" from April until March the following year.
    Currently being output error is as follows.
    :[nQSError: 22020] Function Subtring ( argument 1) does not support non-text types. (HY000)
    I want to fix logical SQL is as follows.
    case when substring("app_support"."TABLE_NAME"."OUTPUT_DATE" from 4 for 5)
    in ('04','05','06','07','08','09','10','11','12')
    then Cast
    Concat
    Substring(
    Cast(
    "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
    FROM 4 for 8
    '04-01'
    AS DATE
    when substring("app_support"."TABLE_NAME"."OUTPUT_DATE" from 4 for 5)
    in ('01','02','03')
    then timestampadd(SQL_TSI_YEAR,-1,
    Cast
    Concat
    Substring(
    Cast(
        "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
    FROM 4 for 8
    '04-01'
    AS DATE
    end
    For reference, logical SQL follows,
    there is no error, and it is operating normally.
    Cast
    Concat(
    Substring(
    Cast(
    "app_support"."TABLE_NAME"."OUTPUT_DATE" AS char
    FROM 0 for 5
    '-01')
    AS DATE
    I will grad to reply message.
    Thanks and regards.

  • Using Decode in Expression Builder...

    Hi everybody,
    I want to use the DECODE function of SQL in an Expression Builder....
    Of course this function does not exist in any of the transformation categories(arithmetic,character,e.t.c.) in the expression builder.
    I have read in the OWB on-line help that in the Expression Builder there should be an 'Others' drop - down list in order to select any of the available SQL clauses - one of them is 'decode'...
    The problem is that this drop - down list in the Expression Builder is disabled.....
    How can I use this function anyway..????
    Instead of using ... in the Expression Builder...
    decode(<column_name>,'1','val_one','2','val_two') what can I use to do the same....???
    As regards the problem that the drop-down list is disabled , what may be the cause..???
    I use Microsoft XP machine , Oracle 10g (v.10.2) and OWB v.10.1.0.4
    The documentation says....
    "This allows you to deploy the DECODE functionality in all operating modes (setbased, rowbased, etc.) and transparently across Oracle database releases (8.1, 9.0 and 9.2)."
    The above means that the cause is the incompatibility..????
    Thanks , a lot
    Simon

    I am using OWB 9.2.0.8 and I can't reproduce the problem you are having with 10.1, but did you try just typing it into the expression?
    Or, better yet, use CASE. The syntax is easier to read. I think OWB translates DECODEs to CASE when the SQL is generated.
    (Case <column_name>
       When '1' Then 'val_one'
       When '2' Then 'val_two'
    End)

  • How to use SQL OVER and PARTITION BY in OBIEE Expression Builder??

    Hi there,
    I want to create a new logical coulmn with the following SQL query.
    SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE )/SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C )
    How to use the OVER and PARTITION BY in OBIEE Expression Builder??
    Thanks in Advance

    hi bipin,
    We cant use by in Expression builder(rpd) .But use the same formula like this in Fx of answers
    SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE )/SUM(Inventory Detail.Qty) >OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C )SUM(Inventory Detail.Qty by Detail,ITEM,Mydate)/SUM(qty by detail,item)
    First check the numerator whether it was giving correct results or not then go with denominator
    compare the results with sql that u have
    Let me know if that does work
    thanks,
    saichand.v
    Edited by: Saichand Varanasi on Jul 27, 2010 9:27 PM
    Edited by: Saichand Varanasi on Jul 27, 2010 9:28 PM

  • Checking for empty tags using expression builder for XPATH

    I am creating several filters in a mediator for several parallel paths. I am trying to route the mediator to the correct DB adapter based on what tags are empty in the incoming XML. The XML has 1 required tag and 3 optional. So for the expression, I am using the expression builder to load the tag name then putting either [text()] or [not(text())] immediately after each tag with an "and" in between for the 3 optional elements. The problem I am having is they always return false. For example, if I enter a value for an optional tag and put [text()] after it, it evaluates to false. What is the correct way to check if an element has text or not?
    Thanks in advance!

    Hi,
    Its not recognizing the getVariableData func... instead try this:
    string-length(xpath)>0
    ex: string-length($in.body/imp1:manoj/imp1:C1)>0
    It works... Happy deploying ... :)

  • How to use TRUNC function with dates in Expression Builder in OBIEE.

    Hi There,
    How to use TRUNC function with dates in Expression Builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns '07/01/2010' where sysdate is '07/15/2010' in SQL. I need to use the same thing in expression builder in BMM layer logical column.
    Thanks in advance

    use this instead:
    TIMESTAMPADD(SQL_TSI_DAY, ( DAYOFMONTH(CURRENT_DATE) * -1) + 1, CURRENT_DATE)

  • Using case statement in OWB expression builder

    Hi All,
    We are using OWB version 10.2.0.1.0. While using the below case statement We are getting the validation message as 'The expression is not properly formed'.
    Case statement used in expression builder:
    case when (INGRP1.CHARGETYPE in ('O','F') or INGRP1.TARIFF_GROUP in ('SMSINT','MMSINT')or ( INGRP1.CALL_TYPE = '002' and INGRP1.TARIFF_GROUP = 'MTV'))
    then
    (select call_zone_reltn_key from call_zone_reltn where
    call_zone_cd=substr(case
                   when substr( INGRP1.B_SUBNO,1,2)='00'
                   then
                   substr( INGRP1.B_SUBNO,3)
                   else substr( INGRP1.B_SUBNO,1)
                   end,1,length(call_zone_cd))and rownum=1)
    else -1
    end
    Kindly help me out in fixing this error or suggest any alternate way to use the above query in OWB expression builder.
    Thanks,
    Kabilan

    946887 wrote:
    Hi All,
    We are using OWB version 10.2.0.1.0. While using the below case statement We are getting the validation message as 'The expression is not properly formed'.
    Did you try to deploy the mapping ? Some time the expression validator gives wrong error messege.
    Try to deploy the mapping and see if you are still getting this issue
    Case statement used in expression builder:
    case when (INGRP1.CHARGETYPE in ('O','F') or INGRP1.TARIFF_GROUP in ('SMSINT','MMSINT')or ( INGRP1.CALL_TYPE = '002' and INGRP1.TARIFF_GROUP = 'MTV'))
    then
    (select call_zone_reltn_key from call_zone_reltn where
    call_zone_cd=substr(case
                   when substr( INGRP1.B_SUBNO,1,2)='00'
                   then
                   substr( INGRP1.B_SUBNO,3)
                   else substr( INGRP1.B_SUBNO,1)
                   end,1,length(call_zone_cd))and rownum=1)
    else -1
    end
    Kindly help me out in fixing this error or suggest any alternate way to use the above query in OWB expression builder.
    Thanks,
    Kabilan

  • Compare only DATE portion of a datetime field in Expression builder

    Hi! All,
    This may be a simple question, but I couldn't find the answer. I have a query where I want to say :
    Expression exp = exp1.get("startDateTime").equal(pDate);
    here pDate is a java.util.Date class with a time stamp.
    I wish to basically compare just the DATE portion of the value stored in the data base with only the DATE portion of "pDate" and ignore the time component.
    How do I do this in expression builder?
    By the way we are on Toplink 9.0.4.5
    Thanks

    There are a couple of ways to accomplish this. You could use between(beginningOfDay,endOfDay) where beginning of day is 12:00:00am on the date specified in pDate and end of day is 11:59:59pm on pDate. Or you could consider using a combination of dateName(), datePart(), and/or truncateDate() expressions to compare at the day, month, year level. I am not sure which would give you better performance, so you might need to do some testing to verify.
    In the first case, create beginningOfDay and endOfDay based upon the date housed in pDate. Then:
    Expression selectionCriteria = exp1.get("startDateTime").between(beginningOfDay,endOfDay);
    In the second case, there would be a little more code to write:
    Expression startDateTimeExp = exp1.get("startDateTime");
    Expression dayExp = startDateTimeExp.datePart("day");
    Expression monthExp = startDateTimeExp.datePart("month");
    Expression yearExp = startDateTimeExp.datePart("year");
    int desiredDay = get day of month from pDate;
    int desiredMonth = get month of year from pDate;
    int desiredYear = get year from pDate;
    Expression selectionCriteria = dayExp.equal(desiredDay).and(monthExp.equal(desiredMonth)).and(yearExp.equal(desiredYear));
    Check out the TopLink API docs on the Expression class for more details on what these Expression building methods do : http://download-west.oracle.com/docs/cd/B10464_05/web.904/b10491/index.html
    Hope that helps,
    Doug

  • Why is ADF Bindings node not displayed in Expression Builder window?

    Hello,
    I'm using Oracle JDeveloper Studio Edition Version 11.1.1.1.0, and I've created a Fusion Web Application and I've configured ADF Authentication and Security for my web project, using the provided wizard.
    On a certain page, I've placed a Go Link component, and I'm trying to edit the Text and Destination Property using EL Expressions. When I open the Expression Builder window all I can see are the following nodes: ADF Controller Objects, ADF Managed Beans, JSF Managed Beans and JSP Objects, but no ADF Bindings. I need to access the securityContext properties, and from what I've read in B31974-03, I need ADF Bindings.
    Also, I've tryied using the search field from the Expression Builder windows, without any luck.
    This is probably a newbie problem, but I really can't figure it out. Please help.
    Bogdan.

    Hi,
    maybe your problem is that you don't have created pageDef related with your page. Try right click on your page and Go To Page Definition. It will create the related pageDef if it does not exist.
    Hope this helps
    Joseba

Maybe you are looking for

  • Looking for change BADI in CRMD_ORDER tcode

    Hi, I have a scenario in CRMD_ORDER, when user changes quantity for an existing Sales Order a BADI should trigger. I should do some validations at item level and display error message. I tried CRM_ORDERADM_I_BADI and CRM_SALES_BADI . they didn't work

  • Profiling pcs

    I use ISE only for profiling ( no posturing ) and it's L3 adjent with other devices (wlc). for iphones and stuff I only need OUI=Apple and i'm good ( no need to go deeper), but I'm having problems identifiying Laptops, they show up as unknown, eventh

  • Invoking code generated at runtime

    Is there a possibility to create at runtime a piece of code e.g. in String variable and invoke it ? for example something like that: var sf = "function xyz():void { do_something } " run sf ??

  • NEF file in elements 10??

    Can't open a Nikon NEF fiel in elements 10??

  • Repeated Crashes in Photoshop CS4

    Brand new iMac 27" with clean install of all Apps. CS4 seems incredibly unstable with large files even on new hardware with latest SL install. This machine has 16GB of RAM in it. Designers are often working on 2GB+ files. Below is the crash log. Anyo