public CompoundActivity addActivity ( Activity activity ) { if ( activity != null ) { logger . trace ( "adding sub-activity '{}' to list" , activity . getId ( ) ) ; activities . add ( activity ) ; } return this ; }
Adds an activity to the list of sub - activities .