Using cmd within the process flow. possible?

I am trying to combine all the flat files in a directory in my process flow by executing
cmd> C:\folder *.log copy new.log
is this possible within the owb?

I would like to ask another question..
The external table isnt dynamically connected to the flat file defined, so does it mean that I would have to re-deploy it again, everytime the content of the flat-file get updated?
if so, is there a way for me to deploy the external table within the process flow?

Similar Messages

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

  • Error in using External Process in the Process Flow

    I Created a Process Flow with an external process to Move the file from one location to another location,
    I gave the below parameters for the External Process
    COMMAND: move
    PARAMETER_LIST: ?F:\\FlatFiles\\in\\company.txt?F:\\FlatFiles\\error\\company.err
    SUCCESS_THRESHOLD: 0
    SCRIPT:
    The environment is
    Windows 2003
    OWB 9.2.0.8
    OWF Builder 2.6
    When I deploy and execute using Deployment Manager, it gave me the below error
    Starting Execution TEST
    Starting Task TEST
    Starting Task TEST:EXTERNALPROCESS
    CreateProcess: move move F:\FlatFiles\in\company.txt F:\FlatFiles\error\company.err error=2
    Completing Task TEST:EXTERNALPROCESS
    Completing Task TEST
    Completing Execution TEST
    What am I missing something here?
    Is my Parameters correct?
    GIve me the link where I can find more on using External process.
    Please...please...help me..
    Shree

    Nikolai,
    I have created a simple process flow which only calls the external process. The script is on the same host as the process flow is deployed to.
    I have used two diffent values for the command parameter.
    1. I placed the full path of the file in the command parameter and left the script parameter blank:
    COMMAND: /edwftp/ppas/scripts/ClearPPAS.sh
    PARAMETER_LIST:
    SUCCESS_THRESHOLD: 0
    SCRIPT:
    2.I placed the bash command in the command parameter and the full path in the script parameter.
    COMMAND: /usr/bin/sh
    PARAMETER_LIST:
    SUCCESS_THRESHOLD: 0
    SCRIPT: /edwftp/ppas/scripts/ClearPPAS.sh
    Both of these appear to work as they print out the statements inside the script but the files that are supposed to be removed still remain.
    Starting Execution EXTER_FILE
    Starting Task EXTER_FILE
    Starting Task EXTER_FILE:EXTERNALPROCESS
    Removing ActivatedAudit.dat...
    Removing ActivatedCustomers.dat...
    Removing ActiveAudit.dat...
    Removing ActiveCustomers.dat...
    Done!
    Create the Activated Customers data file...
    Create the Active Customers data file...
    Done!
    WARNING: Log file truncated - see RAB for further information.
    /edwftp/ppas/scripts/ActivatedCustomers.sh: /edwftp/ppas/log/ActivatedCustomers.log: cannot create
    /edwftp/ppas/scripts/ActiveCustomers.sh: /edwftp/ppas/log/ActiveCustomers.log: cannot create
    WARNING: Log file truncated - see RAB for further information.
    Completing Task EXTER_FILE:EXTERNALPROCESS
    Completing Task EXTER_FILE
    Completing Execution EXTER_FILE
    The permissions on the /log direcotry are 775. The user I register the file location with owns this directory.
    Can't think of anything else I have missed. I really appreciate your help :)
    Ryan

  • Probleme execution class java in the process flow

    when i try to execute a simple process flow contain process java i have this message error can somme one help please
    RPE-02229 : Les informations de débogage suivantes ont été collectées :
    RPE-02230 : Informations de débogage : os.name = Windows XP
    RPE-02230 : Informations de débogage : os.version = 5.1
    RPE-02230 : Informations de débogage : os.arch = x86
    RPE-02230 : Informations de débogage : user.name = younes
    RPE-02230 : Informations de débogage : user.dir = D:\app\younes\product\11.2.0\dbhome_1\owb\bin\win32
    RPE-02230 : Informations de débogage : argv.cwd = E:\JavaApplication1.jar
    RPE-02230 : Informations de débogage : argv.arg0 = java
    RPE-02230 : Informations de débogage : argv.arg1 = -classpath
    RPE-02230 : Informations de débogage : argv.arg2 = E:/JavaApplication1.jar
    RPE-02230 : Informations de débogage : argv.arg3 = main
    RPE-02230 : Informations de débogage : HOMEDRIVE = E:
    RPE-02230 : Informations de débogage : DISCOVERER_ALLOW_DB_CONNECT_STRING = YES
    RPE-02230 : Informations de débogage : SERVICE = axadw
    RPE-02230 : Informations de débogage : TMP = E:\DOCUME~1\younes\LOCALS~1\Temp
    RPE-02230 : Informations de débogage : MODE = -startup
    RPE-02230 : Informations de débogage : OWBCC_HOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : SystemDrive = E:
    RPE-02230 : Informations de débogage : RTHOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    RPE-02230 : Informations de débogage : CommonProgramFiles = E:\Program Files\Fichiers communs
    RPE-02230 : Informations de débogage : OWB_HOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : USERDOMAIN = KAIOUCHE-YOUNES
    RPE-02230 : Informations de débogage : ALLUSERSPROFILE = E:\Documents and Settings\All Users
    RPE-02230 : Informations de débogage : RTUSER = OWBSYS
    RPE-02230 : Informations de débogage : ORA_HOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : SystemRoot = E:\WINDOWS
    RPE-02230 : Informations de débogage : APPDATA = E:\Documents and Settings\younes\Application Data
    RPE-02230 : Informations de débogage : SADATADIR = D:\OracleBIData
    RPE-02230 : Informations de débogage : Path = D:\app\younes\product\11.2.0\dbhome_1\bin;D:\app\younes\product\11.2.0\dbhome_1\jre\1.4.2\bin\client;D:\app\younes\product\11.2.0\dbhome_1\jre\1.4.2\bin;D:\app\younes\product\11.2.0\dbhome_1\owb\bin\admin
    RPE-02230 : Informations de débogage : PROMPT = $P$G
    RPE-02230 : Informations de débogage : FP_NO_HOST_CHECK = NO
    RPE-02230 : Informations de débogage : SAROOTDIR = D:\OracleBI
    RPE-02230 : Informations de débogage : HOST = localhost
    RPE-02230 : Informations de débogage : PROCESSOR_ARCHITECTURE = x86
    RPE-02230 : Informations de débogage : LOGONSERVER =
    KAIOUCHE-YOUNES
    RPE-02230 : Informations de débogage : CLASSPATH_LAUNCHER = -classpath Personalities.jar;;;..\admin\;..\admin\launcher.jar -DOWB_HOME=D:\app\younes\product\11.2.0\dbhome_1 -DJDK_HOME=..\..\..\jdk -DORA_HOME=D:\app\younes\product\11.2.0\dbhome_1 -DOEM_HOME=D:\app\younes\product\11.2.0\dbhome_1 -DIAS_HOME=D:\app\younes\product\11.2.0\dbhome_1 -Doracle.net.tns_admin=D:\app\younes\product\11.2.0\dbhome_1\network\admin Launcher ..\admin\owb.classpath
    RPE-02230 : Informations de débogage : JAVAPATH = D:\app\younes\product\11.2.0\dbhome_1\jdk
    RPE-02230 : Informations de débogage : PORT = 1521
    RPE-02230 : Informations de débogage : SESSIONNAME = Console
    RPE-02230 : Informations de débogage : HOMEPATH = \Documents and Settings\younes
    RPE-02230 : Informations de débogage : OCM_HOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : CLASSPATH = Personalities.jar;;
    RPE-02230 : Informations de débogage : PROCESSOR_IDENTIFIER = x86 Family 6 Model 23 Stepping 10, GenuineIntel
    RPE-02230 : Informations de débogage : USERPROFILE = E:\Documents and Settings\younes
    RPE-02230 : Informations de débogage : SATEMPDIR = D:\OracleBIData\tmp
    RPE-02230 : Informations de débogage : ORACLE_HOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : NUMBER_OF_PROCESSORS = 2
    RPE-02230 : Informations de débogage : COMPUTERNAME = KAIOUCHE-YOUNES
    RPE-02230 : Informations de débogage : ComSpec = E:\WINDOWS\system32\cmd.exe
    RPE-02230 : Informations de débogage : OS = Windows_NT
    RPE-02230 : Informations de débogage : OEM_HOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : IAS_HOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : USERNAME = younes
    RPE-02230 : Informations de débogage : CLIENTNAME = Console
    RPE-02230 : Informations de débogage : TEMP = E:\DOCUME~1\younes\LOCALS~1\Temp
    RPE-02230 : Informations de débogage : PROCESSOR_LEVEL = 6
    RPE-02230 : Informations de débogage : OCM_ORACLE_HOME = D:\app\younes\product\11.2.0\dbhome_1
    RPE-02230 : Informations de débogage : JDK_HOME = D:\app\younes\product\11.2.0\dbhome_1\jdk
    RPE-02230 : Informations de débogage : PROCESSOR_REVISION = 170a
    RPE-02230 : Informations de débogage : ProgramFiles = E:\Program Files
    RPE-02235 : Le système d'exploitation a signalé qu'il ne pouvait pas exécuter la commande demandée. Ce peut être parce que la commande ou les paramètres ne sont pas valides ou parce qu'il s'agit d'une commande shell. Tout code retour résultant est spécifique du système d'exploitation. Des informations de débogage ont été produites.
    CreateProcess: java -classpath E:/JavaApplication1.jar main error=267
    Le fichier journal est disponible. Cliquez sur le bouton Informations pour le visualiser.

    Nikolai,
    I have created a simple process flow which only calls the external process. The script is on the same host as the process flow is deployed to.
    I have used two diffent values for the command parameter.
    1. I placed the full path of the file in the command parameter and left the script parameter blank:
    COMMAND: /edwftp/ppas/scripts/ClearPPAS.sh
    PARAMETER_LIST:
    SUCCESS_THRESHOLD: 0
    SCRIPT:
    2.I placed the bash command in the command parameter and the full path in the script parameter.
    COMMAND: /usr/bin/sh
    PARAMETER_LIST:
    SUCCESS_THRESHOLD: 0
    SCRIPT: /edwftp/ppas/scripts/ClearPPAS.sh
    Both of these appear to work as they print out the statements inside the script but the files that are supposed to be removed still remain.
    Starting Execution EXTER_FILE
    Starting Task EXTER_FILE
    Starting Task EXTER_FILE:EXTERNALPROCESS
    Removing ActivatedAudit.dat...
    Removing ActivatedCustomers.dat...
    Removing ActiveAudit.dat...
    Removing ActiveCustomers.dat...
    Done!
    Create the Activated Customers data file...
    Create the Active Customers data file...
    Done!
    WARNING: Log file truncated - see RAB for further information.
    /edwftp/ppas/scripts/ActivatedCustomers.sh: /edwftp/ppas/log/ActivatedCustomers.log: cannot create
    /edwftp/ppas/scripts/ActiveCustomers.sh: /edwftp/ppas/log/ActiveCustomers.log: cannot create
    WARNING: Log file truncated - see RAB for further information.
    Completing Task EXTER_FILE:EXTERNALPROCESS
    Completing Task EXTER_FILE
    Completing Execution EXTER_FILE
    The permissions on the /log direcotry are 775. The user I register the file location with owns this directory.
    Can't think of anything else I have missed. I really appreciate your help :)
    Ryan

  • Getting an process-flow audit id in the process flow itself

    Hi,
    I am using OWB 11gR2 and want to capture the audit_id of the process flow itself at the process-flow level.
    I want to use this to pass it tru to the mappings in the process flow.
    I know how to get audit_id when you're in the mapping (get_audit_id), but i want the audit_id of the process flow when i am "inside" the process flow.
    When i have this i can let all of my mappings in the flow receive the same id.
    When i setup a parameter at the process flow and specify get_audit_id there it errors on me.
    Does anybody what to specify here ?

    ok,
    i figured it out myself and answered myself in another thread.
    Basically it goes like this:
    In the master flow you have sub-processflow objects which you want to pass along the audit_id of the master flow.
    So that you can pass along the same audit-id to every mapping in all of the flows.
    But it would be nice to be able to run sub flows independently from the master flows (for testing etc.)but still feed the same id(whatever that is) to the mappings in that process flow.
    And on the lowest level this applies to mappings as well: be able to run a mapping and get a id to store in a field.
    The same applies to feeding a process date to all the mappings in your flows(used for dwh purposes)
    How does this work on the mappings ?
    Create a mapping input parameter, put 2 params in it.
    One date, one number. The date part is easy: just put SYSDATE in it.
    The number part would ideally hold get_audit_id as default value. Unfortunately this generates an error.
    So put default value of 1 here. Create a constant on the mapping with value get_audit_id in it.
    Create expression that tests if input_param has something else than 1 as the value ; if so then there was no audit_id fed into the mapping by a process flow. Make the expression use the constant then. Use the output of the expression in your mapping.
    How does this work in process flows ?
    You'll have two different parts here:
    -feeding from flow to a sub-flow
    -feeding from flow to mapping
    Flow to subflow:
    You can not bind a flowparameter to subprocess paramter so you'll need to create 2 variables.(process date / audit id)
    Create two parameters, one date with sysdate as default, one number with 1 as default.
    Use assign operator to bind audit_id parameter to the audit id variable.
    Use another one to bind to the same variable, but specify parent_audit_id as value instead of binding it to the paramter.
    Use conditonal routing on these two assign operators to have one of these be executed.
    This will ensure that the variabel either gets parent_audit or the value of the input parameter of the flow.
    Use another assign op. to bind the date input to the date variabel.
    Bind the parameters of the sub flows to the variables.
    Flow to mapping:
    Use the same procedure as descibed above. Only difference here is that you can bind a mapping parameter to a parameter.
    This means that you'll don't need the assign stuff for the date parameter since you can bind the date parameter of the mapping to the input parameter of the flow.
    Hope this helps someone ...

  • OWB | Passing input to mapping in the process flow

    Hi,
    I have a process flow which calls a stored procedure which returns 2 values.
    I want to use the values returned from this procedure as an input in my mapping. My mapping has Mapping_Input_Parameters definined for these two inputs.
    These values are going to be load_date and the batch it belongs.
    I have created new params in the process flow edit under the mapping. The process flow executes successfully if I give the input params as a constant. When I do a binding with the out variable of the stored procedure I get a deployment error as "Internal error: OUT_D_LOAD_DATE cannot be converted to a constant value. Please correct the value. If the problem persists then please contact Oracle Support with the stack trace and details on how to reproduce it."
    Please let me know how to resolve this and if there is way to get the load_date in the mapping without actually having to call the procedure in the mapping. The load_date will change everyday and I need to read it from a table.
    Thanks!

    Hi
    If you have resolved the error please guide me also Since I am also facing the same error. (RPE-02040: Internal error: MYRAND cannot be converted to a constant value. Please correct the value. )
    I am using 10gR2, Here my test process flow is
    Start - > MyRand -> FindOddEven->end
    Here MyRand function will return a value, the function findOddEven will just do a mod of 2 and return 1 for odd numbers and 0 for even numbers. When I bind the OUT parameter of the MyRand to the IN parameter of the FindOddEven it is throwing the same error.
    Thanks in advance

  • Reset deadlines of intermediate timer events from within the process

    Hi
    Is it possible to manipulate a Task completion deadline from another Event or Activity?
    Example:
    Human-Activity 1 has completion deadline 28.06.2010 which is saved in a data object do_deadline
    Parallel, Human-Activity 2 has an output-mapping which resets  do_deadline to 13.06.2010.
    However, BPM does not recognice that do_deadline has changed after Human-Activity 2 has been executed and therefore does not change the deadline.
    Do I have to remodel the process flow in order to end and restart the task in order to set the new deadline datetime values or is it possible to modify them directly?
    Start
                           l
                           l
                           l
                  Parallel Splitt
                  l                  l
    Human-Activity 1    Human Activity 2
    Edited by: Jan Nyfeler on Jun 18, 2010 4:45 PM

    Hi Harsha
    Thanks, good to know that it does not work without restarting the task.
    Of course two parallel tokens are created, and depending on one activitiy's choice for instance I'd like to influence the second activities deadline.
    I did this with other BPM tools already but it actually makes sense that it does not work

  • Describe the process flow in MM

    hi i m new to MM,
    can u pls describe the process flow in MM
    thanks

    Hi Sudeep,
    The MM flow is as follow:
    1) Purchasing Requsition -> sent by inventory dept to purcharsing dept
    2) Request for Quotation(RFQ)-> Purchasing Dept shall ask the vendors to give the quotation for the requested materials by inventory.
    3) Quotation -> Quotation is sent by vendors to the company
    4) Purchase order-> Based on all paramers of a quotation sent by vendors. Vendors are selected from whom the material has to be obtained. The company gives purchase order to the vendor.
    5) Good's receipt -> vendors sends the goods to the company with goods receipt
    6) Invoice verification -> this done based on good's receipt. this means that the ordered goods have reached or not.
    7) Payment -> payment is done based on invoice verification. this is (FI/CO) *-- Santosh Kumaar.M
    Full MM Transaction Codes Flow with table
    Purchase Requisition ME51N (Table - EBAN)
    RFQ to Vendor - ME41 (EKPO, EKKO)
    Raising Quotation - ME47 (EKPO, EKKP)
    Comparison of Price - ME49 (EKPO, EKKO)
    Creation of PO - ME21N (EKPO, EKKO, EKBE, EKPN, EKKN, EKPV)
    Goods Receipt - MIGO (MSEG)
    Invoice (Bill PAssing) - MIRO (BSEG)
    Goods Issue - MIGO (MSEG)
    Physical Inventory - MI01( Create doc) (ISEG)
    MI04 (Enter Count) (ISEG)
    MI07 (Post) (ISEG)
    Hope this helps.
    Reward if useful
    Shawn

  • How to integrate the Process flow design into Workflow?

    Hi Guys,
    I created a process flow design in OWB. Now I need to integrate this design into Oracle workflow. How can I implement it? Process flow design is saved as an Jpeg or SVG file. Pls suggest the steps how can I do this? Im new to workflow and owb. Im using OWB 10g.
    Regards
    Kishan

    If you deployed the packages to the same location then the second deployment replaced the result of the first one (actually a new version of the process flow was created). You can execute only the latest version...
    Regards,
    Robert

  • Deployment error during deployment of the process flow...

    i have made a program using OMB to deploy an OWB process flow. i have used tcl programming to run it on UNIX.
    when i run the program it gives me a strange error saying:
    an unknown error has occured during deployment .
    when i open the OWB design center to check the status i find the the process folw is stuck during the generation part and it continues but the generation never takes place.. for that i wrote an OMBALTER to alter the generation language of the mappings used in the process flow ,but it does not help...
    also after the error in the program when i see the mapping through the desibn center i do not see the original mapping when i open the mapping editor.
    then if I run the again program again i get the process flow deployed successfully ,obviously with the incorrect mappings.
    can anybody plz help me out with it???

    Hello!
    I searched metalink on error RTC-5161 and found a reference in note 392263.1
    It is a bug but there is a patch available ( bug 5504848, patch number 5525337).
    Read the note on metalink to check if you really hit this bug and apply the patch.
    Regards,
    Robert

  • Regarding the process flow

    Hi All,
    My client is asking the process flow for the following scenarios can any one help me by providing the procees flow
    1.Depot Import Material Return Process
    2. Depot FOC process.
    3.Depot purchase return process.
    4. High sea Sales Config (if anything in SAP).
    Regards
    sunil

    Dear Murali,
    Welcome to PS World.
    See link which is given by Venkat Sir.(It shows process)
    Its very tough to explain whole process.
    Plz refer this link.
    Deffntly it will help you.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/80/ea89395eb58c4f9d0c3e837cf0909d/frameset.htm
    PS cycle
    Re: Enterprise structure for PS
    Re: Why we use Project system?
    Regards
    Chandra

  • Find out current old heap usage from within the process

    Hello!
    We use the CMS garbage collector and need a way to find out how much memory is used of the old heap by reachable objects. This we have to do from within the process (not using jvmstat or jstat etc.).
    Since there is no way to distinguish between reachable and non-reachable objects (except for traversing the entire heap... -- or are there other possibilities?) our idea is to get the amount of used memory right after a garbage collection in the old heap.
    Using Java 1.5, this can be done by
    java.lang.management.MemoryPoolMXBean pool = <Pool for Old Generation>;
    pool.getUsage().getUsed();However, java.lang.management is only available in Java 1.5.
    Therefore my first question: Is there a similar way of finding out old heap usage in Java 1.4?
    There is another problem with this method: By calling pool.getUsage().getUsed();, one has to know when a GC has occurred (this could be done by calling it in an interval of x seconds -- if the current value is lower than the one before, a GC must hava occurred). A better way would be to use pool.getCollectionUsage().getUsed();, but this seems not to work for the CMS collector.
    Second question: Is pool.getCollectionUsage().getUsed(); really not working with CMS, or are we just doing it in a wrong way? Are there other ways of finding out the used memory in the old heap after a GC even when using the CMS?
    Thanks for any help!
    Regards,
    Nicolas Michael

    Hi Nicolas,
    There is no API in 1.4 to get the after GC memory usage of the old generation. The only thing close to it is (Runtime.totalMemory - Runtime.freeMemory) but it is the approx amount of memory used for the heap (not just the old generation).
    MemoryPoolMXBean.getCollectionUsage() returns the after GC MemoryUsage. This method should work for all collectors. I have a simple test case that shows it working fine with CMS. It shows the same value as the -XX:+PrintGCDetails shows.
    If you have a test case showing that this method doesn't work correctly, please submit a bug along with the test case. We'll investigate it.
    Thanks
    Mandy

  • How to use OMBPLUS activity inside process flow

    Hi, I’m using OWB 11.2.0.3.
    In a process flow, I need to use an OMBPLUS activity. When I run the process flow, it runs successfully and says: “Log file is available. Click Information button to view.” 
    -Where is the log file, OWB is talking about?
    -Is there any sample of using OMBPLUS activity inside a process flow?
    THANKS, au revoir!

    Thanks, Dallan
    Articles on "Oracle Warehouse Builder (OWB) Weblog" really help me.
    So, I understand that I can't resume process flow in Control Center - only in Repository Browser. :)
    IMHO, this is something puzzled and missmatch with official Users Guide

  • Program is not sending emails if I run it within the process chain

    Hi All,
    I am facing a weird issue; I have an ABAP program which compares tables and sends the results in an email. It is working fine if I run it standalone. However, if I run it within the process chain it still runs but doesn't send the email.
    Any idea on how to troubleshoot this?
    Thanks

    maybe because it's ran under a different user (ALEREMOTE)?
    the user that executes the "mail" needs a valid emailaddress to be able to send...

  • Can anyone give me the process flow for MTBF report?

    hi all
        can anyone give me the process flow of MTBF Report?
    regards
    asha

    And Full form of MTBF is ???
    Regards
    Amitava

Maybe you are looking for