How to run process flow outside owner project?

Hi,
I have two process flows (process_flow_A and process_flow_B) in two different projects (projectA, projectB). Process_flow_A has to be run after process_flow_B is finished. So what I am thinking now is either put process_flow_A in Project B or put process_flow_B in project A. But how to see process flows which are not in it's owner project? Or is there any other ways to do this task?
thanks.

It can be done - in a round about way.
You can call a SQLPlus operator. The operator will call sqlplus_exec_template.sql. You can use this script to call your other process flow in the other project.
..owb_home/owb/rtp/sql/sqlplus_exec_template.sql
If you open up the .sql file, you will see examples of how to use it to call mappings, process flows, etc.
Hope this helps..

Similar Messages

  • Problem Running Process Flow When Database Objects Deployed Outside of OWB

    Hi
    I am having a few problems running process flows that I'm deploying through OMB.
    My set up is as follows:
    All database updates are done outside of OWB (for version control purposes).
    Each object within OWB is exported to an MDL file, which is then imported into the production repository using an OMB Script.
    Once everything has been imported into my production version, I'm then deploying the process flows from within the OMB script.
    When I then go to run the process flow, I get the following error ...
    RPE-02075: Oracle Workflow failed to process the execution request for Activity LOAD_COUNTRY_PF:LOAD_COUNTRY. This may be because dependent objects have not yet been deployed.
    I can see through the Control Center, that the status of all the objects that the process flow is going to use are set to having a Design Status of 'New'. So obviously OWB doesn't realize that these objects already exist in the database, which is why the process flow errors.
    Is there any way around this? Can I somehow set the Design Status of all the objects to 'Unchanged' through OMB? Is there a way to fool the process flow into thinking that the objects do exist? Can I run the process flow outside of OWB?
    Any help would be appreciated.
    Thanks
    Liffey

    Hi Liffey,
    Is there any way around this?
    Can I somehow set the Design Status of all the objects to 'Unchanged' through OMB?
    Is there a way to fool the process flow into thinking that the objects do exist?of course you must deploy mappings before deploying processflow
    and as I know there is no legal method for avoiding this.
    Regards,
    Oleg
    PS. Look at this thread [Deploying without Deploy|http://forums.oracle.com/forums/thread.jspa?messageID=2655726&#2655726]
    It seems for OWB10gR1 exists method for manual modification OWB runtime repository tables for mark mappings as deployed

  • How to shedule process flow?

    Hi,
    I am able to deploy the process flows to the workflow repository.
    Could any one please explain, how to start process flow as sheduled. and manually. I am trying to create a job usin OEM. But I am unable to locate the deployed process flow object in the workflow repository. .
    Thanks and regards
    Gowtham Sen.

    From OEM you can use the following to schedule your process flow package.
    1, Select the RUN SQL*PLUS Script
    2, "owner" "Process_Flow_Location" "PROCESS" "PF_NAME" "," ","
    3, Then import the OEM_EXEC_TEMPLATE.SQL
    4, Check the Overide credential with the Username and Password
    This step is working for me. Also if you get an Role error make sure the comment
    the following lines in the OEM_EXEC_TEMPLATE.sql
    REM alter session set current_schema = &REPOS_OWNER;
    REM set role wb_r_&REPOS_OWNER, wb_u_&REPOS_OWNER;

  • Process flow of capital project and indirect project

    Hi ,
    Can anybody provide me some document related to the process flow of capital project and indirect projects .
    Thanks/vinay

    Hi Vinay,
    If you found any document related to capital projects please share with me also.
    Thanks
    Sreenath

  • Running process flow from sqlplus

    hi everyone,
    using sqlplus_exec_template.sql to run process flow.
    but message keeps appearing that task is not found
    I have an oracle workflow repository on another server.
    what should I use as parameters?
    for example location name?
    thank you
    owen veeneman

    Hi
    If you can create the Process Flow code, you can deploy and execute from SQLPLUS as follows.
    1. First you have to compile the package from SQLPLUS into you target get schema. For example. SQL>@c:\package.pls.
    2. Then find out the prarmeter from function main of the package. Write a simple code as follows and run it from SQL. Just substitute whatever applicable to you.
    declare
    V_PROCESS_CODE           VARCHAR2(10);
    V_FREQUENCY_CODE     VARCHAR2(1);
    V_RETCODE                NUMBER(10);
    V_WB_RT                WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
    begin
    V_PROCESS_CODE := 'CF_SUMM’;
    V_FREQUENCY_CODE := 'D';
    v_retcode := DM_CASHFLOW_SUMM_MAP.main(V_PROCESS_CODE, V_FREQUENCY_CODE, V_WB_RT);
    dbms_output.put_line(v_retcode || ' Retcode.');
    end;

  • Tools for running process flows and mappings

    The operations/production area is responsible for running process flows and mappings in a day by day base. As developer, I need to implement a solution that allow them run these artifacts. For this purpose, is there any tool apart from Control Center ????
    Thnks

    The scripts you mentioned (sqlplus_exec_background_template.sql and sqlplus_exec_template.sql) can be used for command line execution of mappings.
    We do not run these in Oracle Workflow, as we already have an enterprise scheduling platform, Redwood Cronacle in our case. (Also one finds AppWorx and others in this area, see e.g. http://www.bmc.com/USA/Corporate/attachments/BMC_Article2.pdf)
    Regards, Erik Ykema

  • Can we run process-flow from outside OWB

    Hi All,
    I am scheduling my process-flows daily in night. If any process-flow fails, they will rectify the problems and they want to run the process flow manually, outside own, like SQL.
    Regards,
    Kumar.

    Hi Detlef,
    I tried to execute the following, I dint get any response and the sqlplus closed automatically. When I saw the execution details no executing had taken palce. And even I tried to execute the command by commenting the exit in the script.
    sqlplus RA_OWB1/RA_OWB1@RADEV1 @C:\OraHome_1\owb\rtp\sql\sqlplus_exec_template.sql RA_OWB1 PlatformSchema ProcessFlow SAI_PF "," ","
    Is there any external (oracle function), so that I can pass any number of Process-flows as parameters for execution. Client will create a form with a list of check boxes and execute button. when the user selects the check boxes according to his rerquirements and click execute. then all the process-flows should run.
    Regards,
    Kumar.

  • Run process flow over database link

    Hi guys,
    I have two projects here, A and B. Each project has its own process flow, lets say Process A (in project A)and process B(in project B). I need to run process B in process A, so I use the database link, and WB_RT_API_EXEC.run_task function. But when I run the process, I get the following error:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are correct.
    ORA-06512: at "OWBRTR2.WB_RT_API_EXEC", line 704
    does anyone have some idea how to fix this? or any other suggestions for how to do it? thanks.

    Hi Gowtham,
    I am using the following function to send execution details of the process-flow. This process-flow is having 20 mappings. This is working fine.
    The cIient requirment is to pass email-IDs from a back-end table(sam_mail_notification) with columns(smtp, from_address and to_address), right now the function is working on static(constant) values.
    I had modified the function according to the requirement, can you please have a look at the function, and tell me is it correct. Because the values should come from database table. will this function work.
    I got the following error, while deploying,
    ORA-06550: line 55, column 1:
    PLS-00103: Encountered the symbol "END" when expecting one of the following:
    FUNCTION SEND_SUMMARY1()
    RETURN NUMBER
    --initialize variables here
    -- main body
    retval number := 0; --default
    crlf CONSTANT VARCHAR2(2):= CHR(13) || CHR(10);
    pSender VARCHAR2(30) := '[email protected]';
    pRecipient VARCHAR2(30) := '[email protected]';
    pSubject VARCHAR2(100) := 'Process REsults for: '||to_char(sysdate,'dd/mm/yyyy');
    mesg VARCHAR2(32767);
    mail_conn utl_smtp.connection;
    cursor getResults is
    select AREA.OBJECT_NAME,
    AREA.CREATED_ON,
    AREA.UPDATED_ON,
    aramr.ELAPSE_TIME,
    NUMBER_RECORDS_SELECTED,
    NUMBER_RECORDS_INSERTED,
    NUMBER_RECORDS_UPDATED,
    NUMBER_ERRORS,
    AREA.RETURN_RESULT,
    AREA.EXECUTION_AUDIT_STATUS,
    MESSAGE_SEVERITY,
    MESSAGE_TEXT
    from
    all_Rt_audit_executions area,
    all_Rt_audit_map_runs aramr,
    all_rt_audit_exec_messages err
    where AREA.execution_audit_id = ARAMR.execution_audit_id(+) AND
    AREA.execution_audit_id = err.execution_audit_id(+)
    and
    trunc(area.created_on) = trunc(sysdate)
    AND AREA.OBJECT_NAME IS NOT NULL AND AREA.TASK_TYPE!='ProcessFlow'
    AND area.top_level_execution_audit_id =(select max(top_level_execution_audit_id)from all_Rt_audit_executions
    where execution_name = (select execution_name from all_Rt_audit_executions where task_type ='ProcessFlow' and top_level_execution_audit_id =
    (select max(top_level_execution_audit_id) from all_Rt_audit_executions)));
    Cursor getMailDetails is select
    mailhost
    pSender,
    pRecipient
         from sam_mail_notification;
    BEGIN
    for maild in getMailDetails
    loop
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    mesg := 'Date: ' ||TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss') || crlf ||
    'From: <'|| pSender ||'>' || crlf ||
    'Subject: '|| pSubject || crlf ||
    'To: '||pRecipient || crlf || '' || crlf ||
    end loop;
    'MAPNAME START_TIME END_TIME ELAPSED SELECTED INSERTED UPDATED ERRORS RESULT AUDIT_STSTUS SEVERITY MESSAGE_TEXT'||crlf ;
    for rec in getResults
    loop
    mesg:=mesg || rpad(rec.OBJECT_NAME,30)||
    rpad(to_char(rec.CREATED_ON, 'HH24:MI:SS DD-MON-YY'),20)||
    rpad(to_char(rec.UPDATED_ON, 'HH24:MI:SS DD-MON-YY'),24)||
    rpad(to_char(rec.ELAPSE_TIME),7)||
    rpad(to_char(rec.NUMBER_RECORDS_SELECTED),8)||
    rpad(to_char(rec.NUMBER_RECORDS_INSERTED),10)||
    rpad(to_char(rec.NUMBER_RECORDS_UPDATED),10)||
    rpad(to_char(rec.NUMBER_ERRORS),5)||
    rpad(to_char(rec.RETURN_RESULT),8)||
    rpad(to_char(rec.EXECUTION_AUDIT_STATUS),10)||
    rpad(to_char(rec.MESSAGE_SEVERITY),10)||
    rpad(to_char(rec.MESSAGE_TEXT),200)||crlf;
    end loop;
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, pSender);
    utl_smtp.rcpt(mail_conn, pRecipient);
    utl_smtp.data(mail_conn, mesg);
    utl_smtp.quit(mail_conn);
    return retval;
    EXCEPTION
    WHEN OTHERS THEN
    return 1;
    END;
    Regards,
    Kumar

  • How to import Process Flows without OWB

    Hi,
    I'm having trouble deploying my process flows to my PROD environment.
    Process flows complile and run ok in TEST environment, and we are suppoused to deploy in both environments (TEST and PROD) from the same OWB repository, which is correct.
    But due to technical problems with the net, by the moment I cannot see the PROD server from OWB repository installation, so I need to deploy manually (using scripts via SqlPlus or some other tool).
    I can export the PFs from the 'generate' option provided by OWB, so I can get the file with the PFs' source code.
    What I don't know is:
    1) how to import/create that process flows in the new instance manually (I mean from outside OWB) from the exported file.
    2) where should I create them, in the workflow instance or in the owb repository instance?
    I'm working with OWB 10gR2
    Can somebody help me with this?
    Thanks in advance
    Max

    Many kinds of errors. For instance:
    IMP-00017: following statement failed with ORACLE error 23327:
    "BEGIN SYS.DBMS_DEFER_IMPORT_INTERNAL.QUEUE_IMPORT_CHECK('ORACN230.WORLD',"
    "'IBMPC/WIN_NT-8.1.0'); END;"
    IMP-00003: ORACLE error 23327 encountered
    ORA-23327: imported deferred rpc data does not match GLOBAL NAME and platform of importing db
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_DEFER_IMPORT_INTERNAL", line 30
    ORA-06512: at line 1
    I dropped all users except for schemas related to database structure such as SYS,SYSTEM,OUTLN,SYSMAN,XDB, WMSYS. I do not have access to original database because it's belongs to another organization. Only I got is dump file and log which I know the exp is full database with username SYS. The original database and and destination database (which I handle) probablly have different features (when create database, optional scripts run from rdbms/admin might be different). I did use IGNORE=Y every time. I tried SYS or SYSTEM to import but always are scared by too many errors.
    Regards,
    Richard

  • Problem in running Process flow

    Hi,
    I’m bit new to OWB. I made mapping which I deployed successfully. I can run through control center and it works fine (it just fills a table). However when I made the process through process flow and after its validation , tries to start it gives me error RTC-5170: The selected objects do not require deployment as they are all up to date in the Control Center, which is followed by RTC-5006 and obviously no data generated in the table. How can I pass this error? Secondly I tried to schedule this, firstly it doesnot ask for the process flow during schedule, secondly even from schedule the map doesnot run.
    Appreciate any help to run the process flow.
    Regards
    Yasir

    In the process flow validate and generate the process flow. then go back to design center and go one step above to process flow package module and right click and deploy the process flow package. once the deployment is successfull then go back to the process flow and right click and start the process flow.
    This should work.

  • How to schedule Process Flow in OWB10gR2 ?

    Hi,
    I have a mapping and a corresponding process flow that has the mapping within. Both the mapping and process flow are deployed successfully and they also execute successfully when executed from control center.
    Now I want to run the process flow daily at 4 am in the morning. I have created a schedule and defined the parameters. Then for the process flow, I have added the schedule to the "Referred Calander". Then in control center I got a new object with _JOB as suffix. I deployed that as well and that was successfull. This implies that I have now a job that is scheduled to run daily at 4 am.
    But the next day when I checked the target table that the mapping (wrapped in the process flow which in turn was scheduled to run at 4 am ) was supposed to insert some records, there was no record at all !!! Seemed to me that the job was not kicked off at all at the specified time.
    I am using --
    OWB client version : 10.2.0.1.31
    OWB repository version : 10.2.0.1.0
    Oracle Workflow Version : 2.6.4.0.0
    Database version : 10g Enterprise edition release 10.2.0.1.0
    Does anyone have any idea how do I make this arrangement running?
    Regards,
    Swagata

    Chino -
    Once you start the job, do you have to leave the "Job Details" window open in order for teh scheduled task to run?
    thanks for the help ....
    txb

  • Getting error when running process flows in oem

    Hi all,
    I'm trying to run a process flow in oem (using oem_exec_template.sql script), but it keeps failing with error "nms-1013: sqlplus does not exist". I tried running a map too and it failed with same message.
    Any idea anyone?
    Thanks!
    Yanet

    Hi,
     Looks like you have an obvious code error, invalid cast operation in your code. Do you get this error when running in local emulator.
     You can try the following article on how to debug published cloud service, assuming you have VS ultimate.
     https://msdn.microsoft.com/en-us/library/azure/ff683671.aspx
    Regards,
    Nithin Rathnakar

  • OWB 11g Problem in running Process flow

    I’ve build a process flow as described in “Getting Started with Oracle Warehouse Builder 11g”. But if I run the process flow I get a warning message “You have to deploy this object before running” followed by the error RTC-5170: The selected objects do not require deployment as they are all up to date in the Control Center.
    Therefore I’m not able to run the process flow. What’s wrong? It looks so easy in Getting Started but it doesn’t work.
    I’ve found two threads regarding this error from last year in this forum. But there is no solution for OWB 11g.
    Has anyone an advice for me?

    I've successfully installed OWF as described in Installation guide (all components are on the sam server).
    But when I deploy a workflow in OWB I get some errors. In the job details
    I find ORA-00942 and RPE-02053. It seems that the workflow repository is missing.
    Are there additional steps for creating a workflow repository?
    Or what is wrong? All installation logs (wf.log and workflow.log) are without errors and with success messages.
    Any idea?

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

  • 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

Maybe you are looking for