Using the script, Jython in ODI

Hello
I have a requirement where I want to exploit a jython script to solve a business problem (break a string of semicolon separated into tokens). I'll call this script of ODI.

Do I need to download the jython interpreter to test my script before I use it in ODI?

How to call the script of ODI?

N ° the Jython interpreter is built into ODI. You can simply create an ODI procedure, step, assign technology as "Jython" and paste your script in the command on the target. You can then use this procedure as part of a package.

Tags: Business Intelligence

Similar Questions

  • How to use between operator in Disqualification without using the script processor?

    Hello Experts,

    How to use between operator in Disqualification? for example phonenumberLength between 7 and 10. I don't want to use the script processor? Also how to reproduce the SWITCH statement Disqualification CASE?

    Thank you

    Konate

    1 Add a processor 'check the length.

    2. connect the transformer and open the configuration dialog box

    3. in the tab 'Attributes' select your attribute of telephone number as the "field Check.

    4. in the tab "Options", enter "7-15"in the option 'number of valid characters.

    5. run the process.

    a. accounts with [included] a character length 7-15 phone numbers out of the release of "valid".

    b. records with a length of character <7 or="">15 phone numbers out of the release of "Invalid character count.

    Note: the processor also adds a 'LengthValid' flag attribute which you may also branch on [with the values "Y" and "NC" for both scenarios above]. See Library of processor of the online help for more information.

    Thank you

    Nick

  • help to change the size of precomp (weight and size using the script)

    Hi guys, need help with change precomp size (weight and size using the script), my problem in this... when I change the size of the model (height and weight) of GUI AE, AE change the size of the composition of the Center model, but if I change the size of the model of my script it change from upper left... so I need some how change in the center of scripts of composition or something like that?

    now I change size with this code

    MyComp.Width = myComp.Width.Width + 50;

    MyComp.Height = myComp.Width + 50;

    Hi Zipkiev,

    If you want to change the composition and all the layers it contains, there is a script: scale Composition.jsx that comes with Ae (in the Scripts folder) which does exactly the same thing.

    He puts on a scale by a factor uniform using a temporary null object. You can twist no uniform scaling by a factor.

    But if you want only to preserve the size of the layers and adjust their position so that their new position relative to the new comp Center is the same as previously, the script above can not help.

    In the simplest situation you just compensate for all positions of layers related by the same amount: [(compNewWidth-compOldWidth) * 0.5, (compNewHeigth-compOldHeight) * 0.5].

    Not sure it will work well in all situations (such as 3D with cameras).

    You can try it, it might work for you:

    COMP is the composition, newWidth, newHeight its new width/height

    var

    DX = (newWidth - comp.width) * 0.5;

    DY = (newHeight - comp.height) * 0.5;

    layer, n,

    p, j,

    value;

    COMP. Width = newWidth;

    COMP. Height = newHeight;

    for (n = 1; n<=comp.numLayers;>

    layer = comp.layer (n);

    If (layer.transform &! layer.parent) {}

    p = layer.transform.position;

    If {(p.numKeys===0)}

    p.value = value;

    value [0] += dx;

    value [1] += dy;

    p.setValue (value);

    }

    else {}

    for (j = 1; j<=p.numKeys;>

    value = p.keyValue (j);

    value [0] += dx;

    value [1] += dy;

    p.setValueAtKey (j, value);

    };

    };

    };

    };

  • Reissue of links in batches of files using the Script

    Is this possible in first? I can After Effects script, but I'm not sure whether body has the same script engine (the measuring instrument that it lists as a target but I can't find any docs on that)

    Basically, I have a project via AAF I want to browse and create a link to the files according to certain criteria stripped. This isn't a straight line as for as the code is going to decide what to link to based on metadata.

    I appreciate this forum is for a SDK plug next to things, but hoping someone might be able to help or put me out of my misery and tell me it is not possible?

    see you soon

    Paul

    Not possible to make real re - bind, but, in case it helps, in the body of the CP you can get/set the XMP metadata for any project using the script element.

  • Help: apply different styles of Pará to several consecutive paragraphs using the script

    Hi all

    I need to apply different styles of Pará to several consecutive paragraphs using the script, something like this (found somewhere on the net):

    myDoc = app.documents var [0];

    mySel var = app.selection [0];

    var myPStyle1 = "A";

    var myPStyle2 = 'B ';.

    you need to add 6 styles here:

    var myPStyle3 = 'C ';

    var myPStyle4 = "D";

    var myPStyle5 = 'E ';

    var myPStyle6 = 'F';

    var myPStyle7 = "G";

    var myPStyle8 = 'H ';

    the last style is not necessary in the script?

    apply style 1 paragraph 1

    mySel.appliedParagraphStyle = myDoc.paragraphStyles.item (myPStyle1);

    apply styles to the paragraphs after selection

    style 2

    mySel.paragraphs [-1] .insertionPoints [-1] .appliedParagraphStyle = myDoc.paragraphStyles.item (myPStyle2);

    next style

    mySel.paragraphs [-1] .insertionPoints [-1] .paragraphs [0] .insertionPoints [-1] .appliedParagrap hStyle = .nextStyle myDoc.paragraphStyles.item (myPStyle2);

    I tried a lot, but could not find the way to extend the sequence

    Sorry, no skills in the scripts still...

    all styles have "Next Style" option enabled, but I can't use ' apply style, then next style "or object styles, because I need four different sequences of these paragraph styles:

    A-B-C-D-E-F-G-H

    A-B-D-E-G-H

    A-C-D-F-G-H

    A-D-G-H

    and I don't really want to create special clones of the same style for each sequence (Keep It Simple, they say ).

    I think that this can be done through four slightly adjusted scripts...

    any suggestions would be greatly appreciated...

    Sorry to be late to the party, I usually take up such things immediately.

    How about this one?

    1. no separate necessary script, it uses a small dialog box where you can choose what style to use. If I'm not mistaken, you can press a digit key on Windows to immediately select one of the items.

    2. it works down in the paragraph in that your cursor is located. It has nothing to do with the blocks of text, even if - consecutive paragraphs within a story always ignore the text frames.

    3. extensible: you can easily change the names of the styles in the table at the top of the page and the number of groups of style in the list.

    var styleLists = [
              [ "A", "B", "C", "D", "E", "F", "G", "H" ],
              [ "A", "B", "D", "E", "G", "H" ],
              [ "A", "C", "D", "F", "G", "H" ],
              [ "A", "D", "G", "H" ]
    ];
    
    var radiobutts = [];
    
    styleDialog = app.dialogs.add ({name:"Set Multiple Styles",canCancel:true});
    with (styleDialog)
    {
              with (dialogColumns.add())
              {
                        with (radiobuttonGroups.add())
                        {
                                  for (i=0; i		   
  • How to use the script "click menu item" command on a menu item for an application that runs under another user?

    Hey everyone, quick question...

    I am trying to run this script:

    say application "System events".

    say process of "iTunes."

    click on menu item "Start Station" from the menu 'Song' to menu bar item 'Song' in the menu bar 1

    end say

    end say



    The idea behind this is to start a song selected currently playing station. I know, it's not hard to do it manually, but I want to be able to do it without having to call the iTunes app to the front. Now, this script works for my own iTunes app, but I have a second instance of iTunes connecting the second user on my computer at home (User2), with its own separate library and account and all. script I have works fine for an instance of iTunes under my user account, but I can't figure out how to specify which instance of iTunes, I'd like the script to work on.




    I want to emphasize as an FYI that i use.


    the shell script "connection f User2 /Applications/iTunes.app/Contents/MacOS/iTunes > & - 2 > & - &" with administrator privileges

    -to open my second instance of iTunes as User2



    is there a way to change the "process"iTunes"to say" something like 'process 'unix ID' say' and have the ID for each respective instance of iTunes unix?


    Let me know if I do not make sense... Thanks in advance to anyone who can help






    You can target a process of application using various properties of system events, for example:

    tell application "System Events"
      tell first item of (get application processes whose unix id is 15174) -- or whatever id
        activate --> needed when using GUI scripting
        get properties
      end tell
    end tell
    
  • SQL Server 2005 unattended install using the script fails on Windows 2003 Cluster

    We strive to perform the installation without SQL Server 2005 via the script assistance, but the installation fails on Windows 2003 Cluster, we use Windows 2008 with HyperV running a DC with two nodes (all Win 2003). Script is...

    Start/wait setup.exe/qb VS = INSTALLVS SQLTEST = SQL_Engine INSTANCENAME = SQL123 ADDLOCAL = SQL_Engine ADDNODE = sqlnode-1, sqlnode-2 GROUP = SQL1 IP = 192.168.1.85, SQLNetwork ADMINPASSWORD = Windows8! SAPWD = Windows8! INSTALLSQLDIR=%ProgramFiles%\Microsoft SQL Server\ INSTALLSQLDATADIR = G:\SQLDATADIR\ SQLACCOUNT = SQLPASSWORD lab\sql_svc = Windows8! AGTACCOUNT = lab\sql_svc = Windows8 AGTPASSWORD! SQLBROWSERACCOUNT = SQLBROWSERPASSWORD = Windows8 lab\sql_svc! SQLCLUSTERGROUP = "lab\sql_grp" AGTCLUSTERGROUP = "lab\sql_grp" FTSCLUSTERGROUP = "lab\sql_grp" ERRORREPORTING = 1 SQMREPORTING = 1 SQLCOLLATION = SQL_Latin1_General_CP1_CI_AS

    Errors on the nodes:

    SQLSetup0008_SQLNODE1_Core (Local)

     Running: InstallSqlAction to the: 4/14/2012 22:56:39

    Installation: sql on target: SQLNODE1

    Waiting for remote setup (s) to prepare

    Remote Setup (s) is ready

    Problem of determining the State of the virtual server for the package: '1' because of the exception of data store:

    Source the name of the file: datastore\cachedpropertycollection.cpp

    Compiler timestamp: Fri 29 Jul 01:13:49 2005

    Function name: CachedPropertyCollection::findProperty

    The source line number: 63

    ----------------------------------------------------------

    Could not find the property 'VsDataPath' {'PackageIdStateScope', ' ', '1'} in the cache.

    Source the name of the file: datastore\packageidstatescopecollector.cpp

    Compiler timestamp: Wed Aug 24 13:40:04 2005

    Function name: PackageIdStateScopeCollector::collectProperty

    The source line number: 115

    ----------------------------------------------------------

    dataPathValue is empty

    Cluster functionality detected: SQL_Engine

    Loaded DLL:C:\Program SQL Server\90\Setup Bootstrap\sqlsval.dll Version: 2005.90.1399.0

    Source the name of the file: datastore\cachedpropertycollection.cpp

    Compiler timestamp: Fri 29 Jul 01:13:49 2005

    Function name: CachedPropertyCollection::findProperty

    The source line number: 130

    ----------------------------------------------------------

    Unable to find property 'IPResources' {"VirtualServerInfo", "", "SQLTEST"} in the cache

    Source the name of the file: datastore\cachedpropertycollection.cpp

    Compiler timestamp: Fri 29 Jul 01:13:49 2005

    Function name: VirtualServerInfo.IPResources

    The source line number: 113

    ----------------------------------------------------------

    Could not collect the property 'IPResources' {"VirtualServerInfo", "", "SQLTEST"}

    Transact package threw an exception.

    Error code: 0x8007000d (13)

    Windows error text: these data are incorrect.

    Source the name of the file: sqlchaining\highlyavailablepackage.cpp

    Compiler timestamp: Mon Aug 29 01:18:42 2005

    Function name: sqls::HighlyAvailablePackage:manageVsResources

    The source line number: 490

    ---- Context -----------------------------------------------

    SQLs::HighlyAvailablePackage:preInstall

    SQLs::HighlyAvailablePackage:manageVsResources

    m_dataDirPath is empty

    Cluster API threw an exception during operations of virtualization.

    Package first notify: 13

    Error code: 0x8007000d (13)

    Windows error text: these data are incorrect.

    Source the name of the file: sqlchaining\highlyavailablepackage.cpp

    Compiler timestamp: Mon Aug 29 01:18:42 2005

    Function name: sqls::HighlyAvailablePackage:manageVsResources

    The source line number: 490

    ---- Context -----------------------------------------------

    SQLs::HighlyAvailablePackage:preInstall

    SQLs::HighlyAvailablePackage:manageVsResources

    m_dataDirPath is empty

    Cluster API threw an exception during operations of virtualization.

    SQLSetup0008_SQLNODE2_Core (Local)

     

    Local configuration can complement

    Running: InstallSqlAction at: 4/2012/14 23:23:57

    Installation: sql on target: SQLNODE2

    Informs the package is ready to start: 0

    Waiting for notification start installation

    Local configuration can begin installation

    Error code: 0x8007000d (13)

    Windows error text: these data are incorrect.

    Source the name of the file: remotepackageengine\remotepackageinstallersynch.cpp

    Compiler timestamp: Wed Aug 24 13:40:17 2005

    Function name: sqls::RemotePackageInstallerSynch:preInstall

    The source line number: 128

    ---- Context -----------------------------------------------

    SQLs::InstallPackageAction: perform

    SQLs::RemotePackageInstallerSynch:preInstall

    Abandonment of the package: "sql", due to an error from the configuration of the host: 13

    Notify all ready to commit: 13

    Notify all ready to put end to: 13

    Waiting for notification complete installation

    Local configuration can complement

    Packaging return code: 13

    Complete: InstallSqlAction at: 4/2012/14 23:23:59, returned false

    Error: The 'InstallSqlAction' Action failed during execution.  Error during execution information:

    Target collection includes the local machine.

    -----------------------------------------------

    Error: The 'UninstallForRS2000Action' Action failed during execution.  Error during execution information:

    Action: "UninstallForRS2000Action" will be marked as failed due to the following condition:

    The condition 'rs has been correctly upgraded level.' returned false.

    Package installation: 'patchRS2000' failed due to a precondition.

    Running: ReportChainingResults at: 4/2012/14 23:24:1

    Error: Action "ReportChainingResults" threw an exception during execution.

    One or more packages could not be installed. See logs for details of the error. : 13

    Error code: 0x8007000d (13)

    Windows error text: these data are incorrect.

    Source the name of the file: sqlchaining\sqlchainingactions.cpp

    Compiler timestamp: 1 Thu Sep 22:23:05 2005

    Name of the function: sqls::ReportChainingResults: perform

    The source line number: 3097

    Please notify.

    Assani

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums. You can follow the link to your question:

    http://TechNet.Microsoft.com/en-us/WindowsServer/bb512923

    Hope this information helps.

  • How to use the Script TCL EEM in router?

    Dear all,

    I have a TCl Script (it's 1 to test and understand).

    ********************************************** TEST.tcl *******************************************

    : model cisco::eem:event_register_syslog "Interface FastEthernet0/0, changed State to.

    import namespace: cisco::eem: *.
    import namespace: cisco::lib: *.

    Table game arr_einfo [event_reqinfo]

    action_script enable status

    If {[catch result {cli_exec $cli_fd (fd) 'enable'}]} {error $result $errorInfo}

    If {[catch result {cli_exec $cli_fd (fd) 'int fa0/1'}]} {error $result $errorInfo}

    If {[catch result {cli_exec $cli_fd (fd) 'shut'}]} {error $result $errorInfo}

    action_syslog msg "New Port is now"

    If {[catch result {cli_close $cli_fd (fd) $cli_fd (tty_id)}]} {error $result $errorInfo}

    ********************************************** TEST.tcl *******************************************

    Can someone tell me how to use this script in router that will be used every time my interface fa0/0 he'll fa0/1 in stop mode?

    Can you give me the steps to follow in the router?

    Wharton are the sine qua non for the use of this?

    Concerning

    Concerning

    Virtually any command, Yes.  You can't do "?" as you can from an interactive session, but you can run all the commands EXEC and config otherwise.

  • Export the visible layers in photoshop by using the script.

    Hello

    I am new to adobe script, so please forgive me if this has been covered before.

    I have a book script Adobe Scripting of Chandler McWilliam, I want to use. Essentially, it exports all visible layers in a document open in PS. The script works, but I can't seem to export to a folder/directory of my choice. It is default export to the folder that contains the Photoshop application.

    I use a Mac.

    The Script looks like this:

    function exportVisible (doc) {}

    var myJPEG = new JPEGSaveOptions();

    myJPEG.quality = 10;

    myJPEG.formatOptions = FormatOptions.STANDARDBASELINE;

    var myPath = ' / users/tr/Desktop/JAVATESTFOLDER ";

    var myFolder = new Folder (myPath);

    myFolder.create ();

    var settings = new Array();

    var current; Reference to the current layer

    for (var i = 0; i < doc.layers.length; i ++) {}

    current = doc.layers [i];

    settings [i] = current.visible;

    doc. Layers [i]. Visible = false;

    }

    for (var i = 0; i < doc.layers.length; i ++) {}

    current = doc.layers [i];

    If (settings [i]) {}

    Current.Visible = true;

    var myFile = new File ("Img-" + current.name + '.jpg');

    doc.saveAs (myFile, myJPEG, true);

    Current.Visible = false;

    }

    }

    for (var i = 0; i < doc.layers.length; i ++) {}

    current = doc.layers [i];

    Current.visible = settings [i];

    }

    }

    exportVisible (activeDocument);

    I tried many variations, but in vain. I would be very grateful for any advice.

    I've not heard JJ found, but you need to add the path of access, but with my corrections.

    var myFile = new file (myPath + "/ Img-" + current.name + '.jpg');

  • Using the script to collect data

    Hello

    I would use the new script feature to collect a metric.

    I see that the script must return a value as the key value:

    This is my script:

    #! / bin/bash

    Val = $(netstat-ntaupe | grep httpd | grep ESTABLISHED | wc-l)

    echo "res = $val.

    The script returns a result as:

    RES = 18

    But the measure of value of return in my script object result is always 0

    I see that the script is run, but of all tha.

    Something I missed here?

    Thans

    Got a response, it is only because netstat must be root and scripts are run as user epops.

    That's all

  • How to use the script to display the number of columns contain no data

    I have a requirement. There is a source that is the excel, the excel file file, we need to load data into the staging table. There are 5 columns mandatory ones must not be null. We used "No. Data Check" for this. The logic is so mentioned previously mentioned 5 columns don't contain any record that the record will be moved to without data. So far, it is fine. Now the requirement is to show what column or columns contain no data. We used a script to do this like:

    RES =' '

    RES = input1 [0] + ": failed because values null in required columns;"

    INPUT1 [1] = res;

    Output 1 = res;

    But it shows message "down because of nulls in the required columns", which is a generic message. We must show what column or columns does not contain the value "failed because of null values in a column required columnA, columnB or columnC. Can someone help me in this regard. Any kind of help is appreciated.

    You can use the variable inputname1, which keeps an array of names of the entry for the script processor attribute. For example:

    var result = "";

    var first = true;

    for (i = 1; i< input1.length;="" i++)="">

    If (input1 [i] == null | input1 [i] == ' ') {}

    If {(first)

    Firstly = false;

    } else {}

    result += "";

    }

    lead inputname1 += [i];

    }

    }

    If (result.length > 0) {}

    result = "failed due to null values in the following mandatory columns:"+ result; "

    }

    Output 1 = result;

    Kind regards

    Nick

  • Text field that supports rich text using the script edition

    I have a text field with rich text format format. I need to add a new line character, if the length of a sentence longer than 65 characters. When I change the text using javascript formatting breaks and the signature event will fail eventually. Is it possible to change the body of the value of the text field? I realized that the value store in text/html.

    Examples:

    Before change:

    "< txtOtherDocuments > < body xmlns ="http://www.w3.org/1999/xhtml"xfa:APIVersion ="Acroform:2.7.0.0"xfa:spec ="2.1">"

    < style p = "margin-top: 0pt;" margin-bottom: 0pt; do-family: Arial; font-size: 8 pt. "text-decoration: no" > Test data < /p > < / body >

    Field.rawValue using = «...» "fails. Y at - it a different set of commands?

    Help, please.

    Thank you

    If you want to access the data and style in a field richtext, you must use the command Fieldname.value.exData.saveXML ("pretty"). This will give you the xHTML data format. Then you can manipulate the data in the way that you want, and to get it back in the field, use the Fieldname.value.exData.loadXML ("xml to load", parm1, parm2). The parms are Boolean values that control whether to replace or add the XML to the existing xml. See the reference for script/help for a more detailed description.

    Note that it won't be easy if there is a lot of rich text in your field that the text will be spread between tags. You may need to use the rawValue (no formatting to find out where to put the CR then find in the HTML code and it add.)

    Make sense?

    Paul

  • Using the script for import and export

    Hello

    Can any such a me what is the use of the script for import and export.

    After you move the pages from / to server what is the need to import / export command.

    export/oracle/apps/ap/setup/webui/customizations/site/0/SetupPG - rootdir < destination path > - user < database username > - password < database password > - dbconnection "(description = (address_list = (address = (community = tcp.world) (protocol = tcp) (host = < host name > (port < port id > =))) (connect_data = (sid = < sid >)))".) "

    Thanks in advance,
    Roselyne

    Hi Flo,

    Page and the region are stores in database import/export we really want pages/areas to store in the database.

    Thank you
    -Anil

  • Why do we actually use the IKM custom in ODI?

    Do we really use the IKM custom. If so, can you please explain a scenario where need do we use them? Some blogs, I searched but I'm not sure that having understood them.

    Hi 2879152,

    Personally I only use custom IKMs.

    I added a few steps to disable the index before the load and rebuild after the charge. I've added steps to collect statistics.

    I changed a bit the revenge of MERGE to match my needs and not one I use $ table.

    I also added a step at the beginning and end of each IKM to integrate it with our custom/monitor Scheduler written in PL/SQL. If the developers do not need to take care of him in their mappings.

    Kind regards

    JeromeFr

  • I want to delete after the line that I m using the script... COIL is not used here

    Hi team,

    1.SQL * more: Production release 11.2.0.3.0 on Mon 19 Nov 08:47:36 2012
    2.
    3 Copyright (c) 1982, 2011, Oracle. All rights reserved.
    4.
    5.
    6. connected to:
    7 oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    8. with the options of partitioning, OLAP, Data Mining and Real Application Testing
    9.
    SQL > SQL > 2 3
    NAME LOG_MODE INVALID_OBJECTS INVALID_ n/a _INDEXES invalid triggers broken jobs block Corruption
    --------- ------------ --------------- ------------------- ---------------- ----------- ----------------
    DBAS ARCHIVELOG 530 530 6 16 0
    10.
    11 SQL > SQL > disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    12. with the options of partitioning, OLAP, Data Mining and Real Application Testing



    I'm not above numbered line: i 1-9 and 10-12 to appear when cannot connect to sqlplus, please suggest how to turn them off and I need just of data between people. That is to say one line 11/12/13

    You can also do:

    (1) create a file with to call the script from the sql code:
    .. /.. /.. /sqlplus s username/password @... /... /.. /.. / test. SQL

    (2) create the code sql script:
    .. /.. /.. /.. / test. SQL

    Select * twice;

    and you will get:

    D
    -
    X
    

Maybe you are looking for