Assembly

The Assembly Service Type enables you to call Public Static methods from .NET assemblies by exposing these methods as SmartObjects. The broker utilizes serialization and deserialization to work with .NET types.

Service Keys (Service Instance Configuration Settings)

Key Can be modified Data Type Sample Value Notes
Assembly Full Path Yes Text

\\server\share\file_path

"%ProgramFiles%\K2 \Host Server\Bin"

The full path, relative to the K2 Server, to the assembly. Universal Naming Convention (UNC) paths are supported.
Serialization: Compress Yes True/False False Compress the serialization data for complex types.
Serialization: Include All Assembly types Yes True/False True Includes all available serialization objects regardless of usage in public methods
Names: Append Property Types Yes True/False True Includes the property type in parentheses after the complex property name. Default value: True.
Names: Use Method FullName Yes True/False True Uses the full name of the method including the property names and types. Default value: True.
Debugging Enabled Yes True/False False Displays stack trace information in dialog and error information. Default value: False.
Include non Serialized Properties Yes True/False False
(Default value: False)
If the value of this Key is set to True it will add non-Serializable properties on the Serialize method Input values.

Service Objects

When generating SmartObjects for an Endpoint Service Instance, some standard categories of SmartObjects are created; for example, the Object Types, and System Types. These define the data types used. Other SmartObjects may be generated depending on what the Endpoint exposes.

SmartObjects

K2 does not automatically create SmartObjects for the Service Objects in this service. SmartObjects can be automatically created by selecting the Generate SmartObjects for this Service Instance check box when creating a new Service Instance. Designers can use the SmartObject design tools to build advanced SmartObjects that leverage the Service Objects in this service. It is recommended to use the SmartObject design tools to create SmartObjects rather than generating SmartObjects, since this allows better control over the naming, behavior and design of the SmartObject and its methods and properties.

Considerations