deletePositionLines
Purpose
This operation deletes position lines of a staffing profile in PPM Center.
Function
This operation enables external applications to delete position lines of a staffing profile identified by position id in PPM Center. The operation returns an array of the resultObjectType object.
To perform this operation, the user must meet the following conditions:
-
Have the edit staffing profile access grant
-
In the Staffing profile ACL list
Related information
The following data types:
Input
An array of position IDs.
Return
An array of resultObjectType object
Java Interface
public OperationResultWSBean[]
deletePositionLines (long[] ids)
Parameters |
Description |
---|---|
ids |
Array of position IDs |
Java Examples
Example: deletes position lines
private ResultObjectType[] deletePositionLines(String serviceURL, long[] ids) throws Exception{
ResultObjectType[] resultType = null; StaffingProfileServiceStub stub = new StaffingProfileServiceStub(ctx, serviceURL); DeletePositionLinesDocument inDoc = DeletePositionLinesDocument.Factory.newInstance(); DeletePositionLinesDocument.DeletePositionLines deletePL = inDoc.addNewDeletePositionLines(); deletePL.setPositionIdArray(ids);
// Invoke web service DeletePositionLinesResponseDocument outDoc = stub.deletePositionLines(inDoc); resultType = outDoc.getDeletePositionLinesResponse().getPositionIdArray() ;
return resultType; }
Errors and Exceptions
Possible root cause descriptions:
Message Code |
Message |
Cause(s) |
Possible Corrective Action |
---|---|---|---|
exception.exceededThreshold |
The web service call exceeds the threshold limit for processing. Please batch your updates |
The number of position lines in one Web service call is limited to 50. The web service call exceeds the threshold limit for processing |
Reduce the number of position lines in the Web service call |
exception.authorization |
You do not have the privilege to take this action. Please consult your PPM Administrator |
You do not have the required access grants for this operation |
Verify that your account has the required access grants |
exception.cannotEditStaffingProfile |
User cannot edit staffing profile {0} |
You do not have the required access grants for this operation |
Verify that your account has the required access grants |