SystemVariableContext Class

This object represents a SystemVariableContext object that contains the context properties for a System Variable or other object.

Properties

PROPERTY NAME

DATA TYPE

DESCRIPTION

Object

ContentList object

A ContentObject object to assign as context

Form

Form Object

A Form object to assign as context

FormControl

Form Control Object

A FormControl object to assign as context

ProcessProcess Object

A Process object to assign as context

ProcessTaskProcessTask Object

A ProcessTask object to assign as context

ProcessTaskUserProcessTaskUser Object

A ProcessTaskUser object to assign as context

UserUser Object

A User object to assign as context

Methods

This class has no methods to call. This class merely stores the context property for a declared SystemVariableContext object. Once the object is declared and properties set, the object can be used to set the context for another Process Director object, such as a Business Rule.

Example

// Declare the context object
SystemVariableContext mycontext = new SystemVariableContext();

// Set the context Properties
mycontext.Form = Form.GetFormByFORMID(bp, "FORMID");
mycontext.ProcessTaskUser = ProcessTaskUser.GetProcessTaskUserByTASKUID(bp, "TASKUID");

// Specify a Business Rule to call and apply the context for evaluation
var oRule = Rule.GetRuleByID(bp, "RULEID");
string result = oRule.Evaluate(mycontext);