Warning: Undefined variable $current_id in /home/ci574801/nectain.com/www/wp-content/themes/nectain/single-documentation.php on line 3
Updated 1 year ago

Events

The system allows adding handlers for specific document lifecycle events. When adding a handler, an event is selected, such as "Document creation," and a handler is chosen for what needs to be done when the selected event occurs, such as "Start a process," followed by selecting the process.

To add an event, click "Add handler." In the form that appears, fill in the fields described in the table and click "Add." Events and handler types are described in the table.

Field Name    Description

Event*    Select the event for which the handler is set:

- Document creation

- Transition to a state

- Exit from a state

- Execution of custom actions created at the stage of adding states

- Receiving a document from an external system (when exchange is activated)

- Process completion

Handler Type*    What needs to be done when the selected event occurs:

- Start a process: ability to start a business process and pass document attributes as variables

- Send a message to the process: ability to send a message with a specific code to the selected business process

- Cancel the process: ability to cancel the selected business process

- Go to state: transition to the specified state

- Reserve document number: ability to reserve a document registration number

- Register document: ability to register a document

- Send document to external system: ability to send document attributes to an external system using the "Exchange" functionality

- Establish document link: ability to create a link with the selected document

- Generate document from template: ability to generate a document from the selected template

- Script: ability to execute a server script

- Create document: ability to create a document of the selected type and copy attributes from the current document (attributes must be identical in both documents)

- Document stamp (available when the dfx-stamp package is installed): ability to stamp the document

Field Name Description
Event Select the event for which the handler is set:

Document creation

Transition to a state

Exit from a state

Execution of custom actions created at the stage of adding states

Receiving a document from an external system (when exchange is activated)

Process completion

Handler Type What needs to be done when the selected event occurs:

  • Start a process: ability to start a business process and pass document attributes as variables
  • Send a message to the process: ability to send a message with a specific code to the selected business process
  • Cancel the process: ability to cancel the selected business process
  • Go to state: transition to the specified state
  • Reserve document number: ability to reserve a document registration number
  • Register document: ability to register a document
  • Send document to external system: ability to send document attributes to an external system using the "Exchange" functionality
  • Establish document link: ability to create a link with the selected document
  • Generate document from template: ability to generate a document from the selected template
  • Script: ability to execute a server script
  • Create document: ability to create a document of the selected type and copy attributes from the current document (attributes must be identical in both documents)
  • Document stamp (available when the dfx-stamp package is installed): ability to stamp the document

The administrator can edit or delete created events by selecting the necessary record on the "Events" tab and clicking the respective "Edit" or "Delete" buttons.

Skip to content