newPredecessor
This method enables creating a precedence between two actions in an action plan. To use it, it is necessary to follow the standard documented below:
Java class | |
---|---|
Request | web/wwwroot/ws/java/timecontrol/NewPredecessorRequestType.java |
Return | web/wwwroot/ws/java/timecontrol/NewPredecessorResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
ActionPlanID | X | ID # of the action plan to which the actions belong. |
PredecessorActionID | X | Predecessor action ID #. |
SuccessorActionID | X | Successor action ID #. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:timecontrol">
<soapenv:Header/>
<soapenv:Body>
<urn:newPredecessor>
<!--You may enter the following 2 items in any order-->
<urn:ActionPlanID>?</urn:ActionplanID>
<urn:LinkDefinition>
<urn:Link>
<!--You may enter the following 2 items in any order-->
<urn:PredecessorActionID>?</urn:PredecessorActionID>
<urn:SuccessorActionID>?</urn:SuccessorActionID>
</urn:Link>
</urn:LinkDefinition>
</urn:newPredecessor>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
Status | Returns the status of the execution. SUCCESS on success and FAILURE on failure. |
Code | Returns the execution code: ▪ 1 - Method executed successfully; ▪ -1 - Error in the configuration of the input parameters; ▪ -2 - The authentication user does not have the necessary permission to execute this method. Check if the user has access to the PL025 menu; ▪ -3 - Action plan not found; ▪ -4 - ID # of the plan or action is duplicated in the database; ▪ -5 - Action plan status not allowed; ▪ -6 - PredecessorActionID parameter not entered; ▪ -7 - SuccessorActionID parameter not entered; ▪ -8 - The predecessor action and the successor action cannot have the same ID #; ▪ -9 - Action not found; ▪ -10 - ID # of the plan or action is duplicated in the database; ▪ -11 - Action cannot be predecessor!; ▪ -12 - It is not possible to perform this association as the activity (PredecessorActionID) will cause a loop in the structure; ▪ -13 - Activity is already or cannot be a predecessor one. |
Detail | SUCCESS: Method executed successfully. FAILURE: Description of the error that was found. |
Return structure:
<newPredecessorResponse>
<Status>?</Status>
<Code>?</Code>
<Detail>?</Detail>
</newPredecessorResponse>