public static Package getTaskTemplatePackage ( Long taskId ) { try { for ( Package pkg : getPackageList ( ) ) { if ( pkg . containsTaskTemplate ( taskId ) ) return pkg ; } return Package . getDefaultPackage ( ) ; } catch ( CachingException ex ) { logger . severeException ( ex . getMessage ( ) , ex ) ; return null ; } }
Returns the design - time package for a specified task ID . Returns the first match so does not support the same template in multiple packages .