@Path(value="userworkflow") public interface UserWorkflowService extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_DETAILS, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
WorkflowFormTO |
claimForm(String taskId)
Claims the form for the given task id.
|
UserTO |
executeTask(String taskId,
UserTO userTO)
Executes workflow task for matching id.
|
WorkflowFormTO |
getFormForUser(Long userId)
Returns a list of available forms for the given user id.
|
List<WorkflowFormTO> |
getForms()
Returns a list of all available workflow forms.
|
UserTO |
submitForm(WorkflowFormTO form)
Submits a workflow form.
|
@GET
@Path(value="forms")
@Produces(value={"application/xml","application/json"})
List<WorkflowFormTO> getForms()
@GET
@Path(value="forms/{userId}")
@Produces(value={"application/xml","application/json"})
WorkflowFormTO getFormForUser(@NotNull@PathParam(value="userId")
Long userId)
userId - user id@POST
@Path(value="forms/{taskId}/claim")
@Produces(value={"application/xml","application/json"})
WorkflowFormTO claimForm(@NotNull@PathParam(value="taskId")
String taskId)
taskId - workflow task id@POST
@Path(value="forms")
@Produces(value={"application/xml","application/json"})
@Consumes(value={"application/xml","application/json"})
UserTO submitForm(@NotNull
WorkflowFormTO form)
form - workflow form.@POST
@Path(value="tasks/{taskId}/execute")
@Produces(value={"application/xml","application/json"})
@Consumes(value={"application/xml","application/json"})
UserTO executeTask(@NotNull@PathParam(value="taskId")
String taskId,
@NotNull
UserTO userTO)
taskId - workflow task iduserTO - argument to be passed to workflow taskCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.