How to call a Java method n map the output of this method to a table in ODI

Hello

I am new to ODI. I wrote an interface that links the two tables (source) to a file (in the target). Now, I must apply a method (java call) on each element in a column in the target. Now my questions are:

1. all I know is to use the procedure using BeanShell Java or Jython. Can you give some examples of commands to achieve such a feature?

2. where should I actually apply this procedure? Is it possible to apply this procedure within the Interface during the mapping (so that I can map directly the result in the output file)?

Thanks in advance :)

Not sure why you want to call a java method for each column.
But as others have mentioned, an ODI procedure won't help you do.

However, there are other options you can exercise:
(1.) assuming that you are using Oracle, you can compile the Java class and wrap it as a PL/SQL function and then call this function from pl/sql to the ODI interface. This procedure will be called like any other function oracle for example. Upper (col1).

(2.) as I understand, it's that you want to apply the Java method for all columns.
Assuming that you have knowledge with Jython and the code inside the KMs, you can customize the KM to include the Java method around the columns. But this approach is complex if you are a beginner.

Hope that helps

Tags: Business Intelligence

Similar Questions

  • How to call a Java method, pl/SQL from within ApEx

    I want to call a Java method, which I intend to use to add members to a collection at the ApEx of another source of data.



    How does one call a Java from ApEx method?



    Thank you

    Gregory


    Hello

    Curious, the link works fine for me.

    Anyway, here is another, a thread on AskTom site that addresses the basic concepts you need-

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:952229840241

    Hope this helps,

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • Calling a Java method in a page JSFF fragment.

    Can someone tell me how I can call a Java method in a page JSFF fragment?

    Here's an excerpt from my jsff (My.jsff):

    < af:column sortProperty = "CrtdByUserid" sortable = "false".
    headerText = "#{customstoregroupviewcontrollerBundle.USER_LABEL} '"
    ID = "user" align = "center" >
    < af:outputText value = "#{rank." CrtdByUserid}"id ="ot5"/ >
    < / af:column >

    Here is the method of my Java (MyBacking.java)

    public String resolveUserName (String pUserId) {}
    try {}
    JCCRoleHelper jccrh = new JCCRoleHelper();
    Return jccrh.getUserName (pUserId);
    } catch (Exception e) {}
    return pUserId;
    }
    }

    I would replace "#{rank." CrtdByUserid}"in My.jsff with a call to the java method"resolveUserName (String pUserId)"of My.java by passing the value of" #{rank. " CrtdByUserid}"to return the string to fill the 'af:outputText = value'.

    Any help would be greatly appreciated.

    Hello

    create and save a bean inside taskflow, for example, name it userResolverBean.

    The bean code

    import java.util.HashMap;
    
    public class UserResolverBean {
    
        private HashMap _user;
    
        public UserResolverBean() {
            _user = new HashMap() {
                    @Override
                    public Object get(Object key) {
                        if(key == null)
                            return null;
                        return resolveUserName(key.toString());
                    }
                };
        }
    
        public String resolveUserName(String pUserId) {
            try {
                JCCRoleHelper jccrh = new JCCRoleHelper();
                return jccrh.getUserName(pUserId);
                } catch (Exception e) {
                return pUserId;
            }
    
        }
    
        public HashMap getUser() {
            return _user;
        }
    }
    

    and use it like this

    
    
    
    

    Cheers!

    Kind regards

    Published by: Santosh Vaza on August 8, 2012 11:48

  • How to call a Java object / Servlet of a trigger

    Could Hi someone please help me on this issue.

    We use the Oracle 10 g in our database.

    It is possible to write a trigger so that, whenever there is a change in the database (insert/update), we need to call a Servlet / or any Java program

    Any link will be a great help.

    Thanks in advance.

    Yes, you could use a trigger to call a java program stored in the database, or call a remote URL using UTL_HTTP.

    You must be more specific about what it does, where the program is and how to call it. It is in the database? On the operating system? On a remote Web server?

    A quick search with google would have answered this question for you and found you examples.

  • How to call support bean method when the user moves out of field of af: inputListOfValues

    Hello

    I use jdev 11.1.2.4.

    I want to call a method of bean of support depending on the value selected in the af:inputListOfValues field.

    The requirement is similar as Frank Nimphius-Oracle has shown here https://blogs.oracle.com/jdevotnharvest/entry/how_to_notify_the_server but with component input list of values.

    The areas I want to call the method is

    <af:inputListOfValues id="appealNameId"
                          popupTitle="Search and Select: #{bindings.AppealName.hints.label}"
                          value="#{bindings.AppealName.inputValue}"
                          label="#{bindings.AppealName.hints.label}"
                          model="#{bindings.AppealName.listOfValuesModel}"
                          required="#{bindings.AppealName.hints.mandatory}"
                          columns="#{bindings.AppealName.hints.displayWidth}"
                          shortDesc="#{bindings.AppealName.hints.tooltip}"
                          binding="#{backingBeanScope.backing_Donation.appealNameId}"
                          autoSubmit="true" clientComponent="false">
                          <f:validator binding="#{bindings.AppealName.validator}"/>
                          <af:autoSuggestBehavior suggestedItems="#{backingBeanScope.backing_Donation.onSuggestAppeal}"/>
                          <af:clientListener method="onBlurTxtField" type="blur"/>
    </af:inputListOfValues>
    <af:serverListener type="onBlurNotifyServer"
                       method="#{backingBeanScope.backing_Donation.onBlurNotify}"/>
                          
    

    as you can see, af:serverListener is outside the af: inputListOfValues which is probably the reason why this isn't executing this method?

    public void onBlurNotify(ClientEvent clientEvent) {
       // get a hold of the input text component
       RichSelectOneChoice inputTxt =  (RichSelectOneChoice) clientEvent.getComponent(); 
       //do some work on it here (e.g. manipulating its readOnly state)
       //…
       //Get access to the payload
        
       Map  parameters = clientEvent.getParameters();
       System.out.println("SubmittedValue = "+parameters.get("submittedValue"));
       System.out.println("LocalValue =  "+parameters.get("localValue"));
       }
    

    I tried to put the serverListener tag inside the < af:inputListOfValues > but get error below

    "Listener server is not a valid child of list of values of the entry.


    any ideas please?

    Thank you

    As first, make sure you use a correct type for af:serverListener (Traore we are you queue in the javaScript onBlurTxtField function)

    If still not working, go directly to the source code page, and put af:serverListener 'manually', as a child for af:inputListOfValues.

    Because it is possible that these messages are false alarms...

  • How to call a popup by programming in the region of the adf

    Hi all
    I have included a workflow as a region in my home.jspx page.
    My taskflow contains an active, page jsff where save button click I want to show a popup message programmatically
    I mean I want to call showpoup code in my save the action listener.
    I had some code snippet, but it works only incase if popup is called from jspx.

    *****************

    public static invokePopup Sub (String popupId, String line,
    String alignId) {}
    If (popupId! = null) {}
    ExtendedRenderKitService = service
    Service.getRenderKitService (FacesContext.getCurrentInstance (),
    ExtendedRenderKitService.class);

    StringBuffer showPopup = new StringBuffer();
    showPopup.append ("var tips = new Object();");
    Add hints that if specified - see javadoc for js AdfRichPopup for more information on the behavior and valid values
    If (align! = null & & alignId! = null) {}
    showPopup.append ("tips [AdfRichPopup.HINT_ALIGN] =" + line +)
    ";");
    showPopup.append ("advice [AdfRichPopup.HINT_ALIGN_ID] ='" +)
    alignId + "";");
    }
    showPopup.append ("var popupObj = AdfPage.PAGE.findComponent (" "+)")
    popupId +.
    "'); ("If (popupObj) popupObj.show (hints);");
    service.addScript (FacesContext.getCurrentInstance (),
    showPopup.toString ());
    }
    }


    *************************************************8

    Please let me know what changes should I inorder to call popup thid invoke, the jsff method.

    Thank you, regards,
    Arun.

    Hi Arun,

    From Oracle JDeveloper 11.1.1.3, instance of af: popup can be opened by using a Java method on the RichPopup object. There is no more need of javascript and the extendedRenderkitService.

    To launch a popup to a managed bean, you must first get an instance of rich popup, what you can do by making reference to a binding of JSF component.

    To open the context menu call you

    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    popup.show(ph);
    

    Popup indicators can be used to set the alignment, the component that the popup is open next door and the alignment type.

    To close a popup, simply call

    popup.show(hide);
    

    Regards Luke

  • How to call adobe pdf reader to open the PDF files in your application BB10?

    Hi all

    Can anyone please write an example of cascades showing how to call adobe pdf reader to open PDFs inside my BB10 stunts application?

    Thanks,.

    Mohanad

    This is how to do it:

    https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/AdobeReader.html

  • How to call a value of preference in the XSLT file

    Hi all

    How to call a value preference (which is defined in bpel already) in the XSLT?

    Can someone help me please

    Kind regards

    Villeneuve ch

    Get the value of preference and and check out the post below to pass as a parameter

    http://www.albinsblog.com/2012/07/passing-parameter-to-XSLT-in-SOA-11g.html#.UjfqfMZmiSo

    Concerning

    Albin I

  • How to call images from a folder to the main scene?

    Hello.

    I am a newbie to Flash. I learn how to create a basic flash image gallery.

    I am trying to find a way to call images from a folder to the main stage and animate the image appears for 1 second and change to the next image in a slide show loop. It is the homepage of the gallery.

    Thank you.

    It depends on which version of Actionscript you are using.  Since there is time involved, and you need to know when the images are responsible for the control of the synchronization, in AS2, you must use the MovieClipLoader class (with a listener for the completion of the load) and in AS3, you use the Loader class (with a listener for the completion of the load).

    For AS2, there is an example in section MovieClipLoader.addListener who watch most part of what you need to load and detect the loading is completed.

    For AS3 you should try Googling using terms like... "Tutorial AS3 Loader COMPLETE."

  • How ItemRenderer change for DataGrid column based on the value of this column?

    Hello! I am trying to create a DataGrid that has a component Button to register when the value of this column is 'Open', then a label saying full when the value of this column is "Full". But Im having a hell of a time he find.

    Here's my MXML with 2 different inline installation of components for different rendering engines point 2:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >

    < mx:Component id = "RegFull" >
    < mx:VBox horizontalAlign = "center" verticalAlign = "middle" >
    < mx:Label id = 'Full text' text = "Full" / >
    < / mx:VBox >
    < / mx:Component >

    < mx:Component id = "RegButton" >
    < mx:VBox horizontalAlign = "center" verticalAlign = "middle" >
    < mx:Button label = "Save" / >
    < / mx:VBox >
    < / mx:Component >

    < mx:DataGrid id = "scGrid" width = "100%" height = "100%" number of lines = "4" >

    < mx:dataProvider >
    < mx:Object label = "Status" data = 'Open' / >
    < mx:Object label = "Status" data = "Full" / >
    < mx:Object label = "Status" data = 'Open' / >
    < mx:Object label = "Status" data = "Full" / >
    < mx:Object label = "Status" data = 'Open' / >
    < mx:Object label = "Status" data = "Full" / >
    < / mx:dataProvider >

    < mx:columns >
    < mx:DataGridColumn id = "RegCol" headerText = "Reg" dataField = "data" / >
    < / mx:columns >

    < / mx:DataGrid >
    < / mx:Application >

    How can I dynamically use the right of itemrenderer based on the value of the field? THANKS FOR ANY HELP PROVIDED!

    The best
    Stephen

    You can have more than 1 column renderer engine. There are two ways to do this. One way would be to use States. A State for each possible value in the data. Since you either want a button (data == 'open') or a label (data == 'Full') by using the States wouldn't be a bad choice.

    Alternatively, you can use a canvas instead of a VBox. Make a label and a button with horizontalCenter = "0" "0" = red to make them each other. Make it visible according to the data value:






    where dataField is the value of the property dataField on this converter DataGridColumn.

  • How to call a service proxy FTP to the text of a Java client?

    Greetings,

    I configured a proxy FTP service text that downloads files from an FTP server. He pols a directory on the FTP server, and as soon as a file on a given ground apears it is downloaded. I tested the service in the console test and test by putting some of the files on the FTP server. Now, I need to be able to test from a Java client. How can I do that? I need to write a Java client to connect to the OSB and tell it to use the proxy FTP server in order to download a file, in a given situation and to put it in a place that is given on the client machine. Thank you very much in advance for any help. An example would be great!

    Kind regards

    Nicolas

    Maybe I don't understand your case, but why don't you just download a file from your client to Java to your proxy FTP server FTP server is voting?

  • How to call sequence into LabVIEW, by providing the path of the sequence files.

    Hello

    Please give me a solution for call sequence from the API ActiveX LabVIEW file by entering the path of the LabVIEW user interface sequence.

    Thank you

    Wherry

    Here is a link I gave some pointers on how to run a file opened via Single Pass sequence.

    http://forums.NI.com/T5/NI-TestStand/direct-execution-of-the-sequence-when-UI-launches/m-p/2000819#M...

    How are you going to start this sequence is the user who selects the sequence on the disk?    Is already open in a SequenceViewMgr control?

    An operator interface would be more applicable to your situation?

    Thank you

    PH

  • How to call several individual BPEL webservices of the only mediator?


    Hi all

    I have 3 Web Services BPEL and WSDL and endpoint 3 files. But asked to provide only one of client endpoint and WSDL. Is it possible to call all the Web Services BPEL of the only mediator.

    BR,

    Hari

    Hi Hari,

    Yes, do. Each WSDL is itself a stand-alone service, and will have its own namespace and request/response messages.

    As mentioned earlier, you need to come with a new WSDL that will have the same structures of request/response message from all your files, WSDL and the mediator, it would be a pass through the transformations based on the operation. It will be useful.

  • How can I start wireless zero configuration and how can I find article 871122, which provides the info on this. I am running xp pro. I have problems with my wireless connection.

    Info on WZC. How to get windows to set up my connection?

    Hi Tom Ole.

    What problems are you having with the connection exactly? You have reinstalled the drivers provided by the manufacturer. If you have not done this, I recommend to go on the manufacturer's website and download the latest drivers wireless. You can find the article you describe below.

    KB871122
    Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to get my dv7 Pavilion to show the OUTPUT HDMI option in reading?

    HP Pavilion dv7 - 1157cl Entertainment Notebook PC

    FS155UA #ABA

    Windows 7 Professional

    By other suggestions:

    * Uninstalled all drivers graphics & audio drivers

    * Installed later, now have:

    Mobile Intel 4 Series Express (8.15.10.2555)

    IDT High Def Audio CODEC (6.10.6207.0)

    Intel High Definition Audio HDMI (6.10.1.2089)

    * Impossible to correctly Reinstall driver nvidia geforce 9200 m gs or AMD driver graphics high definition

    Output HDMI does not appear as an option in audio playback (pilot reports: "this device works properly.")

    Is the reason for which the graphics card driver missing?

    Which will solve this problem so that I can choose an HDMI output?

    Thank you!

    And the answer is: I had installed the latest drivers (and thanks to response above realize did not need graphics driver, although the HP site indicated as well), BUT the HDMI audio driver does not appear until I plugged in the TV, duh... I was not expecting to see the disconnected HDMI option  Once I have connected to the TV, it seemed. Subsequently, it does not show as a disconnected option.

    Lesson learned: after reinstallig, connect to the TV.

    Thanks for the help.

Maybe you are looking for