This Blog entry is from the Getting Started in Jube section in Learn Jube.
Several pages in the platform rely on the construction of code and in all cases this is facilitated by a point and click construction tool or direct freehand code (yet heavily restricted with only certain language functions being allowed). In most cases the code is of vb.net dialect, unless it is used for reporting or Adaptation training in which case it is an SQL fragment.
The following example is taken from the Entity Models Activation Rules page, which can be navigated to via Entity Models >>> Activation >>> Activation Rules, then selecting any child:
The default is Builder which uses a point and click interface to build up the vb.net code.
The Rule Constructor takes the form of Object, Field, Comparison and Value. Depending upon the Rule that is being constructed, different Objects will be available. Hovering over the Data Object, there are a large amount of fields available for selection:
Upon selecting an Object field, the Comparison operator can be specified. The operators differ depending the area of the platform and how the model is configured:
Finally, the Value can be specified for comparison:
Upon each update made to the Rule and Code Constructor, the code fragment is written out to the code window:
Having the code written out in this manner is rather easier to review and also helps to identify if there are any obvious issues that would leads to compilation issues. Toggling to Coder, using the radio buttons towards the top of the the Code Construction Widget, it becomes possible to create code by hand:
When typing in code, every second and on change, the code is sent to the server to be parsed, returning any errors that may exist at that point of code construction:
It is incumbent on the user to continue constructing and correcting the code, until it is declared to be ‘Parsed and Compiled’:
Only a small number of tokens from the vb.net language are allowed in the Coder for security reasons.
As aforementioned, the Code Constriction Widget mostly creates vb.net dialect code, with the exception of the Adaptation page, which can be navigated to via Entity Models >>> Adaptation and Prescription, with an arbitrary child selected as follows:
In the case of Adaptation, the code is an SQL fragment which helps build a data set that is intended for machine learning:
It is not possible to update the Adaptation with hand crafted code.