Date parameter in a process flow

Hi,
I´m working with OWB 10.1.0.2.0.
I have a process flow with a transform.
The transform has a date parameter and I´ve defined a date parameter in the start activity, which is bound to the start parameter.
If I try to pass a date parameter in this form, sysdate, the process doesn´t recognize it and in the all_rt_audit_execution_params table i can see that the param process has no value.
If I pass a date parameter in this format 2006/08/07 the process works fine
I need to pass the date parameter from start activity to the process activity using expresions with sysdate,
may anyone help me? please and thanks
beatriz

Hi,
there are several tasks you want to accomplish:
1. "I need to check if the parameter file exists"
Therefor OWB has the File Exists Activity (Process Flow). This one checks if a file exists with specified name on specified location. If so it returns with SUCCESS. If not, it returns a WARNING. In second case you should do a sleep for a while and then re-check.
2. "accessing the date value from the parameter file"
There will be several ways to do this. The easiest one may be, to declare a external Table on this file and simply select from it (use it as a source in your mapping)
3. "After the ETL is finished running, the name of the parameter file needs to be changed"
In your process flow you create a user defined activity. In this one you start cmd.exe (on windows) and execute any DOS-commands you like. In this case a move or rename.
Hope I could help you...
Bye,
iOn.

Similar Messages

  • Data Type for Process Flow... PB with Date?

    I've got a problem by passing parameters in process flow.
    I have a mapping with a parameter DATE_EXEC (data type : DATE) and a default value that is TO_DATE('20/01/2007' , 'dd/mm/yyyy') . My mapping is working good when i launch it.
    I have a process flow which contains the mapping. This process has a parameter DATE_EXEC (data type : DATE). I bind the 2 DATE_EXEC. But when i launch my mapping the value is not recognized, I try with :
    - TO_DATE('20/01/2007' , 'dd/mm/yyyy')
    - 20/01/2007
    - 2007.01.20
    - 2007-01-20
    My question is what are the data type in process flow? They are not ORACLE TYPE.
    For example , a parameter in a mapping which is a VARCHAR2 must be input between quotes but if you bind it to a parameter of a process flow which is a STRING (not ORACLE Data type) , you must input it without quotes?
    Anybody has some rules about that?
    I apologize for my english, i'm a french people.

    Here is some information on the literal quote or not quote query and what I think you need to do at the end, hope it helps. Not exactly intuitive...since the flow designer (you) have to know what is a PLSQL object and what is not.
    1. Literal = FALSE
    When Literal = FALSE is set then the value entered must be a valid PL/SQL expression which is evaluated at the Control Center e.g.
    'Hello World!'
    22 / 7
    2. Literal = TRUE
    When Literal = TRUE then the value is dependent on the the type of Activity. If the activity is a PL/SQL object i.e. Mapping or Transformation, then the value is PL/SQL snippet. The critical difference here is that the value is macro substituted into the call for the object. The format of the value is identical to that entered as default value in the Mapping editor. e.g.
    'Hello World!'
    sysdate()
    If the activity type is not a PL/SQL object then the value is language independent. e.g.
    Hello World
    3.1427571
    What you should try......
    Check the map activity parameter in your process flow to see if literal is false (an expression), set it to false and then try using your TO_DATE('20/01/2007' , 'dd/mm/yyyy') expression, deploy your flow and execute. Alternatively the user guide defines the DATE type for flow with the format YYYY-MM-DD so you can have the parameter value as '2007-01-20' use literal equal to true and remember and quote your value.
    Cheers
    David

  • Passing Parameter to Process flow

    Hello,
    I have a mapping that has input parameter. Now i create a process flow and use this mapping, each time i run the process flow it prompt for the parameter
    Is there a way to pass the parameter to the process flow directly withput prompting ?
    Thanks

    Hi ,
    I found something related in doc. http://download.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/ref_processflows.htm#i1173362
    "If a mapping contains a Mapping Input Parameter operator, specify a value according to its data type. The Process Flow Editor expects to receive a PL/SQL expression when you add a Mapping Input Parameter operator to a mapping. If the Mapping Input Parameter is a string, enclose the string in double quotes."
    But it is not clear how to do this ?
    Thanks

  • Can not delete a parameter of a mapping in a process flow

    Hi,
    I want to delete a certain input parameter of all mappings in a flow with tcl.
    I use this:
    OMBALTER PROCESS_FLOW '$flow' DELETE PARAMETER 'IP_VERSION' OF ACTIVITY '$act'
    If i test this in the OMBPlus window it says it deleted it however it is still there i the flow.
    If i use this statement in a tcl script the script halts without message.
    It says :
    Process Flow Parameter IP_VERSION deleted.
    process Flow PFP_MIKE_1 altered.
    And when i retrieve the parameters afterwards it is indeed stil listed:
    OMBRETRIEVE PROCESS_FLOW '$flow' ACTIVITY '$act' GET PARAMETERS.
    Can somebody confirm:
    --that i am using the proper syntax
    --if this is a known bug in owb 10gr2 10.2.0.1.31
    rgrds Mike
    Nobody ?
    Edited by: MichaelR64 on 7-jun-2013 9:45
    Edited by: MichaelR64 on 7-jun-2013 9:46

    Nobody ?
    I did some more testing.
    The clause i am using is this: deleteGenericActivityParameterClause
    deleteGenericActivityParameterClause = PARAMETER "QUOTED_STRING" OF ACTIVITY "QUOTED_STRING"
    See here: http://docs.oracle.com/html/E14406_01/chap4003.htm for the 11g verrsion.
    My flow has calls to other mappings in it.
    Both the mappings and the flow itself have this input parameter IP_VERSION.
    It seems the OMBplus parser is making an error.
    When i specify the name of the input param that is of the flow(and not the mapping in the flow) , but the rest of the command specifies the mapping activity as in OP, then OMB says that it deleted the parameter and that it altered the flow.
    And it halts there.
    But when i check the actual flow nothing has changed.
    When i specify the name of parameter that the called mapping has , ofcourse with the full command line as in OP, then OMBplus says it can not find the specified parameter.
    So it seems that the parser makes two errors:
    When searching for the parameter it looks in the wrong place, it always looks in the flow section instead of the acitvy specified.
    The ' OF ACTIVITY '$act' ' part is not used it seems.
    The delete part of the instruction is also confused by this and says it deleted the parameter but nothing actually happens.
    Hope somebody can confirm/shed more light on this.
    Edited by: MichaelR64 on 6-jun-2013 17:07

  • Input Parameter in process flow

    Hi, I can't pass a parameter in a process flow, I'm following these step:
    To accomplish your task you should do following steps:
    1. Define input parameters for all your mappings
    2. Collect mappings within process flow
    3. Define process parameters.
    To do this withing Process editor and point somewhere on process diagram - don't select any activities In bottom-left window you will see the list of all process' activities. Select "Start" activity and press Add button below. New parameter line should appear under Start activity. Edit name and type of parameter and repeat creating input process parameters.
    4. Select Mapping with input parameters. In bottom-left window selectted activity will appear. Click on plus sign to expand mapping parameters. For each parameter set its Binding to the Process parameter. Continue with other mappings.
    The process flow recibe the input parameter, but it's not passing through the mappings
    if I run the maps one by one, the result is Ok
    Thanks and regards

    Hi
    How do you know the process flow is receiving the input, and that the mapping is not?
    So you followed the following
    http://blogs.oracle.com/warehousebuilder/2009/01/process_flow_parameters_1.html
    but with a map as the activity?
    Cheers
    David

  • Process Flow Parameter Binding.

    The docs on using process flow parameters are a bit sparse, so I wonder if anyone else has some input.
    We kick off our ETL processes by an external enterprise scheduling tool due to several remote dependencies. This tool provides us with an audit id that we want to tag all of our current rows loaded with. Now, creating input parameters on the mappings is easy, but the docs seem to indicate that a parameter passed into a process flow can only be bound to one location. Given that our process includes a few hundred mappings, this would require the input parameter be input several hunderd times with each instance bound to a single mapping. That is not a maintainable option. Similarly, any documentation on passing OUT parameters from mappings to subsequent mappings seems entirely absent, so I'm not sure if I can "daisy chain" passing this parameter along.
    Which, at this point, leaves me with passing in the variable to the process flow, having the first step be a SQL call that saves this ID to a table, and then having each mapping query this table for the audit ID in a pre-mapping procedure to use to tag the rows. The Process Flow will also have to have a closing SQL script to clear the audit id out of the table.
    Is this my best option? Or does anyone have a better idea?
    Thanks,
    Mike

    In 9.2, parameters were added by way of the property sheet for the Start activity.
    In 10.2 what you do is, in the Explorer portion (the top section) of the palette you select the "Start" activity. If you then look at the top bar of the Explorer portion of the palette you will note that the leftmost icon (a green plus sign over a folder) is enabled. This is the Create button which, when pressed, will create an input parameter to the process flow. This paramter may then be used as a bind variable by other activities in the process flow.
    Cheers,
    Mike

  • How to pass process flow input parameter to unix script external process

    Hi,
    I'm trying to pass a process flow input paramter (string) to an external process which is a unix script. I've been working on this for the last 2 days but can't get it to work. Here is the design. I have a process flow with 3 maps that create a file in the unix file system. I have a suffix, which is an input parameter to the process flow, that will need to be passed to the unix script to rename the file appending the suffix to the filename. I've tried different things and nothing works for me. Has anyone done something similar in OWB?
    Thanks much!

    I tried using useBean inside the Jsp for this.
    But following error comes:
    OracleJSP error: oracle.jsp.parse.JavaCodeException: Line # 13, oracle.jsp.parse.JspParseTagExpression@102e37e
    Error: Java code in jsp source files is not allowed in ojsp.next mode.
    Please explain why?
    How can set POST request params when calling to an external servlet?

  • Getting an process-flow audit id in the process flow itself

    Hi,
    I am using OWB 11gR2 and want to capture the audit_id of the process flow itself at the process-flow level.
    I want to use this to pass it tru to the mappings in the process flow.
    I know how to get audit_id when you're in the mapping (get_audit_id), but i want the audit_id of the process flow when i am "inside" the process flow.
    When i have this i can let all of my mappings in the flow receive the same id.
    When i setup a parameter at the process flow and specify get_audit_id there it errors on me.
    Does anybody what to specify here ?

    ok,
    i figured it out myself and answered myself in another thread.
    Basically it goes like this:
    In the master flow you have sub-processflow objects which you want to pass along the audit_id of the master flow.
    So that you can pass along the same audit-id to every mapping in all of the flows.
    But it would be nice to be able to run sub flows independently from the master flows (for testing etc.)but still feed the same id(whatever that is) to the mappings in that process flow.
    And on the lowest level this applies to mappings as well: be able to run a mapping and get a id to store in a field.
    The same applies to feeding a process date to all the mappings in your flows(used for dwh purposes)
    How does this work on the mappings ?
    Create a mapping input parameter, put 2 params in it.
    One date, one number. The date part is easy: just put SYSDATE in it.
    The number part would ideally hold get_audit_id as default value. Unfortunately this generates an error.
    So put default value of 1 here. Create a constant on the mapping with value get_audit_id in it.
    Create expression that tests if input_param has something else than 1 as the value ; if so then there was no audit_id fed into the mapping by a process flow. Make the expression use the constant then. Use the output of the expression in your mapping.
    How does this work in process flows ?
    You'll have two different parts here:
    -feeding from flow to a sub-flow
    -feeding from flow to mapping
    Flow to subflow:
    You can not bind a flowparameter to subprocess paramter so you'll need to create 2 variables.(process date / audit id)
    Create two parameters, one date with sysdate as default, one number with 1 as default.
    Use assign operator to bind audit_id parameter to the audit id variable.
    Use another one to bind to the same variable, but specify parent_audit_id as value instead of binding it to the paramter.
    Use conditonal routing on these two assign operators to have one of these be executed.
    This will ensure that the variabel either gets parent_audit or the value of the input parameter of the flow.
    Use another assign op. to bind the date input to the date variabel.
    Bind the parameters of the sub flows to the variables.
    Flow to mapping:
    Use the same procedure as descibed above. Only difference here is that you can bind a mapping parameter to a parameter.
    This means that you'll don't need the assign stuff for the date parameter since you can bind the date parameter of the mapping to the input parameter of the flow.
    Hope this helps someone ...

  • Conversion error in process flow

    I've build a process flow with the following construction
    1. Function call (DB) which returns a date via a OUT parameter (Checked)
    2. Bound the OUT parameter to a Process-flow parameter of type date
    3. Use the proces-flow parameter to bind a input parameter in a following mapping.
    All is well in validation, generation and deployment, but upon running I stumble onto a conversion error. Somehow the process-flow parameter is represented in a format (2006-09-21 00:00:00.000000000 +02:00) which is not accepted in the mapping (tries to convert it using 'yyyy-mm-dd'). I cannot find the conversion in the coding.
    I've tried to see if either in the mapping or in the process-flow I'm able to input the format of the date, but was not successful.
    Anyone any idea

    Chris,
    Looks like a request has not got deleted properly from the table :
    Options that you could look at :
    1. Delete all the data from the ODS and load again ( if that is an option )
    2. There are some entries you need to delete from the RSODSACTREQ table- but for this the suggestion would be to raise an OSS note for SAP to look into the same - we had a similar issue and raised an OSS note for the same and then got some notes from sap.
    Also please mention your BI version and patch level.
    Arun

  • How to use substitution variables in sqlplus activity of process flow

    I have a process flow that does nothing more than create a couple of packages that I cannot successfully deploy from OWB. A workaround, not something that I want to do, but currently there is not much time to adjust the packages so they can be deployed from OWB.
    I can successfully create the packages from files that are present in a directory on the server. But the location (directory) is not the same in all cases (OTAP). So I thought to use an input parameter to the process flow (named TELLINGEN) and use that in the sqlplus activity.
    I have created the parameter START_PATH with a default value.
    I have added an sqlplus activity and placed the following into the PARAMETER_LIST variable of the activity:
    ?${Target.ConnectString}?@${TELLINGEN.START_PATH}/npl_dbug.pkg?
    When I run the process flow I see the following in the output:
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Mar 18 18:10:14 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SP2-0310: unable to open file "${TELLINGEN.START_PATH}/npl_dbug.pkg"
    SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release
    10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    It obviously connects to sqlplus but then cannot find the file. Presumably because the variable has not been substituted.
    How can I persuade the activity to substitute the variable?
    Kind regards,
    Eric.

    Have been reading around a bit and found the (a) solution:
    I placed the following in PARAMETERLIST:
    ?${Target.ConnectString}?@${Working.RootPath}/base64.sql?
    And it turns out ${Working.RootPath} is pointing to the location you can provide under the configure for the sqlplus activity in the process flow. Just as you have to provide the target destination as indicated here: Re: SQLPLUS Activity in Process Flow
    From the documentation it was not immediately clear to me where Working.RootPath was pointing to.

  • Process Flow - Pass paramters between activities

    Need to pass argument from one mapping/component to next piece. What is the way. Process Flow Editor does not seem to show OUT paramters.
    Pasting from a previous post
    Hi,
    I have a requirement to pass output parameter from a Mapping as input to another Mapping. These Mappings are tied together through a Process Flow.
    Start Proc1 -> Map1 -> Map2 -> Proc2 -> End
    Proc 1 will produce an output that will be used by Map1, and then Map1 will produce an oputput to be used by Map2, and so on till Proc2.
    Also, Mapping Output Parameter is not showing up in the Process Flow.
    What is the way to pass a parameter from one Mapping to next one one in a Process Flow?
    Any answers are most welcome.
    - Jojo
    Message was edited by:
    user467494
    Message was edited by:
    user467494
    Message was edited by:
    user467494
    Message was edited by:
    user467494

    Hi,
    What I have is a wrapper procedure that does a select from a control table. I would like to use this wapper procedure to drive the rest of the mapping by passing the parameter through the process flow.
    It makes no sense to do the same select directly as this would be bypassing the wrapper/interface routine.
    Would still prefer to have the ability to pass parameters between activities.
    Would anybody who is presently close to OWB be in a position to answer that. It is important if we want to continue to use OWB to provide us benefits than headaches.
    - Jojo

  • Passing parameters from shell script to OWB process flow

    Hi all,
    I am running OWB process flow (using the template script provided by oracle) and i want to pass two date parameters as shown below:
    sqlplus -s $SQL_USER/$SQL_PWD@$ORACLE_SID @$HOME_DIR/src/vmc_oem_exec_script.sql OWB_OWNER VMC_POST_DW_PF_LOC_SIT PROCESS VMC_NM1_PORT_MAIN "," "P_DATE_FROM=$DATE_FROM,P_DATE_TO=$DATE_TO"
    How do i catch those values in process flow and pass those to mappings in Process flow?
    Do i need to create PF variables with same names or any name will do?
    Thanks in advance

    This document is explaining how to pass data between activities in process flow.
    I am passing parameters from a shell script.
    Any ideas,how to pass parameters from shell script and then initialize the process flow variables based on those values and then pass them further to mappings.
    Thanks

  • Process Flow - External process - Return status

    Did any one know how to capture or get the return value when executing a shell script thru Process flow - User defined - External process?
    This is the scenario.
    OWB Server on UNIX. Version-10.2, Database-9i
    I am executing a simple "whoami" command thru the user-defined process.
    How do I capture the return value?
    One of my shell script returns a value. Based on this return value I have to send a page or schedule a dependency job on successful completion.
    Thanks.

    To add a parameter to the process flow, you will have to add a parameter to the start activity in the activity view (lower left corner of the process flow editor), by clicking the Add button.
    You can then pass this parameter to the other activity by using the parameter binding - click on the BINDING column of the activity parameter you want to pass it to and select the parameter added to the start activity in the previous step from the drop down list.
    When the PF is run, the user will be prompted for a parameter, then it will be passed to the next activity.
    Regards:
    Igor

  • Passing parameters from mapping to mapping with in process flows

    I am new to OWB and i would appreciate if any one can suggest me on how to solve the issue i have.
    I am trying to pass a parameter from one mapping to another mapping.
    ex: key need to be passed
    start ----->A--->B--->C----->END
    B needs to pass the key to mapping C
    In B i have mapping Out put parameter and in C i have a mapping input parameter.
    In process flow palatte i could see Key as OUT and in C properties i could bind it to Key .
    but i try to deploy this mapping i am getting error below
    PF_PKG Create Error
    RPE-02040: Internal error: KEY cannot be converted to a constant value. Please correct the value. If the problem persists then please contact Oracle Support with the stack trace and details on how to reproduce it.
    TEST_PFCreate INFORMATIONAL
    RPE-02071: Deployment has been aborted due to a previously reported critial error.
    please suggest me how to pass parameters between mappings with in a process flow.

    Hi
    You have to use process flow variables. So the output of map A, say parameter P would bind to variable V and then the input of map B, say Q would bind to variable V. In this way you can push parameters from one activity to the other. Although the UI lets you bind B.Q to A.P, it should not, I think there is a bug reported on this.
    Cheers
    David

  • Mapping audit_id in process flow with parameter

    Hello!
    I have a following request.
    I would like to get AUDIT_EXECUTION_ID for certain Mapping in process flow and pass this ID to next mapping (all this with help of parameters I guess??) to get some data from AUDIT tables. How to do this?
    OWB version 10.2.0.1
    Thank you Gorazd
    Edited by: gor on May 9, 2011 1:40 PM

    Hi,
    It is a bit complicated and technical.
    Will give you a hint.
    You need to install run_my_owb_stuff as a function, grant access, and create a public synonym.
    Then within you have to add capturing of the execution_id as an additional custom parameter. (see below).
    Once done. Add a Start parameter with same name to each Process Flow, and Bind it to any activity that you want to use the parameter with.
    -- Override Parameters
    dbms_output.put_line('Stage 3: Overriding Parameters');
    -- override_system_input_params(l_audit_execution_id, p_system_params);
    if p_task_type='PROCESS' then
    -- GRI addition
         l_custom_params := p_custom_params || ', p_execution_id=' || l_audit_execution_id;
    override_custom_input_params(l_audit_execution_id, l_custom_params);
    else
         override_custom_input_params(l_audit_execution_id, p_custom_params);
         end if;
    -- override_custom_input_params(l_audit_execution_id, p_custom_params);
    - Jojo

Maybe you are looking for

  • ABAP Code Problem in Start Routine to Fill the value from Look-up Table ???

    Hi all,      I am trying to fill the values of DOC_NUMBER & PLANT from look-up table /BIC/AZSD_O0700 (Billing Item ODS) for each BILL_NUM in Start Routine for Update Rules of Billing Header ODS and modify the data_package. What is wrong with the belo

  • How to start a Java Project

    I hv study the Java and need advice if I want to start a project , how should I ?

  • Problem with creating customer account using TCA Java API

    Hi, I am trying to create customer account using TCA java API. i am getting exception saying PL/SQL numeric error: character to number conversion. but this error raises when calling API method HzCustAccountV2Pub.createCustAccount. can any body help m

  • Remove a domain controller when dcpromo bombs

    i'm trying to demote one server in a two server setup i start dcpromo , it gets part way through and then bombs with an "Access is denied" error which is b~@:!hit. Ive tied this 2 or 3 times with known good passwords(see dcpromoui.log below) So how c

  • Assignment: Tuple table

    Hi SDNers, I have a main table and a Tuple table is linked to it. The requirement is to update a field in the Main table with the same value as the record's Tuple member field via assignment. Or any other way. Thanks, Priti