package Ġes w . ocs . scripts . examples . reusable _ scripts Ċ Ċ import Ġc sw . params . commands . Command Response . Completed Ċ import Ġes w . ocs . dsl . core . reusable Script Ċ import Ġes w . ocs . scripts . examples . class _ based . event Key Ċ Ċ val Ġscript 7 Ġ= Ġre usable Script Ġ{ ĊĠĠĠ Ġlog (" ============= ĠLoading Ġscript Ġ 7 Ġ= ========== =") ĊĊĠĠĠ Ġhandle Setup (" command - 2 ") Ġ{ Ġcommand Ġ-> ĊĠĠĠĠĠĠĠ Ġlog (" ============ Ġcommand - 2 Ġ= ============== =") ĊĠĠĠĠĠĠĠ Ġval Ġevents Ġ= Ġget Event ( event Key Ġ+ Ġ 1 ) ĊĠĠĠĠĠĠĠ Ġlog ( events . toString ()) ĊĠĠĠĠĠĠĠ Ġevents . forEach (:: println ) ĊĊĠĠĠĠĠĠĠ Ġlog (" ============ Ġcommand - 2 ĠEnd Ġ= ============== =") ĊĠĠĠĠĠĠĠ Ġadd OrUpdate Command ( Completed ( command . run Id ())) ĊĠĠĠ Ġ} Ċ } Ċ