Process Flow branches to Error, displays success in RAB

Hello,
I am calling a custom function from within a process flow in OWB. This function is performing some basic, customized validations after the mappings execute within the process flow. Depending on the result of the validation function, I want the process flow to branch to either Success, Warning, or Failure. The process flow is branching correctly based on the return code from the function. I can verify this from WorkFlow Manager. However, when I look at the execution of the process flow in the Runtime Audit Browser (RAB) it shows that the process flow completed successfully, regardless of what state it branched to. I would like for the process flow to be marked as either a warning or error in RAB, so that I can quickly identify what process flows failed the validation check perfomed by my function. How can I make RAB display these indicators? I'm running OWB repository version 9.2.02.0.
Thanks,
Justin

Mark,
Thanks for the reply.
In my process flow I have included all three ending activities. I have also checked that the correct condition is placed on the transition to the activity (i.e. on Error condition, branch to End Error) The process flow is following the correct branch depending on the code returned from my function. (Workflow Manager confirmed this for me) Regardless of the End condition, RAB indicates that the process flow completed successfully. When it ended in an error, I would have expected RAB to display the usual red 'X' by the process flow but it is not.
Thanks,
Justin

Similar Messages

  • Owb process flow error handling

    Hi,
    I am using OWB 10gR2.
    I have 2 process flows that each call a series of mappings. Then I have one "master" process flow that calls the two aforementioned proecess flows. When a mapping errors, I want my whole master process flow to abort. I put error handling in, but it doesn't seem to work. For example, if I get an error in the first process flow, I get my email notification that something is wrong. The process ends. However, the master process flow continues to go. I want it to stop. It continues to go because there wasn't an error in the first process flow. The error was handled, and the process flow ended successfully. Does anyone have any tips or tricks on how to handle this type of situation? I'm not doing anything revolutionary. I'm just new to these process flows.
    Thanks,
    Tim

    hmm ok this sounds a bit weird to me.
    I've created similar processflows with customers and never had similar problems like you describe.
    Just to verify your design, here is how I would solve your master1 processflow.
    _______________________END_WARNING
    w w
    start----PF1----------s---------------PF2------s---- END_SUCCESS
    e e
    \___________________\____END_WARNING
    where the conditions for the transitions is indicated with w for warning, s for success and e for error.
    Some poorly made ascii art there but hopefully you get the idea...:p
    This also sounds like what you've done already and with extra email functionality.
    Are you sure that pf2 starts after pf1? Or can it actually run in parallel with pf1 but just finishes after pf1 so it seems like it its done afterwards? The reason I ask is that I experienced that in one of my processflows with around 30+ mappings, one of the mappings that was supposed to be executed almost at the end, executed before everything else and messed everything up. It was quite the annoying little bug and took a long time for me to discover. If you have noticed on the transitions, there is a little number next to the line on the canvas, indicating in which order the operators are to be executed. In my case, two transitions had the same number and that caused one of the mappings to just start as soon as the processflow was told to start. If this is the case there is a way to set these, but I don't remember right now. Delete and recreate the transitions also do the trick I think.
    Hope you figure it out!
    Ragnar
    edit: seems like my ascii art got a bit messed up... :(
    Message was edited by:
    rhaug

  • ERROR deploying PROCESS FLOW

    I encountered the following error while deploying
    RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow
    Database Link STG1@WB_LK_LOAD_STG. 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 'WB_RTI_WORKFLOW_UTIL.INITIALIZE@STG1@WB_LK_LOAD_STG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I set the "EXECUTE ANY PROCEDURE privilege to runtime repository schema as well as
    runtime repository user. I still get the same error.
    Please find below the steps I followed
    1) Process Flows -> Locations
    Created Process flow location with ORacle Work Flow and 2.6.2
    2) Process Flows
    Created Process Flow module
    Created Process Flow Package
    Created Process
    validated sucessfully
    generated XML code successfully
    3) Deployment manager
    Register the Process flow location in owf_mgr/Owf_mgr successfully
    pre-deployment is successful
    when deploying I encountered the above error.
    I want to execute the process flow from deployment manager itself.
    Please help me in solving this problem. URGENT !!
    Thanks in advance
    Shree

    Hi Jean-Pierre,
    Thanks for your help,
    Grant WHAT to OWF_MGR user?
    I couldnt find the package named 'WB_RTI_WORKFLOW_UTIL'
    in OWF_MGR but I cound find 'WB_RT_WORKFLOW_UTIL' package in it.
    Is this some problem in my OWF_MGR schema?
    Any help will be greatly appreciated,
    Thanks,
    Shree

  • Error when using wb_rt_api_exec.run_task api to call process flow

    Dear All,
    I am using OWBV 10.2.0.3 and currently have some issue with it.
    I have a process flow and I'm executing it using wb_rt_api_exec api.
    When I ran it, that process flow failes with below error messages.
    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.
    ORA-01017: invalid username/password; logon denied
    But using same user when I log on to the OWB client I can run that process flow without any error. So it seems to be there is no any sesurity issues too.
    Furthermore I have done below things.
    OWF_MGR (Processflow user), OWB_MGR (repositiry user) and RUNTIMEUSR (user used to run the processflow) all registered under control center.
    There are couple of forum post here. I followed all those and didnt work anything for me.
    Early response highly regards,
    mc
    Edited by: mc**** on Jan 19, 2011 4:13 PM

    Hi,
    look these forum threads {message:id=3140661} and {message:id=2695999}
    I think you need connect with Design Center under user which you used for executing processflow and register workflow location
    Regards,
    Oleg

  • Error deploying process flows

    hello, i'm trying to deploy process flows, getting this error. privileges on my workflow manager are set correctly but it looks like something is not ok with connection to database. workflow server looks ok and i can manage it through oracle workflow manager. everything else in owb works ok, i can deploy other objects with no problems.
    this is only problem on my client computer, deployment works fine from server ?
    any idea ?
    already checked tnsnames, replaced host with ip, tnsping ok...
    server: win2000
    client win XP pro
    oracle 9i: 9.2.0.4.0
    owb: 9.2.0.2.8
    owf: 2.6.2
    ERROR:
    RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link DW.US.ORACLE.COM@WB_LK_LOAD_SKL. Please check that "EXECUTE ANY PROCEDURE" privilege is set and that the OWB Runtime is available.
    - ORA-04052: error occurred when looking up remote object
    [email protected]@WB_LK_LOAD_SKL
    ORA-12545: Connect failed because target host or object does not exist

    Hi,
    Do you happen to use localhost to refer to the Oracle Workflow engine? You should use a DNS entry to refer to the Workflow engine. The way this works: when Warehouse Builder deploys to Workflow, it creates a database link back, using a DNS lookup to the machine. If you specify a non-DNS entry, then whatever comes back will be different from what you specified as a host name. This causes the problem. Please re-register the Oracle Workflow engine using a DNS name entry.
    Thanks,
    Mark.

  • Process flow execute "complete" in Runtime Audit Browser but it hangs

    I create a process flow that contain 4 sub-process flow, each sub-process flow contains several mapping. Each mapping in the process flow will be executed one by one if previous mapping execute successfully. If any error or warning, it will be ended with "End_Error" or "End_Warning". And I deploy the process flow to the workflow server successfully.
    Sometimes the process will hang in some certain mapping when execute the process flow. After long time waiting, the status of process flow execution in Audit Browser will be "Complete", but in fact, the sub-porcess ended with that mapping and the next mappings will not be execute. This can be monitored in the Audit browser, as if the whole process "break" at that mapping.
    In workflow monitor, I found the workflow has not complete yet. The status of that mapping node is "Notified", not "complete". So I have to abort the workflow in the monitor.
    Sometimes when I try again it will be ok. If I deploy the process to another instance that in dw instance, it will also be ok. The dw instance use owb recommend parameters when we install db instance. All the mapping use the default parameters except "Default operation mode", here we use "row based".
    Can somebody give me some hint?
    Thanks.
    OWB 10g rel 1, db: 10g rel2, workflow: 2.6.4

    Hi Naidu
    Yes you are absolutely right. When you press the cancel button in the GUI, the runtime repository does not get the signal that he is been asked to stop and abort. The GUI cancels himself but the background oracle process is still on !!!. The only way to do is to kill the oracle session. Another way I tried to tackle is
    go to the directiry OWB/10.1/owb/rtp/sql and run the file @list_request.sql in sqlplus. Note that you have to login as runtime repositiry owner. After you get the audit id, run the file abort_exec_request.sql and supply the audit id that you obtained by running list_requests.sql. Sometimes it does not work also . Hence the best method is to kill the process

  • Process flows are not running in OWB

    I have a process flow which has a main process and this main process calls 3 subprocesses and 1 externel process. This workflow was running fine and it suddenly stopped working and when I try to run it from WF monitor it is giving the following error.
    Activity CALWINDW_INC_LOAD_PF_WE
    Result Exception
    Error Name -20001
    Error Message ORA-20001: Task CALWINDW_INC_DELETE_PF does not exist. Please check that the ProcessFlow has been deployed successfully. ORA-01403: no data found
    Error Stack Wf_Engine_Util.Function_Call(WB_RT_WORKFLOW_UTIL.EXECUTE_TASK, CLWNPKG, 200509200915, 37461, RUN).
    I tried running it from OWB deployment manager but it didn't work.
    I have checked all the process flows and the mappings all are deployed and all the mappings are running sepreatly. I tried dropping and deploying the process flow again and it deployed successfully without any error. We have tried rebooting the server, creating new PF location and new process flows, but nothing worked out. Becuase of this issue we can't run the whole process. Any help will be appriciated please.

    May be your chain was in the wait at the scheduled time, as there were no adequate processes available at the app server to take up your job.
    Check with your Basis ( and also your users ); about the optimal time to schedule the job and reschedule your jobs.
    Ravi Thothadri

  • Function in a Process Flow

    Hi all,
    I have a function which returns a value either 1 or 0. I want to get the output of the function and check if the function returns 1 then the process flow should be successful else it should error out.
    I have created a simple process flow, which has start, function, success and error. From the function to success transtion i have given an complex condition where value =1 and the other transtion should be kept empty. But it didnt work.
    Any ideas how exactly we can use a function in a process flow.
    Thanks in advance

    There is another way of achiving it....
    Go to process flow -> Configure and click on the function operator.
    Under Execution Settings, select the option Use Return as Status
    This setting governs the behavior for activities that return NUMBER in their output. These activities include the FTP, User Defined, and Transform activities. When you select Use Return as Status, the Process Flow Editor assigns the outgoing transition conditions based on the following numerical return values for the activity:
    1 = Success Transition
    2 = Warning Transition
    3 = Error Transition
    You might have your function return 1 for success and 3 for error and the transition would take them as status code.
    Thanks,
    Suchit

  • OWB 9.2.0.4 Process Flows Validation and Export

    Hi
    I'm trying to export my OWB 9.2.0.4 repository into one mdl file in order to upgrade to OWB 10.2.0.4.
    I have problems with exporting many of my Process Flow Packages but not all.
    Here is one example:
    Process Flows
    Process Module (Davia)
    Process Flow Package (DATAFLYT)
    Process (DATAFLYT_AF_EDW_STAGE_OG_EDW)
    I can validate at the Process level (DATAFLYT_AF_EDW_STAGE_OG_EDW) with Success.
    I can validate at the Process Flow Package level (DATAFLYT) with Success.
    When i Validate at the Process Module level (Davia), I get the following Validation error in the first Window:
    "VLD-10008: Process flow DATAFLYT_AF_EDW_STAGE_OG_EDW does not have a location associated with it."
    When looking in the "View Details" I get the following messaage:
    "VLD-10008: DATAFLYT_AF_EDW_STAGE_OG_EDW's owning process flow installed module DAVIA does not have a location associated with it."
    When looking in the "Message Editor" I get this message:
    "NAME","STATUS","MESSAGE TYPE","MESSAGE","DETAILS"
    "DATAFLYT (Process Flow Package)","Valid","SucMsgKey","VLD-0001: Validation completed successfully.","Validation completed successfully."
    "DATAFLYT_AF_EDW_STAGE_OG_EDW (Process)","Valid","SucMsgKey","VLD-0001: Validation completed successfully.","Validation completed successfully."
    In Deployment manager the column Location has the value "OWF_PRODUKTION" for all Objects.
    I can Deploy the Process Flow Package (DATAFLYT) with Success.
    I can make an Export to MDL when I stand at Process Flow Package (DATAFLYT) level.
    End Result: Everything seems to work at the Process Flow Package level but not when Exporting at the Process Module level (Davia).
    Peter Tougaard

    user2918258 wrote:
    Hi
    I'm trying to export my OWB 9.2.0.4 repository into one mdl file in order to upgrade to OWB 10.2.0.4.
    I have problems with exporting many of my Process Flow Packages but not all.
    Here is one example:
    Process Flows
    Process Module (Davia)
    Process Flow Package (DATAFLYT)
    Process (DATAFLYT_AF_EDW_STAGE_OG_EDW)
    I can validate at the Process level (DATAFLYT_AF_EDW_STAGE_OG_EDW) with Success.
    I can validate at the Process Flow Package level (DATAFLYT) with Success.
    When i Validate at the Process Module level (Davia), I get the following Validation error in the first Window:
    "VLD-10008: Process flow DATAFLYT_AF_EDW_STAGE_OG_EDW does not have a location associated with it."
    When looking in the "View Details" I get the following messaage:
    "VLD-10008: DATAFLYT_AF_EDW_STAGE_OG_EDW's owning process flow installed module DAVIA does not have a location associated with it."
    When looking in the "Message Editor" I get this message:
    "NAME","STATUS","MESSAGE TYPE","MESSAGE","DETAILS"
    "DATAFLYT (Process Flow Package)","Valid","SucMsgKey","VLD-0001: Validation completed successfully.","Validation completed successfully."
    "DATAFLYT_AF_EDW_STAGE_OG_EDW (Process)","Valid","SucMsgKey","VLD-0001: Validation completed successfully.","Validation completed successfully."
    In Deployment manager the column Location has the value "OWF_PRODUKTION" for all Objects.
    I can Deploy the Process Flow Package (DATAFLYT) with Success.
    I can make an Export to MDL when I stand at Process Flow Package (DATAFLYT) level.
    End Result: Everything seems to work at the Process Flow Package level but not when Exporting at the Process Module level (Davia).
    Peter Tougaard
    i am not 100 sure but what works in OWB 9.2.0.4 might not work in OWB 10.2.0.4 in the same manner. There have been lot of changes between these versions so i am not very sure about compatibilty from 9.2 to 10.2, If you have exported your mapping and other stuff then without wasting too much time it is probably easier to re-create the process flows manually. This failure might be because some of the components/objects used in process flow of ver 9.2 might not be compatible with 10.2 or hvae been enhanced to work differently.

  • Process flow Activity File Exists

    Hi
    Software: warehouse builder 11.1.0.7
    OS: Redhat 5.5
    DB: 11gR1
    I am trying to use the activity "File Exist" on a process flow to know if a file does exist, with two transitions
    one with condition "EXISTS" that ends in success and one with the condition "MISSING", when the file
    exists the process flow acts normal with end success, but when the file doesn't exist the process flow
    just hangs and doesn't finish.
    Am i missing some configuration?

    You have to provide multiple transitions (arrows) out of the file_exists activity and the define the transition conditions (in the transition view section of the window) for success and error. In that case, if the file exists, the flow will continue along the sucess transition path, if it doesn't it will continue down the ERROR path. The error path can then end up into an END_ERROR activity and that will make the process flow stop if the file is not found, just your expected behaviour.
    If you have only a single unconditional transition (arrow) out of the file_exists, the process flow will continue regardless of the FILE_EXISTS activity.
    Regards:
    Igor

  • EMail and SQLPLUS activity in process flow

    Hi Guys,
    I am struggling to get the email activity working. I entered all the details but no email is sent?
    Secondly, I had an easy sql plus script that I pasted into the script property box
    But the sqlplus just does not execute?
    truncate table xxx;
    quit
    Any ideas?

    Make sure there are no spaces after you have replaced DISABLED with NATIVE_JAVA.
    Any space after the NATIVE_JAVA will not work.
    Can you give details like what are you using Script or Parameter list etc ?
    Did you configure the deployed location for the SQLPLus parameter ??
    Regarding Your EMAIL -
    Is your process flow showing any error regarding email ??
    Create a simple process flow with email activity only.
    Set FROM_EMAIL , TO_EMAIL , SUBJECT ,MESSAGE_BODY, SMTP_SERVER , PORT
    SMTP_SERVER and PORT values are very important.
    Check connection to SMTP_SERVER by running the following command on dos prompt
    telnet smtp_server_name port
    If this works this means your smtp server is working. Now just deploy and run your processs flow.
    If it still doen't send you email, check whats in the log.
    The log should give you any errors regarding email like ORA-06512: at "SYS.UTL_TCP", line 17 ,etc (if any).
    Thanks,
    Sam.

  • Mapping failure when executed in process flow

    I am currently receiving the following error on one of my mappings when I executed a process flow:
    TEST_PF: NEW_MAP
    Error
    ORA-06550: line 1, column 1003:
    PLS-00306: wrong number or types of arguments in call to 'MAIN'
    ORA-06550: line 1, column 997:
    PL/SQL: Statement ignored
    When I execute the process flow using the control center manager, it runs normally and I only receive this error when it runs within the process flow.
    Any advice on what is causing this problem and how I can fix it? Is the process flow corrupted? If so, do I have to rebuild it?
    Thank you

    Hi,
    Have you added any parameters or anything like that to your mapping from the first time you put it into the processflow?
    In the processflow, select the mapping that fails and synchronize it, redeploy and try again. Or you can just delete the mapping from the process flow and add it again.
    At least based on the errormessage you describe it seems like the mapping has been changed and have parameters added or removed from the first time you added it to your processflow.
    Ragnar

  • How to stop process flow?

    Hi there.
    I have oracle 9i + OWB 10.1..2.
    During last changes on the server (AIX) there was a problem with starting JServer.
    I didn't seem to be problem until I wanted to user Workflow Monitor. Obviously it didn't work.
    My question is: how to stop a process flow that has errors?
    I found scripts that should do it (described in Workflow
    16. Administration Scripts in Oracle Workflow Guide.pdf) but I must have done something wrong cause it didn't work. Whats more I got lots of errors (failed flows deployment and execution)
    Do you know how do use these scripts?
    Pawel

    Hi Pawel,
    did you read this thread
    RPE-02062:        How to abort a workflow process?
    Hope this helps,
    Oleg
    Message was edited by:
    tsiboleg

  • Error while deploying process flow

    hi All,
    i am getting below error while deploying 1 process flow.
    Description : Runtime User : OWBPC Started : 2011-06-02 19:18:06.0
    Name Action Status Log
    None Error ORA-00942: table or view does not exist
    None Error RPE-02053: The Oracle Workflow version cannot be retrieved. This may have been caused by an incomplete or incorrect installation of Oracle Workflow or the schema may not contain an Oracle Workflow repository. Please check the location details, reinstall Oracle Workflow, if necessary and try again
    i added only 1 mapping in process flow and mapping containing both tables in taret schema.
    kindly tell me how to fix it.?
    rgds,
    Pc

    hi..thnx for replying..
    i have already installed owf manager from below location in my pc..
    D:\app\pc\product\11.1.0\db_1\owb\wf\install
    and installation was successful..then too I am getting same error while deploying process flow.. im using oracle 11g.. direct me now plz..
    Edited by: PC on Jun 3, 2011 3:48 PM

  • URGENT: Oracle Workflow Error: API-10020 on Creation of OWB Process Flows

    I am trying to use Oracle Workflow to create Process Flows, in order to link together various mappings and components in Oracle Warehouse Builder. However, in the process flow editor window when I attempt to drag an object such as a mapping onto the editor panel, I get an error message stating the below:
    API-10020: Unable to determine if the map is a PLSQL or SQLLDR map, please correct the map or choose another map.
    All my maps are in PLSQL, and the language setting is set to this. I have tried modifying the langauge settings to see if it makes a difference but with no luck. My colleague believes this is a known bug in Oracle Workflow and there is a patch available to correct it.
    Can anyone help with this query please? Thank you for your time.

    In some versions of OWB (10.1, 10.2) The mapping property will display PL/SQL, but will actually be set to NULL in the repository (which will cause PL/SQL to be displayed as default).
    The fix is easy enough: in the developer navigator, right-click on the mapping and go to configure and set the generation language first to something other then PL/SQL (you should get an error) and then place it back to PL/SQL. This should force the GUI to reset the parameter.
    Alternatively, use OMB*Plus:
    OMBALTER MAPPING 'MAPPINGNAME' SET PROPERTIES \
    (GENERATION_LANGUAGE) VALUES ('PLSQL');
    Good Luck,
    Robbert

Maybe you are looking for