public class WorkflowController extends DataController
| Constructor and Description |
|---|
WorkflowController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
returns the last computed workflow resultmessage.
|
List<org.imixs.workflow.ItemCollection> |
getActivities()
returns a arrayList of Activities to the corresponding processiD of the
current WorkItem.
|
ModelService |
getModelService()
returns an instance of the ModelService EJB
|
WorkflowService |
getWorkflowService() |
String |
init(String action)
This action method is used to initialize a new workitem.
|
boolean |
isNewWorkitem()
Returns true if the current workItem was processed before by the
workflowService.
|
String |
process()
This method processes the current workItem and returns an action result.
|
String |
process(int id)
This method processes the current workItem with the provided activityID.
|
String |
process(int id,
boolean resetWorkitem)
This method processes the current workItem with the provided activityID.
|
String |
save(String action)
This method overwrite the default behavior and processes the current
workItem.
|
void |
setWorkitem(org.imixs.workflow.ItemCollection aworkitem)
Updates the current workItem and reset the activityList.
|
addMessage, create, delete, delete, deleteChilds, getEntityService, getID, getType, getWorkitem, load, load, reset, reset, save, setTypepublic ModelService getModelService()
public WorkflowService getWorkflowService()
public void setWorkitem(org.imixs.workflow.ItemCollection aworkitem)
setWorkitem in class DataControlleraworkitem - - new reference or null to clear the current workItem.public String init(String action)
action - - the action returned by this methodorg.imixs.workflow.exceptions.ModelExceptionpublic String process() throws org.imixs.workflow.exceptions.AccessDeniedException, org.imixs.workflow.exceptions.ProcessingErrorException, org.imixs.workflow.exceptions.PluginException
org.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.ProcessingErrorExceptionpublic String process(int id) throws org.imixs.workflow.exceptions.AccessDeniedException, org.imixs.workflow.exceptions.ProcessingErrorException, org.imixs.workflow.exceptions.PluginException
id - - activityID to be processedorg.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.ProcessingErrorExceptionprocess(),
process(id,resetWorkitem)public String process(int id, boolean resetWorkitem) throws org.imixs.workflow.exceptions.AccessDeniedException, org.imixs.workflow.exceptions.ProcessingErrorException, org.imixs.workflow.exceptions.PluginException
id - - activityID to be processedresetWorkitem - - boolean indicates if the workitem should be resetorg.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.ProcessingErrorExceptionprocess()public String save(String action) throws org.imixs.workflow.exceptions.AccessDeniedException
save in class DataControlleraction - - defines the action resultorg.imixs.workflow.exceptions.AccessDeniedException - - if user has insufficient access rights.public String getAction()
public List<org.imixs.workflow.ItemCollection> getActivities()
public boolean isNewWorkitem()
isNewWorkitem in class DataControllerCopyright © 2006–2016 Imixs Software Solutions GmbH. All rights reserved.