LocalDispatcher dispatcher = getDispatcher();
DispatchContext dctx = dispatcher.getDispatchContext();
String limitService = getDefinitionObject().getString("limitService");
ModelService service = null;
try {
service = dctx.getModelService(limitService);
Debug.logVerbose("[WfActivity.setLimitService] : Found service model.", module);
} catch (GenericServiceException e) {
Debug.logError(e, "[WfActivity.setLimitService] : Cannot get service model.", module);
}
if (service == null) {
Debug.logWarning("[WfActivity.setLimitService] : Cannot determine limit service, ignoring.", module);
return;
}
// make the limit service context
List inList = new ArrayList(service.getInParamNames());
String inParams = StringUtil.join(inList, ",");
Map serviceContext = actualContext(inParams, null, null, true);
Debug.logVerbose("Setting limit service with context: " + serviceContext, module);