Code Modules
The code modules available in the library, currently C#, Python and Javascript, are very powerful when you need to run your own custom logic or need additional functionality not available in the modules provided by Crosser.
Even though you can do a lot with these modules it may not always be the best choice. First of all, the main reason for using a visual design tool is that it simplifies not only the design of applications, but also the maintainability. When either you (at a later time) or someone else wants to understand what a Flow is doing it is usually much easier to follow a visual design. If most of the logic is hidden in code modules, that advantage may be lost. That said, visual designs are not always easier to understand than code. It all depends on the use case and your experience with code.
Secondly, using code modules comes with a price in terms of performance. The fixed function modules are more efficient in terms of both CPU and memory usage.
Therefore it’s highly recommended to familiarize yourself with the modules available in the library and use existing modules if possible. Following our online training courses is a good way to get familiar with the most common modules. There’s also some overview documentation available in our Help Center, see here and here.
Code Modules
CSharpExecute C# code. The code is compiled at runtime. Standard .NET libraries can be used but not 3rd party libraries. |
|
JavaScriptUse JavaScript to process the incoming message. |
|
Python BridgeRun python code in a standard Python environment outside of .NET. On Windows the Python environment must be installed separately and the local node configuration must be updated accordingly (see installation docs). Standard and 3rd party libraries can be used, including ML frameworks. |
|
IronPythonRun Python code using the IronPython interpreter which runs in .NET. Standard libraries can be used but not 3rd party libraries. |