Partager via


StateTo Property

StateTo Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Contains the state of the process instance after a transition. This property is read-only.

Applies To

IWorkflowSession Interface

Type Library

Microsoft CDO Workflow Objects for Microsoft Exchange

DLL Implemented In

CDOWF.DLL

Syntax

[Visual Basic]Property StateTo As String

[C++]HRESULT get_StateTo(BSTRpVal);

Parameters

  • pVal
    Returns the value of the StateTo property as a reference to a BSTR.

Remarks

The value of this property might be null depending on the type of transition this process instance represents.

Example

This example uses the StateTo property to fill the TextBody of a WorkflowMessage object. The workflow engine passes the WorkflowSession intrinsic object to the script host, so you do not have to create it explicitly.

Sub SendMail(MySubject) Set WFMsg = WorkflowSession.GetNewWorkflowMessage() With WFMsg .From = WorkflowSession.Sender .To = WorkflowSession.Sender .Subject = MySubject .TextBody = WorkflowSession.StateFrom & " -> " & WorkflowSession.StateTo .SendWorkflowMessage 0 'cdowfNoTracking End With End Sub

See Also

CurrentState Property

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.