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 WorkflowContextThe SimulationService can be used to simulate a process life cycle without storing any data into the database.- Author:
- rsoika
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.enterprise.event.Event<ProcessingEvent>events
-
Constructor Summary
Constructors Constructor Description SimulationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ejb.SessionContextgetCtx()ModelManagergetModelManager()This Method returns the modelManager Instance.ModelServicegetModelService()jakarta.ejb.SessionContextgetSessionContext()Returns an instance of the EJB session context.ItemCollectionprocessWorkItem(ItemCollection _workitem, List<String> vPlugins)This method simulates a processing life cycle of a process instance without storing any data into the database.voidsetCtx(jakarta.ejb.SessionContext ctx)voidsetModelService(ModelService modelService)
-
-
-
Field Detail
-
events
@Inject protected jakarta.enterprise.event.Event<ProcessingEvent> events
-
-
Method Detail
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
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
public ModelManager 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:
getModelManagerin interfaceWorkflowContext
-
getSessionContext
public jakarta.ejb.SessionContext getSessionContext()
Returns an instance of the EJB session context.- Specified by:
getSessionContextin interfaceWorkflowContext- Returns:
-
-