10GR2 - Cannot get wb_rt_api_exec to execute a Process Flow

Hi,
In version 10.1.3, I was able to use the wb_rt_api_exec procedure to execute process flows within a stored procedure (and called by an Enterprise Manager job).
I have tried something similar in 10GR2, but when I run stored procedure, it says it has executed successfully, but the process flow has not run.
My Stored procedure code is like:-
CREATE OR REPLACE PROCEDURE PROC_TEST IS
ret NUMBER;
BEGIN
ret:= rep_owner.wb_rt_api_exec.run_task('PROCESS_LOCATION','PROCESS','WF_TEST','','',1,1);
END PROC_TEST;
I have noticed there is an extra parameter p_background at the end of the run_task function and was not sure if I am setting it correctly. The procedure compiles ok, but does not run the process flow.
Can anyone help please?
Thanks
GB

To run workflow from SQLPLUS I used the following script:
set serveroutput on
variable exec_return_code number;
begin
-- Initialize Return Code
:exec_return_code := rep_ISM_DEV2.wb_rt_api_exec.RESULT_FAILURE;
-- Run Task
:exec_return_code := rep_ism_dev2.wb_rt_api_exec.run_task('OWF_LOCATION','PROCESS','ALL_MARTS_PF', ' ' );
end;
Prior to running this script I have
1.     grant execute on rep_owner.WB_RT_API_EXEC to rep_user;
2.     OWF_MGR is registered as Repository user.
It is possible that you will get an error: PE-02018: Oracle Workflow schema OWF_MGR on host XXX.XX.XX.XX cannot be accessed using service ORCL through port 1521. Please check the location details and try again.
To overcome this problem log in to OWB Control Center as the target User (Runtime user) and executed the PF package from there manually. You will get a message that OWF_MGR location was registered by other user and you will get asked to supply the OWF_MGR password. The manual execution should finish normally. After that I am able to run the PF from a command line without problems. It looks like running the PF from the control center stores the OWF_MGR login information somewhere (anybody knows where?) and you do not need to supply it any longer.
Hope it helps.
Vladimir

