From 5a92d097c413a0b8f5534a1d371d8005e614af23 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Sat, 24 Nov 2018 06:04:19 +0100 Subject: [PATCH] talking to twitter-service --- camunda-overlay/sentiment-analysis.bpmn | 364 ++++++++---------------- 1 file changed, 124 insertions(+), 240 deletions(-) diff --git a/camunda-overlay/sentiment-analysis.bpmn b/camunda-overlay/sentiment-analysis.bpmn index f5a55e8..1bdd8d7 100644 --- a/camunda-overlay/sentiment-analysis.bpmn +++ b/camunda-overlay/sentiment-analysis.bpmn @@ -5,6 +5,12 @@ + + + + + + SequenceFlow_0tu3w40 @@ -12,148 +18,91 @@ SequenceFlow_0jebdb9 SequenceFlow_0tu3w40 - PT1M + PT5S - SequenceFlow_0ez6lnk + SequenceFlow_14nqu0e SequenceFlow_0jebdb9 - - SequenceFlow_03ohp0o - SequenceFlow_12s5p9s - - PT1M - - - - SequenceFlow_1gdqfur - SequenceFlow_1inwzje - - PT1M - - SequenceFlow_11xavl5 - - SequenceFlow_12s5p9s - - - SequenceFlow_1inwzje - SequenceFlow_0h1h7gs - - - SequenceFlow_0fct5f2 - - - SequenceFlow_0ra8hjs - SequenceFlow_0ez6lnk - SequenceFlow_03ohp0o - "" - - - SequenceFlow_07bm292 - SequenceFlow_0bzf3di - "" - - - SequenceFlow_0h1h7gs - SequenceFlow_07bm292 - - PT1M - - - - SequenceFlow_1gbx7mw - SequenceFlow_0yqo6md - - PT1M - - - - SequenceFlow_0yqo6md - SequenceFlow_0okj60f - SequenceFlow_10v2c9r - + + SequenceFlow_0jumhlh + SequenceFlow_14nqu0e + - SequenceFlow_10v2c9r - SequenceFlow_0e9hshn + SequenceFlow_0htopx7 + SequenceFlow_0jumhlh - PT1M + PT5S - - SequenceFlow_0okj60f - SequenceFlow_0ra8hjs - - PT1M - - - - SequenceFlow_0bzf3di - SequenceFlow_0fct5f2 - - PT1M - - - - SequenceFlow_0e9hshn - SequenceFlow_11ge7w6 - SequenceFlow_1gdqfur - SequenceFlow_1gbx7mw - "" - - - SequenceFlow_0f33zny - SequenceFlow_11ge7w6 - - PT1M - - - + SequenceFlow_11xavl5 - SequenceFlow_0f33zny - for ( i in terms) { - println "line found: " + i -} -nt = {} -nt["term"] = "newterm" -terms += nt -return "" - - - - - - - - - - - - - - - - All terms are analyzed - ${terms}==[] - - - - - - - - - collect all analyze results - - + SequenceFlow_0htopx7 + + + SequenceFlow_0f6v4j4 + + + + + + http://twitter:8084/search/tweets.json + GET + + + application/json + + + + "q=${term}" + + + var response = connector.getVariable("response"); +S(response); + + + http-connector + + + SequenceFlow_08cvkud + SequenceFlow_0g6bfz6 + + + + + SequenceFlow_1bz7zx2 + + + + SequenceFlow_0dcynq6 + SequenceFlow_1bz7zx2 + + + SequenceFlow_0g6bfz6 + SequenceFlow_0dcynq6 + + PT5S + + + + + SequenceFlow_0f6v4j4 + SequenceFlow_08cvkud + + PT5S + + + + - + @@ -161,29 +110,6 @@ return "" - - - - - - - - - - - - - - - - - - - - - - - @@ -191,121 +117,79 @@ return "" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - + + + + + + + + - - + + - - + + - - - + + + - - - + + + - - - + + + + + + - - - + + + + + - - - + + + - - - - - + + - - - + + + - - + + - - + + - - - + + + - - - - - + + - - - + + + -- 2.43.0