Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
- After logging in, edit the URL in the browser address bar to insert api/formtypes immediately after the tenant name - which in this example is monahan.com.
- So in this example, we change the URL '' from: '' http://localhost:8082/frevvo/web/tn/monahan.com user/david/app
- toTo: http://localhost:8082/frevvo/web/tn/monahan.com/api/formtypes, and press Enter.
...
This example shows how to use the controltypes feed to get a list of all the control types that belong to the currently logged-in user, regardless of which forms they 're are used in.
- After logging in, edit the URL in the browser address bar to insert api/controltypes immediately after the tenant name - which in this example is monahan.com.
- So in In this example, we change the URL from: http://localhost:8082/frevvo/web/tn/monahan.com/user/david/app
- to: http://localhost:8082/frevvo/web/tn/monahan.com/api/controltypes, and press Enter.
...
This example shows how to use the controltypes?ownerId={formTypeId} feed feed to get a list of the control types in a specific form - in this case the Address Book form in the example above.
...
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 form workflow step and the form is submitted to a document management system (ECM). All of the form data as well as and the PDF order form image is 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. The demo.war contains a api/resetTask.jsp that demonstrates how to use this API feature:
- Copy <frevvo-home>/ext/demo.war to <frevvo-home>/tomcat/webapps. It will auto-extract.
- Edit frevvo/tomcat/webapps/demo/api/resetTask.jsp
- Set the host:port to your frevvo server
- Set the username and password and tenant to the designer user how is the owner of the workflow you want to reset
- Enable the workflow's save property so the workflow data is stored in frevvo's submission repository. This is critial critical as frevvo needs to access this data in order to reset the workflow back to a task list.
- Restart the frevvo server.
- Use the workflow and complete/submit it.
- Save the frevvo.form.id POST parameter. It will be a GUID such as _udowHBy0EeCJpdjaAfsaSA
...