Similar Messages

  • 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

  • Error RPE-01008 and RPE-01003 if i execute a process flow

    Hi,
    if i execute a process flow, once the process flow worked fine. If i execute at another time the process flow didn't work with the following error messages:
    RPE-01008: Wiederherstellung dieser Anforderung ist in Bearbeitung.
    RPE-01003: Die Anforderung konnte wegen einer Infrastructure-Bedingung nicht abgeschlossen werden.
    Any ideas?
    thanks a lot

    Have you tried any of previously reported errors on this forum to see if any of them relates to your case?

  • How to execute a process flow?

    I create a process flow that contains mappings, it generate an xml code
    I want to know how to execute a process flow an how to know it sucess or fails ?
    have you any idea?
    thank you

    Hi
    You can also use 3rd party tools or batch scripts there is a SQL script for executing any OWB executable (sqlplus_exec_template.sql in owb/rtp/sql) see the post here;
    http://blogs.oracle.com/warehousebuilder/2008/11/using_3rd_party_schedulers_with_owb_1.html
    Cheers
    David

  • Downloaded Java. But cannot get it to execute and install

    I downloaded Java.
    I see it.
    But it does not run the executable file and I cannot get it installed on my computer.

    Java is not a Mozilla product. The Java Runtime Environment and Java SDK are owned by Oracle Inc. Please contact ORACLE for support.

  • Get the user executing the process

    Hi, I have a servlet. I need to get the user who is executing the process, that is, you can view the users executing each process in the Windows Task Manager, but how can I get the user who is executing the servlet (or Java) by the aplication itself?

    I believe that one of the standard system properties includes the ID of the user that the process is running under. Read the API for java.lang.System.getProperties; I think it lists them there.
    I'm not sure if that's what you're looking for, though. In the case of a servlet, this would be the user ID of whatever started the servlet environment. In a real production system this is likely to be "nobody" or an idea with low permissions created specifically for the purpose of running the server. Not sure if that's what you're looking for or how useful that would be to you.
    In particular, if you're looking for the ID of the person running the browser that requested the page that the servlet in question is servicing...then you're pretty much out of luck.

  • Executing 11g process flows

    Hi everyone
    I am working with OWB 11g and have successfuly created several hundreds of mapping and process flows to manage them. The process flows all work fine when run from within OWB.
    What I want to do now is take this to the next level and manage the running of the process flows from outside of OWB. We have a mix of Linux on the server where presumably CRON jobs could be run. We also have Windows servers.
    Does anyone have any documentation or website links that you point me in the dirction of to make this work?
    Presumably Oracle Workflow would be one of the answers so if you could give me some pointers as to how to get this up and running, for example in a Windows environment, I would be grateful.
    Best wishes
    Michael

    Michael,
    several methods for executing processflow and mappings are described in OWB API and Scripting Reference (chapter "Using SQL*Plus to Schedule and Execute Jobs"):
    http://download.oracle.com/docs/cd/B28359_01/owb.111/b31279/api_4sqlforjobs.htm#BABBHEHI
    1) with using SQLPLUS_EXEC_TEMPLATE script
    2) with using WB_RT_API_EXEC.RUN_TASK stored function
    Regards,
    Oleg

  • Wrong map being executed in Process Flow

    I created a Process Flow that executes 3 maps and a PL/SQL procedure.
    The process flow functions to write data to a Unix file system.
    The first map when executed by itself writes the correct string as the first header within the file. But when I execute the same map, named HC_ENTHDR_TEMP_MAP, within the Process Flow the wrong header is written to the file.
    I've tried droppping the map and redeploying it. I've tried dropping the map within the Process Flow reinserting it and redeploying the Process Flow. These actions do not solve the problem. When the map is executed within the Process Flow, the wrong header is written. When the map is executed outside the process flow the correct header is written.
    Any help would be appreciated. It's as if the WorkFlow schema has the an invalid pointer to a map that I can't get rid of.

    Hi,
    Sorry for the late reply, but I was off for the Holidays. Anyway.
    I have tested your scenario step by step. and it works just the way you're saying.
    But, what's happening here is just as Steve have mentioned in his second post.
    <quote>All the codes are in the same "bucket"</quote>
    And as I mentioned in my first post the local unit precedes the library, and that's why you are seeing the message from the local unit.
    I changed the name of the local unit from MY_PRE_FROM to MY_PRE_FORM_LOCAL, and it worked just fine with me.
    I suggest you try it, it should work.
    So when we run formA we should see the following messages
    'in generic call'
    'in formA local'
    Here what you are seeing the the precedences of the local unit over the library unit whenever they share the same name.
    but logically you should see the library code MY_GENERIC_CALL being executed and showing a message of
    PROCEDURE MY_GENERIC_CALL IS
    BEGIN
         message('in generic call');
         my_pre_form;
    END;and in turn calling to MY_PRE_FORM and the latter shows the message
    PROCEDURE my_pre_form IS
    BEGIN
    message('in lib my pre-form');
    END;so you should see:
    in generic call
    in lib my pre-form
    and what's happening with you is the local unit is being preceded from forma over the library unit. As if you are calling the local unit from the library. or at least this is what seems to be happening.
    Changing the local unit's name is making the difference.
    Regards,
    Tony Garabedian

  • How to execute a process flow repeatedly?

    Hi All,
    I created a process flow, that has the following activities.
    Start --> External_To_Stg_Table_Map ---> Stg_To_Dim_Map ---> Dim_To_Fct_Map---> End.
    Here
    1) External_To_Stg_Table_Map -- is for loading data from external table to a staging table.
    2)Stg_To_Dim_Map -- is for loading data from staging table toa dimension.
    3)Dim_To_Fct_Map -- is for loading data from Dimensions
    Here External_To_STg_Table_Map extracts data from a file say Sample_File.txt.
    My requirement is I have to execute the same process flow for many files having the same structure.
    Could anyone suggest me the ways, we can implement?
    Thank you,
    Regards,
    Gowtham Sen.

    Try scheduling it, assuming it needs to be done on a regular basis. First you set up a schedule, then attach the schedule to the process flow. When you deploy the scheduled process flow the name will be altered as <process flow name>_JOB. Then you have to execute it the first time. After that the schedule will take over.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • Executing Process Flow from OWB Deployment Manager results in RPE-01008

    Hi,
    I'm using OWB 10.1.0.1.0 (10g) and just installed Oracle Workflow Server 2.6.3.
    I can build, validate and generate Process Flows just fine. But every time I try to execute a Process Flow using OWB Deployment Manager, I'm getting a "RPE-01008: Recovery of this request is in progress". Execution of deployed Process Flows using Oracle Workflow Interface works just fine.
    Anyone has an idea?
    Thanks and regards
    Andreas Kopp

    Hi Dirk-Jan,
    youÄre right, there are some ugly-looking NUllPOinterExceptions in that log file. However, I cannto interpret them:
    2005/05/02-13:30:04-CEST [97A560] AuditId=80916: Processing execute request
    2005/05/02-13:30:05-CEST [97A560] Free Memory(bytes)=49410200 Total Memory(bytes)=66715648 Used Memory(bytes)=17305448
    2005/05/02-13:30:05-CEST [F1DD49] Initializing execution for auditId= 80916 parentAuditId= null topLevelAuditId=80916 taskName=TEST
    2005/05/02-13:30:05-CEST [F1DD49] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    2005/05/02-13:30:05-CEST [F1DD49] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.ProcessFlow'
    2005/05/02-13:30:05-CEST [F1DD49] java.lang.NullPointerException
         at java.lang.String.<init>(String.java:166)
         at oracle.sql.CharacterSet.AL32UTF8ToString(CharacterSet.java:1378)
         at oracle.jdbc.driver.DBConversion.CharBytesToString(DBConversion.java:527)
         at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:621)
         at oracle.jdbc.driver.T2CCallableStatement.execute_for_describe(T2CCallableStatement.java:846)
         at oracle.jdbc.driver.T2CCallableStatement.execute_for_rows(T2CCallableStatement.java:1007)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4124)
         at sqlj.runtime.ExecutionContext$OracleContext.oracleExecuteUpdate(ExecutionContext.java:1556)
         at oracle.wh.runtime.platform.operator.owf_process.NativeOWFProcessOperator.defineProcessFlow(NativeOWFProcessOperator.java:1029)
         at oracle.wh.runtime.platform.operator.owf_process.NativeOWFProcessOperator.executeDefault(NativeOWFProcessOperator.java:476)
         at oracle.wh.runtime.platform.operator.owf_process.NativeOWFProcessOperator.execute(NativeOWFProcessOperator.java:227)
         at oracle.wh.runtime.platform.adapter.rtp.NativeExecutionAdapter.execute(NativeExecutionAdapter.java:43)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:63)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:23)
         at oracle.wh.runtime.platform.service.ExecutionManager.run(ExecutionManager.java:36)
         at java.lang.Thread.run(Thread.java:534)
    2005/05/02-13:30:05-CEST [F1DD49] Initializing execution for auditId= 80916 parentAuditId= null topLevelAuditId=80916 taskName=TEST
    2005/05/02-13:30:05-CEST [F1DD49] oracle.wh.runtime.platform.service.controller.RecoveryInProgress: RPE-01008: Recovery of this request is in progress.
         at oracle.wh.runtime.platform.service.controller.AdapterContextImpl.initialize(AdapterContextImpl.java:1307)
         at oracle.wh.runtime.platform.service.controller.ExecutionContextImpl.initialize(ExecutionContextImpl.java:789)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.initialize(ExecutionController.java:32)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:50)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:76)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:23)
         at oracle.wh.runtime.platform.service.ExecutionManager.run(ExecutionManager.java:36)
         at java.lang.Thread.run(Thread.java:534)
    2005/05/02-13:30:05-CEST [F1DD49] Attempting to create adapter 'class.RuntimePlatform.0.NativeExecution'
    2005/05/02-13:30:05-CEST [F1DD49] Attempting to create native operator 'class.RuntimePlatform.0.NativeExecution.ProcessFlow'
    2005/05/02-13:30:05-CEST [F1DD49] Native execution operator initiating recovery by recoverable operator oracle.wh.runtime.platform.operator.owf_process.NativeOWFProcessOperator
    2005/05/02-13:30:05-CEST [F1DD49] report_execution_result auditId=80916
    2005/05/02-13:30:05-CEST [F1DD49] java.lang.NullPointerException
         at java.lang.String.<init>(String.java:166)
         at oracle.sql.CharacterSet.AL32UTF8ToString(CharacterSet.java:1378)
         at oracle.jdbc.driver.DBConversion.CharBytesToString(DBConversion.java:527)
         at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:621)
         at oracle.jdbc.driver.T2CCallableStatement.execute_for_describe(T2CCallableStatement.java:846)
         at oracle.jdbc.driver.T2CCallableStatement.execute_for_rows(T2CCallableStatement.java:1007)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4124)
         at sqlj.runtime.ExecutionContext$OracleContext.oracleExecuteUpdate(ExecutionContext.java:1556)
         at oracle.wh.runtime.platform.operator.owf_process.NativeOWFProcessOperator.defineProcessFlow(NativeOWFProcessOperator.java:1029)
         at oracle.wh.runtime.platform.operator.owf_process.NativeOWFProcessOperator.executeDefault(NativeOWFProcessOperator.java:476)
         at oracle.wh.runtime.platform.operator.owf_process.NativeOWFProcessOperator.execute(NativeOWFProcessOperator.java:227)
         at oracle.wh.runtime.platform.adapter.rtp.NativeExecutionAdapter.execute(NativeExecutionAdapter.java:38)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:63)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:76)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:23)
         at oracle.wh.runtime.platform.service.ExecutionManager.run(ExecutionManager.java:36)
         at java.lang.Thread.run(Thread.java:534)
    2005/05/02-13:30:06-CEST [97A560] Free Memory(bytes)=49283952 Total Memory(bytes)=66715648 Used Memory(bytes)=17431696
    2005/05/02-13:30:06-CEST [97A560] AuditId=80916: Request completed
    Any idea?
    Thanks an regards
    Andreas

  • Execute Process Flow via command line

    How can I execute a Process flow from the command line?

    As far as I know once the job is setup in OEM it is submitted either through OEM UI or by scheduling, I don't think there is a command line interface. I would ask on OEM forum anyway Enterprise Manager
    But why such complexity? All OWB maps keep the execution audit history in one place already.
    Nikolai

  • Execute process flow with OMB*Plus

    Hello,
    somebody know how to execute a process flow designed with OWB 9.0.4.8.21 within OMB*Plus?
    Thanks,
    Pedro

    Currently it is not possible to execute Process Flows or Mappings from OMB. OMB is to be used mostly as a metadata manipulation and processing platform, not for run-time management.
    What you could do is to put OMB metadata operation commands and runtime execution commands one after the other in a shell script and then run everything from this shell script (if this is what you are trying to do).
    Regards:
    Igor

  • Process Flow Execution via PL-SQL

    Hi Experts,
    I am trying to execute the Process Flow, however i am unable to execute it via pl-sql method. I followed the method as described in the below link:
    http://docs.oracle.com/cd/B31080_01/doc/owb.102/b28225/api_4sqlforjobs.htm#BABBHEHI
    Example:
    sqlplus scott/tiger@orcl @sqlplus_exec_template OWB_REPO_OWNER.OWB_REPO OWF_MGR PROCESSFLOW PF1 "," ","
    I get below error message.
    SP2-0310: unable to open file "sqlplus_exec_template.sql"
    Details:
    OWB_OWNER: OWB_REPO_OWNER
    OWB_USER: OWB_PROD
    OWB_WORKSPACE: OWB_REPO
    OWF_MGR is the workflow manager.
    PF1 is the Process Flow
    Please tell me where am i going wrong.
    Regards,+
    Ravi R+

    Thanx Sutirtha
    I found the other way round
    BEGIN+
    owbsys.wb_workspace_management.set_workspace('OWB_REPO','OWB_REPO_OWNER');+
    DBMS_OUTPUT.PUT_LINE('Result: ' || TO_CHAR(owbsys.wb_rt_api_exec.run_task('PF_MOD_LOCATION1','PROCESS','PF1', null, null, 1)));+
    END;+
    where
    OWB_REPO is the workspace
    OWB_REPO_OWNER is the OWB Owner.
    PF1 is the name of my process flow

  • Process Flow Transistion dissapears

    Hello!
    Some of the created transitions are not created in the actual Process Flow. This is obvious when looking in the Process Monitor. When I redraw the one missing, deploy and execute the process flow again. I get more transitions but not all of them!
    Does anyone know how to solve this issue?
    Best regards,
    Tina

    Hi Tina,
    it is an OWB bug. For more details and workarounds look at these threads
    [owb process flow error handling|http://forums.oracle.com/forums/message.jspa?messageID=2138808#2138808]
    [10GR2 - Process Flow executes in wrong order...|10GR2 - Process Flow executes in wrong order...
    Also on Metalink is registered a lot of bugs for different releases (including 10.2.0.4 and 11.1.0.7, for example bug 7603716)
    Regards,
    Oleg

Maybe you are looking for

  • ITunes refuses to play certain songs?

    I've had some songs in my iTunes library for quite some time but all of a sudden, several tracks (usually in the same album) refuses to play. When I delete those tracks from the library and try to re-add them, iTunes refuses to add those tracks but t

  • "Sort Albums" not working in Iphoto 11

    I see a lot of discussions about not being able to sort albums manually. I have not problem with that. When I control click on the name of the album, and hit "sort albums" noting happens. This used to work. I do not want to manually sort, since I hav

  • Setting column to input enabled in table control at run time

    Hi friends,               I have one table control in that all columns are set as display only field or ( output only).             Now, when I press enter key one column should be enabled as input field. HOW TO DO THAT? my coading. loop at ztblctrl-

  • Why are these websites blocked?

    Several major websites in China have recently become inaccessible from BT (but not from other networks). E.g.   news.baidu.com   tv.sohu.com Why is this? Thanks in advance. tracert news.baidu.com Tracing route to news.n.shifen.com [123.125.114.18] ov

  • Is it possible to do this with Flash...

    I have this little problem with my blog on MySpace and I'm curious to find out if I can solve it by creating a Flash header/game for my blog that will solve it. I experience routine cycles where on certain days I will get tons of hits, usually this i