Code Reference Event

What does the Code Reference Event do?

The Code Reference Event wizard is aimed primarily at workflow developers who need to call some code (static, constructors and instance methods) in a server event. The wizard provides you with the ability to consume process references in a visual manner as opposed to writing code. This increases efficiency and effectiveness as coding errors are lessened by the visual presentation. The Code Reference Event wizard makes it easy to use referenced classes and assemblies during runtime.

Customized constructors can be created for use in the wizard by creating a new Class Library project in Visual Studio. Once the project has been built, MS Build generates a Class Library (Assembly) as output. If you created a class in your project, a constructor is used to create a new instance of your class - an object instance. The same applies to assemblies from 3rd parties. The References page reflects the assemblies referenced by the current process.

Properties are assigned during invocation of referenced methods. Specifically, these properties are mapped to Data and XML fields on the process. Depending on how the event has been configured, these Data fields and XMLfields may be altered during the runtime execution of the reference event. These results can then be used in line rules, for example.

Knowledge of Constructors, Constructor Calls, Methods, Method Calls and References are a prerequisite to making use of the Code Reference Event wizard.

Code Reference Event wizard Configuration:

Code Reference Event Examples: