[OWB 10g] Complex Condition in a transition

Hi all,
I want to do a complex condition from my "AND1" component to my "END_SUCCESS".
Here is a picture of my problem :
[http://craweb.free.fr/owb/flux.png]
In fact, I want to do this condition (you can see it in the previous picture) :
IF after the "AND1" component the number of warnings <= 50 THEN
redirect to "END_SUCCESS" (equivalent to "SUCCESS" enumerated condition)
ELSIF after the "AND1" component it's "SUCCESS" THEN
refirect to "END_SUCCESS"
ELSE
redirect to "END_WARNING"
END IF;
I have a problem with "NUMBER_OF_WARNINGS" variable and I don't know how to write my complex condition.
Please, is anyone can help ?
Regards,
VD.
Edited by: user7960834 on 24 juin 2009 00:36

I have found the solution by creating a function.
Thanks for help anyway.

Similar Messages

  • How deploy a transition using complex condition by OMB+?

    Hello,
    I can’t deploy a process flow package using OMB+
    But, it doesn't work because of a transition with complex condition.
    I will try to explain my problem on the best :
    I am working in OWB 10g R2.
    I developped several process flow of this modele:
    - I have a package module named : PFL_MODULE
    - In this package module, I have created four process flow package :
    PPK_ODS
    PPK_DWH
    PPK_DMT
    PPK_SCH
    In each package I have three or four process flow.
    To deploy it, I use OMB+
    I created this script :
    +# move to apropriate context+
    OMBCC '/$project_name/PFL_MODULE'
    +puts "Current context is [OMBDCC]"+
    +puts ""+
    +# Connect to the default control center+
    +puts "Connect to the default control center"+
    +puts ""+
    +OMBCONNECT CONTROL_CENTER+
    +puts "Deploying workflows :"+
    OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'PROCESS_FLOW_PACKAGES' \
    ADD ACTION 'PPK_ODS' \
    SET PROPERTIES (OPERATION) VALUES ('CREATE') \
    SET REFERENCE PROCESS_FLOW_PACKAGE 'PPK_ODS' \
    ADD ACTION 'PPK_DWH' \
    SET PROPERTIES (OPERATION) VALUES ('CREATE') \
    SET REFERENCE PROCESS_FLOW_PACKAGE 'PPK_DWH' \
    ADD ACTION 'PPK_DMT' \
    SET PROPERTIES (OPERATION) VALUES ('CREATE') \
    SET REFERENCE PROCESS_FLOW_PACKAGE 'PPK_DMT' \
    ADD ACTION 'PPK_SCH' \
    SET PROPERTIES (OPERATION) VALUES ('CREATE') \
    SET REFERENCE PROCESS_FLOW_PACKAGE 'PPK_SCH' \
    OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'PROCESS_FLOW_PACKAGES'
    OMBDROP DEPLOYMENT_ACTION_PLAN 'PROCESS_FLOW_PACKAGES'
    +puts [OMBCOMMIT]+
    +puts "Workflows are deployed"+
    when I tested it, everything worked !
    But, recently, I had to modify one of my process flow. This process flow is in PPK_SCH package (and it named PRC_SCH_FULL)
    I had to change a transition using an enumerated condition (SUCCESS, ERROR) by a transition using a complex condition.
    My condition is very simple, I test one of my variable ("PRC_SCH_FULL"."VAR_END" =1)
    When I deploy my new process flow by the control center in OWB it works.
    But, when I deploy it by my script I have an error message :
    *OMB05602 : An unknown Deployment error has occured for Object Type DeploymentContextImpl.generate WBGeneratedObject[] is null or length 0 for PPK_SCH.*
    I'm sure the problem is in transition because when I put an enumerted condition back, it works again.
    So, How can I do to deploy my process flow package that contains a process flow with complex condition in a transition?
    thank you in advance for any suggestions.
    Jue.
    Edited by: Jue on 20 juil. 2011 05:06

    If I get what you said, then you have 2 enumerated and one complex condition?
    Rules for Valid Transitions
    For a transition to be valid, it must conform to the following rules:
    All activities, apart from START and END, must have at least one incoming transition.
    Only the AND and OR activities can have more than one incoming transition.
    Only a FORK activity can have more than one unconditional outgoing transition.
    A FORK activity can have only unconditional outgoing transitions.
    An activity that has an enumerated set of outcomes must have either an outgoing transition for each possible outcome or an unconditional outgoing transition.
    An activity can have zero or more outgoing complex expression transitions.
    An activity, with an outgoing complex expression transition, must have an unconditional outgoing transition.
    An END_LOOP transition must have only one unconditional transition to its associated FOR_LOOP or WHILE_LOOP activity.
    The transition taken by the exit outcome of a FOR_LOOP or WHILE_LOOP must not connect to an activity that could be carried on as a result of the "loop."

  • Set complex condition of process flow transition by OMB skript

    Hi,
    i would like to set a complex condition for a process flow transition with OMB+.
    If i use:
    OMBALTER PROCESS_FLOW 'somename' ADD TRANSITION 'yyy' FROM ACTIVITY 'a' to 'b' SET PROPERTIES (TRANSITION_CONDITION) VALUES ('some complex condition')
    the skript sets the condition but the radiobutton within the transition condition editor still point to 'Enumerated Condition' and the complex condition editor sheet, where my condition should be printed is empty. But the Object details within the Process editor shows my condition correct.
    We use 11gR1 11.1.0.7.0 (OWB & DB).
    Has anybody a clue if i am able to set the transitioncondition to COMPLEX ? Or is it a bug ?
    Your Help is appreciated, thanks
    Thomas

    Hi Thomas
    You use the property COMPLEX_CONDITION on the activity for complex transition condition expressions.
    Cheers
    David

  • Complex condition in process flow transition

    From a mapping i have three outgoing transitions:
    1: "KM_UTIL_PKG"."GETTESTMODE"() = 0
    2: "KM_UTIL_PKG"."GETTESTMODE"() = 1
    3: unconditional
    the process flow validates ok, deploys ok but when it is executed the error message is :
    ORA-06550: line 1, column 1085: PLS-00201: identifier 'KM_UTIL_PKG.GETTESTMODE' must be declared ORA-06550: line 1, column 1058: PL/SQL: Statement ignored.
    Although the function is there.
    What am i doing wrong ?. Has anyone an example of the expected syntax in the transition condition editor > complex condition window ?
    Ron

    Try giving just = 0 and = 1 without the function call, as the function call is already appended in the where clause.
    For example I was able to make it work by just giving IS NULL and IS NOT NULL.
    Also there is VALIDATE button within the window where we give the complex condition. Try to validate the condition there itself.
    Best,
    Manohar

  • Complex condition in OWB

    Hi ,
    I have designed the process flow where i have a plsql transformation which is further connected to route activity, route has to take decision if the plsql transformation value is 'yes' then run the mapping else route the other flow which will run the status procedure to log the message of the end of activity.
    procedure------route----1 to end the activity and log 2, run the mapping based ok plsql return value.
    I tried to use complex condition but it says the return value should be declare.
    how can i use the retun value in complex condition

    If you configure the process flow and go to Transformation Activities and your PLSQL transformation, keep expanding under Execution Settings there is a property 'Use return as Status', by default this is false, change to true and you can use a PLSQL function return value as a value to test in expressions.
    Cheers
    David

  • Experts VS Process Flows on OWB 10g Release 2 (Paris)

    I was looking at the the new features list for OWB 10g Release 2 (Paris), and I notices the new feature called Experts. Does anyone have any insight into when an Expert would be used instead of a Process Flow? It doesn't look like Process Flows are going away, so I was trying to get a grasp of the use for Experts.
    From Here:
    http://www.oracle.com/technology/products/warehouse/htdocs/owb10gr2%20new%20features.htm
    Experts. Experts are solutions that enable advanced users to design solutions that simplify routine or complex tasks that end users perform in Warehouse Builder. You can design these solutions in the Expert Editor which resembles the Process Flow Editor and shares many of the same commands and navigational tools.

    Hi,
    Just to start with the Experts capabilities, they can be used for designing schema objects.......I tried with an expert for sampling the source files, creating External Tables on top of it....validating and deploying..........itz very interesting to work with.........I am unable to see the practical use of this for end users.....
    where as we all know, the PF can only be for executing the deployed objects.....
    Mahesh

  • New licensing for OWB 10g R2 (Paris)

    Hi,
    Does anyone know how much the new licenses (per DB server CPU) for OWB 10g R2 (Paris) cost?
    Is it correct that the features for the modeling of SCD 1 and 2 are not included in the basic "Core ETL Features"?
    If I'm using the the SCD 2 features to develop the OWB mappings do I also need to license the "Enterprise ETL" for the production server?
    Related to the previous question: for the production DB where I only need the runtime part of the repository is it required to license any options?
    Regards
    Maurice
    PS: 2 links related to these questions:
    http://www.rittman.net/archives/2006/05/owb_10g_release_2_now_availabl.html
    http://www.oracle.com/technology/products/warehouse/htdocs/owb_10gr2_faq.htm#HowisOWBPackaged

    Maurice, not sure what to say. If you've been using OWB, then you don't lose any functionality going to the new version, and it will be "free". You simply won't get any of the new functionality (all of the old functionality is included in the "core" features)
    However, as I said in the other post, I hope Oracle reconsiders the SCD 1 / 2 / 3 licensing. To me, SCD type 2 are not "enterprise level" functionality - that is base level functionality for ANY data mart or data warehouse. I have no problems with paying for options the other ETL vendors are charging for (data quality comes to mind...), but if we deploy a large DW on a 32 processor box, paying for the Oracle licenses AND an addition $300,000+ for OWB functionality just to simplify SCD type 2, seems WAY overkill. Actually, in our project, we had pretty much settled on Oracle as the RDBMS for our DW, but if OWB is up in the air, we will probably open this up for an RFQ.
    Scott

  • When will the new OWB 10g release 2 be available?

    HI...
    I would like to know if there is a timetable to
    download in the OTN site about the new version of OWB 10g release 2..
    I saw the the new version of this tool last year in the Oracle Open World and I am very curious to do some test and implement in our production environment.
    We are using OWB 10.1.0.2..
    Thanks
    Flavia Soares Silveira
    Scania Latin America ltda

    Good morning Tracy,
    According to Oracle OWB is going to be part of Oracle Business Intelligence... at some stage in the future.
    Right now BI10g consists of the following (check link at http://www.oracle.com/technology/software/index.html):
    Oracle Business Intelligence
    ... Oracle Business Intelligence Discoverer
    ... Oracle HTTP Server
    ... Oracle Application Server Containers for J2EE (OC4J)
    ... Oracle Enterprise Manager 10g Application Server Control
    ... Oracle Application Server Web Cache
    No OWB10gR2 as you can see.
    Metalink rang me earlier this week for some TAR, and they were hoping to see OWB10gR2 released this year... this implies that we have to count ourselves lucky if that means december. At the moment they're working hard to get a stable product out, guess there are more serious bugs to solve than they had anticipated on previously.
    Cheers, Patrick

  • OWB 10g Release 2 from 32 bit to 64 bit on Linux

    Hi guys,
    I have a client who is planning to migrate their Linux server from 32 bit to 64 bit and migrate their Oracle database from 10.2.0.3 from 32 bit server to 10.2.0.3 from 64 bit server.
    We have OWB 10g Release 2 (10.2.0.3) installed in the 32 bit server.
    Our DBA is planning to move the entire database to the new server including the OWB repositories.
    My question is,
    Will the following work?
    1. Install the OWB 10g Release 2 (10.2.0.3 or 10.2.0.4) 64 bit in the new 64 bit Linux 64 bit server
    2. Remove all the OWB repository user schemas & roles from the database where OWB is installed
    3. Install the OWB repository in the new 64 bit server
    4. Import the .mdl backup of the project from existing OWB 32 bit to the new OWB 64 bit server
    5. Configure the project with the new server
    OR
    Since our DBA is planning to move the entire database to the new server including the OWB repositories
    1. Install the OWB 10g Release 2 (10.2.0.3) 64 bit in the new 64 bit Linux 64 bit server
    Will I be able to access my repository that is migrated from the 32 bit server (avoiding the installation of OWB repository and importing the project and configuring the whole project in the new server) ?
    Please someone shed some light on this. Your help is appreciated
    Thanks in advance....
    Edited by: user528846 on Feb 11, 2010 11:59 AM
    Edited by: user528846 on Feb 11, 2010 11:59 AM

    Does this mean, ... we have to install the OWB 64 bit and install a new repository in the 64 bit server?In my opinion you don't need to create new repository.
    After migrating database to 64bit perform steps from Metalink note 434272.1 "How To Update Warehouse Builder 10.2 After A Database Cloning".
    It is better to save the same path for new OWB 64bit software. If you install OWB into different path you need to update OWBRTPS table with new path to OWB software (look at metalink note 550271.1).
    Regards,
    Oleg

  • OWB 10g repository assistants no longer work on 10.3.0.1 win2003

    Just posted this to the database forum... oops.... now that I'm in the right spot...
    I just installed Oracle 10.2.0.1 for win2k3 and OWB 10g. With 10.1.xxx the design and runtime reporitory assistants worked fine building their respective schemas, but with the new database release, they tell me that sys and system (and any other user with dba priv's) need to have dba priv's. Is this a known bug in the new release for winsrv?

    From Metalink note 332371.1:
    The OWB 10.1.0.2 and 10.1.0.3 versions are not certified with the 10gR2 database.
    A complete 10gR2 certification will be available for the OWB 10.1.0.4 patch.
    You will need to wait for the release of the 10.1.0.4 OWB patch or use and earlier version of the Database.

  • SCD type 2 in OWB 10g R2

    Hello,
    I am trying out the SCD type 2 in OWB 10g R2. I have no hierarchies and hence created a dimension with one level. Apart from three business attributes I have 2 mandatory attributes as "EFFECTIVE_DATE" and "EXPIRY_DATE". I have set one of the business attributes to "Trigger History".
    I have 3000 rows in the source table. There is no transformation. the data is loaded from source to this dimension directly. One business attribute is loaded using a constant.
    When I executed the mapping, all 3000 rows are populated in the target with the expiry date column having null values and current date in the effective date, which is absolutely fine. When I execute the mapping again without changing anything in the source, rows are inserted in to the target with the effective date set to the second run and the expiry date set to previous effective date. As I understand new rows should be inserted only if there is change in the data.
    Please correct me if I am wrong. Please clarify and if my understanding is right where am I doing wrong with OWB?
    Your help is greatly appreciated
    Thanks a lot on advance!
    Regards,
    Maruthi

    Hi Roelant,
    I think it is important to be aware that although Paris - 10gR2 - is not actually buggy (in this respect!), it is really quite idiosyncratic in exactly how it processes SCDs.
    I followed up on your and Mark's comments, and did an in depth analysis of this topic. It is at http://www.donnapkelly.pwp.blueyonder.co.uk/documents/OWB_10gR2_SCD.pdf
    My conclusions are perhaps of interest to anyone considering doing SCD processing with Paris.
    I'll be doing a follow-up this weekend, and publishing a sort of 'how-to-do-it' guide.
    Cheers,
    Donna
    Message was edited to add the words: "in this respect"

  • OWB 10G R2 with 9.2 DB....

    At my company the standard for databases is still 9.2. Since this is a large organization, we are a little slow to adopt the latest versions (we are still running OWB 9.2.0.8).
    According to the FAQ, Design repositories for OWB 10g R2 can be setup on a 9.2 DB.
    http://www.oracle.com/technology/products/warehouse/htdocs/owb_10gr2_faq.html#37
    In the FAQ, it also says to look at the Certify page in Metalink to see what databases are supported by OWB 10g R2:
    http://www.oracle.com/technology/products/warehouse/htdocs/owb_10gr2_faq.html#35
    In the Certify page, only 10g R2 DB appears to be certified for OWB 10g R2.
    Is anyone running OWB 10g R2 with 9.2 DB (for both Design and Runtime environments)? Any problems with this setup?
    Since OWB 10g R2 is a new release, could it be certified for 9.2 DB later?
    Since it is not certified for 9.2 DB, will Oracle give support if we run into problems?
    I thought one of the major advantages of OWB was suppose to be compatibility between database versions. I was surprised not to see that 9.2 was not certified.

    Hi,
    You can have OWB 10G R2 on Oracle 9.2.
    We are using OWB 10G R2 on Oracle 9.2.
    I have done instalation on both Windows and Unix environment.
    What you need is patch 9.2.0.6.0
    Regards
    Amit
    9820579749

  • OWB 10g -- Can't Create Database Links for Data Source and Target

    We installed OWB 10g server components on a Unix box running Oracle 10g (R2) database. The Designer Repository is in one instance. The Runtime Repository and the Target are in another instance. The OWB client component was installed on Windows XP. We create a data source module and a target module in OWB. The data source is on another Unix box running Oracle 9i (R2) database. We try to create database links for data source module and target module, respective. But when we created and tested the DB links, the DB links were failed.
    For the database link of data source, we got the following error message:
    Testing...
    Failed.
    SQL Exception
    Repository Error:SQL Exception..
    Class Name: CacheMediator.
    Method Name: getDDEntryFromDB.
    Repository Error Message: ORA-12170: TNS:Connect timeout occurred
    For the database link of target , we got the following error message:
    Testing...
    Failed.
    API2215: Cannot create database link. Please contact Oracle Support with the stack trace and the details on how to reproduce it.
    Repository 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-00933: SQL command not properly ended.
    However, we could connect to the two databases (data source and target) using the OWB’s utility SQL Plus.
    Please help us to solve this problem. Thank you.

    As I said prior the database link creation should work from within the OWB client (also in 10).
    Regarding your issue when deploying, have you registered your target locations in the deployment manager and did you first deployed your target location's connector which points out to your source?
    I myself had some problems with database link creations in the past and I can't remember exactly what they were but it had something to do with
    - the use of abnormal characters in the database link name
    - long domain name used in as names.default_domain in my sqlnet.ora file
    What you can do is check the actual script created when deploying the database link so see if there's something strange and check if executing the created script manually works or not.

  • Errors in demo project OWP_BP in OWB 10g

    Hi,
    there are several errors in the demo project OWB_BP in the OWB 10g-directory <OWB_HOME>/owb/misc/time.
    1.) In the mapping TF_Time_Map there's a unlegal default value for the attribute startDate of the Map Input Parameter: '01-Jan-95'. The following table function TIMEDATA expects a value in the format 'dd-mon-yyyy', so the mappinmg makes a dataset beginning on '01-Jan-0095'!
    2.) The readme-file says you should load the table function, the sequences, types etc. into the runtime repository - but you need them in the target schema!
    3.) The dimension T_TIME has the levels day, month, quarter and year und OWB makes for every ID of a level a unique key constraint for the index. In the table function TIMEDATA you have more than one dataset with the same ID in the dimension table, because all days of Januar 1995 have the same month_id, quarter_id and year_id. Because of that the mapping stops with many errors: ORA-00001: Unique Constraint (ZUZ_TARGET.TTIME_L_YEAR_UK) violation and only one record is imported to the dimension table.
    Can anybody tell me how I can resolve the Unique Constraint (ZUZ_TARGET.TTIME_L_YEAR_UK) violation?
    Thanks,
    Detlef

    Detlef,
    You are correct on all three. The most significant problem #3 has been discussed on this forum before and the updated version of the function that fixes the issue is here OLAP dimension level constraints
    Nikolai Rochnik

  • A decent documentation for OWB 10g R2

    Hi All,
    Is there any place where there is a proper documentation of the above release? OWB 10g R1 has documentation in OTN site but is there any specific OWB 10g r2 documentation in OTN ??
    Regards
    -AP

    Hi,
    the level of the docs is not consistent: sometimes you'll find truly good explanations, in other places there is not more than a step by step description of trivial operations. But the real desaster is the Scripting manual. It looks generated by a machine and never formatted by a human being. The examples are poor. Each OMB script or expert is a new expedition to unknown places. You must be really good in guessing and trying. But it has one advantage. When your expert succeeds finally, you'll feel good and happy ...
    I hope that an expert will be found who will give us a more usable reference in order to promote this powerful tool.
    regards
    Thomas

