Parametized USER_DEFINED process flow activity

Can someone help? I am attempting to use USER_DEFINED process flow activity to copy a file to another location under a new name.
The names for the source and destination file will be generated at execution time by a mapping that will create the file.
The challenge is how do I pass these file names a parameters; a, b to a file copy script I have written.
You help will be appreciated.

This should be possible as we have done a similar thing.
How are the source and destination files generated in the mapping ?
As our file information was stored in an Oracle table we created a Transformations/Function that queried out the required information (filenames) and formatted it into the required statement for execution.
This was stored in a variable and could then be passed to the user defined process in the Process Flow.
HTH
Paul

Similar Messages

  • When a process flow activity takes a long time to run.

    Hello,
    I have a process flow activity that sometimes takes a long time to run so that the process flow never ends. Is it possible that I can set the activity so that during a certain time that this has not been executed automatically flow process to continue?
    I'm Using Oracle Warehouse Builder 11g on Windows Server 2003 R1.
    Greetings and thanks.

    What I've done in the past is just use a small polling procedure (PL/SQL) and a conditional transition in the process flow, depending on what the proc returns (Continue or Fail) then the flow of control in the Process is changed.
    I think the key also is to not have too much paralellism going on too, that way it's easy to streamline the PF and remove slow moving processes to a more linear path (stopping bottle necks on your logical AND).
    Edited by: NSNO on Apr 29, 2010 2:31 PM

  • How to get the package name of a procedure used in a process flow activity

    Hi all. I'm on OWB 11.2.0.2.0.
    When I used a packaged procedure or function in a mapping operator, I can find out the package.program_unit name by getting the operator's FUNCTION_NAME property. For example,
    OMBRETRIEVE MAPPING '$mapName' OPERATOR '$operName' GET PROPERTIES (FUNCTION_NAME)
    But when the same is used in a process flow activity, I can't find a property name that will give me the same information. I can get the BOUND_NAME, it does not tell me the package name. It must be stored in the activity properties because when you pull up the Synchronize dialog for the activity, it knows the package name.
    Is there a way to get this via an OMBRETRIEVE?
    Thanks.

    ANA, this is exactly what I needed. Thank you so much. I saw REFs also in the OMBRETRIEVE MAPPING/OPERATOR syntax, but went cross-eyed trying to figure out if I could use the same there. The closest I found was GET BOUND_OBJECT.
    Thanks again!

  • Input Parameter in process flow

    Hi, I can't pass a parameter in a process flow, I'm following these step:
    To accomplish your task you should do following steps:
    1. Define input parameters for all your mappings
    2. Collect mappings within process flow
    3. Define process parameters.
    To do this withing Process editor and point somewhere on process diagram - don't select any activities In bottom-left window you will see the list of all process' activities. Select "Start" activity and press Add button below. New parameter line should appear under Start activity. Edit name and type of parameter and repeat creating input process parameters.
    4. Select Mapping with input parameters. In bottom-left window selectted activity will appear. Click on plus sign to expand mapping parameters. For each parameter set its Binding to the Process parameter. Continue with other mappings.
    The process flow recibe the input parameter, but it's not passing through the mappings
    if I run the maps one by one, the result is Ok
    Thanks and regards

    Hi
    How do you know the process flow is receiving the input, and that the mapping is not?
    So you followed the following
    http://blogs.oracle.com/warehousebuilder/2009/01/process_flow_parameters_1.html
    but with a map as the activity?
    Cheers
    David

  • Process flow - Active Directory integration with Enterprise Portal

    Hi
    I have seen number of documents/forum discussions on integrating Microsoft Active Directory (LDAP) with Enterprise Portal, but unable to find out the process flow for achieving the same.
    I have installed Enterprise Portal 6 (SP13) running on Web AS 640 (J2EE Standalone). The UME is currently configured to use Java database. (i.e datasourceconfiguration_database_only.xml)
    I intend to proceed as below for integrating with Active Directory and integrate with Windows authentication:
    1) Configure UME to use an LDAP Server as Data Source using Config Tool
    http://help.sap.com/saphelp_erp2004/helpdata/en/cc/cdd93f130f9115e10000000a155106/frameset.htm
    2) Configure Enterprise Portal UME i.e http://<host name>:50000/irj - System Administration - System Configuration - UM Configuration
    <b>Should I configure Data Sources & LDAP Server here as I have already configured these using J2EE Config tool (point no.1).</b>
    3) Integrate Windows authentication with EP using IISProxy module.
    I hope the above will enable me to logon to Portal without supplying username and password once you are logged on to the PC using your Windows user name and password.
    Also, any schema updates required to Activie Directory i.e What additional data is stored in A.D.
    I would appreciate your guidance on this.
    Thanks in advance,
    Chandu

    Hi Chandau,
    you wanted that some users are not taken into account by the User Management Engine (UME).
    This behavior can be established by specifying the
    ume.ldap.negative_user_filter property for the LDAP data sources in the data source configuration file. Using this property one can define that all users and accounts that
    match the defined conditions are filtered out by the UME API.
    A detailed documentation can be found in the SAP Online Help:
    http://help.sap.com/saphelp_nw04/helpdata/en/9a/f43541b9cc4c0de10000000a1550b0/
    content.htm
    In the following example of a data source configuration file for Microsoft Active Directory
    Server the attribute userPrincipalName is used as Logon ID of a portal user id (j_user).
    Here the user accounts that have one of the following Logon ID’s (index_service,
    notificator_service and cmadmin_service ) are filtered out.
    <dataSources>
    </dataSource>
    <dataSource id="CORP_LDAP">
    <privateSection>
    <ume.ldap.negative_user_filter>
    userPrincipalName=[index_service,notificator_service,cmadmin_service]
    </ume.ldap.negative_user_filter>
    </privateSection>
    </dataSource>
    </dataSources>

  • 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

  • Process flow Activity File Exists

    Hi
    Software: warehouse builder 11.1.0.7
    OS: Redhat 5.5
    DB: 11gR1
    I am trying to use the activity "File Exist" on a process flow to know if a file does exist, with two transitions
    one with condition "EXISTS" that ends in success and one with the condition "MISSING", when the file
    exists the process flow acts normal with end success, but when the file doesn't exist the process flow
    just hangs and doesn't finish.
    Am i missing some configuration?

    You have to provide multiple transitions (arrows) out of the file_exists activity and the define the transition conditions (in the transition view section of the window) for success and error. In that case, if the file exists, the flow will continue along the sucess transition path, if it doesn't it will continue down the ERROR path. The error path can then end up into an END_ERROR activity and that will make the process flow stop if the file is not found, just your expected behaviour.
    If you have only a single unconditional transition (arrow) out of the file_exists, the process flow will continue regardless of the FILE_EXISTS activity.
    Regards:
    Igor

  • Passing Parameter to Process flow

    Hello,
    I have a mapping that has input parameter. Now i create a process flow and use this mapping, each time i run the process flow it prompt for the parameter
    Is there a way to pass the parameter to the process flow directly withput prompting ?
    Thanks

    Hi ,
    I found something related in doc. http://download.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/ref_processflows.htm#i1173362
    "If a mapping contains a Mapping Input Parameter operator, specify a value according to its data type. The Process Flow Editor expects to receive a PL/SQL expression when you add a Mapping Input Parameter operator to a mapping. If the Mapping Input Parameter is a string, enclose the string in double quotes."
    But it is not clear how to do this ?
    Thanks

  • URGENT: error during deployment of a process flow through OMB

    I have a process flow which uses a mapping. The mapping has already been synchronized to its corresponding process flow activity.Now i again synchronize the activity with the same mapping to which it was already synchronized
    OMB+> OMBSYNCHRONIZE PROCESS_FLOW 'MAIL_TRY/RND_MAIL' ACTIVITY 'EMP_COUNT' TO MAPPING '/NEW_PROJECT2/NEW_SOURCE/EMP_COUNT' USE (SYNCHRONIZE_STRATEGY 'REPLACE
    ', MATCHING_STRATEGY 'MATCH_BY_NAME')
    Synchronize Completed
    now i create a deployment action plan and deploy the process flowand get the error as follows:
    OMB+> OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'MAIL_TRY' ADD ACTION 'MAIL_TRY ' SET PROPERTIES (OPERATION) VALUES ('CREATE') SET REFERENCE PROCESS_FLOW_PACKAGE '/NEW_PROJECT2/MOD1/MAIL_TRY'
    Action plan MAIL_TRY created.
    OMB+> OMBCOMMIT
    Commit complete.
    OMB+> OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'MAIL_TRY'
    OMB05602: An unknown Deployment error has occured for Object Type API8028: No signature is available for mapping EMP_COUNT because the generation language is undefined. Please set the generation language property of this mapping, or generate this mapping to set the generation language property to a default value..
    In order to remove that error i made the following alteration in the mapping property:
    Context changed.
    OMB+> OMBALTER MAPPING 'EMP_COUNT' SET PROPERTIES (GENERATION_LANGUAGE) VALUES ('PLSQL')
    and then deployed the process folw only to get the following error:
    OMB05602: An unknown Deployment error has occured for Object Type Trying to access invalid Object.
    Element ID: 282901
    Status: 4
    Owning FCO: 282896
    Thanks in advance!!!!!

    A couple of things you could try are:
    1 - OMBCOMPILE MAPPING 'EMP_COUNT' instead of doing the OMBALTER as this will ensure that the property is set correctly, just in case there's any problem there,
    2 - "set OMBDEBUG on" before doing your OMBDEPLOY to display any additional stack traces.

  • User Defined Activity "hangs" Process Flow if it runs for more than 10mins

    I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
    However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
    BUT
    If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
    my "user defined" activity has
    COMMAND: /usr/bin/ksh
    PARAMETER_LIST bound to a variable which is set earlier in the process flow.
    RESULT_CODE:
    SCRIPT :
    SUCESS_THRESHOLD : 0
    by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
    I can see that the variable contents assigned to RESULT_CODE look like this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
    or this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
    I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
    (like in Runtime.properties
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    except maybe
    .........Nativeexecution.timeout = .....?????
    Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
    Can anyone help?

    I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
    However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
    BUT
    If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
    my "user defined" activity has
    COMMAND: /usr/bin/ksh
    PARAMETER_LIST bound to a variable which is set earlier in the process flow.
    RESULT_CODE:
    SCRIPT :
    SUCESS_THRESHOLD : 0
    by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
    I can see that the variable contents assigned to RESULT_CODE look like this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
    or this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
    I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
    (like in Runtime.properties
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    except maybe
    .........Nativeexecution.timeout = .....?????
    Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
    Can anyone help?

  • Mapping audit_id in process flow with parameter

    Hello!
    I have a following request.
    I would like to get AUDIT_EXECUTION_ID for certain Mapping in process flow and pass this ID to next mapping (all this with help of parameters I guess??) to get some data from AUDIT tables. How to do this?
    OWB version 10.2.0.1
    Thank you Gorazd
    Edited by: gor on May 9, 2011 1:40 PM

    Hi,
    It is a bit complicated and technical.
    Will give you a hint.
    You need to install run_my_owb_stuff as a function, grant access, and create a public synonym.
    Then within you have to add capturing of the execution_id as an additional custom parameter. (see below).
    Once done. Add a Start parameter with same name to each Process Flow, and Bind it to any activity that you want to use the parameter with.
    -- Override Parameters
    dbms_output.put_line('Stage 3: Overriding Parameters');
    -- override_system_input_params(l_audit_execution_id, p_system_params);
    if p_task_type='PROCESS' then
    -- GRI addition
         l_custom_params := p_custom_params || ', p_execution_id=' || l_audit_execution_id;
    override_custom_input_params(l_audit_execution_id, l_custom_params);
    else
         override_custom_input_params(l_audit_execution_id, p_custom_params);
         end if;
    -- override_custom_input_params(l_audit_execution_id, p_custom_params);
    - Jojo

  • Date parameter in a process flow

    Hi,
    I´m working with OWB 10.1.0.2.0.
    I have a process flow with a transform.
    The transform has a date parameter and I´ve defined a date parameter in the start activity, which is bound to the start parameter.
    If I try to pass a date parameter in this form, sysdate, the process doesn´t recognize it and in the all_rt_audit_execution_params table i can see that the param process has no value.
    If I pass a date parameter in this format 2006/08/07 the process works fine
    I need to pass the date parameter from start activity to the process activity using expresions with sysdate,
    may anyone help me? please and thanks
    beatriz

    Hi,
    there are several tasks you want to accomplish:
    1. "I need to check if the parameter file exists"
    Therefor OWB has the File Exists Activity (Process Flow). This one checks if a file exists with specified name on specified location. If so it returns with SUCCESS. If not, it returns a WARNING. In second case you should do a sleep for a while and then re-check.
    2. "accessing the date value from the parameter file"
    There will be several ways to do this. The easiest one may be, to declare a external Table on this file and simply select from it (use it as a source in your mapping)
    3. "After the ETL is finished running, the name of the parameter file needs to be changed"
    In your process flow you create a user defined activity. In this one you start cmd.exe (on windows) and execute any DOS-commands you like. In this case a move or rename.
    Hope I could help you...
    Bye,
    iOn.

  • Can not delete a parameter of a mapping in a process flow

    Hi,
    I want to delete a certain input parameter of all mappings in a flow with tcl.
    I use this:
    OMBALTER PROCESS_FLOW '$flow' DELETE PARAMETER 'IP_VERSION' OF ACTIVITY '$act'
    If i test this in the OMBPlus window it says it deleted it however it is still there i the flow.
    If i use this statement in a tcl script the script halts without message.
    It says :
    Process Flow Parameter IP_VERSION deleted.
    process Flow PFP_MIKE_1 altered.
    And when i retrieve the parameters afterwards it is indeed stil listed:
    OMBRETRIEVE PROCESS_FLOW '$flow' ACTIVITY '$act' GET PARAMETERS.
    Can somebody confirm:
    --that i am using the proper syntax
    --if this is a known bug in owb 10gr2 10.2.0.1.31
    rgrds Mike
    Nobody ?
    Edited by: MichaelR64 on 7-jun-2013 9:45
    Edited by: MichaelR64 on 7-jun-2013 9:46

    Nobody ?
    I did some more testing.
    The clause i am using is this: deleteGenericActivityParameterClause
    deleteGenericActivityParameterClause = PARAMETER "QUOTED_STRING" OF ACTIVITY "QUOTED_STRING"
    See here: http://docs.oracle.com/html/E14406_01/chap4003.htm for the 11g verrsion.
    My flow has calls to other mappings in it.
    Both the mappings and the flow itself have this input parameter IP_VERSION.
    It seems the OMBplus parser is making an error.
    When i specify the name of the input param that is of the flow(and not the mapping in the flow) , but the rest of the command specifies the mapping activity as in OP, then OMB says that it deleted the parameter and that it altered the flow.
    And it halts there.
    But when i check the actual flow nothing has changed.
    When i specify the name of parameter that the called mapping has , ofcourse with the full command line as in OP, then OMBplus says it can not find the specified parameter.
    So it seems that the parser makes two errors:
    When searching for the parameter it looks in the wrong place, it always looks in the flow section instead of the acitvy specified.
    The ' OF ACTIVITY '$act' ' part is not used it seems.
    The delete part of the instruction is also confused by this and says it deleted the parameter but nothing actually happens.
    Hope somebody can confirm/shed more light on this.
    Edited by: MichaelR64 on 6-jun-2013 17:07

  • Pass output parameter from mapping to external process in a Process Flow

    In Process flow, how do we pass an Output parameter from a mapping (generated by a post mapping operator) into an external process (shell script)?
    I have a mapping that generates an output parameter and I would like to pass this parameter to an external process (a shell script) with a process flow. Is this possible?

    Hi Norman,
    Unfortunately in the current release, you cannot do this. What you can do, is store the value into a table and read it in the external process, or write it into a file and read it from there. The next release will support passing output parameters from one activity to the next.
    Thanks,
    Mark.

  • Find out type of activity in process flow

    I am currently working on generating process flows. I place a bunch of mappings or sub process flows (sometimes more than 20) in a process flow. Then I connect them basically to indicate the order in which they have to be processed.
    Next I want to generate the succes, warning and error transitions. I can easily list the activities in the process flow using
    OMBRETRIEVE PROCESS_FLOW 'SOME_FLOW' GET ACTIVITIES
    likewise I can easily retrieve the transitions.
    My main problem now is that I cannot find where to start.
    I know a process flow is created default with a START1 activity but the name can be changed, so that is not a fool proof option. I have been looking for something like
    OMBRETRIEVE PROCESS_FLOW 'SOME_FLOW' ACTIVITY 'START1' GET PROPERTIES (ACTIVITY_TYPE)
    But the property apparently does not exist.
    If I do
    OMBDESCRIBE CLASS_DEFINITION 'PROCESS_FLOW' GET CHILD_TYPES
    I see a START_ACTIVITY child type is listed. Now I am looking for a way to connect the child type to the activity
    Anybody ideas?
    Thanks in advance,
    Kind regards,
    Eric.

    Thanks Oleg,
    After posting the question on the forum I remembered I had made lists of activities for various activity types, in my case MAPPINGS and SUBPROCESSES. So I tried the same for START activities, just like you apparently have done. And with the same conclusion; there is not a complete list of activity types you can use.
    I also noticed there is no START activity in the Palette of the Process Flow editor. And that you cannot delete a start activity (API-10011 You cannot delete this type of activity). Apparently a start activity is a special case of activity. And I think I will treat it this way. I will assume no one in his right mind will rename this activity from it's default 'START1' name and start my exploration of the flow in the process there.
    Thanks again for confirming my suspicions.
    In the process of finding out activity types that are supported I made a list (OWB 10.2.0.3):
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET AND ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET ASSIGN ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET DATA_AUDITOR ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET EMAIL ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET END_ERROR ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET END_LOOP ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET END_SUCCESS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET END_WARNING ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET FILE_EXISTS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET FOR_LOOP ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET FORK ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET FTP ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET MANUAL ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET MAPPING ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET NOTIFICATION ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET OR ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET ROUTE ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET SET_STATUS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET SQLPLUS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET SUBPROCESS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET TRANSFORMATION ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET USER_DEFINED ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET WAIT ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET WHILE_LOOP ACTIVITIES
    Kind regards,
    Eric.
    Message was edited by:
    ericb
    Message was edited by:
    ericb

Maybe you are looking for

  • PC Suite Problem

    Hello I am having problems with Nokia PC Suite version 6.85.14.1, on a Vista Home Premium laptop, running Norton INternet Security. Phone is Nokia E65. I've had problems when trying Bluetooth and cable connection. After I install PC Suite it works no

  • Tables in TimesTen 11

    Why is that Tables command not yielding the expected output in TimesTen 11. If it is deprecated, what is the alternative for that? Thanks...

  • Graph Colors

    Hi, solution for ur question: right click on ur Graph in graphic builder and select field templates->select colors only option from color rotation drop down list box.save ur graph and insert same graph in reports generate pdf file.u can get graph wit

  • Additional component needed

    I downloaded a movie file (.avi) and the video plays fine in quicktime, however, the audio is not playing. It said that I need and additional quicktime component that mine does not have. What component do I need to download?

  • UWL tasks using API

    Hi all, I am trying to create UWL tasks from webdynpro using the UWL API. but i am not able to do so. I am using the below code for it. IPushChannel push = uwlService.getPushChannel(); IProviderConnector connectors[] = uwlService.getRegisteredProvide