WFLogManagerRead Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Reads an individual item from the workflow log.

Namespace: ContentStudio.Document.Workflow.Management
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public string Read(
	ConnectionId connectionId,
	SessionId sessionId,
	int logId
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value typically is retrieved from a call to the OpenSession method
logId
Type: SystemInt32
The identifier if the log item to read.

Return Value

Type: String
Xml
<root>
  <status>0</status>
  <statustext>Success</statustext>
  <logs>
    <log id="Integer value"
         level="Integer value"
         logdate="Date/time value"
         summary="String value"
         details="String value"
         title="String value"
         username="String value"
         documentid="Integer value"
         categoryid="Integer value"
         categoryname="String value"
         wfinstance="Guid value" />
  </logs>
</root>
The attributes in the returned element root/logs contains the following attributes with values an meaning.
AttributeDescription
idInteger, the identifier of the item returned.
levelInteger, the type of log item.
This attribute can have on of the following values:
ValueMeaning
0Standard; standard information sufficient for most users
1Extended: extended information more detailed that the standard level
2Advanced; the item contains advanced and very detailed information of most actions taken by the workflow server.
3Debug; messages that describes every internal action done by the engine. This level meaningful for developers and testers only.
logdateA date time value that indicates when the log item was written to the log. This value is in the SortableDateTimePattern (based on ISO 8601) format using local time (e.g. 2007-11-01T16:34:18)
summaryString,
detailsString, a detailed message of the returned item.
titleString, the title of the log item.
usernameString, the name of the user that is involved in the logged workflow action.
documentidInteger, an identifier to the document the is subject to workflow.
categoryidIInteger, ddddddd
categorynameString, The name of the category that host the document that uses the workflow.
wfinstanceGuid, that uniquely identifiers the instance definition used by the workflow that created the log. This value is equal to the internal revision identifier of the document versioning that was affected by the workflow.
Exceptions

ExceptionCondition
CSExceptionA business rule was violated in the underlying Content Studio database
CSPermissionDeniedExceptionThe caller has no permission to perform the requested action
CSInvalidSessionExceptionThe session is invalid
CSDocumentNotFoundExceptionThe object specified could not be found
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

READCONTAINER permission on the category where the workflow is defined is required to be able to read the log.
See Also

Reference