importAssetDowntime
This method allows:
- Starting a downtime record;
- Finishing a downtime record.
To insert each of these items, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web\wwwroot\ws\java\maintenance\ImportAssetDowntimeRequestType.java |
Return | web\wwwroot\ws\java\maintenance\ImportAssetDowntimeResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
FGOPTION | Code of the operation to be performed: 23 - Start a downtime record; 24 - Finish a downtime record. | |
IDASSET | X | Asset ID #. Separate with ";" if multiple assets are added. Example: Asset_1;Asset_2;Asset_3 |
IDDOWNTIMEREASON | X¹ | Downtime reason ID # |
DTSTART | X² | Downtime start date. Date format must be Y-M-D (Year-Month-Day) |
QTSTART | X² | Downtime start time. |
DTEND | X³ | Downtime end date. Date format must be Y-M-D (Year-Month-Day) |
QTEND | X³ | Downtime end time |
DSCOMMENTS | Comments |
info
- X¹ - Required if the "FGOPTION" field is equal to 23.
- X² - Required if the "FGOPTION" field is equal to 23, and/or the “Start date” and/or "Start time" fields are completed.
- X³ - Required when the "FGOPTION" field(s) is(are) equal to 24 and/or the “End date” and/or "End time" is(are) filled out.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:asset">
<soapenv:Header/>
<soapenv:Body>
<urn:importAssetDowntime>
<!--You may enter the following 8 items in any order-->
<urn:FgOption>?</urn:FgOption>
<urn:IdAsset>?</urn:IdAsset>
<urn:IdDowntimeReason>?</urn:IdDowntimeReason>
<urn:DtStart>?</urn:DtStart>
<urn:QtStart>?</urn:QtStart>
<urn:DtEnd>?</urn:DtEnd>
<urn:QtEnd>?</urn:QtEnd>
<urn:DsComments>?</urn:DsComments>
</urn:importAssetDowntime>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | SUCCESS: Operation successfully performed. FAILURE: Returns a message regarding the error that occurred |