Sartup events

Startup events enable automating starting of a process before or after execution of a specific operation in the Comarch ERP Standard system.

Example
It is possible to define a process that will automatically compete item’s attribute after it is saved.

Startup events differ depending on process type (local or global). They can be selected when adding a new process or when editing a process, by selecting [Startup Events] button, available in Model group of buttons.

Opening window for selecting startup events

A list of startup events grouped by names of objects available in the system is opened.

Startup events selection window

On the left side of the window, it is possible to select those startup events, which will trigger a process. Along with an event, parameters can be sent to a process. They can be selected from the drop-down list of a given startup event. These values can be connected with parameters by means of mapping. Mapping section is located on the right side of the section containing startup event details.

Selecting event parameter
Hint
One of the most common arguments of startup events is DocumentEventParams. It is available for all events regarding documents. It contains the following information:

  • CurrentStateType– current document status
  • DocumentId– document ID
  • DocumentTypeNamespace – parameter identifying document type
  • PreviousStateType – previous document status

This parameter is generated for events of global processes only.

Note
Processes Copy Attribute From Customer Form To Sales Complaint (SCL) and Display Message About Customer Submitting Complaint (SCL) use the same startup event. It is necessary to ensure that the last modification is executed for the second process. Otherwise, data returned by both processes might be incorrect.

 

Czy ten artykuł był pomocny?