edoc automate Guide
Breadcrumbs

App add-ons in edoc automate

Add-ons for apps in edoc automate are a collection of actions and data sources that belong together. A standardized directory structure is always required for add-ons so that the actions and data sources can be recognized and used.

Directory structure for your add-ons

You can create your add-ons in the app directory in the addons folder. Create a directory with the name of the add-on and the following subdirectories:

  • actions: The directory contains all actions of the add-on.

  • datasources: The directory contains all data sources of the add-on.

  • lib: optional directory for your own classes and libraries.


Namespaces for actions and data sources in your add-ons

The following namespace is used for actions:

namespace edoc\appserver\addons\blub\actions;

The following namespace is used for data sources:

namespace edoc\appserver\addons\blub\datasources;


Actions for your add-ons

Actions in the add-on have the same structure and syntax as the actions that are inserted as plug-ins in the app.

For information about creating actions see: API for actions in edoc automate

You always save the actions of the add-ons in the actions directory.


Data sources for your add-ons

For information about creating data sources see: API for data sources in edoc automate

You always save all data sources of the add-on in the datasources directory.


Example of an add-on

You can find an example of an add-on in the following article: Use "Addons" in an app in edoc automate