Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

How to get the Status of requested Catalog Item of the same request from vRO 7 workflow periodically ?

$
0
0

Hello all,

 

I am designing a WF in vRO7.

In this WF I am requested for a Catalog item (to execute a predefined a published BP) in vRA 7.0.

Below is the sample code snippet. Here item 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 request periodically from same WF and depending upon the status of the request I would like to update some field in VRO.

 

Now my question is that, how can I retrieve the status of the catalog item request after periodically (say 5 mins interval) ?

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

 

request.getExecutionStatus().value() ;

 

Can you please help me out is there any way to get the details of the same request with the request id after 5/x mins ?

 

Thanks,

Koushik


Viewing all articles
Browse latest Browse all 6251

Trending Articles