Portlet
Overview
The Portlet allows you to retrieve information from the WorkflowGen User Portal homepage.
The results received from HTTP are stored in XML RSS format and classified by category. This format allows the processing and presentation of the data with any language able to read and parse XML content.
URL and HTTP parameters
URL
You can reach the content generated by the Portlet module with the following URL: http://yoursite/wfgen/show.aspx?QUERY=SHOW_RSS
.
Parameters
Parameter | Description |
| Retrieve data for this user. The current login is assumed if this parameter is missing. Example: |
| List of categories to retrieve separated by Example: |
| Allows content to be filtered by some specific processes. Specify the names of the processes separated by Example: |
| Allows content to be filtered by some specific process categories. Specify the names of the categories separated by Example: |
| Retrieve the list of processes that the current user can launch. Example: |
| Path of the XSL sheet used to transform the RSS content. Example: |
Examples
Retrieve all categories for the user whose username is johnd
:
Retrieve the actions to do (normal and overdue) for the user whose username is johnd
:
Retrieve information relative to the HR
category for the current user:
Security
Authentication
To connect to the Portlet module, you must use an account that has access to the WorkflowGen User Portal (e.g. wfgen_admin
).
Username with or without a domain name
You must remove the domain name from the username when calling the Portlet module if the usernames are prefixed by the domain name (see User Management for more information).
RSS format specification
Official specification
Official information about the RSS 2.0 standard is available at http://blogs.law.harvard.edu/tech/rss.
Content example
XML RSS nodes description
Name | Path | Description |
|
| Root node |
|
| Channel title Example: |
|
| Channel description Example: |
|
| Channel content publication date |
|
| Channel language |
|
| Categories container node |
|
| Category title |
|
| Contextual link of the category in WorkflowGen |
|
| Category value |
|
| Category name |
List of available categories
The available categories are as follows:
Name | Description |
| Number of ongoing requests |
| Number of overdue ongoing requests |
| Number of actions to do |
| Number of overdue actions to do |
| Number of team actions to do |
| Number of overdue team actions to do |
| Number of actions to assign |
| Number of overdue actions to assign |
| Number of requests closed since my last visit |
| Number of overdue requests closed since my last visit |
| Number of requests to follow |
| Number of overdue requests to follow |
| Number of actions to follow |
| Number of overdue actions to follow |
| List of available processes that the user can launch |
Note: If a category is empty at runtime, it is not added to the RSS content.
Possible errors
When an error occurs, the HTTP status of the page is modified and a runtime error will be displayed with a custom number.
The following errors can occur during the execution of the script:
Error | Description | Number | HTTP status |
Unable to connect to the database | The database is unavailable. |
|
|
Unknown user | The username passed through the |
|
|
Error during the execution of the request | An error occurred during the execution of the SQL request corresponding to the |
|
|
Last updated