Foros de discusión

DLFileEntry : DLFileEntry Status

Qasim Ali, modificado hace 8 años.

DLFileEntry : DLFileEntry Status

New Member Mensajes: 5 Fecha de incorporación: 17/02/14 Mensajes recientes
Hi,

I capture FileEntry event using DLFileEntryListener,
I have to perform some task on other sites using this DLFileEntry status.
I tried with DLFileEntry.getStatus(); but it returns 0 here in case of draft/Approve

@Override
    public void onAfterCreate(final DLFileEntry dlf) throws ModelListenerException {

    	super.onAfterCreate(dlf);
	dlf.getStatus() // return 0 always


}

is there any other way we can get state of DLFILEENTRY in event listener?
ManyThanks
thumbnail
Shinn Lok, modificado hace 8 años.

RE: DLFileEntry : DLFileEntry Status (Respuesta)

Junior Member Mensajes: 89 Fecha de incorporación: 14/01/11 Mensajes recientes
The status is tied to the DLFileVersion which is added after the DLFileEntry model is created. Try adding a listener on the DLFileVersion model instead?
Qasim Ali, modificado hace 8 años.

RE: DLFileEntry : DLFileEntry Status

New Member Mensajes: 5 Fecha de incorporación: 17/02/14 Mensajes recientes
Thanks Shinn,

After adding listener on DLFileVersion i am getting updated status of DLFileEntry.