VMware Cloud Community
CalmCloud
Enthusiast
Enthusiast
Jump to solution

ASD service - how to get Description and Reason values in the workflow

Hi All,

I have created a ASD service based on a workflow. When the ASD catalog is requested, the first tab is "Request Information" which has Description and Reason field. How to access these values in the underlying workflow.

Thanks

0 Kudos
1 Solution

Accepted Solutions
ChrisMueller85
Enthusiast
Enthusiast
Jump to solution

Hi,

here is a easy solution:

ASDRequestId = System.getContext().getParameter("__asd_catalogRequestId");

ASDRequest = vCACCAFEEntitiesFinder.getCatalogItemRequest(vRA_CAFEHost,ASDRequestId);

Request_Reason = ASDRequest.reasons;

Request_Description = ASDRequest.description;

Request_Owner = ASDRequest.requestedFor;

View solution in original post

0 Kudos
3 Replies
ChrisMueller85
Enthusiast
Enthusiast
Jump to solution

Hi,

here is a easy solution:

ASDRequestId = System.getContext().getParameter("__asd_catalogRequestId");

ASDRequest = vCACCAFEEntitiesFinder.getCatalogItemRequest(vRA_CAFEHost,ASDRequestId);

Request_Reason = ASDRequest.reasons;

Request_Description = ASDRequest.description;

Request_Owner = ASDRequest.requestedFor;

0 Kudos
CalmCloud
Enthusiast
Enthusiast
Jump to solution

Hi Chris,

When the ASD catalog item is requested how to set "requested for" ?

Thanks

0 Kudos
ChrisMueller85
Enthusiast
Enthusiast
Jump to solution

I'm not sure if I understand the question right.

When you order a IaaS or a ASD Service both will result in a Catalog Item Request. (API = vCACCAFE:CatalogItemRequest)

This Catalog Item Request has beside a lot of others the following two  attributes:

requestedBy    = Account of the person ordering the service... (In front of the UI with his permissions)

requestedFor   = Account of the person in which belalf the service is ordered.

I don't expect that it is possible to overwrite this values.

But if you order a IaaS or a ASD Service over a ASD Workflow (An Item which is ordering an other one) you could of cause set the user on which behalf the service is ordered.

Therefor the "Request a catalog item on behalf of a user" Workflow has the input field user. This is for the user in whih behalf the service is ordered. The requestedBy in that case

would be the permissions under which the workflow is running.

0 Kudos