Passing paramater from process flow to unix script in owb

Hi,
I need help in calling a function the return value must be passed as a paramater to user defined activity operator in owb which would in turn run a unix script on the server which would use the paramater passed.
Thanks,
Ashvin.

hi let me give you some more infor about my proble.
i have a unix script named caproc. The script would be passed a paramater. the script would be called from simple owb process flow and i need to pass the paramater to it.
i have tested running other unix scripts and the are running fine.
as you said to create a variable 'x' i did that and under paramater_list of the user activity operator under binding i selected the variable 'X'
the process flow was valiadated fine and deployed but when i run it it gives me this error.
COPY_OF_UX_SCP_CALL
Error
RPE-01003: An infrastructure condition prevented the request from completing.
COPY_OF_UX_SCP_CALL
Error
RPE-01038: Failed to evaluate expression declare "$LOOP_DETECT$" NUMBER := 0;function "COPY_OF_UX_SCP_CALL" return VARCHAR2 is "WARNING" NUMBER := 2;"RETURN_RESULT_NUMBER" NUMBER := NULL;"NUMBER_OF_ERRORS" NUMBER := 0;"SUCCESS" NUMBER := 1;"ITEM_TYPE" VARCHAR2(4000) := (owbsys.wb_rt_task_variable.get_value(305587));"ERROR" NUMBER := 3;"EVAL_LOCATION" VARCHAR2(4000) := (owbsys.wb_rt_task_variable.get_value(305590));"OK" NUMBER := 1;"FAILURE" NUMBER := 3;"AUDIT_ID" NUMBER := 305586;"RETURN_CODE" NUMBER := NULL;"NUMBER_OF_WARNINGS" NUMBER := 0;"ITEM_KEY" VARCHAR2(4000) := (owbsys.wb_rt_task_variable.get_value(305589));"RETURN_RESULT" VARCHAR(64) := NULL;"PARENT_AUDIT_ID" NUMBER := NULL;"OK_WITH_WARNINGS" NUMBER := 2;begin "$LOOP_DETECT$" := "$LOOP_DETECT$" + 1;if "$LOOP_DETECT$" > 2 then raise_application_error(-20001, 'Loop detected calling "COPY_OF_UX_SCP_CALL"');end if;return to_char(?'acac');end;begin :result := "COPY_OF_UX_SCP_CALL";end;. Please modify the expression, redeploy and retry again.
COPY_OF_UX_SCP_CALL
Error
Missing IN or OUT parameter at index:: 2
i am pasting the xml script owb generates which might help someone to point me the problem
<?xml version = '1.0'?>
<!DOCTYPE Package SYSTEM "jar:file:/C:/product/11.1.0/db_1/owb/lib/int/rtpcommon.jar!/Package_dtd.txt">
<Package Id="SPT_TRY" Name="SPT_TRY">
<PackageHeader>
<XPDLVersion/>
<Vendor/>
<Created/>
<Description></Description>
</PackageHeader>
<TypeDeclarations/>
<Applications>
<Application Id="A805FAF687910739AE04011AC69063028" Name="UX_SCRIPT">
<FormalParameters>
<FormalParameter Id="EXIT_CODE" Mode="OUT">
<DataType>
<DeclaredType Id="EXIT_STATUS"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:COMMAND">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:PARAMETER_LIST">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:SUCCESS_THRESHOLD">
<DataType>
<BasicType Type="INTEGER"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:SCRIPT">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:RESULT_CODE" Mode="OUT">
<DataType>
<BasicType Type="INTEGER"/>
</DataType>
</FormalParameter>
</FormalParameters>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:Function" Value="SHELL"/>
<ExtendedAttribute Name="OWB:ExtendedAttributes" Value="TASK_ID">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:TaskName"/>
<ExtendedAttribute Name="OWB:ExecStoreUOID"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</Application>
<Application Id="A81117E4A8F6699DAE04011AC680650B6" Name="UX_SCRIPT">
<FormalParameters>
<FormalParameter Id="EXIT_CODE" Mode="OUT">
<DataType>
<DeclaredType Id="EXIT_STATUS"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:COMMAND">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:PARAMETER_LIST">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:SUCCESS_THRESHOLD">
<DataType>
<BasicType Type="INTEGER"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:SCRIPT">
<DataType>
<BasicType Type="STRING"/>
</DataType>
</FormalParameter>
<FormalParameter Id="CFG:RESULT_CODE" Mode="OUT">
<DataType>
<BasicType Type="INTEGER"/>
</DataType>
</FormalParameter>
</FormalParameters>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:Function" Value="SHELL"/>
<ExtendedAttribute Name="OWB:ExtendedAttributes" Value="TASK_ID">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:TaskName"/>
<ExtendedAttribute Name="OWB:ExecStoreUOID"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</Application>
</Applications>
<WorkflowProcesses>
<WorkflowProcess Id="UX_SCP_CALL" Name="UX_SCP_CALL">
<ProcessHeader>
<Description></Description>
</ProcessHeader>
<FormalParameters>
<FormalParameter Id="EXIT_CODE" Mode="OUT">
<DataType>
<DeclaredType Id="EXIT_STATUS"/>
</DataType>
</FormalParameter>
</FormalParameters>
<DataFields/>
<Activities>
<Activity Id="UX_SCRIPT" Name="UX_SCRIPT">
<Description></Description>
<Implementation>
<Tool Id="A805FAF687910739AE04011AC69063028" Type="APPLICATION">
<ActualParameters>
<ActualParameter/>
<ActualParameter>"/bin/bash"</ActualParameter>
<ActualParameter/>
<ActualParameter>"0"</ActualParameter>
<ActualParameter/>
<ActualParameter/>
</ActualParameters>
<Description></Description>
</Tool>
</Implementation>
<TransitionRestrictions>
<TransitionRestriction>
<Split Type="XOR"/>
</TransitionRestriction>
</TransitionRestrictions>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="805FAF687910739AE04011AC69063028"/>
<ExtendedAttribute Name="OWB:ExtendedAttributes" Value="TASK_ID">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:TaskName" Value="&quot;UX_SCP_CALL:UX_SCRIPT&quot;"/>
<ExtendedAttribute Name="OWB:ExecStoreUOID" Value="&quot;{0}&quot;"/>
</ExtendedAttributes>
</ExtendedAttribute>
<ExtendedAttribute Name="OWB:Position">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:XPos" Value="262.0"/>
<ExtendedAttribute Name="OWB:YPos" Value="-219.0"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</Activity>
<Activity Id="END_SUCCESS" Name="END_SUCCESS">
<Description></Description>
<Implementation>
<Tool Id="END" Type="APPLICATION">
<ActualParameters>
<ActualParameter>OK</ActualParameter>
</ActualParameters>
<Description></Description>
</Tool>
</Implementation>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="805FAF68790F739AE04011AC69063028"/>
<ExtendedAttribute Name="OWB:Position">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:XPos" Value="450.0"/>
<ExtendedAttribute Name="OWB:YPos" Value="-40.0"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</Activity>
<Activity Id="START1" Name="START1">
<Description></Description>
<Implementation>
<Tool Id="START" Type="APPLICATION">
<Description></Description>
</Tool>
</Implementation>
<TransitionRestrictions>
<TransitionRestriction>
<Split Type="XOR"/>
</TransitionRestriction>
</TransitionRestrictions>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="805FAF68790E739AE04011AC69063028"/>
<ExtendedAttribute Name="OWB:Position">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:XPos" Value="-321.0"/>
<ExtendedAttribute Name="OWB:YPos" Value="-211.0"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</Activity>
</Activities>
<Transitions>
<Transition Id="TRANSITION_1" From="UX_SCRIPT" To="END_SUCCESS">
<Condition Type="OTHERWISE"/>
</Transition>
<Transition Id="TRANSITION" From="START1" To="UX_SCRIPT"/>
</Transitions>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="805FAF687909739AE04011AC69063028"/>
<ExtendedAttribute Name="OWB:ExtendedAttributes" Value="TASK_ID">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:RootUOID" Value="&quot;805FAF687909739AE04011AC69063028&quot;"/>
<ExtendedAttribute Name="OWB:TaskName" Value="&quot;UX_SCP_CALL&quot;"/>
<ExtendedAttribute Name="OWB:ExecStoreUOID" Value="&quot;{0}&quot;"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</WorkflowProcess>
<WorkflowProcess Id="COPY_OF_UX_SCP_CALL" Name="COPY_OF_UX_SCP_CALL">
<ProcessHeader>
<Description></Description>
</ProcessHeader>
<FormalParameters>
<FormalParameter Id="EXIT_CODE" Mode="OUT">
<DataType>
<DeclaredType Id="EXIT_STATUS"/>
</DataType>
</FormalParameter>
</FormalParameters>
<DataFields>
<DataField Id="X">
<DataType>
<BasicType Type="STRING"/>
</DataType>
<InitialValue>`?'acac'`</InitialValue>
</DataField>
</DataFields>
<Activities>
<Activity Id="END_SUCCESS" Name="END_SUCCESS">
<Description></Description>
<Implementation>
<Tool Id="END" Type="APPLICATION">
<ActualParameters>
<ActualParameter>OK</ActualParameter>
</ActualParameters>
<Description></Description>
</Tool>
</Implementation>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="81117E4A8F6999DAE04011AC680650B6"/>
<ExtendedAttribute Name="OWB:Position">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:XPos" Value="450.0"/>
<ExtendedAttribute Name="OWB:YPos" Value="-40.0"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</Activity>
<Activity Id="UX_SCRIPT" Name="UX_SCRIPT">
<Description></Description>
<Implementation>
<Tool Id="A81117E4A8F6699DAE04011AC680650B6" Type="APPLICATION">
<ActualParameters>
<ActualParameter/>
<ActualParameter>"/bin/bash"</ActualParameter>
<ActualParameter>X</ActualParameter>
<ActualParameter>"0"</ActualParameter>
<ActualParameter/>
<ActualParameter/>
</ActualParameters>
<Description></Description>
</Tool>
</Implementation>
<TransitionRestrictions>
<TransitionRestriction>
<Split Type="XOR"/>
</TransitionRestriction>
</TransitionRestrictions>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="81117E4A8F6699DAE04011AC680650B6"/>
<ExtendedAttribute Name="OWB:ExtendedAttributes" Value="TASK_ID">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:TaskName" Value="&quot;COPY_OF_UX_SCP_CALL:UX_SCRIPT&quot;"/>
<ExtendedAttribute Name="OWB:ExecStoreUOID" Value="&quot;{0}&quot;"/>
</ExtendedAttributes>
</ExtendedAttribute>
<ExtendedAttribute Name="OWB:Position">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:XPos" Value="262.0"/>
<ExtendedAttribute Name="OWB:YPos" Value="-219.0"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</Activity>
<Activity Id="START1" Name="START1">
<Description></Description>
<Implementation>
<Tool Id="START" Type="APPLICATION">
<Description></Description>
</Tool>
</Implementation>
<TransitionRestrictions>
<TransitionRestriction>
<Split Type="XOR"/>
</TransitionRestriction>
</TransitionRestrictions>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="81117E4A8F6499DAE04011AC680650B6"/>
<ExtendedAttribute Name="OWB:Position">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:XPos" Value="-321.0"/>
<ExtendedAttribute Name="OWB:YPos" Value="-211.0"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</Activity>
</Activities>
<Transitions>
<Transition Id="TRANSITION_1" From="UX_SCRIPT" To="END_SUCCESS">
<Condition Type="OTHERWISE"/>
</Transition>
<Transition Id="TRANSITION" From="START1" To="UX_SCRIPT"/>
</Transitions>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="81117E4A8F6199DAE04011AC680650B6"/>
<ExtendedAttribute Name="OWB:ExtendedAttributes" Value="TASK_ID">
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:RootUOID" Value="&quot;81117E4A8F6199DAE04011AC680650B6&quot;"/>
<ExtendedAttribute Name="OWB:TaskName" Value="&quot;COPY_OF_UX_SCP_CALL&quot;"/>
<ExtendedAttribute Name="OWB:ExecStoreUOID" Value="&quot;{0}&quot;"/>
</ExtendedAttributes>
</ExtendedAttribute>
</ExtendedAttributes>
</WorkflowProcess>
</WorkflowProcesses>
<ExtendedAttributes>
<ExtendedAttribute Name="OWB:UOID" Value="805FAF687904739AE04011AC69063028"/>
</ExtendedAttributes>
</Package>

