new FeedbackStore()
- Source:
Methods
generateFeedbackObjectsForOperation(operationId, basedataUUIDArray, callback)
Adds new feedback objects for basedata to core database, ususally caused by an new alarming
Parameters:
Name | Type | Description |
---|---|---|
operationId |
integer | id of operations object this feedbacks shall be added for |
basedataUUIDArray |
array | array of UUIDs of basedata to add, e.g. ['uuid1', 'uuid2'] |
callback |
function | success (true/false) |
- Source:
getFeedbackForOperationWithId(operationId, callback)
Returns basedata and set feedback state for given operation id
Parameters:
Name | Type | Description |
---|---|---|
operationId |
integer | id of operation |
callback |
* | rows of null |
- Source:
getOperationIdForUUID(uuid, callback)
returns the operationId for a given operation uuid
Parameters:
Name | Type | Description |
---|---|---|
uuid |
string | |
callback |
function | rows or null |
- Source:
setFeedback(basedataUUID, operationUUID, state, callback)
Sets a new feedbackstate for given operationUUID and basedataUUID
Parameters:
Name | Type | Description |
---|---|---|
basedataUUID |
string | uuid of basedata |
operationUUID |
string | uuid of operation |
state |
integer | integer value from table feedbackStates |
callback |
function | success (true/false) |
- Source: