package Ġcom . template . flows Ċ Ċ import Ġco . parallel universe . fib ers . Suspend able Ċ import Ġcom . template . contracts . Cause Contract Ċ import Ġcom . template . states . Cause Ċ import Ġnet . cord a . core . flows .* Ċ import Ġnet . cord a . core . transactions . Signed Transaction Ċ import Ġnet . cord a . core . transactions . Transaction Builder Ċ Ċ @ Initi ating Flow Ċ @ Start able By RPC Ċ class ĠIssue Cause Flow ( ĊĠĠĠ Ġval Ġcause Ġ: ĠCause Ċ ) Ġ: ĠFlow Logic < Signed Transaction >() Ġ{ ĊĊĠĠĠ Ġ@ Suspend able ĊĠĠĠ Ġoverride Ġfun Ġcall (): ĠSigned Transaction Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnot ary Ġ= Ġservice Hub . network Map Cache . not ary Id entities [ 0 ] ĊĊĠĠĠĠĠĠĠ Ġval Ġtx Builder Ġ= ĠTransaction Builder ( not ary ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Output State ( cause , ĠCause Contract . ID ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Command ( Cause Contract . Commands . Issue (), ĠlistOf ( our Identity . own ing Key )) ĊĊĠĠĠĠĠĠĠ Ġtx Builder . verify ( service Hub ) ĊĊĠĠĠĠĠĠĠ Ġval Ġp tx Ġ= Ġservice Hub . sign Initial Transaction ( tx Builder ) ĊĊĠĠĠĠĠĠĠ Ġval Ġst x Ġ= Ġsub Flow ( Collect Signatures Flow ( pt x , ĠlistOf ())) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġsub Flow ( Final ity Flow ( st x , ĠlistOf ())) ĊĠĠĠ Ġ} Ċ }