public class WorkflowRestServiceV3 extends Object
| Constructor and Description |
|---|
WorkflowRestServiceV3() |
| Modifier and Type | Method and Description |
|---|---|
EntityCollection |
getEvents(String uniqueid)
Returns a collection of events of a workitem, visible to the current user
|
javax.ws.rs.core.StreamingOutput |
getHelpHTML() |
EntityCollection |
getTaskListByAuthor(String user,
int start,
int count,
String type,
int sortorder,
String items)
Returns a collection of workitems representing the worklist by the
current user
|
EntityCollection |
getTaskListByCreator(String creator,
int start,
int count,
String type,
int sortorder,
String items) |
EntityCollection |
getTaskListByGroup(String processgroup,
int start,
int count,
String type,
int sortorder,
String items) |
EntityCollection |
getTaskListByOwner(String owner,
int start,
int count,
String type,
int sortorder,
String items) |
EntityCollection |
getTaskListByProcessID(int processid,
int start,
int count,
String type,
int sortorder,
String items) |
EntityCollection |
getTaskListByRef(String uniqueid,
int start,
int count,
String type,
int sortorder,
String items) |
XMLItemCollection |
getWorkItem(String uniqueid,
String items)
returns a singel workitem defined by $uniqueid
|
javax.ws.rs.core.Response |
getWorkItemFile(String uniqueid,
String file,
javax.ws.rs.core.UriInfo uriInfo)
Returns a file attachment located in the property $file of the specified
workitem
The file name will be encoded.
|
EntityCollection |
getWorkList(int start,
int count,
String type,
int sortorder,
String items)
Returns a collection of workitems representing the worklist by the
current user
|
static org.imixs.workflow.ItemCollection |
parseWorkitem(InputStream requestBodyStream)
This method expects a form post.
|
javax.ws.rs.core.Response |
postWorkitem(InputStream requestBodyStream)
This method expects a form post.
|
javax.ws.rs.core.Response |
postWorkitemByUniqueIDJSON(String uniqueid,
InputStream requestBodyStream,
String error,
String encoding) |
javax.ws.rs.core.Response |
postWorkitemByUniqueIDXML(String uniqueid,
XMLItemCollection xmlworkitem) |
javax.ws.rs.core.Response |
postWorkitemJSON(InputStream requestBodyStream,
String error,
String encoding)
This method expects a form post and processes the WorkItem by the
WorkflowService EJB.
|
javax.ws.rs.core.Response |
postWorkitemsXML(EntityCollection worklist) |
javax.ws.rs.core.Response |
postWorkitemXML(XMLItemCollection xmlworkitem)
This method post a ItemCollection object to be processed by the
WorkflowManager.
|
javax.ws.rs.core.Response |
putWorkitem(InputStream requestBodyStream)
This method expects a form post and processes the WorkItem by the
WorkflowService EJB.
|
javax.ws.rs.core.Response |
putWorkitemsXML(EntityCollection worklist)
This method post a collection of ItemCollection objects to be processed
by the WorkflowManager.
|
javax.ws.rs.core.Response |
putWorkitemXML(XMLItemCollection workitem) |
public javax.ws.rs.core.StreamingOutput getHelpHTML()
public XMLItemCollection getWorkItem(String uniqueid, String items)
uniqueid - public javax.ws.rs.core.Response getWorkItemFile(String uniqueid, @Encoded String file, @Context javax.ws.rs.core.UriInfo uriInfo)
uniqueid - public EntityCollection getEvents(String uniqueid)
uniqueid - of workitempublic EntityCollection getWorkList(int start, int count, String type, int sortorder, String items)
start - count - type - sortorder - public EntityCollection getTaskListByOwner(String owner, int start, int count, String type, int sortorder, String items)
public EntityCollection getTaskListByAuthor(String user, int start, int count, String type, int sortorder, String items)
start - count - type - sortorder - public EntityCollection getTaskListByCreator(String creator, int start, int count, String type, int sortorder, String items)
public EntityCollection getTaskListByProcessID(int processid, int start, int count, String type, int sortorder, String items)
public EntityCollection getTaskListByGroup(String processgroup, int start, int count, String type, int sortorder, String items)
public EntityCollection getTaskListByRef(String uniqueid, int start, int count, String type, int sortorder, String items)
public javax.ws.rs.core.Response putWorkitem(InputStream requestBodyStream)
requestBodyStream - - form contentaction - - return URIpublic javax.ws.rs.core.Response postWorkitem(InputStream requestBodyStream)
requestBodyStream - putWorkitemDefaultpublic javax.ws.rs.core.Response postWorkitemXML(XMLItemCollection xmlworkitem)
workitem - - new workItem datapublic javax.ws.rs.core.Response postWorkitemByUniqueIDXML(String uniqueid, XMLItemCollection xmlworkitem)
public javax.ws.rs.core.Response putWorkitemXML(XMLItemCollection workitem)
public javax.ws.rs.core.Response postWorkitemJSON(InputStream requestBodyStream, String error, String encoding)
... value":{"@type":"xs:int","$":"10"}
requestBodyStream - - form contentExceptionpublic javax.ws.rs.core.Response postWorkitemByUniqueIDJSON(String uniqueid, InputStream requestBodyStream, String error, String encoding)
public javax.ws.rs.core.Response putWorkitemsXML(EntityCollection worklist)
worklist - - workitem list datapublic javax.ws.rs.core.Response postWorkitemsXML(EntityCollection worklist)
public static final org.imixs.workflow.ItemCollection parseWorkitem(InputStream requestBodyStream)
------------------------------1a26f3661ff7
Content-Disposition: form-data; name="query"
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------195571638125373
Content-Length: 5680
-----------------------------195571638125373
requestBodyStream - Copyright © 2006–2017 Imixs Software Solutions GmbH. All rights reserved.