Mapping sensor data to process flows

Hi,
I´ve implemented a sensor-action that uses a JMS-queue to report its data. I´ve specified a few sensors in the process I´m calling as well as all processes called by that first one.
This is ment to monitor the process workflow resulting in a graph that represents the flow of the different processes visited.
To get to the point: when that first process is called twice (or even more often) at a time I get a whole bunch of sensor data, but cannot distinquish their origin - either from the first flow or the second one. Since I´m using not only one process I cannot use the instance-id as a reference. I was thinking of passing sort of a generated id (timestamp) through all processes.
Any ideas or suggestions?
Thanks in advance,
Max

You can use a wrl file with the 3D picture control. How you map your values is optional. I have used color coded sphere at the locations of interest.
Have fun,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • OWB11gR2: Mapping execution in a process flow not visible in OWB Browser

    When a mapping is executed inside a process flow, execution details are not visible in OWB Repository Browser (Control Center reports) - rows processed, errors etc. Mapping row is missing in a log, like it never happened (but it did).
    This auditing information is very important for monitoring reasons (to our customers also) and I just don't get it how this functionality is lost with this version. Another serious bug?

    Hi David,
    I was rather tired and frustrated last evening, so today I noticed some things I didn't yesterday. Your reply gave me a new motivation.
    The conclusion is - a mapping execution in a process flow is logged, but the way activities are displayed in OWB Browser are now different than in previous versions. If I click on 'Execution Job Report' on a process flow, I see all the activities listed except mappings (transformations, assign, file exists, subprocess etc.). If I want to see mapping execution row, I must click on a plus (expand) sign.
    This kind of behavior will make processes with a complex hierarchy (usually we have more than 5 levels of subprocesses) rather vast to monitor. In 10gR2, a drilling down was accomplished by opening a new browser tab (Execution Job Report link) for each subprocess/mapping activity. Now it shall remain on one huge screen (list) that keeps expanding.
    But, if that is the new feature, we shall live with that. If our customers won't like it, they will have to get used to it.
    Thank you for your reply!

  • Can I pass a parameter to a mapping without using a process flow?

    I have to load data from multiple countries at different times. Rather than creating an individual mapping for each country, I want to create 1 mapping and pass the country code as a parameter to the mapping. I tried to use an input parameter in the mapping and add a custom parameter to the sqlplus_exec_template hoping the custom parameter would pass to the mapping input parameter but it's not working. No data loads.
    When I add a default value to the input parameter, the data loads but this isn't the solution I need. The value of the parameter will vary depending on the country so I can't use defaults. Since the mappings load automatically, I need the script to be able to pass the parameter in.
    I'm trying to avoid going through a process flow because that just seems like overkill for what I need to do. I just want to load all the data where country code = 'X'. Is this even possible?

    o.k. I tried everything to see which would be the best scenario.
    Zeppo - I can't use your solution because ".main", I believe, applies to an older version of OWB. We have 10g. I know in 3.1 ".main" applies because I still have mappings from that version. Doesn't apply to 10g.
    Sutirtha - I set the property for the prompt but it still didn't work.
    MccM - Yes, the premapping process works perfectly. Only thing is that I have to come up with so many different scenarios in the If then else logic. Giving me a migraine ...
    .... so ....
    I punked out and created a table that stores all of the load times by country code. In the joiner, I linked the table's country code to the country code in my view and only retrieved data where the table's load hour equals the sysdate hour. Now all I have to do is change an entry in the working table if I need to reschedule a load.
    It's cluggy but it works ... and I met me goal of only using 1 mapping.
    Thanks to all of you for providing your input. Much appreciated.

  • 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 bind mapping input parameter in process flow using OMB Plus

    Hi
    I have created a process flow with a mapping.
    This mapping has a input parameter, that I want to bind to a variable using OMBPlus
    OMBALTER PROCESS_FLOW '$process' MODIFY PARAMETER 'P_EOD_DATE_IN' SET PROPERTIES (BINDING) VALUES ('V_EOD_DATE') does not work as P_EOD_DATE is NOT a process parameter
    neither does
    OMBALTER PROCESS_FLOW '$process' MODIFY PARAMETER '$mapname/P_EOD_DATE_IN' SET PROPERTIES (BINDING) VALUES ('V_EOD_DATE') as the reference '$mapname/P_EOD_DATE_IN' is not valid.
    Any suggestions ?
    Best Regards
    Klaus

    Hi Klaus,
    look here {thread:id=640397}
    Regards,
    oleg

  • Assigning today's date to process flow start actvity

    Hi,
    I am trying to assign today's date to my process flow which will be used as a common load date for multiple transformations within the process flow. I'm at a loss on how to do this. Any help would be appreciated.
    Thanks

    You can add variable to the start acitivity or create stand alone variable(global for Process Flow) in the left side panel (where you see selected objects/events) and give the value of the variable as sysdate. Make sure the Literal property is set to false meaning it is not literally SYSDATE but the value of sysdate.
    It worked for me.
    - Manohar

  • Mapping is not run after adding to existing Process Flow

    I am about to scream.
    I have a process flow that has been running fine.
    I added a mapping to the existing process flow, deployed the process flow, and now when I run the process flow it will not run the new added mapping.
    What gives? I am going to recreate the process flow, but I will not recreate a new process flow everytime I add a mapping to it.
    What am I doing wrong.
    thanks for any help.
    greG

    Oleg,
    Thanks so much for all the help. I read the other posts and checked my mapping but nothing helped.
    I had to put a transition line directly from the fork to my new process and it worked.
    I think it was kind of a logic error on my part.
    I forgot had all my maps that were called from the Fork just going straight to either Error Warning or Success endpoints.
    I tried to add another process after one of the mappings.
    I forgot that to do that I would have to "OR" up all the transitions coming from the forked maps.
    Then proceed from there.

  • Conversion error in process flow

    I've build a process flow with the following construction
    1. Function call (DB) which returns a date via a OUT parameter (Checked)
    2. Bound the OUT parameter to a Process-flow parameter of type date
    3. Use the proces-flow parameter to bind a input parameter in a following mapping.
    All is well in validation, generation and deployment, but upon running I stumble onto a conversion error. Somehow the process-flow parameter is represented in a format (2006-09-21 00:00:00.000000000 +02:00) which is not accepted in the mapping (tries to convert it using 'yyyy-mm-dd'). I cannot find the conversion in the coding.
    I've tried to see if either in the mapping or in the process-flow I'm able to input the format of the date, but was not successful.
    Anyone any idea

    Chris,
    Looks like a request has not got deleted properly from the table :
    Options that you could look at :
    1. Delete all the data from the ODS and load again ( if that is an option )
    2. There are some entries you need to delete from the RSODSACTREQ table- but for this the suggestion would be to raise an OSS note for SAP to look into the same - we had a similar issue and raised an OSS note for the same and then got some notes from sap.
    Also please mention your BI version and patch level.
    Arun

  • OWB 10.1 -- How to make a JOB agains a process flow.

    Dear All
    I have created mapping and make a process flow. Deploy and generation done successfully.
    If i execute my process flow it whole bring data from source table to detination warehouse schema table.
    I want this process automate and run it daily at a given time. I do not get any control centre or other utility from OWB wheren I can make a job or schedule to achieve this goal. My OWB version is 10.1.
    Regards
    Sayeed

    Follow the below step to schedule mapping
    1.Define the Scheduler
    2. Right Click on Schedule tab -> New and define the module say Sche_mod
    3.Right Clicvk on Sche_mod ->New
    Filll all the details like when to run ther schedule say every sunday
    2.Right click the mapping or process flow which ever to schedule
    under Configure > Refered Calendar select the schedular name.
    3 Deloy the mapping .
    4.Deploy the Sechdular then run the scheduler.
    then every sunday the mapping/process flow will be executed.
    (Mark the answer as helpful or correct if it is)
    Cheers
    Nawneet

  • Alternative to process flow

    Hi!
    I have a scenario which looks like it should be implemented with a process flow, but it requires a workflow server and I don`t want to go that way for the moment.
    I want to call a stored procedure in the source schema, which populates a temporary table in the source schema. Then I just want to map this temporary table to a cube in the target schema.
    This can`t work with a pre-mapping processor because the procedure doesn`t have any input or output parameters. It just reads some data from a table, does some processing and then populates the temporary table with the result.
    The (temporary) table is necessary because the generated data are huge (about 2.500.000 rows).
    Do I have any other options to execute this mapping, except for the process flow?
    Thank you,
    Yorgos

    Yorgos,
    Any mapping can be invoked through PLSQL. You can do it as described in http://www.oracle.com/technology/products/warehouse/sdk/web_services/ws_single_record.html
    So, instead of process flow you will have PLSQL wrapper that calls other stored procedures with your logic.
    The pseudo code for the wrapper may look like the one below:
    begin
    Populate temp table
    Call OWB mapping that populates cube.
    Other stuff (clean up)
    End
    In the earlier thread we were discussing how to pack multiple workflows together
    Calling Process Flows from other projects
    You can use the same scenario but think mapping when we say workflow.
    Vladimir

  • Replace mappings in Process Flows

    Hi,
    Is there an easy way of replacing an existing mapping ina PF with new version of the same?
    thanks
    mahesh

    OK, here is some sample code you can play with. What it does is drop the mapping activity from the process flow and then replace it with a fresh version, rebuilding parameters and transitions.
    I used an additional DB connection to query for problem activities. You can see the logic in the $v_mapquery query: alter this if you need something different. This is much faster then using pure scripting: there would problems of RAM and speed while scanning all process flows using OMBPlus.
    So I cache all the needed info in some lists and then print/reconcile it.
    Having an extra open connection can cause some concurrency problems, but this was designed to run batch and send back an e-mail with results.
    Some extra notes:
    1-if a mapping is dropped I print the unbound activity but can't reconcile it
    2-activities are replaced so they will be out of position when you enter the process flow editor
    2-there was a bug in scripting related to SQLLoader mappings. I don't know if this has been fixed; so you can have problems with these.
    The following 3 procedures cache the process flow info.
    # Retrieve transitions of a proc. flow activity
    proc get_map_pf_transitions {\
         p_conn \
         p_process_flow_id \
         p_map_activity_id \
         p_pf_act_trans
         upvar $p_pf_act_trans v_pf_act_trans
         set v_query "select
         cast(decode (tr.source_activity_id, ?, 'OUTGOING','INCOMING') as varchar2(50)) TRANSITION_DIRECTION,
    process_id, process_name,
      transition_id, transition_name, business_name, description, condition,
                           source_activity_id, source_activity_name,
                            target_activity_id, target_activity_name
    from all_iv_process_transitions tr
           where tr.process_id = ?
           and (tr.source_activity_id = ?
                  or tr.target_activity_id = ?)
                order by source_activity_id";     
         set v_stmt [ $p_conn prepareCall $v_query ]
         $v_stmt {setLong int long} 1 $p_map_activity_id
         $v_stmt {setLong int long} 2 $p_process_flow_id
         $v_stmt {setLong int long} 3 $p_map_activity_id
         $v_stmt {setLong int long} 4 $p_map_activity_id
         set v_resultset [ $v_stmt  executeQuery ]
         # set to -1 so it goes to 0 when entering loop
         set v_transindex -1
         set v_temptran [list ]
         while { [ $v_resultset next ] == 1  } {
             incr v_transindex;
             lappend v_temptran \
                  [ list \
                       [$v_resultset getString TRANSITION_NAME] \
                       [$v_resultset getString DESCRIPTION] \
                       [$v_resultset getString CONDITION] \
                       [$v_resultset getString TRANSITION_DIRECTION] \
                       [$v_resultset getString SOURCE_ACTIVITY_NAME] \
                       [$v_resultset getString TARGET_ACTIVITY_NAME] \
        lappend v_pf_act_trans $v_temptran
    # Retrieve parameters of a proc. flow mapping
    proc get_map_pf_parameters {\
         p_conn \
         p_map_activity_id \
         p_pf_act_parameters
         upvar $p_pf_act_parameters v_pf_act_parameters
         set v_query "select
         parameter_owner_id, parameter_owner_name,
         PARAMETER_OWNER_ID, PARAMETER_NAME, DATA_TYPE, DEFAULT_VALUE parameter_value,
         BUSINESS_NAME, DESCRIPTION
         from ALL_IV_PROCESS_PARAMETERS pa
           where pa.parameter_owner_id = ?";     
         set v_stmt [ $p_conn prepareCall $v_query ]
         $v_stmt {setLong int long} 1 $p_map_activity_id
         set v_resultset [ $v_stmt  executeQuery ]
         # set to -1 so it goes to 0 when entering loop
         set v_paramindex -1
         set v_tempparam [list ]
         while { [ $v_resultset next ] == 1  } {
             incr v_paramindex;
             lappend v_tempparam \
                  [ list \
                       [$v_resultset getString PARAMETER_NAME] \
                       [$v_resultset getString DATA_TYPE] \
                       [$v_resultset getString PARAMETER_VALUE] \
                       [$v_resultset getString DESCRIPTION] \
        lappend v_pf_act_parameters $v_tempparam
    # Retrieve and cache all info needed to upgrade process flows
    # all parameters are lists which are appended, except the connection
    proc get_map_pf_unbound { \
         p_conn \
         p_upd_types \
         p_maps \
         p_pf_paths \
         p_pf_proc_names \
         p_pf_act_names \
         p_pf_act_parameters \
         p_pf_act_trans
         upvar $p_upd_types v_upd_types
         upvar $p_maps v_maps
         upvar $p_pf_paths v_pf_paths
         upvar $p_pf_proc_names v_pf_proc_names
         upvar $p_pf_act_names v_pf_act_names
         upvar $p_pf_act_parameters v_pf_act_parameters
         upvar $p_pf_act_trans v_pf_act_trans
    # query to retrieve unbound mappings (actually, I use views in the DB ... )
         set v_mapquery "with proc_maps as (
          select
       '/'||md.project_name||'/'|| information_system_name || '/' ||
                                pk.package_name pf_fqual_procpath,
       md.project_id pf_project_id,
       md.project_name pf_project_name,
       md.information_system_id pf_module_id,
       md.information_system_name pf_module_name,
       pk.package_id pf_package_id,
       pk.package_name pf_package_name,
       pr.process_id pf_process_id,
       pr.process_name pf_process_name,
       a.activity_id pf_activity_id,
       a.activity_name pf_activity_name,
       a.business_name pf_act_business_name,
       a.description pf_act_description,
       a.activity_type pf_act_activity_type,
       a.bound_object_id pf_act_bound_object_id,
       a.bound_object_name pf_act_bound_object_name
        from all_iv_process_activities a,
                                     all_iv_processes pr,
                                all_iv_packages pk,
                                all_iv_process_modules md
                 where
                 a.activity_type in (
                    'PlSqlMapProcessNoteTag', /* type for PLSQL mappings */
                    'SqlLdrProcessNoteTag' /* SQLLOADER mappings */)
                 and a.process_id = pr.process_id
                 and pk.package_id = pr.package_id
                 and md.INFORMATION_SYSTEM_ID = pk.schema_id
      maps as (
           select
         '/'||md.project_name||'/'||md.information_system_name||
         '/'||  mp.MAP_NAME mp_fqual_mapname,
           md.PROJECT_ID mp_project_id,
           md.PROJECT_NAME mp_project_name,
           md.INFORMATION_SYSTEM_ID mp_module_id,
           md.INFORMATION_SYSTEM_NAME mp_module_name,
           mp.MAP_ID mp_map_id,
           mp.MAP_NAME mp_map_name,
           mp.BUSINESS_NAME MP_BUSINESS_NAME ,
           mp.DESCRIPTION MP_DESCRIPTION
            from all_iv_xform_maps mp,
                      all_iv_information_systems md
                    where mp.INFORMATION_SYSTEM_ID = md.INFORMATION_SYSTEM_ID
    select * from (
    /* case 1: mapping name has changed */
    select
      '1-CHANGEDNAME' changetype,
    a.*,m.* from proc_maps a, maps m
                    where a.pf_act_bound_object_id = m.mp_map_id
                      and a.pf_act_bound_object_name <> m.mp_map_name
                      union all
    /* case 2: there's a new mapping with the old name... I'll reconcile only if
       the old mapping was dropped: otherwise you'll be in case 1:
       IMPORTANT- NOTE: I'll reconcile with a new mapping with the same name even
                      if found in a different module.
    select
      '2-REPLACED' changetype,
    a.*,mnew.* from proc_maps a,
                                     maps mnew,
                                maps mold
                    where a.pf_act_bound_object_id <> mnew.mp_map_id
                 and a.pf_act_bound_object_name = mnew.mp_map_name
                 /* verify that mapping is in the current project */
                 and mnew.mp_project_id = a.pf_project_id
                 and a.pf_act_bound_object_id = mold.mp_map_id (+)
                 and mold.mp_map_id is null
                         union all
    /* case 3: no matching mapping. I'll warn the user that the activity is not bound nor bindable */
       select
       '3-MISSING' changetype,
       a.*,mnew.* from proc_maps a, maps mnew, maps mold
                    where
                     a.pf_act_bound_object_name = mnew.mp_map_name (+)
                 and a.pf_project_id = mnew.mp_project_id (+)
                 and a.pf_act_bound_object_id = mold.mp_map_id (+)
                 and mnew.mp_map_id is null
                 and mold.mp_map_id is null)
                 order by changetype, pf_fqual_procpath, pf_process_name, pf_activity_name";
    # query to retrieve connections between pflow activities
         set v_transquery "select
    process_id, process_name,
      transition_id, transition_name, business_name, description, condition,
                           source_activity_id, source_activity_name,
                            target_activity_id, target_activity_name
    from all_iv_process_transitions tr
           where tr.process_id = ?
           and (tr.source_activity_id = ?
                  or tr.target_activity_id = ?)
                order by source_activity_id";
         set v_mapstmt [ $p_conn prepareCall $v_mapquery ]
         set v_resultset [ $v_mapstmt  executeQuery ]
         # set to -1 so it goes to 0 when entering loop
         set v_mapindex -1
         while { [ $v_resultset next ] == 1  } {
             incr v_mapindex;
             lappend v_upd_types [$v_resultset getString CHANGETYPE]
             set v_fqualmapname [$v_resultset getString MP_FQUAL_MAPNAME]
             lappend v_maps $v_fqualmapname
             set v_pf_activity_id [$v_resultset getLong PF_ACTIVITY_ID]
             set v_pf_process_id [$v_resultset getLong PF_PROCESS_ID]
              lappend v_pf_paths [$v_resultset getString PF_FQUAL_PROCPATH]
              lappend v_pf_proc_names [$v_resultset getString PF_PROCESS_NAME]
              lappend v_pf_act_names [$v_resultset getString PF_ACTIVITY_NAME]
              puts "Retrieving activity parameters...";
              get_map_pf_parameters $p_conn $v_pf_activity_id $p_pf_act_parameters
              puts "Retrieving activity transitions...";
              get_map_pf_transitions $p_conn $v_pf_process_id $v_pf_activity_id $p_pf_act_trans
    #          lappend v_pf_act_properties
    #          lappend v_pf_act_trans
               puts "All data retrieved for activity:";
               puts "[lindex $v_pf_paths $v_mapindex]/[lindex $v_pf_proc_names $v_mapindex]/[lindex $v_pf_act_names $v_mapindex]";     
               puts "Type: [lindex $v_upd_types $v_mapindex]";
    }And here's some example client code to load problem activities info, print it and reconcile (replace) activities.
    # open extra connection to access OWB public views
    set v_connstr "OWBREP/[email protected]:1521:ORCL"
    set v_jdbcconnstr "jdbc:oracle:thin:$p_connstr"
    java::call java.sql.DriverManager registerDriver [java::new oracle.jdbc.OracleDriver ]
    set v_conn [java::call java.sql.DriverManager getConnection $v_jdbcconnstr ]
    # retrieve and cache activity data
    set v_upd_types [list ]
    set v_maps [list ]
    set v_pf_paths [list ]
    set v_pf_proc_names [list ]
    set v_pf_act_names [list ]
    # activity parameters - will be a nested list
    set v_pf_act_parameters [list ]
    # activity transitions - will be a nested list
    set v_pf_act_trans [list ]
    get_map_pf_unbound $v_conn \
    v_upd_types \
    v_maps \
    v_pf_paths \
    v_pf_proc_names \
    v_pf_act_names \
    v_pf_act_parameters \
    v_pf_act_trans \
    $v_conn close
    #print results
    foreach \
         v_upd_type $v_upd_types \
         v_map $v_maps \
         v_pf_path $v_pf_paths \
         v_pf_proc_name $v_pf_proc_names \
         v_pf_act_name $v_pf_act_names \
         v_pf_act_parameterz $v_pf_act_parameters \
         v_pf_act_tranz $v_pf_act_trans \
         puts "*** Reconcile type: $v_upd_type";
         puts "Activity: $v_pf_path/$v_pf_proc_name/$v_pf_act_name"
         puts "Candidate mapping: $v_map"
    # types of activities I can reconcile
    set v_reconc_possible_types [ list "1-CHANGEDNAME" "2-REPLACED" ]
    set v_currentpath ""
    OMBCONN $v_connstr
    #reconcile
    foreach \
         v_upd_type $v_upd_types \
         v_map $v_maps \
         v_pf_path $v_pf_paths \
         v_pf_proc_name $v_pf_proc_names \
         v_pf_act_name $v_pf_act_names \
         v_pf_act_parameterz $v_pf_act_parameters \
         v_pf_act_tranz $v_pf_act_trans \
         if { [lsearch $v_reconc_possible_types $v_upd_type ] == -1 } {
         # skip non-reconcilable activities
              continue;
         puts "Reconciling  $v_pf_path/$v_pf_proc_name/$v_pf_act_name "
         puts "with mapping $v_map ..."     
         if { $v_pf_path != $v_currentpath } {
              OMBCC '$v_pf_path'
              set v_currentpath $v_pf_path     
         # drop and replace activity
         puts "Dropping activity...";
         OMBALTER PROCESS_FLOW '$v_pf_proc_name' \
              DELETE ACTIVITY '$v_pf_act_name';
         puts "Re-creating activity...";     
         # don't change activity name - maybe should inherit mapping name (if no collisions)
         OMBALTER PROCESS_FLOW '$v_pf_proc_name' ADD MAPPING ACTIVITY '$v_pf_act_name' \
                   SET REF MAPPING '$v_map';
         # add transitions
         puts "Adding transitions...";          
         foreach v_tran $v_pf_act_tranz {
              set v_TRANSITION_NAME [lindex $v_tran 0 ]
             set v_DESCRIPTION [lindex $v_tran 1 ]
             set v_CONDITION  [lindex $v_tran 2 ]
              set v_SOURCE_ACTIVITY_NAME [lindex $v_tran 4 ]
              set v_TARGET_ACTIVITY_NAME     [lindex $v_tran 5 ]     
              OMBALTER PROCESS_FLOW '$v_pf_proc_name' ADD TRANSITION '$v_TRANSITION_NAME' \
                   FROM ACTIVITY '$v_SOURCE_ACTIVITY_NAME' \
                   TO '$v_TARGET_ACTIVITY_NAME' \
                   SET PROPERTIES (TRANSITION_CONDITION, DESCRIPTION) VALUES \
                        ('$v_CONDITION','$v_DESCRIPTION');
         # set parameters
         puts "Setting parameters...";
         foreach v_param $v_pf_act_parameterz {
              set v_PARAMETER_NAME [lindex $v_param 0 ]
             set v_PARAMETER_VALUE [lindex $v_param 2 ]
             set v_DESCRIPTION [lindex $v_param 3 ]
             OMBALTER PROCESS_FLOW '$v_pf_proc_name' MODIFY ACTIVITY '$v_pf_act_name' \
                  MODIFY PARAMETER '$v_PARAMETER_NAME' SET \
                   PROPERTIES (VALUE,DESCRIPTION) VALUES ('$v_PARAMETER_VALUE','$v_DESCRIPTION') ;
         puts "Reconcile complete for $v_pf_path/$v_pf_proc_name/$v_pf_act_name";          
    }I hope I haven't lost too much in cutting and pasting! Anyway if something is not clear, ask freely. I don't use OWB built-in process flows any more, but I should remember enough to explain my own code.
    Antonio

  • 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

  • How to pass execution_audit_id of the process flow to an external process

    Hi,
    I'd like to execute this sql
    SELECT EXECUTION_AUDIT_ID
    FROM RUNTIME_OWNER.ALL_RT_AUDIT_EXECUTIONS
    within a process flow, and pass the returned value to an external process(within the same process flow) which is a unix script. Is this doable? How can it be accomplished?
    Thanks!

    Hi Patrick,
    Yes, I did look at those threads, but they don't help me with what I am trying to accomplish. Here is the design
    The map runtime audit id value is used to uniquely name a file created by one map. Within the process flow, which contains the map that creates this file, I need to rename the file using a suffix string provided by the user. So, if file created is med_admin_1234 (1234 is map runtime audit id), and suffix is "fac_a", then new filename is med_admin_fac_a. For this renaming functionality I am using a Unix script (file is created in a Unix server), but I need to pass the map runtime id that's part of the initial name in order to rename the file. Makes sense? Within the process flow, I need to retrieve a value (instead of an input parameter, have like an output parameter instead). Not sure this is doable, but asking just in case.
    Thanks.

  • 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

  • Process Flow - mapping not inserting data

    I have a process flow that executes three mappings in sequence i.e Map1 -> Map2 -> Map3.
    However, sometimes the process flow will execute and no data will be inserted by MAP2, other times it runs ok. If I run the mappings directly data is always inserted.
    The only workaround I've found is to add a WAIT of 10sec between Map1 and Map2 in the process flow.
    Has anyone come across anything like this and how did you work around or fix it?
    OWB 10.2.0.3 btw.
    Cheers
    Si
    PS. transitions are ok.

    Hi
    If you have any map inputs make sure they are also declared in the processflow map - you basicly need to bind them.
    You probably need to investigate from the beginning to understand your result of incoherent data.
    What I would to first is.
    1. Generete an intermediete code - choose your table as outgroup.
    2. Review the code - are there any loading hints ?
    3. Debug the map
    Check your locations.
    If everything seems right then the problem should lay on your workflow manager.
    Remember that the workflow manager has only one namespace, so watchout for mapping name. I had strange executions on my PF because one of my maps had a "½" in the name.
    Check the settings of the map - if you have enterd a set based run in your map and a row based run in the processflow.
    Remember the setting in the processflow is the "superior" one
    Just ideas what you can do.
    Cheers

Maybe you are looking for

  • Settings for Purchase Order output using services for MM-SUS scenario?

    Dear Gurus, I am configuring the service procurement classic and plan driven procurement for MM-SUS environment. We are on SAP SRM 7.01/ECC 6 EHP5. I need to maintain the below settings for PO output: 1. RUN transaction SWETYPV 2. IN the object types

  • How do i have status bar and a back button  for applets?

    I have an applet which displays a set of panels in order. Is there any way that i can have a status bar like in an browser and a back button so that it can go back and go forward. What do i need to do? Is there any sample code to do so. I am new to j

  • Discoverer Date Parameters

    Hi, How can i perform for user date parameters to get the result of From Date To Date (2007) Sales , From To Date(2006) It is required in view that having sales of 2 Years 2006,2007 and the user need to compare sales of period in 2007 with same perio

  • Customer and vendor archive

    Hi,   how to carry out archiving of vedor and customer master and how to retrieve them.the database is oracle. Regards Anil

  • CRM - SLCM Integration

    Dear colleagues, can you give me advice on CRM - SLcM, is there any student object at CRM? If you create the students in CRM and you need to pass academic information during the creation, do you need to enhance the BP to do so? Thanks in advance for