Use of bpelx built-in methods like getVariableData in custom java classes

Hi,
how can I use bpelx built-in methods like getVariableData ...
inside custom java classes embedded with BPEL project?
I have large java code to embed with BPEL process
and it will be very useful ....
It is possible to access these methods like static methods of some class?
import com.xxx.yyy.class;
class.getVaribleData("inputVariable","payload","/ns1:mailMessage/ns1:content/ns1:multiPart");
Regards
Karel

you can access them from <bpelx:exec> activity and you can pass these returned document to underlying java class.
Re: getVariableData in Java Exec

Similar Messages

  • Using Custom Java Class - WorkflowRegistry.xml

    I am using a custom java class in workflow. While executing I am getting errot -
    com.waveset.util.WavesetException: Class com.LdapGroupMod is not a WorkflowApplication
    It seems from documentation that I need to add this in workflowregistry.xml file. I added the same like given below -
    <WorkflowApplication name='Workflow Name'
    class='com.LdapGroupMod'>
    <Comments>Nothing Here</Comments>
    </WorkflowApplication>Even tried restaring the application server but I am still getting same error. Any idea what needs to be done here? or I am missing smething?

    Well the first thing would be to read the workflowRegistry.xml file. The header talks about internal and external applications and so on. The crucial part is that any application registered must implement the WorkflowApplication interface (which I guess your class dont do)
    I gave up. I am totally baffled by the documentation. I admit it.
    What I did was to create an Script action in an Activity where the script used Xpress to invoke my class. It seems to work.

  • Facing problem to Use a custom Java class in UCCX

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Hi,
    We are using Communication manager 7.0.1 and UCCX version 7.0.1(Cisco Unified CCX Premium).  We are trying to call a Custom Java class file from UCCX scripting. We have followed the steps mentioned in the guide (How-To: Using a custom Java class in UCCX 5.x (SOAP Example)). See below link.
    http://www.avholloway.com/vtools/ipcc/custom-java/soap/
    After completed all the steps we have got the variable type SimpleSOAP at script but we did not found it to object constructors or object attributes (plz find the attached screenshots). We will appreciate if you plz guide us to solve the issue.
    Thanks
    Fakhrul
    LEADS Corporation Ltd.

    Hello, Fakhrul.
    I'm sorry to see you were not able to find the information or help you were looking for here in the Contact Center community forum.
    You may be able to find more help through the Cisco Developer Network.
    Also, you might want to consider engaging Cisco Advanced Services via your account team to assist with UCCX custom scripting.
    Thank you, and good luck.
    -Paulo

  • Creating data dictionary type using custom java class

    Hi Experts,
    I have a situation involving the TableSorter mechanism as described here:
    In order to do my sorting correctly, I've created my own Java class implementing the Comparable interface. Based on this class, I need to define my own data dictionary type to be used in a context/table.
    However, I cannot se how this could be achieved as standard Data Dictionary elements can only be based on simple built-in types. Any ideas?
    Kind regards,
    Rasmus Røjkjær Ørtoft

    Hi,
    have you tried to use the following steps while creating your attribute
    1) Right click on the context
    2) New->Attribute
    3) Manually-> Provide a name for the attribute
    4) Browse->Select java native type and select your class
    regards
    Ayyapparaj

  • How to use java classes of DC1 in DC2

    When I was trying to use a java-class from another DC, I stumbled into an error I didn't expect:
    java.lang.NoClassDefFoundError: com/company/application/utils
    This is what I did to get this far:
    1. Created an empty Web Dynpro DC (DC1), to be used as a utilities library.
    2. Added a Java class to the webdynpro project.
    3. Added the class to a public part of type compilation.
    4. Created a second Web Dynpro DC (DC2), which is supposed to consume the class from DC1.
    5. Added a DC-usage relation, so that DC1 is in DC2's used DCs. In this usage-relation built-time and run-time were checked
    5. Used DC1's class in DC2's component controller
    6. Built both DCs and deployed them
    7. Ran the application in DC2.
    When I run the application, the application dumps a stack trace at the moment that and object is created based on the class in DC1.
    Any idea how to get this working?

    Vincenzo, here is the real error message:
    java.lang.IllegalAccessError: tried to access method nl.phoqus.pataut.Guid.getGuidString()Ljava/lang/String; from class nl.phoqus.pataut.PatientAuthorization
    I have inserted a very simple GUID generator that I used in a previous project. Please find the class file below:
    package nl.phoqus.pataut;
    import java.util.Random;
    public class Guid {
         private static Guid guidFactory = new Guid();
         static Random random = new Random();
          * Allow global replacement of the GUID generator.  Applications
          * wishing to install their own GUID generators should sub-class
          * Guid, override the getGuid() method, and use this method to
          *  install their generator.
         public static void
         setGuidImpl(Guid factory) {
         guidFactory = factory;
          * Return a GUID as a string.
         public static String getString() {
         return guidFactory.getGuidString();
          * Return a GUID as a string.  This is completely arbitrary, and
          * returns the hexification of a random value followed by a
          * timestamp.
         protected String getGuidString() {
            long rand = (random.nextLong() & 0x7FFFFFFFFFFFFFFFL) | 0x4000000000000000L;
            return Long.toString(rand, 32) + Long.toString(System.currentTimeMillis()&0xFFFFFFFFFFFFFL, 32);
    I'm calling the class using the following statements from the component controller of DC2:
    Guid x = new Guid();
    String y = x.getGuidString();
    The component controller resides in package package nl.phoqus.pataut.
    Would that be the problem?

  • Unable to map nested java classes and objects in actionscript using flex

    Hi All..,
    Im a newbie in flex and actionscripting...,I however have a task assigned in this domain and goin insane since a week now with this problem...
    Problem explained:
    I have a class called Unit that inturn have many other classes like for example unit has an engineer class,,,Im not able to access the attributes of engineer using the unit class...that is unit.engineer,engineerid is giving me a null...however attributes unique to unit are accessible...
    Please help me out with this...,this problem has already eaten up my deadlines...
    Any help would be appreciated and thankz in advance..

    Thank you for the swift reply...,
    I actually have three java classes Unit , Engineer and UnitretrievalRemote....
    Unit contains engineer and also UnitRetrievalRemote has methods to retrieve unit which inturn should return engineer...,However i hav actionscript classes for both engineer and unit and mapped it apporopriately using the remotetag...and also my remote object is defined with a destination...
    The below code is my Actionscripting code included in mxml:
    import UnitScript.Engineer;//These are my Action Scripting Classes
    import UnitScript.Unit;
    import mx.collections.ArrayCollection;
    import mx.collections.ArrayList;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.ResultEvent;
    public var unitIds:ArrayCollection;//I'm passing an array from java end
    that retrieves the unitId's from the db using hibernate...
    public var index:int;
    public var unit:Unit;
    protected function initData():void
    ApplicationService.getUnitIds();
    //This is the remoteobject call using blazeds to load the method during application start from java..
    private function setUnitIds(event:ResultEvent):void
    unitIds  = ArrayCollection(event.result);
    private function setUnit(event:ResultEvent):void
    unit = Unit(event.result);
    //mx.controls.Alert.show( "Compling" );
    //mx.controls.Alert.show( "Engineer Method" +unit.engineerId);
    //mx.controls.Alert.show( " Engineer=="+unit.engineer) ;
    unitIDText.text = String( unit.unitId );
    customerName.text = unit.name;//displaying the contents fetched from the backend in the panel...
    setEngineer(event);
    private function setEngineer(event:ResultEvent):void
    unit.engineer = Engineer(event.result);
    unit = Unit(event.result);
    eng_id.text = String(unit.engineer.engineerId);
    mx.controls.Alert.show( "Engineer ID Please Show"+unit.engineer);
    //This prints a null.
    mx.controls.Alert.show( "Direct Engineer Id" +unit.engineer.category);
    // This prints a null.
    Remote object mapping is as below:
    <mx:RemoteObject
        id="ApplicationService"
        destination="Destination1" >
        <mx:method name="getUnitIds" result="setUnitIds(event)"
        fault="mx.controls.Alert.show(event.fault.faultString)"/>
        <mx:method name="getUnit" result="setUnit(event)"
        fault="mx.controls.Alert.show(event.fault.faultString)"/>
    </RemoteObject>

  • Using oracle.sql.BLOB data type in Java Class to pass in a Blob

    All,
    I'm trying to pass in a BLOB from PL/SQL to a Java Class, but the BLOB isn't passed correctly.
    When I check the length of the BLOB in PL/SQL its different from the length of the BLOB in java.
    I'm using DB 11g and the ojdbc5.jar file in my java classes.
    The java function uses the oracle.sql.BLOB type to get the parameter.
    The java class is loaded into the DB and called via a PL/SQL function.
    Kind regards,
    Nathalie

    The question is indeed a little ambigious defined ;o)
    When I pass the BLOB to the java method and invoke BLOB.getBytes() and then get the length of the BLOB in java the length of the BLOB is bigger than in PL/SQL.
    When I use the method 'getBinaryStream' and write this to a buffer, the code works.
    I will log a tar regarding the getBytes()-method to ask for more detailed information regarding the methods provided using the JDBC Drivers.
    Kind regards,
    Nathalie

  • Is it possible to load more dictionaries to ibooks? French, german ando so on? I have books in severl languages and it would be easire to use a built in dictionary like the one it already has.

    is it possible to load more dictionaries to ibooks? French, german and so on? I have books in severl languages and it would be easirer to use a built in dictionary like the one it already has.

    At the moment no - http://support.apple.com/kb/HT4059 says :
    iBooks allows you to look up the definition of words using a built-in English or Japanese language dictionary
    So it looks like just the two languages are currently supported

  • I have had a third generation iPod touch for three years. It's worked fine sice recent,y when it started looseing battery very fast and every apo including the built in ones like mail and photos have been crashing after about five. I uses of use!!!!

    I have a third generation iPod touch. It's worked just fine until recently. The battery goes out very very very fast. But the main  issue is that all my apps (which is why I use the iPod, to play them) crash after using them for 5 minutes, this does include the built in apps like photos and calendar ect.. I have had this for about 3 years and love it very much it's not damaged at all. I Have taken very good are of it . Is it time for a new iPod or can I fix it please help!!!! Thanks!!

    The battery can be replaced: http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipod
    As far as crashing apps, it may or may not be related to the battery life. I suggest the usual "restart, restore" routine: http://www.apple.com/support/ipodtouch/assistant/ipodtouch/

  • I am using iPhone 4s with no sim card. My WiFi turned grey and isn't working. I've tried many methods like freezing and Resetting the network settings, still not working. Now what should I do? (iOS 7.1.2)

    I am using iPhone 4s with no sim card. My WiFi turned grey and isn't working. I've tried many methods like freezing and Resetting the network settings, still not working. Now what should I do? (iOS 7.1.2)

    Put in a micro SIM (SIM need not be active) and
    Restore from backup
    Restore as new
    http://support.apple.com/en-us/HT201252

  • Unable to load mySql Driver in Java class invoked using bpelx:exec

    Hi ,
    I am trying to connect to mysql database in my java class.when i run this class in Jdeveloper it loads the driver without any problem.I can chk the log in the Jdev messages area.Now I am invoking this class from the BPEL process through <bpelx activity.But when i run my BPEL process it throws runtime exception "classNotFoundException:unable to load com.mysql.jdbc.Driver".I have set the project properties ->libraries to the class path of the mysql jar file as well.
    Now if i try to connect with the Oracle driver then it is working fine.
    I know this is a classpath issue.Can anyone tell me if there are some other settings to make it work fine.
    the java code :
    System.out.println("in getConnection method");
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    System.out.println("loaded Driver :");
    String url="jdbc:mysql://ntlv014:3306/wx";
    _jdbcConnection = DriverManager.getConnection(url,"development","ber1nger");
    System.out.println("Got Connection :"+_jdbcConnection.isClosed());                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I think you have 2 options..
    either put the jar for the mysql in the classpath on the server...or try something like this :
    http://forum.java.sun.com/thread.jspa?forumID=17&threadID=633158
    try to put the jar of the mysql into the suitecase of the bpel.
    never seen this coming around...so..it's just a wild guess.
    ORABPEL-11622 Could not create/access the TopLink Session
    spendem got the same situation...the puts the libraries in the applib-dir
    Message was edited by:
    Eric Elzinga (IT-Eye)

  • How can I use my array in another method.... Or better yet, what's wrong?

    I guess I'll show you what I am trying to do rather and then explain it
    public class arraycalc
    int[] dog;
    public void arraycalc()
    dog = new int[2];
    public void setSize(int size)
    dog[1] = size;
    public int getSize()
    return dog[1];
    This gives me a null pointer exception...
    How can I use my array from other methods?

    You have to make the array static. :)
    Although I must admit, this is rather bad usage. What you want to do is use an object constructor to make this class an object type, and then create the array in your main class using this type, and then call the methods from this class to modify your array. Creating the array inside the other method leads to a whole bunch of other stuff that's ... well, bad. :)
    Another thing: Because you're creating your array inside this class and you want to call your array from another class, you need to make the array static; to make it static, you must make your methods static. And according to my most ingenious computer science teacher, STATIC METHODS SUCK. :D
    So, if you want to stick with your layout, it would look like:
    public class arraycalc
         static int[] dog;
         public static void arraycalc()
              dog = new int[2];
         public static void setSize(int size)
              dog[1] = size;
         public static int getSize()
              return dog[1];
    }But I must warn you, that is absolutely horrible code, and you shouldn't use it. In fact, I don't even know why I posted it.
    You should definitely read up on OOP, as this problem would be better solved by creating a new object type.

  • How to use a mysql built-in function with dataprovider

    hi.
    I want to use a mysql built-in function, for example, MD5() on a column when updating a table with dataprovider.
    Something like this doesn't work:
    MyDataProviderOne.setValue("tablename.field_name", "MD5('some text')");
    How should it be done?
    thanks.
    Mike.

    hi.
    thanks. this helped, but I'd like to use also different functions, that's why, I'd rather do it by MySQL built-in functions with dataprovider... Is there any way to do that?
    best regards.
    Mike.

  • Using Google GWT to create (Dashcode) widgets for iBook Author  I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pa

    I would like to embed interactive widgets in iBooks using iBookAuthor. The widgets in question started life in Java but GWT has allowed them to be converted to javascript and to run on web pages (for example, http://softoption.us/content/node/437 scroll to the bottom). In theory, iBookAuthor can bring in most html5, and much javascript. The technique is to wrap the html in a folder, with 2 extra files, a plist and a default png and then change the extension of the folder to ‘.wdgt’. This is the technique for making Dashboard widgets for the Mac, and Apple even have the Dashcode software to do it. So what you really do is to make a Dashboard widget, then iBookAuthor can import it.  So far, so good. And some  folk have been doing this, for example http://www.prweb.com/releases/2012/2/prweb9242432.htm http://www.panophoto.org/forums/viewtopic.php?f=64&t=10417&p=158330#p158423 However, if you start with GWT and create a single page with one button and a Hello World, compile it, and get the WAR file (I use Eclipse here)… the Safari browser and others will run it properly (even on an iPad). Then if you wrap it, a proper Dashboard widget is created, which runs properly on a Mac. Then if you go to iBookAuthor and put a custom widget in the Text, then drag it in. It is accepted by the text and shown as being there. However, if you use Preview to look at it on an iPad, it is gone (or was never there in the first place). Anyone any ideas on this? [And iBook Author seems to give no warnings.] The widget is at https://dl.dropbox.com/u/46713473/Test6.wdgt.zip I have bells and whistles that I’d like to get into an iBook!
    Thanks for any insights.
    Martin

    I do have a little to add, which might help someone. Indeed, opening a blank page and dragging the widget straight in seems good in difficult cases. But, actually, I was also able to insert successfully from the Toolbar especially to blank pages. So, it may have been something to do with the columns and stuff like that. Anyway back then the insertion would show in iBooks Author but not in the Preview on the iPad. I moved on to actual Google Web Toolkit output javascript. Basically I had three at hand to try: a Hello World with a button which went straight it, one of moderate complexity, (for example with a built in Lisp interpreter), which also went straight in, and finally a more complex one that initially was rejected by iBook Author. Author complained that there was an unsupported media file (of course, Author does not tell you which one it is, that would be too easy). [Remember, this was a proper working Dashboard widget which could be installed on a Mac]. Among other things I had read remarks about .gif files. When looking through the GWT war directory at the actual javascript etc files, I noticed there were two gifs there one called ‘clear.cache.gif ‘  and a second one called  ‘0F89659FF3F324AE4116F700257E32BD.cache.gif’. (Now, there is obfuscation so the numbers here may be different from case to case.) The clear.cache.gif did not seem to be anything special. But the other one is an animation. It is three little boxes that twinkle (rather like a waiting spinning cursor).  So, I opened that file and saved it to itself (that picks the top frame of the animation and saves only that, leaving you with an unanimated gif). The resulting widget drags and drops into iBooks Author (and seems to work properly at a quick glance). So, if you are having trouble with ‘unsupported media files’ converting animated gifs into unanimated gifs might help in some cases.

  • PO creation using LSMW through batch input method

    Hi, I am new to working with LSMW and i have completed a project for creating purchase orders using the direct data input method. I need to do the same using batch input method, however in the maintain structure relationship step, it is only allowing me to assign one structure to the recording that i have done, however in po creation we need separate (nested) structure for header and line item, could anybody help me past this please?

    Hi Rudra!
    OK, now you just know, why you have only one line, not multiple PO item lines. To get a dynamic number of items, you need a complex program - just like standard direct input.
    If you need a field, which is not part of this program, don't try to write your own program for batch input - it's just to much work before you have a good result.
    You can use Bapi method instead with BAPI_PO_CREATE1. This can handle a lot of fields and there is some documentation available how to fill the Bapi.
    If this looks to complicated in the first moment, think about creation of POs via direct input and a small batch recording to change your additional field(s) afterwards. (You can select EKPO table to generate list of 'wrong' migrated orders for input in LSMW.) Use field 'Item' in the bottom of ME22 to position your desired line in first screen line, just change one PO-line after one other (every time a 'save' -> no problem with different number of lines / PO).
    Regards,
    Christian

Maybe you are looking for

  • G/L Account Asignment to Valuation calss

    Hi all , Where do we assign G/L A/c assignment to valuation class and ex : during goods reciept for 101 , how are posting keys determined ? what is the relevance of feild status group in Account determination 89 for Inventory 86 for GR/IR... etc than

  • How do i extract pages from a large pdf file?

    I have Windows XP, with Adobe Reader 9 and PDF version 1.4 (Acrobat 5.x) installed. I received a large pdf file (19,000KB) with 25 pages of architectural drawings. I want to extract just 8 pages from that document. Under the Documents Properties Tab,

  • Prevent internal drive from mounting at startup

    How do I easily prevent an internal hard drive from mounting at startup? The machine has two internal drives and I want the upper drive to not mount unless needed. Both are bootable but lower is chosen as the startup drive. Thanks for any help. G5 du

  • Group based on Shared variable

    Hi Experts, Can we create a Group based on Shared variable in subreport?

  • Table for Settlement Cost(CJI3) for a project

    Hi All, I have a requirement to develop a report for a project, in that i got a req.  to find out the settlement cost for a project. we have standard report CJI3 to find the settel cost for a project but I am unable to debug the program as it use log