Similar Messages

  • How can I pass value from sql query to unix script

    I am new to oracle/unix.
    I want to write a simple script to find max date from a table and then pass date into a variable in a korn shell script.
    sql is select max(date) from table;
    how can I pass that value in unix shell as a variable. Thanks

    I use to code like this.
    Enjoy Scripting.
    cmd.sql
    select sysdate from dual;
    exit
    db.sh
    #! /usr/bin/ksh
    . ~oracle/.orapaths
    dbdate=$(sqlplus -S user/pwd@servicename @cmd.sql)
    echo $dbdate
    Run shell scripts
    ./db.sh
    SYSDATE --------- 19-JAN-07

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • Calling external scripts from Process Flow

    Hi,
    I'm trying to pass a list of parameters to a unix shell script using the parameter list in the process flow external process activity. However the parameter list is not being correctly passed. What is the correct format, delimiter & use of quotes ?
    Examples:
    Parameter List : REPORT_GROUPS,IGA,QLD,1
    Unix receives : EPO T_G OUPS,IGA,QLD,1 (3 parameters)
    and
    Parameter List : REPORT_GROUPS IGA QLD 1
    Unix receives : REPORT_GROUPS "" IGA "" QLD "" 1 (7 parameters - "" = null parameters received)
    Quotes just seem to be ignored.
    Can anyone give me the correct format or the where the format is documented ?
    In using OWB 9.0.4 with Oracle 9.2.0.2 on a HP UX server.

    Hi Pavel,
    The process flow editor interprets the first character in the parameter list as a separator (the 'R' in 'REPORT_GROUPS...' in your case).
    Check out OWB User Guide chapter 9, which says :
    Parameter List The list of parameters to be passed to the external process. Type the path
    and file name such as ?/c?c:\\temp\\run.bat .
    The Process Flow Editor interprets the first character you type to be the
    separator. For example, the Process Flow Editor interprets the following
    entry as /c and dir.
    ?/c?dir?
    Use the backslash as the escape character. For example, the Process Flow
    Editor interprets the following entry as -l and -s and /.
    /-l/-s/\//
    Hope this help.
    Regards
    Rolf

  • Linking Location to Process Flow & Schedule OMB Script in OEM.

    Hi All,
    Oracle 9i Warehouse Builder Client: 9.2.0.4.0
    Oracle 9i Warehouse Builder Repository: 9.2.0.2.0
    I created a process flow in OWB proj1 & selected loc1 as deployment location from the drop down help.
    Is it possible to link a different location let us consider Loc2 from different OWB project prj2?
    Can OMB PLUS Script invoke OWB Mapping or OWB Process Flow? Also can the OMB Plus Scrpit be scheduled in OEM?
    Can someone please let me know ?
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi Vidyanand,
    Lots of questions... but I'm not sure what you mean with linking Loc2 from Prj2. Can you elaborate?
    Easiest to execute mappings is SQL Plus or EM. You can use the SQL_EXEC_TEMPLATE to do this, take a look at the documentation in execution of mappings...
    Jean-Pierre

  • Calling .exe file from process flow

    Hi All,
    I want to call an executable file from my process flow. What should I do for this. Please tell me. Eg. I want to call RUN.exe located in "c:\myfolder\run.exe" what should I do?
    Please help.
    Thanks,
    Danish

    I have had trouble with the user defined operator.
    Instead I use SQLPLUS operator to do these types of things.
    Use this for the Script Value:
    host c:\myfolder\run.exe
    exit;
    /

  • Passing value from plsql back to UNIX

    I have a shell script which calls out to a plsql program using sqlplus command, but how do I return the values from the plsql program (a simple SELECT statement) back to the Unix script? Thanks.
    James

    Create one UNIX script
    eg :- C2_ATG_Insert.sh
    #!/usr/bin/ksh
    #Variables to store the values
    count=0
    Count_ILX_EXCH=0
    Count_ILX_CBOE_SERIES=0
    Count_ILX_UNDLY_INST=0
    Count_STOCK_TIPS=0
    Count_TIPSSUM=0
    # Block to check whether date is passed as a parameter
    if (($# != 1))
    then
    echo "Usage: C2_ATG_Insert.sh dd-mon-yy"
    exit 1
    fi
    # Assign the trade date to a variable
    Temp_Date=$1
    # Call the sql, Count_Temp.sql with date as parameter
    sqlplus usernam/password@Database_Name @Counts_Temp.sql $Temp_Date
    # remove the blank lines
    sed '/^$/d' Counts_Temp.lst > Counts_C2ATG.lst
    # Store variables from the spooled file which gets generated in Count_Temp.sql into variables defined
    while read myline
    do
    count=$(($count + 1))
    case $count in
    1) Count_ILX_EXCH=$myline ;;
    2) Count_ILX_CBOE_SERIES=$myline ;;
    3) Count_ILX_UNDLY_INST=$myline ;;
    4) Count_STOCK_TIPS=$myline ;;
    5) Count_TIPSSUM=$myline ;;
    esac
    done < Counts_C2ATG.lst
    echo "ILX_EXCH Count $Count_ILX_EXCH"
    echo "ILX_CBOE_SERIES Count $Count_ILX_CBOE_SERIES"
    echo "LX_UNDLY_INST Count $Count_ILX_UNDLY_INST"
    echo "STOCK_TIPS Count $Count_STOCK_TIPS"
    echo "TIPSSUM Count $Count_TIPSSUM"
    if [ $Count_ILX_EXCH -eq 0 ] || [ $Count_ILX_CBOE_SERIES -eq 0 ] || [ $Count_ILX_UNDLY_INST -eq 0 ] || [ $Count_STOCK_TIPS -eq 0 ] || [ $Count_TIPSSUM -eq 0 ]
    then
         echo "*********** Count in one of the tables is Zero *****************"
         exit 1
    fi
    Create the SQL File eg Count_Temp.sql
    SET heading off
    SET VERIFY OFF
    SET PAUSE OFF
    SET ECHO OFF
    SET TIMING OFF
    spool Counts_Temp.lst;
    select count(*) from ILX_EXCH where trade_date= '&&1'
    UNION ALL
    select count(*) from ILX_NONCBOE_SERIES where trade_date= '&&1'
    UNION ALL
    select count(*) from ILX_UNDLY_INST where trade_date = '&&1'
    UNION ALL
    select count(*) from STOCK_TIPS where trade_date = '&&1'
    UNION ALL
    select count(*) from TIPSSUM where trade_date ='&&1
    spool off;
    exit;
    Do reply in case you are unable to undertand any part of the scripts

  • Passing arguments from Air to Photoshop jsx script

    I would like to invoke JavaScript file in Photoshop from my Adobe Air application. I managed to call my script with the following code:
    // Create native startup info
    nativeProcessStartupInfo = new NativeProcessStartupInfo();
    nativeProcessStartupInfo.executable = filePhotoshop; // File referencing Photoshop exe
    // Create Vector array to pass arguments
    procarg = new Vector.<String>();
    procarg.push("start");
    procarg.push(jsFileToCall);// String with path to my jsx file
    procarg.push(scriptData); // String with argument to pass to jsx file
    nativeProcessStartupInfo.arguments = procarg;
    // Create native process object for calling  executable file
    process = new NativeProcess();
    // SET ERROR HANDLERS
    process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA ,onError,false,0,true);
    process.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR ,onError,false,0,true);
    process.addEventListener(IOErrorEvent.STANDARD_INPUT_IO_ERROR ,onError,false,0,true);
    process.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR ,onError,false,0,true);
    process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA ,onError,false,0,true);
    // CALL NATIVE PROCESS
    process.start(nativeProcessStartupInfo);
    The Photoshop app is started, my JavaScript is invoked, but the argument is not passed into jsx.
    Is there any method how to pass arguments to script in Photoshop? (I know that I can use the file to pass the parameters, but I do not like that solution.)
    Thanks in advance for any hint.
    Zdenek M

    The only documented way I know of is programming the script as a Photoshop Plug-in that has a dialog. Then record using the script in an action.  The script will record the arguments used in its dialog into the Photoshop Actions step.  Then when the action is used played the action recorded arguments are retrived and the script bypasses displaying its dialog. 
    However In CS3 I looked at Adobe Photoshop  Image Processor JavaScript it internaly used the Fit Image Plug-in Script and passed the width and hight to it. So it is posible to pass arguments from one JSX to an JSX Plug-in Script.
    From CS5 "Image Processor.jsx"
    // use the fit image automation plug-in to do this work for me
    function FitImage( inWidth, inHeight ) {
              if ( inWidth == undefined || inHeight == undefined ) {
                        alert( strWidthAndHeight );
                        return;
              var desc = new ActionDescriptor();
              var unitPixels = charIDToTypeID( '#Pxl' );
              desc.putUnitDouble( charIDToTypeID( 'Wdth' ), unitPixels, inWidth );
              desc.putUnitDouble( charIDToTypeID( 'Hght' ), unitPixels, inHeight );
              var runtimeEventID = stringIDToTypeID( "3caa3434-cb67-11d1-bc43-0060b0a13dc4" );
              executeAction( runtimeEventID, desc, DialogModes.NO );
    If You can write a file from Adobe Air you could also write the jsx file to pass the args you want to pass a to plug-in script via the ActionManager.

  • Mappings not triggered from Process flow?

    Hi,
    I have some mappings under a process flow..they are triggered daily but today they were not triggered can anyone tell me how to go about this?

    Hi ,
    If you have deployed the schedule then it will be in Disable state .
    You can check that by logging into SQL*PLUS as the Target user and running
    select job_name, state from user_scheduler_jobs;
    Use the Schedule tab on the Control Center Jobs panel in the Control Center Manager to schedule
    the job. Highlight, right click the job and from the pop-up menu select "start". Use the same query to check the current status:
    select job_name, state from user_scheduler_jobs;
    The above query will show whether the scheduled job is SCHEDULED, RUNNING or SUCCEEDED.
    Thanks,
    Sutirtha

  • 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

  • Issue when generating XPDL from process flows

    I have a process flow which has the following architecture.
    It begins with a Start activity called “START1”. START1 has two parameters P_MESSAGE_TYPE and P_MESSAGE_ID. These parameters are populated from values provided by an external process. From START1 an unconditional transition goes to a ROUTE activity. Leaving the ROUTE activity are 18 conditional transitions and 1 unconditional transition.
    The 18 conditional transitions each perform a test on the parameter value supplied in P_MESSAGE_TYPE. The value supplied is checked against a string value (they all check for different values, e.g. 'referenceEngineeringInstructionRecordExtract'). The 1 unconditional transition provides an “emergency exit” should something come through that does not match any of the 18 conditions.
    If there is a match against one of the 18 conditions then that particular transition is followed and a sub-process on the end of that transition is executed. Flow then continues from that sub-process on to an OR operator (which brings together the exit transitions from all 18 of these sub-processes) before the flow ends with the ususal Success, Error and Warning activities.
    Here is the problem. When I build this process flow from scratch it generate out the XPDL it works fine. The XPDL generated around some of the conditional transitions looks like this:
    <Transition Id="TRANSITION_4" From="MESSAGE_TYPE_ROUTER" To="R_EI_PART_CHANGE">
    <Condition Type="CONDITION">
    <Xpression>"P_MESSAGE_TYPE" ='referenceEngineeringInstructionPartChangeRecordExtract'</Xpression>
    </Condition>
    </Transition>
    <Transition Id="TRANSITION_5" From="MESSAGE_TYPE_ROUTER" To="R_ENGINEERING_INSTRUCTION">
    <Condition Type="CONDITION">
    <Xpression>"P_MESSAGE_TYPE" ='referenceEngineeringInstructionRecordExtract'</Xpression>
    </Condition>
    </Transition>
    <Transition Id="TRANSITION_6" From="MESSAGE_TYPE_ROUTER" To="R_FATIGUE">
    <Condition Type="CONDITION">
    <Xpression>"P_MESSAGE_TYPE" ='referenceFatigueParameterRecordExtract'</Xpression>
    </Condition>
    </Transition>
    Here the complex condition in the transitions can be seen as, for example, *"P_MESSAGE_TYPE" ='referenceEngineeringInstructionPartChangeRecordExtract'* which appears in the process flow editor in the form *"START1"."P_MESSAGE_TYPE"='referenceEngineeringInstructionPartChangeRecordExtract'*
    and these are all consistent throughout, i.e. every transition in thn process flow editor shows the “START1” which then seems to get stripped off during the XPDL generation.
    Now, if I make a change to the flow (e.g. remove a sub-process or add a new sub-process) and regenerate the XPDL what usually gets generated is of this form:
    <Transition Id="TRANSITION_4" From="MESSAGE_TYPE_ROUTER" To="R_EI_PART_CHANGE">
    <Condition Type="CONDITION">
    <Xpression>"P_MESSAGE_TYPE" ='referenceEngineeringInstructionPartChangeRecordExtract'</Xpression>
    </Condition>
    </Transition>
    <Transition Id="TRANSITION_5" From="MESSAGE_TYPE_ROUTER" To="R_ENGINEERING_INSTRUCTION">
    <Condition Type="CONDITION">
    <Xpression>"START1"."P_MESSAGE_TYPE" ='referenceEngineeringInstructionRecordExtract'</Xpression>
    </Condition>
    </Transition>
    <Transition Id="TRANSITION_6" From="MESSAGE_TYPE_ROUTER" To="R_FATIGUE">
    <Condition Type="CONDITION">
    <Xpression>"P_MESSAGE_TYPE" ='referenceFatigueParameterRecordExtract'</Xpression>
    </Condition>
    </Transition>     
    What can be seen here is that for some reason the generator has kept the “START1” context of P_MESSAGE_TYPE in the test for referenceEngineeringInstructionRecordExtract (and for two others that I haven't included) but not for the remaining 15 which appear as normal. This results in code that falls over at runtime. I haven't touched these conditional transitions between edits. They are uniquely sequenced and the process flow validates successfully.
    Has anyone else seen this issue before? I can’t find any reference to it either in MetaLink or in the forums.
    Edited by: AndrewD on Jul 3, 2009 1:57 PM

    Hi David,
    Thanks for the reply. The client version is 10.2.0.2.8 on a 10.2.0.2 repository. I suspect that it is something internally buggy. I have since found other issues - like I open up one process flow and choose the "Generate" option from the menu, whereupon it generates the XPDL for the last process I opened and not the current one...seems like there are several issues in this area.
    Andrew

  • Passing parameters in process flow

    Hi All,
    Is there a way to pass parameters between different process flow operators like transformation activity, mapping, etc using any variable. Either defining new variable or using existing variable. Does process flow provides any variables whose values can be changed by one mapping and used by mapping following it.
    Any help would be appreicated.
    Platform - OWB 10gR1
    Regards,
    Ron.

    write a PL/SQL transformation, function or procedure either. Call the Transformation before the mapping, like if you want to execute that mapping or not based on the return vale.
    "can be changed by one mapping and used by mapping following it"
    Yes, you can. Log the value into database , then convert the following mapping as the PL/SQL transformation, where you can easily take the previous mapping output value, which has been stored. All you need some temp parameter table. The way you can define a table to be used for more than one case.

  • Process flows are not running in OWB

    I have a process flow which has a main process and this main process calls 3 subprocesses and 1 externel process. This workflow was running fine and it suddenly stopped working and when I try to run it from WF monitor it is giving the following error.
    Activity CALWINDW_INC_LOAD_PF_WE
    Result Exception
    Error Name -20001
    Error Message ORA-20001: Task CALWINDW_INC_DELETE_PF does not exist. Please check that the ProcessFlow has been deployed successfully. ORA-01403: no data found
    Error Stack Wf_Engine_Util.Function_Call(WB_RT_WORKFLOW_UTIL.EXECUTE_TASK, CLWNPKG, 200509200915, 37461, RUN).
    I tried running it from OWB deployment manager but it didn't work.
    I have checked all the process flows and the mappings all are deployed and all the mappings are running sepreatly. I tried dropping and deploying the process flow again and it deployed successfully without any error. We have tried rebooting the server, creating new PF location and new process flows, but nothing worked out. Becuase of this issue we can't run the whole process. Any help will be appriciated please.

    May be your chain was in the wait at the scheduled time, as there were no adequate processes available at the app server to take up your job.
    Check with your Basis ( and also your users ); about the optimal time to schedule the job and reschedule your jobs.
    Ravi Thothadri

  • Scheduled process flows are not running automaticaly-OWB database clonning

    What I did:
    1.     Cloned the entire OWB repository database from live (bidb01.bh.xyz.com) server to new (green1.bh.xyz.com) server.
    ******     Source     New
    Physical Hostname     bidb01.bh.xyz.com     green1.bh.xyz.com
    DB Logical Hostname     xyzbidb      bidb-lh
    Service Name     BIPROD     BIPROD
    Listener Port     1521     1521
    Oracle Home of RDBMS     /app/oracle/home/product/10.2.0     /orabidb/oracle/product/10.2.0
    Oracle Home of OWB     /app/oracle/home/product/10.2.0/owb /orabidb/oracle/product/10.2.0/owb
    2.     Followed the Metalink Note 434272.1 (How To Update Warehouse Builder After A Database Cloning)
    Issue:
    Before doing the step-2, every time we put the new database up the normal process flows which run every day (10 AM, 1 AM , 2 AM , 2 PM, etc.) got executed on the production environment and hung the original processes that are being run on the production environment.
    After following the note 434272, scheduled process flows in production is working fine but in the new server it is not at all working.
    Could anyone please help me to fix this?
    Edited by: Padmanaban G on May 7, 2010 5:15 PM

    The issue was resolved by renaming the workflow. What is learned here is, we should not have same workflow name for two different workspace.

  • Passing params from SQL file to Shell Script and then from Shell to SQL Fil

    Afternoon guys,
    Have a fun question for all you gurus in shell scripting out there. I have a shell script that is calling 2
    different SQL programs. My objective is to pass a variable called request_number from one sql program
    to the shell script and then from the shell script back to another SQL program. I will explain why I
    need this to happen.
    Here is what the shell script looks like which calls sql programs student_load_a.sql and
    student_load_b.sql. Student_load_a.sql basically creates the control file (.ctl) which is needed for the
    SQL*Loader and then student_load_b.sql reads the table that was just loaded and does the main
    processing. My main objective here is to be passing the request_number which is being generated
    using an Oracle Sequence in student_load_a.sql and using this generated number in my main
    processing in student_load_b.sql to select records from the table based on request_number.
    Any ideas ?Any help or recommendations is welcome and appreciated.
    *1. Shell Script*
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
    # Create control files for sqlload
    sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_a.sql $p_job_id
    exit_status=$?
    # Do sqlloads
    sdesqlldr.exe userid=$p_user_id control=student_load-$p_job_id.ctl \
                                                 log=student_load-$p_job_id.log \
                                                 bad=student_load-$p_job_id.bad
    exit_status=$?
    # Main processing
    # sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id $p_request_number
    sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id
    exit_status=$?
    exit 0*2. student_load_a.sql (Would like to pass back the Sequence Number back to shell script and then use in student_load_b.sql*
    -- Accept system input parameters
    define p_job_id = &1
    spool student_load-$p_job_id.ctl
    select
    'append into table TMP_STUDENT_LOAD
    FIELDS TERMINATED BY '','' optionally enclosed by ''"''
    trailing nullcols
    (request_number CONSTANT ' || '''' || request_number_seq.nextval || ''',
    student_id)'
    from   dual
    spool off;
    exit 0;
    {code}
    *3. student_load_b.sql (This is a big file so I am only adding code that is relevant for the SQL)*
    {code}
    declare
      v_request_number    number(6);
      v_student_id                  number(7);
      cursor cur_student_load is
        select  student_id
        from   TMP_STUDENT_LOAD
        where  request_number = v_request_number
        order by 1;
    begin
        v_user_id := '&1';
        v_job_id := &2;
        -- This is the variable I would like to be be passing from shell script to student_load_b.sql
        -- v_request_number = '&3';
         open  cur_student_load;
         fetch cur_student_load into v_student_id;
          exit when cur_student_load%notfound;
          .... more logic of if then else in here
         close cur_student_load;
    end;
    {code}
    Edited by: RDonASnowyDay on Jan 29, 2010 4:03 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    How come you are mixing WinDoze script (*.exe) with Unix?
    You are aware that you will be passing the password along with the user id to the second sql script?
    I will assume Unix ksh:
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
    # Create control files for sqlload
    p_seqno=`sqlplus -s $p_user_id @$STUDENT_PATH/student_load_a.sql $p_job_id`
    exit_status=$?
    # Do sqlloads
    sqlldr userid=$p_user_id control=student_load-$p_job_id.ctl \
           log=student_load-$p_job_id.log \
           bad=student_load-$p_job_id.bad
    exit_status=$?
    # Main processing
    # sqlplus -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id $p_request_number
    sqlplus -s $p_user_id @$STUDENT_PATH/student_load_b.sql \
               $p_user_id $p_job_id $p_seqno
    exit_status=$?
    exit 0And the first sql script would look like this:
    -- student_load_a.sql
    -- Accept system input parameters
    set echo off pages 0 feed off lin 80 trims on ver off
    def p_job_id = &1
    col seqno NEW_VALUE seqno
    select request_number_seq.nextval seqno from dual;
    set term off
    spool student_load-$p_job_id.ctl
    select
    'append into table TMP_STUDENT_LOAD
    FIELDS TERMINATED BY '','' optionally enclosed by ''"''
    trailing nullcols
    (request_number CONSTANT ''&&seqno'',
    student_id)'
    from   dual
    spool off;
    exit 0;
    {code}
    :p                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Setting up Free Goods in CRM 5.0 Standalone

    Dear Friends, We are trying to set up Free Goods in our CRM 5.0 standalone environment. What we want to realize is that, if customer buys product A, product B will be added to the order automatically as free of charge. So far we have no idea how to g

  • Sharepoint 2010 permission The following factors also affect the level of access for

    hello, In my development server ,suddently from no where all users ,even full control group users cannot able to add or edit any list or any content. The following factors also affect the level of access for user1(domain\user1) Deny Manage Permission

  • Two accounting documnets to be generated at time of MIGO (Goods Receipt)?

    Hi SAP Gurus, Could you please give the solution to the below scenario. Two accounting documnets to be generated at time of MIGO (Goods Receipt) with two different documnet types ? 1) 1st Accounting Document:-----      Inventory a/c DR               

  • Display flashes white when I hit 0 on numeric keypad...why?

    Using Logic Pro 9... When I hit the 0 (zero) key on the numeric keypad as a transport control alternative, the entire display flashes white, and Logic does not respond as it should when 0 is pressed. I thought maybe this was an accessibility option,

  • Hierarchy Node display in report designer

    Hi, Urgent please help me out. I have an issue with report designer. I created a static report in Query designer with 2 structures. When i try to include this query in Report designer, only the last level nodes are getting into the Report designer. A