MFG OSIPI Machine Data System API - Implementation Template

(0 reviews)

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

getAttributesRequest

Source: ./src/main/resources/dwl/getAttributesRequest.dwl

Mapping Tables

Generates response object which includes attributes and data values for the OSI PI points.

Source fieldTarget fieldDescription
1.Methodpi.method configsince this is bulk fetch request this field represent actual REST method - GET in this case
1.Resourceresource urlactual URL being called to fetch attributes for all PI points by the above GET method

(back to top)

getAttributesResponse

Source: ./src/main/resources/dwl/getAttributesResponse.dwl

Mapping Tables

Generates response object which includes attributes and data values for the OSI PI points.

Source fieldTarget fieldDescription
webIdWebIdunique web id of the OSI PI point
idIdunique id of the OSI PI point
tagNameNamename of the OSI PI point e.g. Temperature
descriptorDescriptordescription of the OSI PI point. It is being used to store machine id e.g. Machine1
dataTypePointTypetype of the data of the OSI PI point e.g. Int32
unitsEngineeringUnitsunits of the data of the OSI PI point e.g. Degree F
spanSpanmaximum value of the OSI PI point
zeroZerominimum value of the OSI PI point
displayDigitsDisplayDigitsnumber of digits to display in the value of the OSI PI point
linkLinks.Selfweb URL of the OSI PI point

(back to top)

getPointsResponse

Source: ./src/main/resources/dwl/getPointsResponse.dwl

Variables

var s

Generates response object which includes attributes and data values for the OSI PI points.

Mapping Tables

Generates response object which includes attributes and data values for the OSI PI points.

Source fieldTarget fieldDescription
attributesattributesattributes of the OSI PI point
data.timestamptimestampdate-time when data value was captured in OSI PI
data.valuevaluedata value for OSI PI point. It may be present in the data.value or data.value.Value field
data.goodgoodflag representing if the data value for OSI PI point is current or old

(back to top)

getValuesRequest

Source: ./src/main/resources/dwl/getValuesRequest.dwl

(back to top)

getValuesResponse

Source: ./src/main/resources/dwl/getValuesResponse.dwl

Mapping Tables

Generates response object which includes attributes and data values for the OSI PI points.

Source fieldTarget fieldDescription
webIdWebIdunique web id of the OSI PI point
idIdunique id of the OSI PI point
tagNameNamename of the OSI PI point e.g. Temperature
timestampTimestampdate-time when data value was captured in OSI PI
valuevaluedata value for OSI PI point
goodGoodflag representing if the data value for OSI PI point is current or old

(back to top)


Reviews

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onSep 6, 2022
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.0