OWB Workflow Help

Im conducting a proof of concept using OWB Workflow version 2.4. To give some background, the objective is to run numerous dependant SQL scripts that in effect hand craft the ETL process, at a pre-scheduled time, that provide logging and re-starting functionality.
With the distinct lack of publications and documentations Id appreciate any feedback anyone may have on the following:
1) Is it possible to restart a process at a step midway through the flow. For example the 3rd SQL Activity step out of 10 may have failed and instead of starting over, its a requirement to re-start the step that failed.
2) I've read that Oracle are rumoured to be de-supporting the workflow functionality, if so then what is their proposed method of scheduling and controlling ETL jobs.
3) Can a log file generated by the SQL Plus activity be attached to the failure or success email activity?
Any input would be appreciated, also any pointers to OWB publications or documentation, other than the Oracle manuals of course.
Thanks in advance
James

We have been working towards something similar, and the approach we have settled on is as follows:
1) We have added our own runtime-audit tables which track the most recent process flow run date, final status, and the completion status of each mapping. So, a new run can see if a) this run is a restart, in which case we set our max date for drawing data over to be the run date of the last run, and b) what mappings ran succesfully. This way, a function called needs_to_run(mapping_name varchar2) returns a true/false answer to see if a given mapping needs to be executed on this run. The logic is pretty simple
if run_type is full_run or (run_type is restart and nvl(last_run_status,'FAILURE') of this mapping is 'FAILURE')
then
return true;
else
return false;
2) We do not use mapping objects in the process flows. We will only use SQL*Plus objects that do something like this:
variable exec_return_code;
declare
retVal varchar2(30) := 'OK';
begin
if needs_to_run('ThisMapping') then
ThisMapping.main(retVal);
end if;
:exec_return_code := retVal;
exception
when others then
:exec_return_code := 'FAILURE';
end;
exit :exec_return_code
So that each mapping will check first to see if it needs to execute before running thus skipping over fully completed mappings in the case of a restart. As to emailing log information, we currently do that in our post-mapping procedures in the event of a failure rather than logging to file and then attaching to email. We also have a last step that emails a summary of our audit info for each mapping run - but again this is all done inside pl/sql rather than spooling to file.
Anyway, just some ideas to toss your way. And no, we haven't yet got it all completed and working yet, but it is coming along nicely and none of our individual proof-of-concept tests have provided us with any show-stoppers thus far.
Cheers,
Mike

Similar Messages

  • Start OWB workflow from APEX

    Hi together,
    My challenge is to start an OWB workflow from an apex procedure.
    Procedure:
    declare
    numb number;
    audit_id number;
    begin
    numb := rtruser_blueprint.exec_api.execute('LOC_A014_OWF_MGR', 'PROCESS', 'LOAD_CALM_DELIVERY', ',', 'DELIVERY_ID_IN=6', audit_id);
    end;
    My problem is the following error:
    ORA-06565: cannot execute SET ROLE from within stored procedure
    This error occures at the following row in the execute-Procedure in the package exec_api (standard owb execution package):
    dbms_session.SET_ROLE('OWB_D_rtr10201_blueprint');
    dbms_session.SET_ROLE('OWB_O_rtr10201_blueprint');
    If I run this script directly with sqlplus, the procedure works fine. As a result of this, I assume, the problem has to do with the grants which the apex execution user (APEX_PUBLIC_USER) doesn't have in contrast to the blueprint user (which is schema owner)
    More informations about the environment setup:
    The apex workspace is bound to the database - user: BLUEPRINT.
    BLUEPRINT has the grant to execute the procedure 'EXECUTE' in the package 'EXEC_API'. The 'EXEC_API' package belongs to the user 'RTRUSER_BLUEPRINT'.
    My concrete question is: Which rights / grants does which user need to execute the procedure directly from APEX?
    Thanks for your help!
    Mirco

    What account were you using when you ran the 'execute_api' procedure from SqlPlus ? Also, all SQL and PL/SQL from APEX is executed as the application's parsing schema id and not the schema used by APEX to connect to the database.

  • OWB workflow question

    I'm an OWB-newbie (using PARIS) and have a question about OWB workflows.
    I want to create several mapping workflows.
    All the mapping workflows should send a mail with the outcome of the workflows (success, error, warning) to an administrator.
    I don't want to always code the same mail activity with the same parameter values.
    So my idea is to write one subprocess which handles the mail-routine with some input parameters (calling workflow-name, process state (success, warning, error)).
    In the subprocess I want to test the input parameter "process-state". If the value is 0 (success) then a mail with the workflow name as subject should be generated incuding an static text e.g. "mapping successful". If the value is 1 then "mapping warning" and so on.
    What OWB activity has to be choosen for testing the input parameter "process-state" like an if-then-else construct or a case-construct?
    How can the value of the input parameter "workflow-name" be included in the mail-body?
    Regards
    Martin

    To my experience, using the OWF for these things is not very practical. I would suggest that you would make your own PL/SQL procedude that does this, and then call that procedure from within the actual mapping (post-mapping), using the values you have there.
    This might not be what you want, however. I simply find the email capabilities of OWF too limited for actual work.

  • Calling owb workflow job created in oem using pl/sql

    is it possible using pl/sql to call owb workflow job which is created thru oem
    can you pl be kind enough to share a sample.
    thanks

    Hi,
    The same question was just answered by another member a couple a days ago want to run owb mappings thru job schedule :
    sqlplus_exec_template runtime_owner location_name PROCESS process_name "," ","
    sqlplus_exec_template is in "D:\oracle\oraWB\owb\rtp\sql"
    Nikolai Rochnik

  • Configure the Database for FTP in an OWB workflow

    I want to use the ftp-operator in an OWB-Workflow. I want to use a script, that is managed in the owb itself.
    I configure the ftp operator in this way:
    COMMAND: /usr/bin/ftp (i can start the command at the command line)
    PARAMETER_LIST: ?"${Task.Input}"?
    SUCCESS_THRESHOLD: 0
    SCRIPT: [my with the ftp Commands]
    After the execution of the workflow i get the error message: "/usr/bin/ftp -n: not found"
    in Runtime Audit Browser
    Does anybody know what i have to do to get the ftp operator running?
    The operating system of the database server is HP UX.
    Thanks in advance
    Alexander

    Hi,
    why do you want to use ftp? As against going directly to the source database? (So much faster and easier). I haven't used ftp since the last century.
    Regards,
    Donna

  • Workflow Help! HD, SD same sequence??

    Hi guys,
    i have a project for with a number of types of footage. HD Prores, DV PAL, stills, etc.
    |My question, can i do the edit on a 1920 X 1080 dvpal timeline, and then before export change it to prores, re-render and export??. will i lose any quality? or should i cut it all in a prores sequence. just render times are very long for the comps, filters im using etc.
    any workflow help would be awesome!!
    cheers

    can i do the edit on a 1920 X 1080 dvpal timeline and then before export change it to prores, re-render and export??
    No. DV is not 1920x1080. It is 720x576.
    will i lose any quality?
    Yes...if you use those settings. Well, if FCP even lets you.
    or should i cut it all in a prores sequence
    Yes....cut in a ProRes sequence.
    Shane

  • OWB / Workflow integration problem

    We have a OWB 11g installation running on Windows 2003 64-bit Server.
    We have 2 OWB databases, one design repository and one runtime repository.
    Workflow is installed and configured on the runtime database.
    Oracle Workflow Location is set to the runtime repository, and checks out ok.
    OWF_MGR user is also created in the OWB Design Center, although Oracle documentation is very unclear on this; only stating that
    +"6. Create a Workflow Proxy User.+
    +When the Workflow instance is remote from the database hosting the Warehouse+
    +Builder repository, you need to create a proxy-user.+
    +Within the database hosting the repository, use SQL Plus to create a user and grant+
    +it the OWB_USER role as a default. This enables the remote OWF instance to+
    +connect to the services provided by the Control Center."+
    We're able to deploy Process Flows from the design repository to the runtime rep, but when we try to execute them through workflow, the warehouse builder browser reports the following 3 errors:
    R+PE-02075: Oracle Workflow failed to process the execution request for Activity LOAD_FP_INDEX:START1. This may be because dependent objects have not yet been deployed.+
    ORA-20002: Failed to call "PFFPVSL_WB_RTI_WORKFLOW_UTIL".initialize. Please check that "EXECUTE ANY PROCEDURE" privilege is set and that the OWB Runtime is available. ORA-20009: User OWF_MGR does not have access to the workspace with name:OWBRTREP and owner:OWBRTREP. OWF_MGR must be registered to access the workspace by the administrator or owner of the workspace
    WB_RT_WORKFLOW_UTIL_11G.Execute_Start(PFFPVSL, WB_IK_20090213_135803_19093, 366, RUN) Wf_Engine_Util.Function_Call(WB_RT_WORKFLOW_UTIL_11G.EXECUTE_START, PFFPVSL, WB_IK_20090213_135803_19093, 366, RUN)
    We've done the EXECUTE ANY PROCEDURE on the OWF_MGR user. The OWF service_doctor.sql script reports that "There are errors in one or more PL/SQL packages and functions", but fails to say anything else - everything is loaded and seeded correctly.
    But what we notice when comparing with our working 10g installation, is that the runtime repository target user (OWBRTREP) is totally empty of tables, views, procedures etc on the new runtime database, whereas it has about 250 tables and lots of other objects on the 10g installation. This user is created through the OWB 11g design center, so why is there such a difference? Has something gone wrong when creating the runtime workspace?
    (It was created with the Repository Assistant, which we had some trouble with on the 64-bit server, but after some work it now seems to run ok, exiting with success message after creating workspace user.)
    Regards,
    -Haakon-

    Haakon,
    Lets assume you have two databases with OWB Repository A installed on database A and OWB repository B installed on database B.
    Repository A - your Design repository
    Repository B - your Runtime repository (this is your target schema / database)
    I hope you have control centre service running under Repository B and you have installed OWF schema (usually OWF_MGR) under repository B.
    I hope in your repository A you have created a new configuration and new control centre to point to repository B and that configuration is active.
    Now logon to repository B using repository owner login and add OWF_MGR and other target databases as your target user under SECURITY/USERS.
    Create similar users under repository A.
    It works for us in OWB 10g but i dont know about 11G might be something related to WORKSPACE concept.
    Hope this helps.
    Thanks,
    Sam.

  • OWB Workflow Queue Listener

    Hi ,
    We are trying to schedule the OWB 3i mappings using OEM 2.2 and Workflow 2.6.2.We have a queue listener 'workflowqlsnr.bat' on the client side,but we need to have the Workflow Queue Listenter on the Server side.Please let me know what is the procedure in order to deploy the listener.sh in the server(Unix).
    I have the following file installed in my owb3i\owb\bin\solaris directory on Windows 2000 -- workflowqlsnr.sh,workflowqlsnr1.sh.
    Environment:
    OWB 3i Client ( Windows 2000).
    Server OS: Sun Solaris
    Database : 8.1.7.3
    OEM 2.2
    OWF 2.6.2 Server/Client.
    Thanks for the help.
    Sharad.

    I am facing a problem in DB Link creation.
    Backend: Oracle 8i Server on my machine
    DW Software: Oracle warehouse builder 3i ( client , repository asistant.....)
    Operating system: Windows NT 4 SERVICE PACK 6
    I wants to use the scott database( default database given by oracle ) as my input source.
    How can I create the DB LINK ( for scott database) ?
    How can I create the DB LINK ( for any other database) ?
    Should I need to add anything in Setting of"ODBC DATASOURCE ADMINISTRATION"
    ==================
    Settings done:
    ==================
    DB Link Name :prashant
    Host name
    Host name: my machine's ip address
    port number: 1521
    oracle sid: prashant ( my oracle sid)
    user name:scott
    password:tiger
    ==================
    Gives error:
    ==================
    Testing...
    Failed.
    Cwm Error Message: Failed in the WBAPIFactory.createDBLink()
    Cwm Error: SQL Exception
    Class Name: oracle.wh.ui.integrator.common.RepositoryUtils
    Method Name: createDBLink(String, String, String, String)
    Method Name: -1
    Repository Error Message: java.sql.SQLException: ORA-02082: a loopback database link must have a connection qualifier
    ==================
    ==================
    How should I proceed further.
    I am expecting URGENT FEEDBACK.
    Reply me on : [email protected] or this OTN Network
    From
    Prashant

  • OWB-Workflow fails with RPE-01008, RPE-01009

    Hi!
    I migrated a project from OWB 9.2.0.4 to OWB 10.1.0.2 and created a simple workflow calling a procedure, an OWB mapping and a function in exactly this order. The procedure does nothing (select user from dual) the mapping copies the contents of one table to another and the function should insert a record into a table. The "do nothing" procedure works fine (it gets an OK in the OWF-Monitor), he mapping copies the required data into a different table without any errors. In OWF-Monitor, the function look like it was executed, but when looking in OWB Audit Browser I get RPE-01008, RPE-01009 error messages. The function did not insert the required data.
    I tried to create a small test project in OWB in order send it to Oracle Support, but an identical workflow in the test project works fine without any errors. All objects of the workflow perform like programmed.
    Has anybody experienced a similar behavior? To me it, there is no difference in the project. Migration worked without any errors. The OWB 9i connected against 9.2.0.5 database and OWF 2.6.2, OWB10g uses a 10g database with OWF 2.6.3.
    Hope anybody can help!
    Regards
    Michael

    well ....
    Could it not be that the upgrade process cleared out the problem, since the process does touch the runtime repos?
    We have had similiar problem on our installation, but that came up after moving from 10.1.0.2 to 10.1.0.4
    But moving to the lastest version was a very good idea, and will help us to be better ready when the long awaited "Paris" walks into town
    Cheers,
    Borkur

  • OWB Workflow Schema Installation

    Hi,
    Can anybody post what are all the essential softwares and Hardwares needed for creating Workflow schema in OWB 10g R2.
    Do we need to install the Workflow Server first and then the OWB Repository?
    Or
    Can i able to add Workflow Schema in the existing OWB Repository?
    Please help me out in this regard.
    Thanks,
    Soma

    Hi,
    look here: Create Process Flow
    You can install the repository or the workflow server first. It doesn't matter.
    Regards,
    Detlef

  • OWB Workflow Error

    Hi,
    I have some workflows designed using OWB. We have automated them using Cron. The jobs run fine everyday, provided the client is connected to the OWB design center and the listener. If for some reason the client is not logged into design centre, the entire job just hangs. When the client connects back to the design centre, the job terminates with the following error:
    Error
    RPE-01003: An infrastructure condition prevented the request from completing.
    Error
    ORA-20003: The object is not in a valid state for the requested operation
    ORA-06512: at "PRD_OWB.WB_RTI_EXCEPTIONS", line 119
    ORA-06512: at "PRD_OWB.WB_RTI_SERVICE_EXECUTION", line 834
    ORA-06512: at "PRD_OWB.WB_RT_SERVICE_CONTROL", line 188
    ORA-06512: at line 1
    RECOVERY
    RPE-01008: Recovery of this request is in progress.
    Error
    ORA-20002: 3122: Duplicate item 'PO_MOD/WB_IK_20060811_073457_24714' could not be created.
    ORA-06512: at "OWF_MGR.WF_ENGINE", line 3920
    ORA-06512: at line 1
    Can anyone explain what this means ?
    How do you make the running of the jobs independent of whether the client is connected to the design center and listener. This is urgent -- pls help !
    Thanks
    Rita

    It looks like you are launching the workflow with an item key that you already used earlyier.
    The item key must be unique!
    ORA-20002: 3122: Duplicate item 'PO_MOD/WB_IK_20060811_073457_24714' could not be created.

  • Viewing Aperture library items in iPhoto as workflow help

    I wanted to view my Aperture library jpegs in iPhoto without opening Aperture. The reason for this is to use iPhoto to review my pictures and to open in an external editor from iPhoto. We use Fireworks in designing web sites and newsletters. I did not want to save to another folder which takes up space. The workflow requires the use of Fireworks, crop out what we need from or graphics/pictures and place in the final work for Dreamweaver.
    I opened the Aperture library content and dragged the image folders to iPhoto. It did take the pictures and gave a notice for the files that were not imported. These were jpeg files, not the raw. Advantage is that the Aperture library is now the one resource for our workflow. I can switch from FireWorks to Photoshop when needed. We did not try this with the Raw files, but I suppose that could be done too. Opening the raw in PS would be helpful to some workflows.
    I thought this was a good tip. It has saved us quite a bit of time and is easy to use.

    I'm not sure I understand. If you're using iPhoto to review and edit jpg files you've pretty much nuked any reason to use Aperture at all. It also means that edited copies of your images are not tracked as versions and aren't backed up in the vault. Can you explain a little more what your workflow is?
    I'm do not want versions tracked in Aperture in this case. I want samples of textures or parts of image available for use in designing other graphics. We are in the graphics studio and want to open files in FireWorks, crop/marque out parts and paste to another FireWorks file. I have iPhoto set up to open externally in Fireworks. Think of it as needing 'clip art' out of picture in the library.
    What we are doing is designing banners for web sites and newsletters. I might want a horizon/sunset only as a background to blend into the banner. I have iPhoto open already along with Fireworks and Dreamweaver. No need to have Aperture or any other program open now. iPhoto has the jpegs..... click to open in FireWorks, marque, copy and past the parts I want into the banner design.
    Before that I had to have a resource folder of jpegs. The Aperture library can now store jpegs and access them from iPhoto. I have to hunt quickly through hundreds of image we have store for each texture and different subjects for these banner creations.
    Hope this helps. We just need small parts of any given image. This was a good solution. I'm sure there are others too.

  • OWB WORKFLOW

    Hi All,
    I have OWB 11g r1(with database 11g r1) installed on my pc,win xp
    I have created many mappings.
    Now I want to create a process flow.
    I searched in GOOGLE
    It seems that the workflow is not installed.
    1) Is workflow not installed by default with OWB11g as the 11g database ?
    2) the default user owf_mgr is NOT present in the database .
    3) I checked the ORACLE_HOME/owb folder ,but the wf folder doesn't exist......
    I also have OWB11gR2 installed in my pc.
    this does have the wf folder in oracle_home/owb folder.
    so i copied wf folder from this home to 11gR1 home .....when I install using the wfinstall.bat ....it points the 11gR2 folder..........
    what options do i Have ?
    please suggest.
    Thanks
    s

    In oracle 11g workflow is no longer provided with the database and is not on the 11g companion. It is included as part of warehouse builder 11g and located at %ORACLE_HOME%\owb\wf\ in the OWB installation oracle home.
    For oracle database 10g you would need to install workflow server component into the 10g database home via the 10g companion cd, not use the workflow included with OWB 11g. The two "should" be the same 2.6.4 final release version of workflow (from appearances of looking at the files they "seem" the same), but if you want to be running a supported configuration, use the 10g companion to install workflow into a 10g database and use the OWB 11g workflow to install on 11g database.
    Edited by: smithrh2 on Feb 14, 2012 1:53 PM
    Edited by: smithrh2 on Feb 14, 2012 1:54 PM

  • Owb / Workflow install

    I am in the process of installing OWB and workflow (to be able to use/deploy process flows).
    My understanding is that I need to install Oracle HTTP server in a separate Oracle
    Home, and Oracle Workflow Server into the Oracle Home of the database I'm
    deploying to.
    I have also installed OWB into a separate Oracle Home .
    However my database Oracle Home is patched to 10.2.0.3 and I havent got a companion cd for 10.2.0.3 with Oracle Workflow Server - dont think it exists?
    Question is; can Oracle Workflow Server be installed in a Oracle Home that is different from the Oracle Home that I'm deploying to?
    Regards
    Ottar.

    Jayan,
    WF server is a part of (licensd with) Oracle DB, and located on Companion CD.
    For installing WF read more details for example in this thread
    Create Process Flow
    Regards,
    Oleg

  • BPM Workflow Help Needed Urgently please

    Hi All,
    We are working on a BPM workflow
    User A submits the request which goes to User B for review if rejected by user B the process stops but if approved then the amount is calculated using a decision table and based on the amount it will be routed to the respective users.
    I did it till BPM part and created rules in the BRM part as well but dont know how to call this BRM in BPM.
    Please help me its very very urgent.
    Thanks in advance

    Refer step 25 of this document to see how to create a web-service for your BRM ruleset.
    Once the web service is ready, it can be imported anywhere for use.
    1. In your BPM, right-click on the 'WSDL' folder and select 'Import WSDL'. You can import your BRM web-service here.
    2. Then place an automated activity in your BPM process design and set the BRM service as the Service Reference property of the Automated activity.
    3. Once this is done, you will see the Condition and Action values of your BRM decision table in the Input and Output mapping of the Automated Activity.
    4. Map the values of BPM process context to the BRM condition values in the 'Input Mapping' and get the corresponding output in Output mapping (Action Values of decision table).
    Refer step 12 in this document to see how to import a WSDL in your BPM Process.
    Hope this helps.

