public static void init ( String jobId ) { JobContext parent = current_ . get ( ) ; JobContext ctx = new JobContext ( parent ) ; current_ . set ( ctx ) ; // don't call setJobId(String) // as it will trigger listeners -- TODO fix me ctx . jobId = jobId ; if ( null == parent ) { Act . eventBus ( ) . trigger ( new JobContextInitialized ( ctx ) ) ; } }
make it public for CLI interaction to reuse JobContext