Understanding Source Code in Processes
In the YepCode editor, users can craft the code to implement their processes.
Depending on the language selected, the script is executed in a specific engine:
We use the NodeJS v20 engine. This allows you to utilize nearly all functions supported by NodeJS. The code is wrapped in an
async
function, enabling the use ofawait
throughout the function.We use the Python v3.12 engine. This supports the use of almost all functions provided by Python.

For those who prefer not to reinvent the wheel, explore the team dependencies to take advantage of any NPM or PyPI package.
To combat the challenge of spaghetti code, we've included a module to create and use your own Modules.
The source code editor supports key shortcuts, code formatting, and autocomplete features. If you start typing YepCode...
, you'll see some useful snippets.

The process source code is executed sequentially.
In JavaScript versions, each process execution will wait while any active promise is still running.
As with any other script, you can define functions and structure your code with good practices. Please follow the principles of clean code.
Internal Helpers
YepCode allows you to use information from the current execution in your process.
Access to Execution and Process Info
The basic information available for all executions includes the id
of the current execution, the comment (if you wrote one), and the id
and name
of the process being executed. The code to obtain them would be:
JavaScript
Python
const { id, comment } = yepcode.execution;
const { id: processId, name: processName } = yepcode.execution.process;
id, comment = yepcode.execution.id, yepcode.execution.comment
processId, processName = yepcode.execution.process.id, yepcode.execution.process.name
Access to Scheduled Process Info
When you schedule a process, you also have access to the id
of the schedule and its comment
(if it exists). The code to obtain them would be:
JavaScript
Python
const { id: scheduleId, comment: scheduleComment } = yepcode.execution.schedule;
scheduleId, scheduleComment = yepcode.execution.schedule.id, yepcode.execution.schedule.comment