--- alias: user-guide-automation-task-oib-servicemaintenance tags: - maintenance - automation tasks description: "This task retrieves and outputs service and maintenance data based on specified parameters" --- # Service and Maintenance Data The `Service and Maintenance Data` task is responsible for requesting the Service and Maintenance Data. If received, the requested data is sent as the proper output. ![1562171137862](./images/service_maintenance_parameters.png) ## Inputs | Name | Data Type | Description | |----------|-----------|--------------------------------------------------------------| | lineName | `String` | Optional. If not defined, command will be sent to all lines. | | Activate | `Any` | Activate the task | ## Outputs | Name | Data Type | Description | |---------------------------|-----------|-------------------------------------------------------| | serviceAndMaintenanceData | `Object` | The output for the Service and Maintenance Data Event | | Success | `Boolean` | Triggered when the task is executed with success | | Error | `Error` | Triggered when the task failed for some reason | ## Settings On the `General` tab, you have the usual settings and the following settings: | Name | Data Type | Values | Default | Description | |-------------|-----------|--------|---------|----------------------------------------------------------------------------------------------| | Auto Enable | `Boolean` | | `false` | If the task should automatically register event listening at startup or only when activated. | | Keep Alive | `Integer` | | `0` | Interval (in minutes) to issue a command to force retrieval of data. Set to 0 to disable. | ![1562259678207](./images/service_maintenance_settings.png) ## Behavior The task should be activated to request the information or if the settings auto enabled is set to true the task will start a For the output of a specific data, just use the proper output to read the received data. `lineName` can be passed to input to filter the ServiceAndMaintenanceData request by a specific line name. ## Remarks None.