newProgrammedMaintenance
This method allows adding:
- Programmed maintenance data.
To insert each of these items, the standard documented below must be followed.
| Java class | |
|---|---|
| Request | web\wwwroot\ws\java\maintenance\NewProgrammedMaintenanceRequestType.java |
| Return | web\wwwroot\ws\java\maintenance\NewProgrammedMaintenanceResponseType.java |
Request:
| ID | Required | Description |
|---|---|---|
| IDACTIVITY | Activity ID # (Generated automatically if not entered) | |
| IDMODELACTIVITY | X | Standard activity ID # |
| IDASSET | X | Asset ID # Note: For multiple assets, insert the identifiers separated by ';'. (E.g.: ASSET1;ASSET2) |
| ACTIVITYSTEP | Activity step: 1 - Planning; 2 - Execution. Note: Considering 1 by default | |
| STARTDATEPLAN | X¹ | Planned start date. The expected format is YYYY-MM-DD (Year-Month-Day). |
| STARTTIMEPLAN | X¹ | Planned start time. |
| FINISHDATEPLAN | X¹ | Planned end date. The expected format is YYYY-MM-DD (Year-Month-Day). |
| FINISHTIMEPLAN | X¹ | Planned end time. |
| STARTDATE | X² | Execution start date. The expected format is YYYY-MM-DD (Year-Month-Day). |
| STARTTIME | X² | Execution start time |
| REALPERCENTAGE | X² | Actual percentage (%) |
| IDSERVICECENTER | X³ | Service center ID # |
| IDTECHNICIANRESPONSIBLE | X³ | Technician ID # |
| ATTRIBUTES | Example:identifier_of_attribute1=value_of_attribute1; identifier_of_attribute2=value_of_attribute2; identifier_of_attribute3=value_of_attribute3.Example with a multivalued attribute: identifier_of_attribute1=value1_of_attribute1, value2_of_attribute1, value3_of_attribute1Note: For attributes with a numeric value, the decimal place separator must be ".". For date fields, the value must have the “Y-M-D” (Year-Month-Day) format. | |
| IDEVALMETHOD | X⁵ | Evaluation method ID # |
| DSEVALCRIT | X⁶ | For quantitative method: ▪ For list of values: [criterion 1 id]=[result1 id]; [criterion 2 id]=[result2 id]▪ For understand value: [criterion 1 id]=[value 1]; [criterion 2 id]=[value 2]▪ Mixing: [criterion 1 id]=[result1 id]; [criterion 2 id]=[value 2]▪ For simple listing method: [result id] |
| IDPROCESSASSOC | Insert the ID # of the process instance that you want to associate with the created activity. For workflow only. | |
| FGAUTOMATION | Process automation type: 1 - Workflow. | |
| DSACTIVITY | Maintenance description. |
info
- X¹ - Required if the “Activity step” field is 1.
- X² - Required if the “Activity step” step is 2.
- X¹ - Required if the ID # has not been entered in the standard activity.
- X⁴ - Required if the standard activity has mandatory attribute.
- X⁵ - Required if the
DSEVALCRITfield is completed. - X⁶ - Required if the
IDEVALMETHODfield is completed.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:maintenance">
<soapenv:Header/>
<soapenv:Body>
<urn:newProgrammedMaintenance>
<!--You may enter the following 18 items in any order-->
<urn:ActivityID>?</urn:ActivityID>
<urn:ModelActivityID>?</urn:ModelActivityID>
<urn:AssetID>?</urn:AssetID>
<urn:ActivityStep>?</urn:ActivityStep>
<urn:StartPlanDate>?</urn:StartPlanDate>
<urn:StartPlanTime>?</urn:StartPlanTime>
<urn:FinishPlanDate>?</urn:FinishPlanDate>
<urn:FinishPlanTime>?</urn:FinishPlanTime>
<urn:StartDate>?</urn:StartDate>
<urn:StartTime>?</urn:StartTime>
<urn:RealPercentage>?</urn:RealPercentage>
<urn:ServiceCenterID>?</urn:ServiceCenterID>
<urn:TechnicianResponsibleID>?</urn:TechnicianResponsibleID>
<urn:Attributes>?</urn:Attributes>
<urn:EvalMethodID>?</urn:EvalMethodID>
<urn:EvalCriteria>?</urn:EvalCriteria>
<urn:IdProcessAssoc>?</urn:IdProcessAssoc>
<urn:FgAutomation>?</urn:FgAutomation>
</urn:newProgrammedMaintenance>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID | Description |
|---|---|
| return | SUCCESS: ID # of the created activity FAILURE: Returns a message regarding the error that occurred |