Q35ManageConditionBasedAlert
The purpose of this function is to create and update condition based alerts in the F1310 for a given asset number. Assuming condition base maintenance for JD Edwards has been setup the function will respond to alerts based on the passed in alert level, and measurement location.
If the cCreatePushNotification flag is equal to '1' and the szAppDesc field is populated the function will also generate a push notification to be handled by Cantara. See the Q35CreateCBMPushNotification function for further information on how the push notification works.
For this function to work correctly it is expected that Condition Based Maintenance has been setup in JD Edwards.
Calls
This function calls the following Q35 functions.
Data Structure
Name | Type | Inclusion | Direction |
---|---|---|---|
mnAssetItemNumber | ASSETNUMBER | REQUIRED | BOTH |
cAutomatedResponseType | UDC | OPTIONAL | BOTH |
szAlertDescription | STRING | REQUIRED | BOTH |
cAlertLevel | UDC | REQUIRED | BOTH |
szP1311Version | STRING | OPTIONAL | IN |
cErrorCode | CHARACTER | OPTIONAL | OUT |
szErrorMessageID | STRING | OPTIONAL | OUT |
cProcessAlert | CHARACTER | OPTIONAL | IN |
cCreatePushNotification | CHARACTER | OPTIONAL | IN |
szR1312Version | STRING | OPTIONAL | IN |
szMeasurementLocation | UDC | OPTIONAL | BOTH |
szAppDesc | STRING | REQUIRED | BOTH |
mnUniqueKeyIDInternal | INTEGER | OPTIONAL | BOTH |
mnUserReservedNumber | INTEGER | OPTIONAL | BOTH |
cAlertStatus | UDC | OPTIONAL | BOTH |
cSendNotificationMessage | CHARACTER | OPTIONAL | BOTH |
mnNotificationRecipient | ADDRESSNUMBER | OPTIONAL | BOTH |
mnInvestigationRecipient | ADDRESSNUMBER | OPTIONAL | BOTH |
szInvestigationStructureTy | UDC | OPTIONAL | BOTH |
cInvestigationMessageSent | CHARACTER | OPTIONAL | BOTH |
szNotificationStructureType | UDC | OPTIONAL | BOTH |
cInvestigationCompleted | CHARACTER | OPTIONAL | BOTH |
cFetchRecordOnly | CHARACTER | OPTIONAL | IN |
szUnitNumber | STRING | OPTIONAL | OUT |
szSerialTagNumber | STRING | OPTIONAL | OUT |
szAssetDL01 | STRING | OPTIONAL | OUT |
szAssetDL02 | STRING | OPTIONAL | OUT |
szAssetDL03 | STRING | OPTIONAL | OUT |
szLatitude | STRING | OPTIONAL | OUT |
szLongitude | STRING | OPTIONAL | OUT |
mnCustomerNumber | ADDRESSNUMBER | OPTIONAL | OUT |
mnSiteNumber | ADDRESSNUMBER | OPTIONAL | OUT |
szLocation | BUSINESSUNIT | OPTIONAL | OUT |
szBusinessUnit | BUSINESSUNIT | OPTIONAL | OUT |
mnDocumentOrderInvoiceE | INTEGER | OPTIONAL | OUT |
szServiceType | UDC | OPTIONAL | OUT |
mnWorkOrderNoAssigned | INTEGER | OPTIONAL | OUT |
szISSUE | STRING | OPTIONAL | OUT |
mnAddNoOriginator | ADDRESSNUMBER | OPTIONAL | OUT |
jdEventDate | DATE | OPTIONAL | OUT |
mnEventTime | INTEGER | OPTIONAL | OUT |
mnEventTimeUTC | INTEGER | OPTIONAL | OUT |
szTimeZoes | UDC | OPTIONAL | OUT |
mnPMUniqueID | INTEGER | OPTIONAL | OUT |
cSuppressErrors | CHARACTER | OPTIONAL | IN |