@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 WorkitemService extends Object
| Constructor and Description |
|---|
WorkitemService() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.ItemCollection |
createWorkItem(org.imixs.workflow.ItemCollection parent,
String sProcessModelVersion,
int aProcessID)
This method creates a new workItem.
|
List<org.imixs.workflow.ItemCollection> |
findAllVersions(org.imixs.workflow.ItemCollection workitem)
This method finds all versions of a given workitem.
|
List<org.imixs.workflow.ItemCollection> |
findAncestorsVersions(org.imixs.workflow.ItemCollection workitem)
This method finds all ancestors versions to a given workitem.
|
org.imixs.workflow.ItemCollection |
processWorkItem(org.imixs.workflow.ItemCollection aworkitem)
Processes a WorkItem.
|
public org.imixs.workflow.ItemCollection createWorkItem(org.imixs.workflow.ItemCollection parent,
String sProcessModelVersion,
int aProcessID)
throws Exception
parent - ItemCollection representing the parent where the workItem is
assigned to. This is typical a project entity but can also be
an other workItemprocessEntity - ItemCollection representing the ProcessEntity where the
workItem is assigned toExceptionpublic org.imixs.workflow.ItemCollection processWorkItem(org.imixs.workflow.ItemCollection aworkitem)
throws org.imixs.workflow.exceptions.AccessDeniedException,
org.imixs.workflow.exceptions.ProcessingErrorException,
org.imixs.workflow.exceptions.PluginException,
org.imixs.workflow.exceptions.ModelException
org.imixs.workflow.exceptions.ProcessingErrorExceptionorg.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.ModelExceptionpublic List<org.imixs.workflow.ItemCollection> findAllVersions(org.imixs.workflow.ItemCollection workitem)
public List<org.imixs.workflow.ItemCollection> findAncestorsVersions(org.imixs.workflow.ItemCollection workitem)
Copyright © 2016–2022 Imixs Software Solutions GmbH. All rights reserved.