public List<GsmServiceParameter> createProcessParameterForOrganization(Integer orgId){
  initGraph(orgId);
  List<CnATreeElement> rightElementList=getRightHandElements(orgId);
  List<CnATreeElement> leftElementList=getLeftHandElements(orgId);
  if (LOG.isInfoEnabled()) {
    LOG.info(rightElementList.size() + " control groups");
    LOG.info(leftElementList.size() + " persons");
  }
  List<GsmServiceParameter> allParameterList=new LinkedList<GsmServiceParameter>();
  for (  CnATreeElement controlGroup : rightElementList) {
    for (    CnATreeElement leftElement : leftElementList) {
      List<ExecutionImpl> processList=findProcesses(leftElement,controlGroup);
      if (processList != null && !processList.isEmpty()) {
        deleteProcesses(processList);
      }
      List<GsmServiceParameter> parameterList=createParameter(leftElement,controlGroup);
      String uuidOrg=loadOrgUuid(orgId);
      for (      GsmServiceParameter parameter : parameterList) {
        parameter.setUuidOrg(uuidOrg);
        allParameterList.add(parameter);
      }
    }
  }
  if (LOG.isInfoEnabled()) {
    LOG.info(allParameterList.size() + " process parameter objects created");
  }
  return allParameterList;
}

public List < GsmServiceParameter > createProcessParameterForOrganization ( Integer orgId ) { initGraph ( orgId ) ; List < CnATreeElement > rightElementList = getRightHandElements ( orgId ) ; List < CnATreeElement > leftElementList = getLeftHandElements ( orgId ) ; if ( LOG . isInfoEnabled ( ) ) { LOG . info ( rightElementList . size ( ) + " control groups" ) ; LOG . info ( leftElementList . size ( ) + " persons" ) ; } List < GsmServiceParameter > allParameterList = new LinkedList < GsmServiceParameter > ( ) ; for ( CnATreeElement controlGroup : rightElementList ) { for ( CnATreeElement leftElement : leftElementList ) { List < ExecutionImpl > processList = findProcesses ( leftElement , controlGroup ) ; if ( processList != null && ! processList . isEmpty ( ) ) { deleteProcesses ( processList ) ; } List < GsmServiceParameter > parameterList = createParameter ( leftElement , controlGroup ) ; String uuidOrg = loadOrgUuid ( orgId ) ; for ( GsmServiceParameter parameter : parameterList ) { parameter . setUuidOrg ( uuidOrg ) ; allParameterList . add ( parameter ) ; } } } if ( LOG . isInfoEnabled ( ) ) { LOG . info ( allParameterList . size ( ) + " process parameter objects created" ) ; } return allParameterList ; }
creates a list of parameters for the creation of a gsm process .
