Click or drag to resize

CodeMethodInvokeContext Class

Methods in .net assemblies which are to be called as CodeMethods, must take a CodeMethodInvokeContext as their first parameter. In addition, they must return a boolean - this is used by the condition element logic.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelCodeMethodInvokeContext

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class CodeMethodInvokeContext

The CodeMethodInvokeContext type exposes the following members.

Constructors
  NameDescription
Public methodCodeMethodInvokeContext
Constructor for a CodeMethodInvokeContext object.
Top
Properties
  NameDescription
Public propertyActionObject
Contains the action data object that the code method is invoked on. Depending on how the code method has been configured this can be a normal data object, a process or an activity. It doesn't always contains all versions - check EventController logic
Public propertyActionObjectId
Contains the id of the action data object that the code method is invoked on. Depending on how the code method has been configured this can be a normal data object id, a process id or an activity id.
Public propertyCustomerId
Contains the Id of the customer (e.g. company) that the calling user belongs to.
Public propertyDbConnection
Contains the database connection that the call is executed in.
Public propertyDbTransaction
Contains the database transaction that the call is executed in.
Public propertyFactory
The factory can be used to create controller instances running on the connection/transaction that the call is executed in.
Public propertyUserId
Contains the id of the user who invoked the code method.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also