package Ġru . flower net es . script . domain . use case Ċ Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġru . flower net es . script . api . domain . use case . Check Source Script Has No Dependencies UseCase Ċ import Ġru . flower net es . task . api . domain . use case . Get Tasks By Source Script Id UseCase Ċ Ċ @ Component Ċ class ĠCheck Source Script Has No Dependencies UseCase Impl ( ĊĠ Ġprivate Ġval Ġget Tasks By Source Script Id UseCase : ĠGet Tasks By Source Script Id UseCase Ċ ) Ġ: ĠCheck Source Script Has No Dependencies UseCase Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġexec ( source Script Id : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdependent Tasks Ġ= Ġget Tasks By Source Script Id UseCase . exec ( source Script Id ) ĊĠĠĠĠĠĠĠ Ġif Ġ( dependent Tasks . isNotEmpty ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġtasks Msg Ġ= Ġdependent Tasks . join ToString Ġ{ Ġit . name Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthrow ĠIllegalStateException (" Source Ġscript Ġwith Ġid Ġ$ source Script Id Ġhas Ġtask Ġdependencies : Ġ$ tasks Msg ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }