Package org.imixs.workflow.engine.adminp
Klasse JobHandlerUpgradeWorkitems
java.lang.Object
org.imixs.workflow.engine.adminp.JobHandlerUpgradeWorkitems
- Alle implementierten Schnittstellen:
JobHandler
@DeclareRoles("org.imixs.ACCESSLEVEL.MANAGERACCESS")
@RunAs("org.imixs.ACCESSLEVEL.MANAGERACCESS")
public class JobHandlerUpgradeWorkitems
extends Object
implements JobHandler
JobHandler to upgrate existing workItems to the latest workflow version.
Missing workflow items will be added.
Version 5.1.10 : new space.|process. Items
- Autor:
- rsoika
-
Feldübersicht
Von Schnittstelle geerbte Felder org.imixs.workflow.engine.adminp.JobHandler
ISCOMPLETED -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungrun(ItemCollection adminp) This method runs the RebuildLuceneIndexJob.booleanupgradeWorkitem(ItemCollection workitem) This method upgrades missing fields in a workitem
-
Konstruktordetails
-
JobHandlerUpgradeWorkitems
public JobHandlerUpgradeWorkitems()
-
-
Methodendetails
-
run
This method runs the RebuildLuceneIndexJob. The AdminP job description contains the start position (numIndex) and the number of documents to read (numBlockSize).The method updates the index for all affected documents which can be filtered by 'type' and '$created'.
An existing lucene index must be deleted manually by the administrator.
After the run method is finished, the properties numIndex, numUpdates and numProcessed are updated.
If the number of documents returned from the DocumentService is less the the BlockSize, the method returns true to indicate that the Timer should be canceled.
The method runs in an isolated new transaction because the method flushes the local persistence manager.
- Angegeben von:
runin SchnittstelleJobHandler- Parameter:
adminp-- Gibt zurück:
- true if no more unprocessed documents exist.
- Löst aus:
AccessDeniedExceptionPluginExceptionAdminPException
-
upgradeWorkitem
This method upgrades missing fields in a workitem- Parameter:
worktem-- Gibt zurück:
-