Summary

This tutorial will introduce Kaholo’s code environment. The code layer enables the developer to add dynamic capabilities to the map.

Kaholo features a full SDK which can retrieve all execution context and to use it to manage and add conditions to the workflow.

This tutorial provides a basic introduction for enabling you to start using the CODE. For additional information, please read the SDK page.

Configuring the Code

  • Drag into the Design pane a new Command Line plugin and create a new process called Hello Code.

  • Under Methods, select “execute command”
  • Tick the check-mark  for Code, and name the function helloCode() in the corresponding text field.

  • Next, implement the function in the Code tab

 

function helloCode(){
  return 'echo "hello code"'
}

The return value from the function will be executed.

How to save and execute the map

View the execution results.

Notice that there are two processes being executed, and the results of the HelloCode process is: Hello Code.

 

Close Menu