package Ġio . hol unda . camunda . task pool . sender . process . definition Ċ Ċ import Ġio . hol unda . camunda . task pool . api . process . definition . Process Definition Command Ċ import Ġio . hol unda . camunda . task pool . sender . Sender Properties Ċ import Ġio . hol unda . camunda . task pool . sender . gateway . Command List Gateway Ċ import Ġmu . K Logging Ċ Ċ /** Ċ Ġ* ĠSimple Ġsender Ġfor Ġprocess Ġdefinition Ġcommands Ċ Ġ*/ Ċ internal Ġclass ĠSimple Process Definition Command Sender ( ĊĠ Ġprivate Ġval Ġcommand List Gateway : ĠCommand List Gateway , ĊĠ Ġprivate Ġval Ġsender Properties : ĠSender Properties Ċ ) Ġ: ĠProcess Definition Command Sender Ġ{ ĊĊĠ Ġcompanion Ġobject Ġ: ĠK Logging () ĊĊĠ Ġoverride Ġfun Ġsend ( command : ĠProcess Definition Command ) Ġ{ ĊĠĠĠ Ġif Ġ( sender Properties . enabled Ġ&& Ġsender Properties . process Definition . enabled ) Ġ{ ĊĠĠĠĠĠ Ġcommand List Gateway . send To Gateway ( listOf ( command )) ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠ Ġlogger . debug Ġ{ Ġ" SEND ER - 0 0 7 : ĠProcess Ġdefinition Ġsending Ġis Ġdisabled Ġby Ġproperty . ĠWould Ġhave Ġsent Ġ$ command ." Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