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

Examples

Retrieve all categories for the user whose username is johnd:

http://yoursite/wfgen/show.aspx?QUERY=SHOW_RSS&USERNAME=johnd

Retrieve the actions to do (normal and overdue) for the user whose username is johnd:

http://yoursite/wfgen/show.aspx?QUERY=SHOW_RSS&USERNAME=johnd&CATEGORY=ACTION_TODO_NB;ACTION_TODO_OVERDUE_NB

Retrieve information relative to the HR category for the current user:

http://yoursite/wfgen/show.aspx?QUERY=SHOW_RSS&PROCESS_CATEGORY=HR

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 version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
    <channel>
        <title>WorkflowGen</title>
        <description>WorkflowGen</description>
        <pubdate>Fri, 24 Oct 2011 15:19:42 GMT</pubdate>
        <language>en-US</language>
        <item>
            <title>Ongoing requests</title>
            <link>http://yoursite/wfgen/...</link>
            <description>15</description>
            <category>REQUEST_RUNNING_NB</category>
        </item>
        <item>
            <title>Actions to do</title>
            <link>http://yoursite/wfgen/...</link>
            <description>10</description>
            <category>ACTION_TODO_NB</category>
        </item>
    </channel>
</rss>

XML RSS nodes description

List of available categories

The available categories are as follows:

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:

Last updated