Project activity #35796
Updated by Tahir Malik 13 days ago
@m.bloemberg@amsterdam.nl @h.arbely@amsterdam.nl
Om de antwoord bevredigend te maken gaan we het volgende doen:
* We gaan een nieuwe beheer-tools library maken die de Batch Executor uitleest
!clipboard-202512011010-pila4.png!
* De huidige snackbar veranderen we in een dialog met dezelfde melding
** Met een knop wordt je herleid naar deze nieuwe library waar je de stand van zaken kunt inzien
** Er zal ook een Ok knop zijn waarbij je op het huidige scherm blijft.
Technisch:
* We gaan de huidige webscript /ciber/batch-executer/jobs hernoemen naar /contezza/batch-executor/jobs https://git.contezza.nl/develop/alfresco/alfresco-js-batch-executer/-/blob/main/src/main/resources/alfresco/templates/webscripts/com/ciber/batchexecuter/batch-executer.get.desc.xml?ref_type=heads
* Analyseren of we met de huidige data voldoende informatie terugzien
<pre><code class="html">
<table class="moduletable">
<thead>
<tr>
<th>Name</th>
<th>Batch Size</th>
<th>Threads</th>
<th>Disabled Rules</th>
<th>Node Function</th>
<th>Batch Function</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<#list jobs as job>
<tr>
<td>${job.name}</td>
<td>${job.batchSize?c}</td>
<td>${job.threads?c}</td>
<td>${job.disableRules?string}</td>
<td>${job.onNodeFunction!""}</td>
<td>${job.onBatchFunction!""}</td>
<#assign status = job.status?string/>
<td>${status}</td>
<td>
<#if status != "CANCELED" && status != "FINISHED">
<div title="Cancel job" class="cancel" onclick="cancel('${job.id?replace("'", "\\'")}');"></div>
</#if>
</td>
</tr>
</#list>
</tbody>
</table>
</code></pre>
* Analyse of de backend https://git.contezza.nl/develop/alfresco/alfresco-js-batch-executer/-/blob/main/src/main/java/nl/ciber/alfresco/repo/jscript/batchexecuter/ScriptBatchExecuter.java#L85 voldoende informatie bevat om goed te tonen
* Voor de wachtstand toevoegen, maken we gebruik van een default API van Alfresco. Hiervoor zouden we separaat een nieuwe ticket in kunnen schieten bij Alfresco/Hyland waarom dit zo 'traag' gaat.
