Get Event

API Type

Web Services

Description

Retrieves an event object. This service call is usually used to check if a service call has been completed.

Syntax

public virtual WFEvent GetEvent(string eventID)

Parameters

Name Description

eventID

Definition:
Specifies a unique ID for an event.
Type
string
Allowed Values:
A unique, 32-character ID.

Output

WFEvent object.

Example

IWFWorkflowService svc = GetWorkflowService();
string eventID = …// for example, "049C3974240F47D3BA8EB6D4A3CDCD3F";

try
	{
    WFEvent evt = _workflowAPI.GetEvent(eventID);
    Console.WriteLine("Event ID: '{0}'", evt.EventID);
    Console.WriteLine("Event Name: '{0}'",evt.EventName);     
    Console.WriteLine("Event Status: '{0}'",evt.Status);     
	}

catch (Exception ex)
	{
    Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}

Supported Versions

3.2.0.4 and higher