Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

ICS.AppEvent

Creates an event that triggers a registered application logic.

Syntax

Parameters

name
Name to register the event under. Do not use special characters in event name, such as "{", "*", or "&".

guid
The name of the servlet that is called when the event is triggered.

times
Time at which the event will be triggered. Use the format:

where:

For each of these fields, it is valid to use an asterisk (all legal values) or a list of elements separated by commas. A value can be one or more numbers separated by a minus sign indicating an inclusive range. For example:

means the event is triggered at 2 a.m., 5 a.m., 6 a.m. and 7 a.m. every Monday.

Specify days by two fields: day of the month (DD) and day of the week (W). If both are specified, both take effect. For example, 1:0:0 1/15/* means the event is triggered at 1 a.m. every Monday, as well as on the fifteenth of each month. To specify days by only one field, set the other field to *.

params
A list of name/value pairs that are passed to the servlet. May be null.

Description

The AppEvent method creates an event that triggers a registered application logic.

Returns

Boolean value indicating success or failure.

Errno

Use GetErrno to view the error.

Possible values of errno include:

Value
Description
-200
Failed to register event.
-201
Exception in event. (May appear as -200.)

 

Example

This example registers an event that will invoke the ContentServer application logic. The event will be triggered every day at 1:10 p.m. and invoke ContentServer to process the pagename API/Main. Note that the single parameter to this application logic is passed in the FTValList.

See Also

DeployJSPFile , DestroyEvent , EmailEvent , EnableEvent , SendMail

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.