The ClientType component is an Enumeration that defines the possible values for the ClientSession.type attribute.
if ClientSession.type == ClientType.SERVER then
logMessage "This script is running on the server (Process Engine) context"
end