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.
|
org.imixs.workflow.jee.ejb.ModelService |
getModelService()
returns an instance of the ModelService EJB
|
org.imixs.workflow.jee.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.
|
void |
process(int id)
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)
Set the current workItem and reset the activityList.
|
addMessage, create, delete, delete, deleteChilds, getEntityService, getID, getType, getWorkitem, load, load, loadBlobWorkitem, reset, save, saveBlobWorkitem, setTypepublic org.imixs.workflow.jee.ejb.ModelService getModelService()
public org.imixs.workflow.jee.ejb.WorkflowService getWorkflowService()
public void setWorkitem(org.imixs.workflow.ItemCollection aworkitem)
setWorkitem in class DataControllerpublic String init(String action)
action - - the action returned by this methodpublic String process() throws org.imixs.workflow.exceptions.AccessDeniedException, org.imixs.workflow.exceptions.ProcessingErrorException
org.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.ProcessingErrorExceptionpublic void process(int id)
throws org.imixs.workflow.exceptions.AccessDeniedException,
org.imixs.workflow.exceptions.ProcessingErrorException
id - - activityID to be processedorg.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.ProcessingErrorExceptionorg.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-2013 Imixs Software Solutions GmbH. All Rights Reserved.