Process flow variable question

I have created a variable in process flow and want that variable to have a variable of
TO_CHAR(SYSDATE,'YYYYMMDD')
I put the above line in the value but it does not work. If I put the hard code value in the variable as 20090724 it works. I am using this variable in a while loop condition.
Any ideas.
Thanks

For the variable, do you have the Literal property set to false when you define the initial value?
Also is the OWF schema you are deploying the process flow to a target OWB user? It has to be in order for the variable expression to be evaluated correctly.
Cheers
David

Similar Messages

  • Using Process Flow variable on sqlplus activity

    Hellow all,
    I´m trying to use a OWB 10gR2 variable (called LAST_RUN) as an input to a Sqlplus activity.
    I tried using PARAMETERS_LIST and binding the variable; created a new parameters; but i was not succesful.
    The script of the SQLPLUS activity is something like:
    SELECT COUNT(1) from T_ACTIVITIES WHERE LAST_UPDATE >= :LAST_RUN;
    EXIT;
    Where LAST_RUN is my process flow variable.
    How do i call a process flow variable inside the sqlplus script?
    thanks,

    Hi,
    I too had faced this problem earlier, it remember we passed a inut parameter to the script like @scriptname input_param1,input_param_2,input_param3 etc.
    however we later had faced few other problems while implementing sql plus acctivity. so we chose to write a stored procedure having all the logic of sql activity and called it from process flow.

  • Process Flow - basic question

    Hi
    I have a very basic question about Process Flows, that will help me decide to go for process flows or custom scheduling.
    I create a process flow with complex dependencies, say MapA, mapB mapC start parallely and map1 starts as soon as mapA and mapB finish, and map2 starts when all mapA, mapB and mapC finish. When both map1 and map2 finish the pflow ends. The question is
    1> Is it correct to use AND activity to define combined dependencies?
    2> What happens when any two mappings are running parallely and one returns in failure? Will the whole process flow finish immediately? or, the other ones will keep running? Am asking this because I would be sending the failure transition to End Error, and as per my understanding, as soon as one pflow finishes with error, the transition will take the flow to End Error and other running will be aborted in between itself.
    Please correct me if am wrong
    Thanks in advance
    Goga

    Hi,
    I think the others will remain running and will complete (e.g. they will not be aborted). However the logical AND will stop the process flow (it is stopped in a result of error). Since one transition never got to the AND the others will not continue.
    You may want to use some other activities to verify what is going on. You may have all mappings always go to AND, then based on what the error is (you can get that from the runtime) decide whether to abort, or to just ignore the error and run the others.
    JP

  • Process Flow: variable checking/email parameters

    I'm new to using process flows and it seems to me that I want to something very simple.
    I've created a boolean variable VAR1 (default is FALSE) which I want to assign depending on warning/failure of 2 mappings (not sure if using a variable is the correct way to go).
    So in my process flow, I call MAPPING1. On success, it calls MAPPING2.
    To bring more into it, if MAPPING1 produces a warning or error, then through an 'assign' activity (I think it should be an assign activity), VAR1 is set to TRUE.
    It returns back to process MAPPING2 (this same error handling occurs for MAPPING2).
    At the end, a CHECK on VAR1 needs to be performed.
    If VAR1=FALSE then end (success!).
    If VAR1=TRUE then call a function to grab the audit records for the error, and send an email, then end.
    My problems are
    (1)what activity in the pallete should I use for CHECK (which checks whether VAR1 is true/false)?
    (2)how do I read the VAR1 variable... I've been experimenting a whole load but nothing!
    (3)if VAR1 is TRUE and calls the function, how does the email activity receive the output from the function? (I've managed to get email working ..hurrrahh!)
    Thanks for any help... much appreciated
    Ansel

    Hi,
    Have you tried using conditions on your transitions?
    You can have in total three different endings to your process flow, end_success(in the process flow by default), end_warning and end_error. If you also include to 'or' operators in your processflow you can use these to collect the warning transitions,and between the or operator and the end operator you can put your email activities without having to use a if statement.
    Ragnar

  • Process Flow Fork Question/Help

    I'm hoping someone can help me as I've searched and searched but can't find anything that addresses this.
    According to the 2nd post in the below thread, at least from how I am interpretting it. Whenenever the first path from a fork reaches an end activity no new activities will be started on other forks.
    Re: Work flow process problem
    Is that correct as it explains the problem I am having with the below map that sometimes one of the MAP#POST processes will not be run and if so can someone give me some insight as to how they would handle the below situation or recommend a better course of action. FYI the process maps are all very similiar operations on similiar tables but the amount of records they deal with can varry considerably so there is a distinct time difference for completion.
    Start --->
    Fork
    ------>MAP1---> MAP1POST--->----\
    ------>MAP2---> MAP2POST--->----END_SUCESSS
    ------>MAP3---> MAP3POST--->---//
    ------>MAP4---> MAP4POST--->---/
    Due to my inability to draw decent ascii process flows I have removed the end_error condition but I do want it included as I have previously so please try keep that in mind.
    Thanks,
    Rich

    Oleg,
    Thanks for the help I really appreciate it, I am familiar with the and activity but part of my problem was figuring out how to use "and" while allowing each path to error out on the first step, while allowing each other path to run its full course. So in the case that map1 fails I don't want to run map1post, but I want to make sure that map2post runs if map2 succeeds.
    One idea I had was using an unconditional transition (assuming a success transition goes to the post process) from map1, map2, map3, map4 to an Or Activity along with the And you suggested, but I am still concerned that if map1 errors out and gets to the "or" and then then to the end_error/end_warning that map2post will not be run if it has not started by that time? I hope I'm making sense and thanks again.

  • How to combine text with variable in process flow

    Hi,
    I have created a function that returns the environment that a process flow is running in, Production, Test or Development. I have been able to bind the output of the function into a variable in a process flow and bind the variable to the subject of an email activity. I'd like to go one step more and combine the value of the variable with some text to explain which step in the process flow generated the email. Is there a way to concatenate text to a variable or to add an OWB system variable? I've seen an example where the subject of the email is
    "Failed mapping <mapping name>"
    but I want my subject to be "PROD Failed mapping <mapping name>" where the "PROD" is from a process flow variable or function return value.
    Is this possible?
    Thanks
    Don Keyes

    Hi Don,
    you can perform this task with ASSIGN activity.
    For example, you have two variable V_ENV_TYPE (with type of environment) and V_TEXT ("Failed mapping <mapping name>"). Define additinal variable V_NEW_TEXT, bind Variable parameter of Assign activity to V_NEW_TEXT variable and define value in Assign activity as
    V_ENV_TYPE || ' ' || V_TEXTRegards,
    Oleg

  • 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

  • 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

  • Binding variables in Process Flows

    I'm attempting to bind a variable defined in the Start activity to a Mapping activity's Input parameter. When I expand the Mapping activity and select the Input parameter in question, it forces me to explicitly enter a value. It does not show the Start activity parameter in the Binding listbox.
    This appears to work fine for other activities within a Process Flow (Email, FTP, Transform, Subprocess) but not with a Mapping. Is this a bug or by design?
    I'm working on OWB 9.2
    Dave

    Hi David,
    Sorry for the delay, I just tested this and mine nicely complies to what I want. Added a number input parameter to a mapping. Then added a number input in the Start activity. This works.
    Then I tried to do a string input on the start and try to bind that, and this does give the your result.
    Process flow only allows you to bind variables with the same data type (or equivalent). So please take a look at the datatypes for the mapping input and the Start activity parameter.
    If they are the same (e.g. integer and number, string and varchar2) this works.
    Jean-Pierre

  • Creating variables in Process Flows and using thse variables in the filter

    Hi,
    I am new to OWB and in learing stage. Need to information.
    *1. as to how pass/create/use variables to OWB mapping ?*
    *2. Creating variables in Process Flows and using thse variables in the filter operator of the OWB mapping?*
    *3. Other mechanisms of how to create/use variables within OWB mapping itself ?*
    can you please provide the above details and guide me / help me in this regard.
    Thanks,
    skms.

    1. Add parameters to your mapping using the MAPPING INPUT PARAMETER from the pallette.
    2. Add parameters to the START operator in the process flow. Bind the process flow parameter to the Mapping parameter.
    3. May be appropriate to use CONSTANTS instead of parameters.
    Regards
    Si

  • 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.

  • Oracle Warehouse Builder Question about Process Flow

    Oracle 11.1.0.7:
    We currently have various mappings and what we want is in process flow to fork and merge back and only if all those mappings are successfully completed then go further in the process flow. I see that it allows fork for parallel processing but there is no merge. So how do I merge them all back and go to the next step in process flow. Next step of process flow is dependent on successful completion of all the previous mappings. And we want all the previous mappings to be executed in parallel for performance reasons.

    Could someone help answer my question?

  • Process Flow Question

    Oracle 11.1.0.7:
    We currently have various mappings and what we want is in process flow to fork and merge back and only if all those mappings are successfully completed then go further in the process flow. I see that it allows fork for parallel processing but there is no merge. So how do I merge them all back and go to the next step in process flow. Next step of process flow is dependent on successful completion of all the previous mappings. And we want all the previous mappings to be executed in parallel for performance reasons.
    I earlier posted this question on Database General.

    Hi ,
    Just use the "AND" operator in the process flow. Take the success transition from all your mappings to a SINGLE "AND" operator.
    Make the successful transition of all the mappings to go into AND operator. AND operator will make sure that all the mappings are executed and then it will be move ahead processing other activities in your process flow.
    After AND operator you can put a FORK or other mappings or any other objects in your process flow.
    Thanks,
    Sam.

  • Question on process flow

    hi guys,
    i need some input here. hope u guys can give me some. i've created some process flows. when i'm trying to deploy my process flows, i got an error saying that i don have a workflow repository in my target database. so i can't do my deployment. fine coz i understand that.
    i've actually installed the oracle workflow from the 9i database cd coz i found there's an option i can choose from. and i've checked it thru universal installer, it has been installed. so my questions are
    1. Can i use the oracle workflow from the 9i Database cd?
    2. If yes, where can i setup the workflow rep? coz i didn't find anything that i can use to do the setup. i'm actually running my db on a NT machine.
    3. If no, does that mean i have to install the oracle workflow from it's own cd?
    hope to get some responses. thanks in advance
    regards,
    ykl

    hi guys,
    any idea what error is this?
    RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link ADMINX.US.ORACLE.COM@WB_LK_TEST_PF. Please check that "EXECUTE ANY PROCEDURE" privilege is set and that the OWB Runtime is available.
    - ORA-06550: line 1, column 7:
    PLS-00201: identifier '[email protected]@WB_LK_TEST_PF' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    i've register my location for the workflow. but when i try to deploy my process flows, it gives me this error. do i need to set any privileges?? please advice.
    regards,
    ykl

  • OWB Process Flow - Transition Warinig OR Error - Question

    Hi all,
    I have a question. In a Simple Process Flow I have:
    Start -> Mapping -> Warning -> Email
    -> Erro -> Email
    ->Sucess - End
    Is necessary use 3 Transition ?
    Can I do only 2 Transition like
    Start -> Mapping -> Warning OR Error -> Email
    ->Sucess - End
    How can I do "Warning OR Error" on a Transition?
    If i put any condition on the Transition:
    Start -> Mapping -> Email
    ->Sucess - End
    It means
    Start -> Mapping -> Warning OR Error -> Email
    ->Sucess - End
    Thanks

    If i put any condition on the Transition:
    Start -> Mapping -> Email
    ->Sucess - End
    It means
    Start -> Mapping -> Warning OR Error -> Email
    ->Sucess - End
    it exactly what you need
    Edited by: hungsao on Oct 17, 2012 9:10 PM

Maybe you are looking for

  • Concurrently logging into the same file from 2 VMs

    If two processes running in the same machine. There is only one file name specified in logging.properties, e.g., test.log. VM 1 is logging into file test.log while VM 2 does the same thing to the same file. Based on the javadoc of FileHandler, the se

  • Node shutdown in sun cluster

    I have a two node cluster configured for High availability.. My resourcegroup is online on node1.. so the resources, logical hostname resource and my application resource are online on node1. when the node1 is shutdown, the resource group is failover

  • Sftp crashes Lightroom 3.2rc

    If I try to do a web gallery upload using sftp Lightroom crashes every time.  I'm running 3.2rc on Windows 7 x64 8gb ram, Core i5.

  • Can I keep my ring tones when upgrading to iPhone 6?

    Can I keep the ring tones I have purchased when upgrading to iPhone 6? If so how do I do that?

  • Setting dimensions of swf file

    Hi all, I have created a new Flex project that contains an mxml file. I have specified the dimensions of the file in the <mx: Application> tab. However, once I export a release build and run the swf file on its own using Flash Player 10, it opens in