Session

public class Session

The Session object provides general information about the current Session.

 Properties

User CurrentUser

The current user. Only available during processing of a user form (action button and end action) and process instance creation, if invoked by a user. Is not available during backend workflow processing, as there is no specific user associated.

 Methods

string GetAdapterPath(string adapterName)

This method returns the path of an installed adapter

XMLMessage XMLMessage(string XmlMsgGuid)

Retrieves the XML message

Example

This example loads an Adapter to the PDM-System OpenEDM and performs a function call.

import clr
clr.AddReferenceToFileAndPath(Session.GetAdapterPath("IYOPRO.OPENEDM"))
from OpenEDMAdapter import *
a = Adapter()
OEResult = a.OECallFunction("","","DEMO.FUNCTION","MyData")