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 Details

    • events

      @Inject protected jakarta.enterprise.event.Event<ProcessingEvent> events
  • Constructor Details

    • SimulationService

      public SimulationService()
  • Method Details

    • 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

      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 workItem
      ProcessingErrorException - - thrown if the workitem could not be processed by the workflowKernel
      PluginException - - thrown if processing by a plugin fails
      ModelException
    • 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:
      getModelManager in interface WorkflowContext
      Returns:
      ModelManager
    • getSessionContext

      public jakarta.ejb.SessionContext getSessionContext()
      Returns an instance of the EJB session context.
      Specified by:
      getSessionContext in interface WorkflowContext
      Returns: