public class SequenceNumberPlugin
extends org.imixs.workflow.engine.plugins.AbstractPlugin
If a WorkItem is assigned to a WorkflowGroup with no corresponding entry in the BASIC configuration, the Plugin will not compute a new number for the workitem.
If the Workitem already have a sequence number, the plugin will not run.
The new computed SequenceNumer will be stored into the property 'numsequencenumber'. To compute the sequence Number the plugin uses the SequeceService .
Optimistic Locking Problem
In earlier versions, the method runs in a OptimisticLockException in case that multiple processes run in parallel. To fix this the SequenceService was changed into a singleton. See issue #290.
SequenceService| Modifier and Type | Field and Description |
|---|---|
static String |
NO_SEQUENCE_SERVICE_FOUND |
| Constructor and Description |
|---|
SequenceNumberPlugin() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.ItemCollection |
run(org.imixs.workflow.ItemCollection documentContext,
org.imixs.workflow.ItemCollection event)
This method loads a sequence number object and increases the sequence number
in the workItem.
|
public static String NO_SEQUENCE_SERVICE_FOUND
public org.imixs.workflow.ItemCollection run(org.imixs.workflow.ItemCollection documentContext,
org.imixs.workflow.ItemCollection event)
throws org.imixs.workflow.exceptions.PluginException
javax.mail.internet.AddressExceptionorg.imixs.workflow.exceptions.PluginExceptionCopyright © 2016–2022 Imixs Software Solutions GmbH. All rights reserved.