visible = biparam.getVisible() == 1;
ExecutionInstance executionInstance = getContext().getExecutionInstance( ExecutionInstance.class.getName() );
ParameterUse biParameterExecModality;
try {
// load parameter use ...
IParameterUseDAO parusedao = DAOFactory.getParameterUseDAO();
biParameterExecModality = parusedao.loadByParameterIdandRole(biparam.getParID(), executionInstance.getExecutionRole());
} catch (Exception e) {
throw new SpagoBIServiceException(SERVICE_NAME, "Impossible to find any valid execution modality for parameter [" + id + "] and role [" + executionInstance.getExecutionRole() + "]", e);
}
Assert.assertNotNull(biParameterExecModality, "Impossible to find any valid execution modality for parameter [" + id + "] and role [" + executionInstance.getExecutionRole() + "]" );
parameterUseId = biParameterExecModality.getUseID();
List biParameterExecDependencies;
try {
IObjParuseDAO objParuseDAO = DAOFactory.getObjParuseDAO();
biParameterExecDependencies = objParuseDAO.loadObjParuse(biparam.getId(), biParameterExecModality.getUseID());
} catch (EMFUserError e) {
throw new SpagoBIServiceException("An error occurred while loading parameter dependecies for parameter [" + id + "]", e);
}
dependencies = new ArrayList();