Skip to content
On this page

Formularz uruchamiania akcji

Aplikacja Datapolis Workbox umożliwia tworzenie formularzy uruchamiania akcji. Tylko dla początkowej akcji nie można utworzyć formularza uruchamiania akcji.

Aby utworzyć formularz uruchamiania akcji, należy najpierw otworzyć menu akcji. Można to zrobić klikając dwukrotnie na akcję lub klikając ikonę edycji w menu, które pojawia się po najechaniu myszką na akcję.

W oknie edycji właściwości akcji należy kliknąć Launch Form.

Po kliknięciu przycisku Formularz zostanie wyświetlone to okno.

W tym oknie można zdefiniować ustawienia formularza uruchamiania akcji:

  • Wybrać pomiędzy szybkim formularzem lub brakiem formularza dla akcji - pole oznaczone czerwoną ramką.
  • Zmienić nagłówek formularza. (Tekst, który będzie wyświetlany nad polami formularza) - pole oznaczone zieloną ramką.
  • Można wybrać zmienne dla formularza. Wyświetla wszystkie zmienne utworzone w przepływie pracy - pole oznaczone niebieską ramką.
  • Po kliknięciu przycisku zmiennej można dodać nową zmienną - pole oznaczone fioletową ramką.
  • Wyświetla zmienne wybrane jako pola formularza - pole oznaczone żółtą ramką.
  • Edycja stopki formularza. (Tekst, który będzie wyświetlany poniżej pól formularza) - pole oznaczone pomarańczową ramką.
  • Możliwość zmiany tekstu przycisku „Potwierdź” i „Anuluj” dla formularza uruchamiania akcji - pole oznaczone różową ramką.

Najważniejszym etapem tworzenia formularza jest przypisanie zmiennych przepływu pracy do akcji. Zmienne będą przechowywać dane dostarczone przez użytkowników. Przypisania można dokonać w głównym oknie Edytora formularzy.

You can assign a variable in a following ways:

  1. By double clicking on the variable.
  2. By single clicking on the plus icon assigned to the variable. (Plus icon is marked with a red frame on the screen-shot above).
  3. By single clicking on the variable. The background of the selected variable turns gray. Then you need to click on the triangle icon marked with a green frame on the screen-shot above.

The variables assigned to the form will be displayed in the field marked with a red frame on the screen-shot below.

When you assign variables to the form you can click OK. The window will close. You can also stay in the window to make further settings. Do not forget to click OK after setting the Action Launch Form properties.

Button marked with a green frame - this button allows you to arrange the order of the form fields.

Each field has a set of properties defining its appearance and data it accepts. These properties can be set in a “Form field properties” window, which can be accessed by double-clicking assigned variable or a pencil icon (icon marked with a blue frame)

The "Form field properties" window looks like this:

In window shows above you can:

  • change field title
  • give a description for the field
  • set the field validation properties
  • enter the value to be displayed in this field when the form is loaded

After settings the form field properties you should to click OK.

The action launch form will be displayed when the user click on the selected action to which the form is assigned. The action launch form looks like this.

In addition to the form which can be filled in, tha application Datapolis Workbox has a "Quick Form" option for actions.

The "Quick Form" looks like this.

Note: It is important to understand the difference between workflow variables and form fields. Workflow variable is an abstract object where data is stored and from where it can be retrieved and used within the workflow.

Form field is a part of user interface, a place where user can enter data that will be assigned to the workflow variable. Fields are generated automatically when user initiates action execution. For each workflow variable assigned to a given action, one field is generated.

Each field has a certain type, associated with the kind of data it can gather. This is a simple way to require user to provide specific data. Also, the field will be rendered in such a way to help user in providing valid and well-formatted information. For instance, for the “Date time” field a date picker control will be generated.

Note: Workflow variables have their own types, so you can use only field types compatible with corresponding variable.