var results = S('{}'); execution.setVariable("results", results) SequenceFlow_15dip2q // make variables local to loop execution.setVariable("analysis", 0, "terms_loop"); execution.setVariable('tweets', S('[]'), "terms_loop"); var results = execution.getVariable("results"); var term = execution.getVariable("term"); var analysis = execution.getVariable("analysis"); var termStr = term.prop('term').value(); //print (termStr) results.prop(termStr, analysis); //print (analysis) //print (results) execution.setVariable("results", S(results)) SequenceFlow_15dip2q SequenceFlow_1j2y6tv http://analysis:8081/ POST application/json application/json ${tweets.toString()} var response = connector.getVariable("response"); response.trim() http-connector SequenceFlow_0g6bfz6 SequenceFlow_1bz7zx2 var term = execution.getVariable("term"); 'http://twitter:8084/search/tweets.json?q='+term.prop('term').value() GET application/json var response = connector.getVariable("response"); S(response); http-connector SequenceFlow_0f6v4j4 SequenceFlow_0g6bfz6 SequenceFlow_0f6v4j4 SequenceFlow_1bz7zx2 SequenceFlow_0jebdb9 http://reporting:80/generatePDF/ GET application/pdf ${results.toString()} var response = connector.getVariable("response"); response http-connector SequenceFlow_1j2y6tv SequenceFlow_14nqu0e SequenceFlow_14nqu0e SequenceFlow_0jebdb9