private Map<String, String> getRunningWorkflowId( final DeliveryImportToken token, final String strComponentId) throws TooManyObjectsException, DfException { final String strDql = "select distinct p.object_name ,wf.r_object_id from dmi_package pkg," + "dm_workflow wf,dm_process p where any pkg.r_component_id='" + strComponentId + "' and pkg.r_workflow_id=wf.r_object_id and wf.process_id=p.r_object_id"; final StringTable table = token.getSession().query(strDql); final Map<String, String> map = new HashMap<String, String>(); for (int i = 0; i < table.getRowCount(); i++) { map.put(table.get(0, i), table.get(1, i)); } return map; }