...
Code Block |
---|
{
"connections": [
{
"from": "twitter source",
"to": "language tagger"
},
{
"from": "language tagger",
"to": "categorizer",
"condition": {
"script": "function (input) { return input.language == "en"; }",
"engine": "javascript",
"elseTo": "translator"
}
},
{
"from": "translator",
"to": "categorizer",
"condition": {
"script": "function (input) { return input.language == "en"; }",
"engine": "javascript",
"elseTo": "invalid tweets table"
}
},
{
"from": "categorizer",
"to": "categorized tweets table",
"condition": {
"script": "function (input) { return !input.spam; }",
"engine": "javascript",
"elseTo": "invalid tweets table"
}
}
]
} |
Realtime Stream source
...