> For the complete documentation index, see [llms.txt](https://doc.velneo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.velneo.com/velneo-vdevelop/scripts/lenguajes/javascript/procesos-javascript.md).

# Procesos JavaScript

Los procesos con lenguaje [JavaScript](/velneo-vdevelop/scripts/lenguajes/javascript.md) tienen las mismas propiedades que los procesos salvo que en lugar del árbol de instrucciones disponemos de un fichero de texto, en el cual escribiremos nuestro código JavaScript.

En la ventana de selección del fichero de script a asociar al control podemos activar la opción aplicar macros. Si se activa lo que se hace es sustituir el id\_ref de proyecto por la macro **(CurrentProject)**. De esta forma, cuando movamos el script y el proceso de un proyecto a otro, la referencia se conservará gracias a la macro, apuntando al fichero correspondiente buscándolo en el proyecto en curso.

Según el tipo de Entrada y el tipo de Salida dispondremos de distintos objetos de la clase [VRegister](/velneo-vdevelop/scripts/lenguajes/javascript/clases/vregister.md):

## **Entrada**

* Ficha: [theRegisterIn](/velneo-vdevelop/scripts/lenguajes/javascript/clases/objetos.md#theregisterin)
* Lista: [theRegisterListIn](/velneo-vdevelop/scripts/lenguajes/javascript/clases/objetos.md#theregisterlistin)

## **Salida**

* Ficha: [theRegisterOut](/velneo-vdevelop/scripts/lenguajes/javascript/clases/objetos.md#theregisterout)
* Lista: [theRegisterListOut](/velneo-vdevelop/scripts/lenguajes/javascript/clases/objetos.md#theregisterlistout)

Por ejemplo en un proceso con entrada ficha y salida lista dispondremos de dos objetos: [theRegisterIn](/velneo-vdevelop/scripts/lenguajes/javascript/clases/objetos.md#theregisterin) con la ficha de entrada y [theRegisterListOut](/velneo-vdevelop/scripts/lenguajes/javascript/clases/objetos.md#theregisterlistout) con la lista de salida.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.velneo.com/velneo-vdevelop/scripts/lenguajes/javascript/procesos-javascript.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
