@DeclareRoles(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"}) @RolesAllowed(value={"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
| Modifier and Type | Field and Description |
|---|---|
protected javax.enterprise.event.Event<ProcessingEvent> |
events |
| Constructor and Description |
|---|
SimulationService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ejb.SessionContext |
getCtx() |
ModelManager |
getModelManager()
This Method returns the modelManager Instance.
|
ModelService |
getModelService() |
javax.ejb.SessionContext |
getSessionContext()
Returns an instance of the EJB session context.
|
ItemCollection |
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(javax.ejb.SessionContext ctx) |
void |
setModelService(ModelService modelService) |
@Inject protected javax.enterprise.event.Event<ProcessingEvent> events
public ModelService getModelService()
public void setModelService(ModelService modelService)
public javax.ejb.SessionContext getCtx()
public void setCtx(javax.ejb.SessionContext ctx)
public ItemCollection processWorkItem(ItemCollection _workitem, List<String> vPlugins) throws AccessDeniedException, ProcessingErrorException, PluginException, ModelException
workitem - - the workItem to be processedAccessDeniedException - - 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 failsModelExceptionpublic ModelManager getModelManager()
getModelManager in interface WorkflowContextpublic javax.ejb.SessionContext getSessionContext()
getSessionContext in interface WorkflowContextCopyright © 2006–2020 Imixs Software Solutions GmbH. All rights reserved.