Session

Parent Previous Next

The Session object provides general information about the current Session. These are:


Syntax

       public class Session


Members

string GetAdapterPath(string adapterName)

This method returns the path of an installed adapter

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.

XMLMessageWrapper XMLMessage(string XmlMsgGuid)

Retrieves the XML message



Sample

This sample 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")