← Powrót do listy dostępnych akcji
Poprzednie nazwy: Generowanie dokumentu (do wersji 1.0.33)
Kategoria: Dokumenty
Opis
Generuje dokument z podanego szablonu na podstawie aktualnych danych procesu. Przygotowanie szablonu dokumentu zostało opisane na stronie: Szablon DOCX do generowania PDF. Dokument może zostać dołączony do procesu w którym zostało wywołane zadanie automatyczne. Istnieje możliwość ustawienia własnej nazwy dla dokumentu i wybrania jednego z dwóch typów - PDF lub DOCX. Komponent pozwala na ustawienie wartości zmiennych w szablonie przy użyciu mapowania. Jeżeli zmienne w szablonie mają już odpowiadające im zmienne na formularzu, to przy użyciu tego komponentu możemy nadpisać te mapowania.
Wywołanie akcji
| Umiejscowienie akcji | Działanie parametru "Wykonanie warunkowe" | Warunek wywołania akcji |
|---|---|---|
| Przycisk formularza/akceptacji | Uaktywnia/dezaktywuje wywołanie akcji po naciśnięciu przycisku | Wciśnięcie przycisku (działa tylko do momentu dodania pierwszego komentarza przy pomocy wyświetlonego okna) |
Parametry konfiguracyjne
| Nazwa parametru | Od wersji | Opis | Typ parametru | Wartość domyślna | Rodzaj pola | Uwagi i ograniczenia |
|---|---|---|---|---|---|---|
| Format* | 1.0.3 | Format pliku, w jakim zostanie wygenerowany dokument. | Tekst | Nieedytowalna lista rozwijalna | Wartości do wyboru: PDF, DOCX | |
| Podgląd* | 1.0.3 | Umożliwia użytkownikowi podejrzenie dokumentu po jego wygenerowaniu | Logiczny | Pole edytowalne | ||
| Wiadomość* | 1.0.3 | Tekst wyświetlany podczas generowania dokumentu. W przypadku ustawienia parametru show na true, parametr ten nie jest wykorzystywany. | Tekst | Pole edytowalne | ||
| Klasa dokumentów* | 1.0.3 | Nazwa klasy dokumentów, do której dodany zostanie wygenerowany dokument. Uwaga - w parametrze musi znaleźć się oryginalna nazwa klasy dokumentów, gdyż tłumaczenia nie są obsługiwane. | Tekst | Edytowalna lista rozwijalna | Wartości do wyboru: <nazwy klas dokumentów dostępnych w systemie> Można wpisać własną nazwę, ale jeżeli komponent nie znajdzie klasy w systemie to wyrzuca informację o błędzie. | |
| Szablon* | 1.0.3 | Nazwa szablonu generowanego dokumentu. Szablon powinien zostać załączony do procesu, w którym używamy zadania automatycznego. Sposób dodania szablonu został opisany tutaj (1.1.3) | Tekst | Pole edytowalne | Jeżeli nie znajdzie szablonu w systemie komponent wyrzuca informację o błędzie. | |
| Podłącz* | 1.0.3 | Podłącza wygenerowany dokument do procesu. | Logiczny | Nie | Nieedytowalna lista rozwijalna | |
| Nowa wersja* | 1.0.3 | Zapisuje podłączony do procesu dokument jako nową wersję. Działa jedynie w przypadku, gdy do procesu jest dołączony dokładnie jeden dokument z tej samej klasy, z tymi samymi indeksami. | Logiczny | Nie | Nieedytowalna lista rozwijalna | |
| Nazwa dokumentu | 1.0.24 | Umożliwia podanie własnej nazwy generowanego dokumentu. W przypadku braku uzupełnienia tego parametru, system sam wygeneruje nazwę. | Tekst | Pole edytowalne | Jeżeli w nazwie znajdzie się "/" lub "\" komponent wyrzuca informację o błędzie. | |
| Klucze do mapowania | 1.0.3 | Klucze z szablonu, które chcemy zmapować na odpowiednie wartości podane w "Wartościach mapujących". Np. dla wartości w szablonie: "@imie@" wpisujemy klucz "imie" | Tablica wartości tekstowych | Pole edytowalne | ||
| Wartości mapujące | 1.0.3 | Wartości, które zapiszemy, bądź którymi nadpiszemy zmienne zadeklarowane w szablonie | Tablica wartości tekstowych | Pole edytowalne | ||
| Umieszczenie dokumentu | 1.0.X | Określa gdzie umieścić dokument - w archiwum, w procesie lub nigdzie (wtedy jedynie wyświetla dokument do podglądu) | Tekst | Archiwum | Edytowalna lista rozwijalna |
Parametr*- pole wymagane
Przykładowa konfiguracja akcji
Przykład zastosowania
The license could not be verified: License Certificate has expired!
← Return to the list of available actions
If you have a problem understanding how the action works, check: Action, Conditional Execution, Components parameters.
Previous names: Document generation (up to version 1.0.33)
Category: Documents
Description
Generates a document from the given template based on the current process data. Preparation of the document template is described on the page: DOCX template for generating PDF. The document can be attached to the process in which the automatic task was called. You can set your own name for the document and choose one of two types - PDF or DOCX. The component allows you to set variable values in the template using the mapping. If the variables in the template already have the corresponding variables on the form, then using this component we can overwrite these mappings.
Action call-up
Action location | Conditional execution parameter action | Action call-up condition |
|---|---|---|
Form/acceptance button | Activates/deactivates the action call after pressing the button | Pressing the button (works only until the first comment is added using the window displayed) |
Configuration parameters
| Parameter name | From version | Description | Paremeter type | Default value | Field type | Comments and restrictions |
|---|---|---|---|---|---|---|
Format* | 1.0.3 | The file format in which the document will be generated. | Text | Non-editable dropdown list | Values to choose from: PDF, DOCX | |
Preview* | 1.0.3 | It allows the user to preview a document after it has been generated | Logical |
| Editable field |
|
Message* | 1.0.3 | Message displayed when generating the document. If the show parameter is set to true this parameter is not used. | Text |
| Editable field |
|
Document class* | 1.0.3 | The name of the document class to which the generated document will be added. Note - the parameter must contain the original name of the document class as the translations are not supported. | Text |
| Editable dropdown list | Values to choose from: <names of document classes available in the system> You can enter your own name, but if the component does not find a class in the system it will show an error message. |
Template* | 1.0.3 | The name of the template of the generated document. The template should be attached to the process in which we use the automatic task. The method of adding the template has been described here(1.1.3) | Text |
| Editable field | If it does not find a template in the system, the component will show error message. |
Attach* | 1.0.3 | Attach the generated document to the process. | Logical | No | Non-editable dropdown list |
|
New version* | 1.0.3 | Saves the document attached to the process as a new version. It works only when exactly one document from the same class is attached to the process with the same indexes. | Logical | No | Non-editable dropdown list |
|
Document name | 1.0.24 | Allows you to enter your own name of the generated document. If this parameter is not completed the system will generate the name itself. | Text |
| Editable field | If "/" or "\" is found in the name, the component will show error message. |
Mapping keys | 1.0.3 | The keys from the template that we want to map to the appropriate values given in "Mapping Values". E.g. for the values in the template: "@ name @" enter the key "name" | Table of text values |
| Editable field |
|
Mapping values | 1.0.3 | Values that we save or with which we overwrite the variables declared in the template | Table of text values |
| Editable field |
|
Document placement | 1.0.X | Specifies where to place the document - in the archive in the process or nowhere (then only displays the document for preview) | Text | Archive | Editable dropdown list |
|
Parameter*- mandatory field
Action configuration example
Application example
The license could not be verified: License Certificate has expired!














