Package org.imixs.workflow.engine
Class SimulationService
java.lang.Object
org.imixs.workflow.engine.SimulationService
- All Implemented Interfaces:
WorkflowContext
@DeclareRoles({"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
@RolesAllowed({"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
public class SimulationService
extends Object
implements WorkflowContext
The SimulationService can be used to simulate a process life cycle without
storing any data into the database.
- Author:
- rsoika
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ejb.SessionContext
getCtx()
This Method returns the modelManager Instance.jakarta.ejb.SessionContext
Returns an instance of the EJB session context.processWorkItem
(ItemCollection _workitem, List<String> vPlugins) This method simulates a processing life cycle of a process instance without storing any data into the database.void
setCtx
(jakarta.ejb.SessionContext ctx) void
setModelService
(ModelService modelService)
-
Field Details
-
events
-
-
Constructor Details
-
SimulationService
public SimulationService()
-
-
Method Details
-
getModelService
-
setModelService
-
getCtx
public jakarta.ejb.SessionContext getCtx() -
setCtx
public void setCtx(jakarta.ejb.SessionContext ctx) -
processWorkItem
public ItemCollection processWorkItem(ItemCollection _workitem, List<String> vPlugins) throws AccessDeniedException, ProcessingErrorException, PluginException, ModelException This method simulates a processing life cycle of a process instance without storing any data into the database.- Parameters:
workitem
- - the workItem to be processed- Returns:
- updated version of the processed workItem
- Throws:
AccessDeniedException
- - thrown if the user has insufficient access to update the workItemProcessingErrorException
- - thrown if the workitem could not be processed by the workflowKernelPluginException
- - thrown if processing by a plugin failsModelException
-
getModelManager
This Method returns the modelManager Instance. The current ModelVersion is automatically updated during the Method updateProfileEntity which is called from the processWorktiem method.- Specified by:
getModelManager
in interfaceWorkflowContext
- Returns:
- ModelManager
-
getSessionContext
public jakarta.ejb.SessionContext getSessionContext()Returns an instance of the EJB session context.- Specified by:
getSessionContext
in interfaceWorkflowContext
- Returns:
-