Pessoal, estou criando um script condicional para um processo, e nele preciso fazer uma consulta no dataset document, mas não me retorna nada. E com outros datasets funcionam normalmente.
Código da consulta no dataset sem filtro algum.
log.dir("### ENTROU ###")
var datasetReturned = DatasetFactory.getDataset("document", null, null, null);
log.dir(datasetReturned.rowsCount);
log.dir("### SAIU ###")
Log do servidor:
2022-06-02 14:50:00,077 INFO [com.datasul.technology.webdesk.customization.ScriptingLog] (WebdeskScheduler_Worker-1) "### ENTROU ###"
2022-06-02 14:50:00,077 INFO [com.datasul.technology.webdesk.dataset.business.DatasetBO] (WebdeskScheduler_Worker-1) Executando Dataset com ID document do tipo Interno.
2022-06-02 14:50:00,077 INFO [com.datasul.technology.webdesk.dataset.business.DatasetBO] (WebdeskScheduler_Worker-1) Builder rodando sem o mobile
2022-06-02 14:50:00,077 INFO [com.datasul.technology.webdesk.dataset.DocumentDatasetBuilder] (WebdeskScheduler_Worker-1) Querying Database: SELECT obj FROM com.datasul.technology.webdesk.dm.model.Document obj
2022-06-02 14:50:00,796 INFO [com.datasul.technology.webdesk.customization.ScriptingLog] (WebdeskScheduler_Worker-1) 0.0
2022-06-02 14:50:00,796 INFO [com.datasul.technology.webdesk.customization.ScriptingLog] (WebdeskScheduler_Worker-1) "### SAIU ###"