How to get the requested catalog of the same element status request workflow vRO 7 periodically?

Hi all

I design a WF in vRO7.

I asked for a catalog item in the WF (to perform a pre-defined a BP published) in vRA 7.0.

Here is the sample code snippet. Here the element is of type VCACCAFE:Catalogitem

//********************************************

var form = vCACCAFERequestsHelper.getRequestFormForCatalogItem (item);

var request = vCACCAFERequestsHelper.requestCatalogItem (item, form);

//******************************************

I am able to process this request successfully. But now, I would like to check the status of this application periodically depending on the State of the application, I want to update a field in VRO and same WF.

Now my question is, how can I recover the status of the catalog item query after periodically (say 5 minutes interval)?

Can I use the method below, but thing is that how can I get the same request after 5 minutes?

request.getExecutionStatus () .value ();

Can you please help me out is it possible to get the details of the application even with the id of the request after 5 / x minutes?

Thank you

Miloud

Hello

You can do the following

Mark your vRO like this query objects after the presentation

Server.setCustomProperty(request, "CHECK_LATER", "1");

Then place this code in a separate workflow on a calendar for every 5 minutes

var watchedRequests = Server.getObjectsWithCustomPropertyKey("CHECK_LATER");

for each(var request in watchedRequests)
{
     // you can access the request submission content here
     var lMap = request.getRequestData();
     // the map is a vCACCAFELiteralMap but it has all VM property and CustomProperty values in it
     //e.g.
     var hostname = lMap.get("provider-Hostname").value;

     // assess request state and take appropriate actions here

     // remove the tag to avoid duplicate notifications
     // ONLY do for requests in a terminal state though!
     if(!inProgress)
     {
          Server.removeCustomProperty(request, "CHECK_LATER");
     }
}

Hope this helps

Tags: VMware

