Added groovy scripts invoked from Trigger
Fixed bug in Trigger. make connectin.connect()