@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 |
|---|---|
ModelManager |
getModelManager()
This Method returns the modelManager Instance.
|
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.
|
@Inject protected javax.enterprise.event.Event<ProcessingEvent> events
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–2018 Imixs Software Solutions GmbH. All rights reserved.