for (int i = 0; i < totElementi; i++) {
int docCorrente = xwconn.getNumDocFromQRElement(qr, i);
try {
// gestire con framework
xwconn.docRelDelete(xwconn.connection, workFlowBean.getAlias(), it.highwaytech.broker.ServerCommand.navigarel_FIGLIOPADRE, docCorrente, managingBean.getPhysDoc());
xwconn.docRelInsert(xwconn.connection, workFlowBean.getAlias(), it.highwaytech.broker.ServerCommand.navigarel_FIGLIOPADRE, docCorrente, managingBean.getPhysDoc());
processati++;
} catch (Exception e) {
xwconn.docRelInsert(xwconn.connection, workFlowBean.getAlias(), it.highwaytech.broker.ServerCommand.navigarel_FIGLIOPADRE, docCorrente, 1);
managingBean.addErrorMsg(e.getMessage());
errori++;