public static AutoAssignStrategy getAutoAssignStrategy ( String logicalName , Long processInstanceId ) throws StrategyException { Package packageVO = processInstanceId == null ? null : getPackage ( processInstanceId ) ; TaskInstanceStrategyFactory factory = getInstance ( ) ; String className = factory . getStrategyClassName ( logicalName , StrategyType . AutoAssignStrategy ) ; return ( AutoAssignStrategy ) factory . getStrategyInstance ( AutoAssignStrategy . class , className , packageVO ) ; }
Returns an auto - assign strategy instance based on the logical name and bundle spec .