Documentation Center

Predefined variables in your Automatic Activity C# script

The C# script fragment you are writing will be included into a predefined method of a predefined class. This means that you have a certain number of variables at your disposal. Refer to the Core Service API reference documentation for more information about the classes involved.

SessionAwareCoreServiceClient

Type: Tridion.ContentManager.CoreService.Client.ISessionAwareCoreService

Description: The session-aware Core Service client. Use this client to interact with Content Manager.

StreamDownloadClient

Type: Tridion.ContentManager.CoreService.Client.IStreamDownload

Description: Use this client to download files from Content Manager.

StreamUploadClient

Type: Tridion.ContentManager.CoreService.Client.IStreamUpload

Description: Use this client to upload files to Content Manager.

CoreServiceBatchClient

Type: Tridion.ContentManager.CoreService.Client.ICoreServiceBatch

Description: The Core Service batch client., which lets you execute commands on a set of items.

CurrentActivityInstance

Type: Tridion.ContentManager.CoreService.Client.ActivityInstanceData

Description: This represents the current Activity being executed.

ProcessInstance

Type: Tridion.ContentManager.CoreService.Client.ProcessInstanceData

Description: This represents the current Process instance being executed.

ResumeBookmark

Type: string

Description: Use this bookmark to resume a suspended Activity.

Logger

Type: Tridion.ContentManager.Workflow.Logger

Description: Use this object to log messages using one of the following methods:

  • Write(Exception exception)
  • Verbose(string message)
  • Verbose(Exception exception)
  • Verbose(string format, params object[] args)
  • Warning(Exception exception)
  • Warning(string message)
  • Information(string message)