public class WorkflowController extends DocumentController
Constructor and Description |
---|
WorkflowController() |
Modifier and Type | Method and Description |
---|---|
List<ItemCollection> |
getEvents()
This method returns a List of workflow events assigned to the corresponding
'$taskid' and '$modelversion' 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 with the initial
values of the assigned workflow task.
|
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.
|
addMessage, create, create, delete, delete, getDefaultType, getDocumentService, getWorkitem, isNewWorkitem, load, load, reset, save, save, setDefaultType, setWorkitem
public ModelService getModelService()
public WorkflowService getWorkflowService()
public String init(String action) throws ModelException
action
- - the action returned by this methodModelException
- is thrown in case not valid worklfow task if defined by the
current model.public String process() throws PluginException, ModelException
AccessDeniedException
PluginException
ModelException
public String process(int id, boolean resetWorkitem) throws PluginException, ModelException
id
- - eventID to be processedresetWorkitem
- - boolean indicates if the workitem should be resetPluginException
ModelException
process()
public String process(int id) throws ModelException, PluginException
id
- - activityID to be processedPluginException
ModelException
process()
,
process(id,resetWorkitem)
public List<ItemCollection> getEvents()
Copyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.