GenerateWorklistRelativeURL function

Syntax

GenerateWorklistRelativeURL(PORTAL.portalname, NODE.nodename, BusProc, Activity, Event, Worklist, Instance) 

Description

Use the GenerateWorklistRelativeURL function to create a URL string that represents a relative reference to the specified Worklist on the portal servlet. The relative reference is suitable for use on any page that itself has the simple URL format.

If you want to generate an absolute URL, use the GenerateWorklistPortalURL function.

Parameters

Parameter Description

portalname

Specify the name of the portal used for this request, prefixed with the reserved word PORTAL. You can also use a string, such as %Portal, for this value.

nodename

Specify the name of the node that contains the content, prefixed with the reserved word NODE. You can also use a string, such as %Node, for this value.

BusProc

Specify the business process of the Worklist.

Activity

Specify the activity of the Worklist.

Event

Specify the event of the Worklist.

Instance

Specify the instance of the Worklist.

Returns

A string of the following format:

../../../Portal/Node/w/BusProc.Activity.Event.Worklist.Instance

This function returns a Null string if you specify an invalid portal or node.

Example

The following is an example PeopleCode statement used to generate a URL for a worklist activity:

GenerateWorklistRelativeURL(%Portal, %Node, "Administer Workflow", "Find Timeout ⇒
Worklists", "Worklist Current Operator", "Timeout Notification", 1);