public static RoutingStrategy getRoutingStrategy ( String attributeValue , Long processInstanceId ) throws StrategyException { Package packageVO = processInstanceId == null ? null : getPackage ( processInstanceId ) ; TaskInstanceStrategyFactory factory = getInstance ( ) ; String className = factory . getStrategyClassName ( attributeValue , StrategyType . RoutingStrategy ) ; RoutingStrategy strategy = ( RoutingStrategy ) factory . getStrategyInstance ( RoutingStrategy . class , className , packageVO ) ; return strategy ; }
Returns a workgroup routing strategy instance based on an attribute value and bundle spec which can consist of either the routing strategy logical name or an xml document .