Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
The reset task API makes it possible to restart a completed submitted workflow. For example, imagine a sales person has reviewed a product order form on their task list and signed it and submitted it. This is the final workflow step and the form is submitted to a document management system (ECM). All of the form data and the PDF order form image are stored in the ECM. While the order is processed someone notices that a product is out of stock and wants to return the order form back to the sales person's form workflow task list. The reset task API feature makes this possible.
Warning |
---|
You cannot use this process to recover aborted workflows. At this time, aborting a task permanently deletes it and is irreversible. |
The demo.war contains a api/resetTask.jsp that demonstrates how to use this API feature:
...
Code Block | ||
---|---|---|
| ||
<%@ page import="java.util.*,com.frevvo.forms.client.*,com.frevvo.forms.client.util.*" %> <html> <head> </head> <body> <% FormsService service = new FormsService("http", "localhost", 8082, null); service.login ("designer@nancy.com", "designer"); String formId = request.getParameter("frevvo.form.id"); TaskEntry entry = service.getEntry(service.getEntryURL(TaskEntry.class, formId), TaskEntry.class); String stepName = request.getParameter("frevvo.reset.activity.name"); entry.setResetToStep(stepName); entry.update(); service.logout(); %> Your task was successfully reset. </body> </html> <pre> |
...