Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 23-02-2016 at 13:02
Please, ANSWER this question AT https://stackoverflow.com/questions/35578078/can-a-derived-event-be-used-as-an-initiator-for-a-temporal-context
Question:
Can a derived event be used as an initiator for a temporal context?
Description:
I am trying to have a derived event trigger an AbsenceEPA, by having the associated temporal context be initiated by the said derived event. Is that possible? This is the configuration I have:
{
"epn":{
"events":[
{
"name":"PollingCount",
"createdDate":"Fri Feb 19 2016",
"attributes":[
,
{ "name":"pollCount", "type":"Integer", "dimension":0 } ]
},
{
"name":"PrinterContextUpdate",
"createdDate":"Fri Feb 19 2016",
"attributes":[
,
,
,
{ "name":"entityType", "type":"String", "dimension":0 } ]
},
{
"name":"PrinterStoppedPolling",
"createdDate":"Tue Feb 23 2016",
"attributes":[
,
{ "name":"lastTimestamp", "type":"String", "dimension":0 } ]
}
],
"epas":[
{
"name":"CountEPA",
"epaType":"Aggregate",
"context":"CountCompositeContext",
"inputEvents":[
],
"computedVariables":[
],
"evaluationPolicy":"Deferred",
"cardinalityPolicy":"Single",
"internalSegmentation":[],
"derivedEvents":[
{
"name":"PollingCount",
"reportParticipants":false,
"expressions":
}
]
},
{
"name":"PrinterStoppedPollingEPA",
"createdDate":"Tue Feb 23 2016",
"epaType":"Absence",
"context":"SentLastPoll",
"inputEvents":[
,
{ "name":"PrinterContextUpdate", "alias":"pu", "consumptionPolicy":"Consume", "instanceSelectionPolicy":"First" } ],
"computedVariables":[],
"evaluationPolicy":"Deferred",
"cardinalityPolicy":"Single",
"internalSegmentation":[],
"derivedEvents":[
{
"name":"PrinterStoppedPolling",
"reportParticipants":false,
"expressions":
}
]
}
],
"contexts":{
"temporal":[
{
"name":"CountTemporalContext",
"type":"TemporalInterval",
"atStartup":false,
"neverEnding":false,
"initiators":[
],
"terminators":[
]
},
{
"name":"SentLastPoll",
"createdDate":"Tue Feb 23 2016",
"type":"TemporalInterval",
"atStartup":false,
"neverEnding":false,
"initiators":[
],
"terminators":[
,
{ "terminatorType":"RelativeTime", "terminationType":"Terminate", "relativeTime":"60000" } ]
}
],
"segmentation":[
{
"name":"CountSegmentationContext",
"participantEvents":[
]
}
],
"composite":[
{
"name":"CountCompositeContext",
"temporalContexts":[
],
"segmentationContexts":[
]
}
]
},
"consumers":[
{
"name":"alert",
"createdDate":"Fri Feb 19 2016",
"type":"Rest",
"properties":[
,
,
,
,
,
{ "name":"dateFormat", "value":"yyyy-MM-dd HH:mm:ss" } ],
"events":[
,
{ "name":"PrinterStoppedPolling" } ]
}
],
"producers":[],
"name":"Prior"
}
}
The derived event is PollingCount and the temporal context is PrinterStoppedPolling.
Thank you.
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Assignee | Backlog Manager [ backlogmanager ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
HD-Enabler | Orion [ 10875 ] | |
HD-Chapter | Data [ 10838 ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 57m | 1 | Backlog Manager | 22/May/17 6:05 PM | |||||
|
2h 59m | 1 | Backlog Manager | 22/May/17 9:05 PM | |||||
|
6d 14h 36m | 1 | José Ignacio Carretero Guarde | 29/May/17 11:41 AM |
2017-05-22 15:09|CREATED monitor | # answers= 1, accepted answer= False