Maybe you are looking for

  • Lumia 920 / Problem with Store App

    Right after I bought my Lumia 920, a added few applications (viber, instagram, etc.) using store app.  After few days, everytime I tried to open Store App, or even visit the market page using browser on my device, I got the same message: ''Service un

  • Macbook Pro 13" late 2011 crashes when i plug out a "Focusrite Saffire 6 USB" while in sleeping mode.

    Hi Forum, I have a problem with my Macbook Pro crashing when i plug out my "Focusrite Saffire 6 USB" while it´s still in sleep mode. I do have the latest drivers and updates so is there any way to fix that Problem ( besides not pluging it out while i

  • 6500A Plus - Duplex return message paper too short

    Just install the new printer yesterday and never managed to print two side (deplux) documents. When enabling the two-sides print mode, i got a warning message on the computer that the media size is too short (french message because of my setup). When

  • I cannot display the block diagram when the VI is running

    It is not possible to show the block diagram while the VI is runs. The frontpannel remains on the screen. When the VI is started from the block diagram, the frontpannel pops up and stays  on the screen

  • Binary characters in server.log

    Hi Everybody, I am working on a j2ee app on linux box. I am seeing binary characters at the beginning of server.log Binary characters are like @ and ~. If I do page down, it's fine. All the information is getting printed. Does anybody has idea why it