How can I determine what value to use for pendingActionType?
search cancel

How can I determine what value to use for pendingActionType?

book

Article ID: 145478

calendar_today

Updated On:

Products

CA Service Catalog

Issue/Introduction

We have a method "assignPendingAction" which is producing an error. 

Request Body :

<assignPendingAction xmlns="urn:usmRequestService">
<sessionID>XXXXXXXXXX</sessionID>
<pendingActionType>2</pendingActionType>
<requestItemID>115627</requestItemID>
<pendingActionStatus>200</pendingActionStatus>
<pendingActionUsersOrGroups>eSAM_Manual_Purchase</pendingActionUsersOrGroups>
<descriptions></descriptions>
<workItemID></workItemID>
<processInstanceID></processInstanceID>
</assignPendingAction>

Response :
soapenv:Server.generalException
Exception occurred in assingPendingAction: Exception=Invalid combination of pending action type and request item status.

com.ca.usm.soap.axisInterfaces.WebServiceException
IAASN00034565

Environment

Release : 17.2

Component : CA SERVICE CATALOG

Cause

Review the description of pendingActionType.  It may need to be set to 1 instead of 2.

Resolution

Use the following steps to review the description of pendingActionType and determine which value to use:

1. Login to Service Catalog as spadmin user.
2. Click on the Administration tab.
3. Click on Tools.
4. In the panel on the left, click on Links.
5. In the panel on the right, click on Web Service API.
6. In the panel on the left, click on Request Web Service.
7. Use web browser page search to search for UpdateRequestItemStatus
8. Click on the named link, updateRequestItemStatus
9. Review the information and apply it appropriately.

The information shown is step #2 in a 17.2.0.3 environment is as follows:

updateRequestItemStatus Method

Updates the status of request item/service.
Signature
updateRequestItemStatus(String sessionIDint pendingActionTypeint requestItemIDint status)
Required Parameters
sessionID Security handle for calling webservices.[mandatory parameter]
pendingActionType 1 = Service, 2= Service Option. If the Discrete Request is not allowed at the given status, then updating the status in the Service Option level is not allowed.
requestItemID Request Item ID/Subscription Detail Id[mandatory parameter]
status New status of this request service or service option.[mandatory parameter]. If current request service status lies in Submitted range(200-399), new status must lie in the Submitted range(200-399) or Approval range(400-999). If current request service status lies in Approval range(400-999), new status must lie in the Approval range(400-999)or Hold range(3000-3999) or resume (4000) or Fulfillment range(1000-1999). If current request service status lies in Fulfillment range(1000-1999), new status must be Fulfilled(2000) or lie in the Fulfillment range(1000-1999)or Hold range(3000-3999) or resume(4000).
Return Value
void

Additional Information

https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=755021