Similar Questions

  • How to get the 6th element of a C.V. value column

    Hi all

    I use Oracle Business Intelligence 11.1.1.7.131017.

    I have a column with the following formula: C.V. ("Tickets". "Number of tickets"), but since we want to only show the values advocated by the past 6 months and which is an accumulative column, we added the rank function in the filter and placed as: grade (C.V. ("Tickets". " Number of tickets')) < = 6 and for the final formula, we need the minimum value that is placed in 6th place...

    My problem is how to get the value assigned to this position?

    Here's the column values:

    30719 (value I pretend-> min)

    31357

    32025

    32595

    33652

    34616 (I also use this value-> max)

    Any idea on how to get the value placed on tier 6?

    Thanks for the help and have a good week.

    Kind regards

    Frederico.

    I found a solution (poor, but it works)...

    As a minimum I want is always located in the row = 6 I put a case when row = 6, then returns the value I'm pretending, else return 0, so after that I need only the max of all values, as they are 0 or the value that I'm pretending, like this:

    MAX (CASE WHEN (GRADE (C.V. ("Tickets". "Number of tickets')) = 6) THEN of C.V. (FILTER ("Tickets"." Number of tickets' using 'status '. ((("" Resolved "="Resolvido")) END ELSE 0)

    I want to thank you all for the help, normally I post in the forum of the ADF but its good to know I can get a lot of support here as well...

    Many thanks to all,

    Frederico.

  • How to get the same look as the flash for borders?

    Hi I have selected the circle and the circle filled with certain colors. now, I want to have the border around the circle so I saelected STROKE in the Edit menu and applied with a pixel. How ever it gives a strong appearance in flash. in photoshop, the border looks like dissolved and transparent. is there a way to get the same look as the flash?

    I would recommend using shape layers (starting with the Ellipse tool) instead of a selection.

    Cs6 on shape layers can have stroke (located in the Options bar).

  • How to get the user name in a workflow?

    I have a simple request of what appears to be a basic workflow step.

    I create a workflow that has the user approve/reject their own review as the first step of the workflow. My question is, how do I get the username of each document as it comes in the workflow?

    I read on wfAddUser. If that's what I use, how to use it and where I can add it to the Workflow screen?

    Thank you.

    I don't know exactly what you are after all in a row. You want to get the original author?

    The document is checked and the user name is registered. It is the only name available at the moment where the document to enter the workflow, which would be the only user attached to the content so far.

    have you tried looking at the dDocAuthor variable?

  • How to get the same day of a month each year in the DB (update a flag)

    Hello

    I'm trying to make a update for a table of flag request in our database that contains the dates and the Pavilion columns. Currently the system have dates for the next ten years. The flags are updated with the values 0 or 1, if a particular date falls under the criteria required.

    I need to update the column flag for the same day of the month of each year. for example, 2nd Sunday of October. The value must be updated in all the years in the table. Currently I use the following query to update of the current year.

    UPDATE FILTERCALENDAR SET YEAR_WINDOW = 1 WHERE c_date = NEXT_DAY (TO_DATE('OCT-2013','MON-YYYY'), 'SUNDAY') + (2-1) * 7;

    and for the next year as

    UPDATE FILTERCALENDAR SET YEAR_WINDOW = 1 WHERE c_date = add_months (NEXT_DAY (TO_DATE('OCT-2013','MON-YYYY'), 'SUNDAY') + (2-1) * 7, + 12)-1;

    This isn't a great way to do it because he does not take care of leap years, and it does not scan and update values across the table for all the years correctly.

    Can someone help me fix this please.

    Welcome to the forum!

    Whenever you provide post your Oracle version 4-digit (result of SELECT * FROM V$ VERSION)
    >
    and for the next year as

    UPDATE FILTERCALENDAR SET YEAR_WINDOW = 1 WHERE c_date = add_months (NEXT_DAY (TO_DATE('OCT-2013','MON-YYYY'), 'SUNDAY') + (2-1) * 7, + 12)-1;
    >
    Why do you use "2013" in the TO_DATE for the year next rather than use simply '2014 '?

    You said it works
    >
    UPDATE FILTERCALENDAR SET YEAR_WINDOW = 1 WHERE c_date = NEXT_DAY (TO_DATE('OCT-2013','MON-YYYY'), 'SUNDAY') + (2-1) * 7;
    >
    Just interview the years from your table (list of the separate years) and use the query above on them.

    SELECT DISTINCT TO_CHAR(c_date, 'yyyy') FROM FILTERCALENDAR
    

    Or use this predicate

    WHERE c_date = next_day(last_day(add_months (c_date, -1)), 'SUNDAY') + 7
       AND TO_CHAR(c_date, 'mm') = '10'
    

    1 TO_CHAR ensures that the line has a month to October.
    2 ADD_MONTHS goes to Sept. 1.
    3 LAST_DAY going until the last day of September.
    4 NEXT_DAY goes to the first Sunday in October
    5 + 7 is going to the second Sunday in October

  • How to get the first element of a list?

    Hello

    I have the following hierarchy:

    A (first level)
    -A1 (A child)
    -B1 (A child)
    -B11 (B1 child)
    -B12 (B1 child)

    I have a UDA on B11 and B12 members who have the same name as the A1, and I want to assign values to A1 to B11 and B12. After that, I want to consolidate the hierarchy so I can have B1 and with values.

    I would like to use the ancestors function to do but the ancestors need a member as a parameter and the only relationship between A1 and B11, B12 is the UDA.

    I can't do @ANCESTORS (@UDA (%{dimname/}, 'A1')) because of this, so I would use a function to get at least 1 member with the UDA, I want and use ancestors on this subject, but I can't seem to find a function that returns the first member of a list.

    Can someone help me on this?

    Thank you

    Bummer, I finally shot to the top of my 11.1.2.1 instance of cloud and tried. You have (unfortunately) reason - I can spend real members names in @LANCESTORS and use it outside of a DIFFICULTY, but the minute I put in @ATTRIBUTE or @UDA he has poured out. Disappointment, because I thought that was a really cool thing.

    I think still if you know z is always the parent you want to consolidate, a @IDESCENDANTS("Z") would do the trick, but maybe with inefficient - certainly less than a full size AGG.

    Kind regards

    Cameron Lackpour

    Published by: CL 4 June 2012 10:13
    Arrgh, and it's in the docs with underlining added by me:
    If the function @LANCESTORS is used alone (not in a statement to FIX), you must use the function @LIST and specify names of members.

  • How to get the child elements of the ArrayCollection collection?

    Hi all

    I want to analyze collection ArrayCollection and want the child node element.

    How to parse the arraycollection collection?

    for (var i: int = 0; i<>

    {if (arrayCollectionObject.getItemAt (i). Item is "requireditem")}

    your code

    break;

    }

    }

    Let me know if it helps

  • How to get the same functionality for string as java in oracle 10g

    Example:

    In java, if I use
    -> > >
    String.format ("% 03d", 11) then he will give me the result 011
    String.format ("% 03d", 1111) then he will give me the result 1111

    I need also same result in Oracle for a stored procedure. I used to_char() and lpad() function but could not get the desirable.

    I'm new on this. Please forgive for this silly question and help me.

    Or with the prefix "FM", which makes the FILLING for us:

    to_char(col1, 'fm9999099')
    
  • How to get the name element and xml comment in a page?

    I need to list all the name element and comment on a page

    You can use below methods.

    IXMLUtils::GetElementIndices()

    IFrameList::QueryFrameContaining()

  • How to get the same result on different characterset?

    Hello experts,

    I use

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE 11.2.0.3.0 Production"
    TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    
    

    Needing a result even on my example.

    SELECT ASCII('ˆ') -- when characterset is -NLS_CHARACTERSET WE8MSWIN1252
    FROM DUAL;
    --result 136
    
    

    SELECT ASCII('ˆ') -- when characterset is -NLS_CHARACTERSET AL32UTF8
    FROM DUAL;
    --result 52102 but need 136
    
    

    I need same result.

    Thanks for your time...

    EDITED RESULT.

    Ask2Learn

    You test something that you call "encrypted" data, which are not at all encryption.

    For example speaking of letter t.

    The CHR (ASCII('t') + 20) operation is pretty useless. You try to find the character that has the code binary and longer than 20 that the letter 't'. This can work with single-byte as WE8MSWIN1252 character sets, but it does not work with variable width as AL32UTF8 character sets. The letter 't' a code 0 x 74 in WE8MSWIN1252 and AL32UTF8. If you add 20 (decimal), you get 0 x 88. Byte 0 x 88 is a valid code in the WE8MSWIN1252, but is not a valid code in AL32UTF8. Bytes in this range may bytes of continuation in AL32UTF8, i.e. a second, third or the fourth byte of a multi-byte sequence.

    The "circumflex accent" character code 0 x 88 (in WE8MSWIN1252) has the code of two bytes 0xCB 0 x 86 in AL32UTF8.

    So, why not take a look at DBMS_CRYPTO integrated


    Hope this helps


    Hamid

  • Could not get the same font in the swf file

    Hello

    I created a swf files in which the text was written using a particular font. When I run the swf files on other computers that do not have this font, the text gets displayed in different characters.

    How to get the same font in other computers also without having to install the font.

    I tried embedding fonts in the fla file. But I made the mistake to a place. Could someone help me understand?

    Thank you!

    Hello

    Finally, I found the reason for the display of incorrect fonts on different computers. It is the font settings.

    In the font settings, Anti alias has been defined as use device fonts. That's why he was choosing fonts of device on which the machine is not. Now, I changed it to anti-alias for animation. I was not even embed all fonts. It works perfectly.

    I do not change even from static to dynamic text text. Just changed the parameters of smoothing. Is this right? Could you tell me whether he set the anti-alias for animation or anti-alias for readability, I see no big difference between the two but?

    Thanks for your great support in due course.

    Thank you.

  • How to get the message to debug all to running page request OFA?

    Hello

    How to get the message to debug all to running page request OFA? do not use JDeveloper

    Thank you

    Renon,

    this.writeDiagnostics will be work AM and not CO. You mentioned that your code is AM, which is why I give (this.writeDiagnostics).

    You get an error when you use what to ? AM

    in CO, you must use pageContext. writeDiagnostics();

    You don't need to put any profile (other than DNF: Diagnostics), you just need to go to the Diagnostics - select the log on screen and choose the level that you used in the writeDiagnostics method.

    See you soon

    AJ

  • How to get the the concurrent request id in CONCSUB

    Hello

    We execute simultaneous program in shell script with the CONCSUB command, and it ends normally.

    My requirement is to know how to get the ID of the request, I want to use this id to request for other operations.

    CONCSUB.jpg

    Thank you

    Riadh

    If CONCSUB is submitted successfully, it returns the value of the id of the request. See the example in this post - CONCSUB Shell Script Utility completion status

  • How to get the items on a loop at the same time during the execution of the loop for

    Hello

    I am a student. I would like to know how to get the outside loop counter values For in parallel so that the loop runs rather than obtaining the value finally outside the loop for future prospects for the answers.

    Thank you

    Frederick

    You already said yes, and you have said some of the different ways (registrants, locals, reference, queue, etc.). Since the information was provided to your request, the thread can be considered closed? If you want details about how to implement something, you must provide the details on what you are doing.

  • How to make my confidence one ways c# windows application that should not blocked by antivirus Applications and how to get the third-party certificate for that?

    Hello

    I built a windows c# application that accesses OS, printer information using WMI query, monitor keyboard strokes overall Win32 API and calls others our executables too.

    Whenever I try to deploy it to computers to our customers, it is getting blocked by antivirus applications.

    If I want to make my request as being approved, we mean that it shouldn't be blocked by antivirus applications.

    How to get the certificate of trustee for my application? Even I am ready to make my request as registered product.

    Kindly let me know the procedures, solutions.

    Thank you

    Senthilkumar AK


    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

Maybe you are looking for