How a plugin method can return an object of properties (javascript)

Hello

With VC0 4.1, I have a plugin method written in Java. I would like that this method returns an object which Orchestrator (VCO) will see as an object of Properties javascript directly without passing by the serialization or other treatment...

To do:

-What class of java object my plugin method must return?

-What should I use as return-type attribute when my method declaration in the VSO.xml file?

"< script-the method name = 'myMethod' java-name = 'myMethod' return-type ="?">"

Thanks in advance.

Arnaud

Hi Arnaud,.

You're right, the object that returns your method should be Hashtable (I actually thought that properties should also be valid since it extends from Hashtable).

Try with:

public Hashtable {getInfosInProperties()}
Hashtable retMap = new Hashtable ();

retMap.put ("key1", "value 1");
retMap.put ("Key2", new Long (2));
retMap.put ("key3", true);

Return retMap;
}

The vso.xml file is very good with "Properties". And you will get an object from the vCO scripting API to script properties.

I hope it helps.

Sergio

Tags: VMware

Similar Questions

  • Returns the object date Sql javascript

    Hello

    I am trying to run motion chart of Google in Apex 4.0. To do this, I need to return a date in a Javascript object. No idea if this is possible? Is it as simple as getting the correct javascript syntax?
    select 'new Date (' || to_char(mydate,'YYYY,MM,DD') || ')' from .....
    Thank you

    Mark

    Hello

    Probably you could also do something like this using the PL/SQL dynamic content area

    htp.p('
    '); htp.p(q'| |');

    Kind regards
    Jari

  • How a BPEL workflow can return in the middle of the process?

    I had a BPEL process, and after invoking a web service, a response back to the client immediately, and the flow continues. However, I found that he did not return to reality, he returned after the process is complete. And if I added a component to wait 3 seconds. She would not immediately respond, but during performance tests, it seems the process would not continue after 3 seconds and cause other problems. Y at - it of to way the answer immediately returned without the component of waiting? Thank you very much.

    This behavior is specified... Even if you do an action to respond, the real answer will be returned only when he meets a dehydration activity. Different options available to you are:

    1. in the PS3, there is a new Checkpoint activity, which you must do immediately after the answer.
    2. in previous versions of 11 g, you can use a business exec of java with a call to breakpoint() immediately after the answer
    3. you define a component property called idempotentReply to true. Then you don't need no activity of dehydration explicitly in the bpel code. Drawback with this approach is that this setting will affect all operations on all the links of sponsors on the component.

  • ADF Faces: RicheTableau - how to create a richeTableau method of bean datacontrol object that returns a list of objects

    Build JDEVADF_12.1.2.0.0_GENERIC_130608.2330.6668

    I have a data bean control method that returns a list of SearchResultRow objects. Each SearchResultRow has a list of SearchResultColumn objects. SearchResultColumn is the attribute name, value, type of data.

    The method returned data looks like:

    SearchResultRow {col1, a1, string}, {col2, a2, date}, {col4, 13, number}, {col4, a4, string}

    SearchResultRow {col1, b1, string}, {col2, b2, date}, {col4, 23, number}, {col4, b4, string}

    SearchResultRow {col1, c1, string}, {col2, c2, date}, {col4, 33, number}, {col4, c4, string}

    I try to display searchResult table depending on whether it

    col1 col2 col3 col4

    A1 a2 a4 13

    B1 b2 b4 23

    C1 c2 c4 33

    I drag my return value of method to the jsf page to create a link to the tree.

    < Tree IterBinding = "retrieveSearchResultsIterator" id = "SearchResultRow" >

    < nodeDefinition DefName = 'model. SearchResultRow"name ="SearchResultRow0">

    < AttrNames >

    < item Value = "resultType" / >

    < / AttrNames >

    < accessors >

    < item Value = "searchResultColumns" / >

    < / accessors >

    < / nodeDefinition >

    < nodeDefinition DefName = 'model. ResultColumn"name ="SearchResultRow1">

    < AttrNames >

    < item Value = "name" / >

    < item Value = 'length' / >

    < item Value = "query" / >

    < item Value = 'type' / >

    < item Value = 'value' / >

    < / AttrNames >

    < / nodeDefinition >

    < / tree >

    On my jsf page, I added a table then reused the liaison of the tree.

    < af:table value = "#{bindings." SearchResultRow.collectionModel width}"= '100% '.

    var = "row" rowBandingInterval = "0" id = "t3" binding = "#{backingBeanScope.backing_Test4.t3}" partialTriggers ="": b1 ' columnStretching 'last' = > "

    My thought is in backing bean, loop through the table variable "line" which is my SearchResultRow and then loop SearchResultColumns of the line to build the RichColumn and add it to the table.

    My question is: is this feasible? How can I get hold of the var 'line' backing bean?

    Any other suggestions how to proceed?

    Thank you.

    I thought about it the adf table creation dynamically.

    This link is useful. ORACLE ADF (Application Development Framework): creating dynamic table

  • my screen has turned 90 degrees view.how I can return to the normal display

    Original title: reverse monitor

    my screen has turned 90 degrees view.how I can return to the normal display

    my screen has turned 90 degrees view.how I can return to the normal display

    2 methods. Since you mentioned at 90 degrees, I'll start with this first...

    1. right click on an open office space... Graphic options... Rotation... click 90 degrees.

    2. press on Ctrl + Alt keys together and HOLD... While holding down, use the arrow keys to realign the screen position.

  • Columns of folder: by default, how can return the first column 'Name' without having to move it manually every time?

    Something's happened awhile and when I create a folder which appears the first column is the column 'Date modified '. By default, how can return the first column 'Name' without having to move it manually every time?

    Hello

    I suggest you to visit these links and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-files-and-folders#section_4

    http://Windows.Microsoft.com/en-us/Windows-Vista/folders-frequently-asked-questions

    It will be useful.

  • How to anchor on other sensitive design objects?  (I once saw a video of adobe and can not find the link now)

    How to anchor on other sensitive design objects?  (I once saw a video of adobe and can not find the link now)

    Check the 'Smart Position' option in the advanced part of the Position properties. Drag the "anchors" that are normally found at the top and left side of the blade up to what they encounter the side of the object you want to anchor to (a blue line appears, you can release the mouse then):

  • My missing how tool sliders make their return so I can adjust the brightness, color...  CS6 PS with MAC using

    No one knows what to do?

    My missing how tool sliders make their return so I can adjust the brightness, color...  CS6 PS with MAC using

    Hi fisherphotofrenzy,

    Please click on window > adjustments.

    You should be able to see the adjustment Panel.

    Kind regards

    Tanuj

  • How can I spy on the properties of the object using oats 9.1

    Hi all

    How can I spy on the properties of the object in the oracle applications using oats9.1

    and also how to retrieve data from a database.

    Please help me on this point.

    Thank you
    Sudhir

    Hi sudhir,

    During recording, you can activate by clickign the icon 'Add Test object' object browser on the toolbar. You can highlight the object on the page and select by pressing F10. In the dialog box, and then choose the properties you want to test.

    See you soon,.
    Jamie

  • How to access method Interface Client of App Mod from an another App Mod?

    Hello

    I have an application with a model project. It contains a module of application (say 'SharedAppMod') kept at the level of the session. There a few objects in view.
    A customer util Interface method is added to this SharedAppMod that is filtering for the object of said view with the said values and returns the result set. Structure is presented below.

    By SharedAppModImpl,

    lines filterUsingSecondaryRowSet (card) {} public
    Rowset resultRowSet = null;
    String [] attrNames = (String []) map.get('zoom') ("AttributeNames");
    Object [] attrValues = (Object []) map.get('zoom') ("AttributeValues");
    String viewObjectName = (String) map.get('zoom') ("ViewObjectName");
    ......
    ......
    }

    This project has been set in the jar to lib adf file to rest projects available in the rest of the applications. In so doing, given that this method of client interface is exposed under the control of data across applications, we are able to add an entry of the method described in our def file and run it to bean managed by discover the operation binding.

    But when you want to access the same method of AppModImpl or viewObjImpl from the rest of the applications, we do not know how to access.

    Can ppl give you an idea on how this can be done?

    Thanks in advance.

    Kind regards
    Julien V

    You can add the other module of the (shared) application to your application root module (main). Double-click the application root module and select the tab "DataModel" develop research of node n 'ApplicationModuleInstances' of the other module of application on the left side of the random. Select it and it shuffle to the right. This makes it accessible from the application module root (e.g. findApplicationModule or by the method that is created by the frame).

    Timo

  • TypeError: Error #1009: cannot access a property or method of a null object reference?

    Mr President.
    I updated firefox and always this type of problem
    every time I tried to open the flash game site iam getting this question. sometimes IE browser cannot open it too much.
    "".... TypeError: Error #1009: cannot access a property or method of a null object reference.
    to ASGames / fun_Menu)
    to ASGames / frame2)
    at flash.display::MovieClip/gotoAndStop()
    to WeddingTianaDressup_fla::Timeline_102 / playGames ()... » »

    but the same site can be opened in other browsers in the same pc... but the same site a user goes to another computer on the browser firefox itself. How do not know where is the problem... ?
    so please, some can help hu?

    Dear Sir.
    Thanks for your answer...! I did what you said but it doesn't work. new iam having the same problem...!

  • How to access an instance of an object through activex

    I try to retrieve data in real time to a FSA pressure mapping system and uses the activex of LabVIEW tools to connect.  I interfaced with hardware (can recover soap operas and others), but were not able to read real data.  The company programmers use Javascript for their programs and know nothing of LabVIEW.  Here is the info I got from them so far.  I'm reading an instance of an object through its activex reference.  Got out readings, I'm stuck trying to read an individual reading.  Thank you

    The InterfaceModule.Read method returns an object Frame.  The framework
    object contains a collection of one or more readings (Frame.Readings).
    There is an indication for each sensor connected to the IM table. If
    they use a single mast, then the reading will be in
    Frame.Readings (0). Value of pressure of the probe is contained in the
    Property Value of Reading (Reading.Value (column, row)).

    So to take a read and retrieve the pressure for sensor A1
    (column = 0, = 0 line):
    ...
    Frame = im. Read();
    pressureA1 = section. Readings (0). Value (0, 0);

    Difficult to say without having the ActiveX library, but there is probably a method "Item" that will allow you to access a specific element in the collection. For example, with Excel ActiveX library you can get to a specific worksheet to the collection of sheets in a workbook by using the Item method, as in the attached photo. Note that you may need to convert the object returned in the appropriate type, depending on what is returned. For the Excel library the 'Article' method returns a Variant.

  • How to access the attributes of an object using TestStand. ?

    Hello

    I have a class named status in c# that has 2 data members. There is another class named parameter and it has functions that return objects of type status.

    I did the DLL from the parameter class. Then I added this class to NI TestStand and calls a function and this function returns an object of type status.

    Is there a way by which I can access the data members of the object returned in TestStand?

    Thanks in advance

    Yes, there is another alternative. If you state a value type (i.e. a struct in c#) then you can tell teststand to store it in a corresponding data structure TestStand rather than an object reference variable. It works even for the private fields in your structure. To do this:

    (1) first to report a type value and no matter what other changes are needed in your code to take account of this (value types are copied when it is passed by value to another method, if this isn't what you want you will have to pass by reference - i.e. the c# ref keyword).

    (2) recompile your assembly.

    (3) in the specification of module Panel TestStand .NET, you should now see a new button next to the expression for the return value of type status resembling TestStand data type icon. Press this button and it will prompt you to create a TestStand custom data type that matches the type .NET. Select this option to save the type in the type palette file MyTypes.ini. Just do it once. Once the type is in your palette file type MyTypes.ini it will be available then and you must only update if you change the type .NET.

    (4) create a local variable of the TestStand Custom data type instead of the object reference. Note that you can expand and see the properties under.

    (5) use this new local variable to store the return value of status. TestStand will be copy/update the properties of the variable to match those of the .NET structure that the method returns.

    NOTE: You can also simply store the fields of a struct in separate variables increase the return value of type status once it is a struct and specify a separate variable for each field instead of creating a custom data type TestStand.

    Don't forget that TestStand makes a copy when you store a struct that this way replaces the struct when this will not appear in the copy.

    Hope this helps,

    -Doug

  • Help, please! TypeError: Error #1009: cannot access a property or method of a null object reference.  Help, please!

    Can anyone help! Here's the code from to escape the game of the room that I am creating.  Basically the user will be drag and drop items to reveal the user will collect hidden items.  I got the elements of drag-and - drop but I have a problem with the service that I write to recognize what are the elements and how much has been collected.  I just get the error

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    at TheMathsRooms_fla::MainTimeline/ObjectFound()

    When I click on one of the elements, the user must be able to collect.  I checked the chronology and pint, the script is used all THE elements are on the scene.  Any ideas?

    function objectFound

    function ObjectFound(event:MouseEvent):void {}

    var room1_inventoryName:String = "room1_inventory" + event.target.name;

    var room1_inventoryItem:DisplayObject = getChildByName (room1_inventoryName);

    Event.Target.alpha is room1_inventoryItem.alpha = 100;.

    founditems ++;

    Event.Target.alpha = 0

    }

    Here I put the items in stock to be invisible until they are

    room1_inventoryone_mc.Alpha = 0

    room1_inventorytwo_mc.Alpha = 0

    room1_inventorythree_mc.Alpha = 0

    room1_inventoryfour_mc.Alpha = 0

    room1_inventoryfive_mc.Alpha = 0

    room1_inventorysix_mc.Alpha = 0

    A variable is created to count the number of items the player has found.  At the beginning of the game, it is set to 0

    var founditems:Number = 0;

    Here, I'm telling Flash to keep track of what the user has found by listening to what were clicked on and then by running the objectFound function.

    room1_hiddenone_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddentwo_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenthree_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenfour_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddenfive_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    room1_hiddensix_mc.addEventListener (MouseEvent.MOUSE_DOWN, ObjectFound);

    Here's the function to allow the items to drag and drop

    function StartDragging (e:MouseEvent) {}

    e.currentTarget.startDrag ();

    }

    function StopDragging (e:MouseEvent) {}

    e.currentTarget.stopDrag ();

    }

    This shows that items can now be dragged and lowered some will reveal hidden items

    Bluechair.buttonMode = true;

    Bluechair.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Bluechair.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Pencilcase.buttonMode = true;

    Pencilcase.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Pencilcase.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Painting.buttonMode = true;

    Painting.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Painting.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Rubbish.buttonMode = true;

    Rubbish.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Rubbish.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Painting2.buttonMode = true;

    Painting2.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Painting2.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Trunk.buttonMode = true;

    Trunk.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Trunk.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Pillow.buttonMode = true;

    Pillow.addEventListener (MouseEvent.MOUSE_DOWN, StartDragging);

    Pillow.addEventListener (MouseEvent.MOUSE_UP, StopDragging);

    Click file > publishing settings > swf and check the box "enable debugging".  test.

    the number of problematic line will be in the error message that allows you to quickly identify the problematic reference which is probably room1_inventoryItem.  use the function trace to confirm:

    function ObjectFound(event:MouseEvent):void {}

    var room1_inventoryName:String = "room1_inventory" + event.target.name;

    trace (room1_inventoryName);

  • HOW to: set the anchoredObjectSettings for. palce() object?

    Hi, I am currently working on the interesting script for GREP placing, and I wonder how I can configure for object anchoredObjectSettings. palce()?

    for(i=0; i < found.length; i++)
    {
        foundElem = new File (myFolder + "/" + found[i].contents);
        found[i].place(foundElem); // Placing Ancored Object
       
        // HERE IS WHERE I NEED SOME HELP: how to set "anchoredObjectSettings" for just placed Ancored Object
        //anchoredObjectSettings.anchoredPosition = AnchorPosition.ABOVE_LINE;
        //anchoredObjectSettings.horizontalAlignment = HorizontalAlignment.TEXT_ALIGN;
    }
    

    Here you can download the example files - script, the InDesign file and images, which must be placed in the InDesign file with script

    Dropbox - GREP placing.zip

    PS: I think that this script will be very useful, so if someone have any ideas/suggestions, and want to help with the continued development - that would be great!

    Hello

    Right, it was too fast...

    This line returns an array of placed graphics - and we have set the property to its container in fact.

    so make it

    //.......
    mPlacedObj = found[i].place(foundElem)[0].parent;
    //.......
    

    Jarek

Maybe you are looking for