Maybe you are looking for

  • How to break the output in a function

    Hi All, I am using oracle Db 10g I have write a function to get the output of Expire date and pass this function to Alert in oracle. My Function is Like this create or replace function Expiry_alert (P_EXPIRY_DATE date) return VARCHAR2 IS lv_return_va

  • Cannot log out or restart

    This began last night, but even after being left alone all night, my Macbook Pro will not let me log out or restart. I should add that I looked at Activity Monitor, and can't see anything much going on. Here is the error message:

  • Order of execution for event listeners..??

    Hi there, Looking at the JDK source, I see that all classes that generate events, iterate through the listeners in reverse order. What is more, they start at size - 2. I am first, confused as to why it goes in this direction, and second, why size - 2

  • How can i find the fields for &DOPOS_CPY-WRBT1(I13.0)&

    Hi All, In sapscripts, what is the meaning for (13.0)? how can i find the fields for &DOPOS_CPY-WRBT1(I13.0)&? Thanks.

  • Are there any Canon all-in-one printers compatible with Yosemite v.10.10 and Windows 7?

    My current Canon Pixma MX850 printer just died. I'm looking for an All-in-One, preferably Canon, printer that is compatible with Yosemite version 10.10 and Windows 7. I have spent this weekend researching with no matches.  They all cover v.10.9 but n