Process variables list not visible/existing while using CUBA process form in the modeler

Hello,
I have some questions regarding process variables visibility and existence.

  1. Create some model in the modeler, add process variables to start event, Form type: No form
    Download BPMN XML, open, all fine, process variables are inside the XML
  2. Select Form type: Input Dialog - process variables disappear, process variables table/editor is still visible in the designer, Business key edit field visible in the designer
  3. Select Form type: CUBA Screen - process variables disappear, process variables table/editor not visible in the designer
  • Is this intended
  • if we use a CUBA Screen to implement the start event form, we “kill” the process variables list, do we then need to define process variables manually in the cuba screen
  • is the process variable list used by default input dialogs the same as one used by cuba screens
  • can we have a process list table then displayed in the modeler (and preserved) when we select the process itself, rather than a start event

Thanks

Hi,

First of all, the purpose of all these variables lists is just to reuse the variable name later in the process model, e.g. when you define a process variable (or form field) with the User type then this variable will appear in the dropdown list for the task assignee selection. Even if you don’t have some variable in some list then in most cases you can type the variable name manually - it’s just a string.

The “process variables” list is relevant for the start event node with the “No form” type. This is because when you start the process with no form, this means that you start it from code programmatically and pass the variables list with the API.

When you select the Input Dialog form for the start event node, then you define all variables using form fields. Each form field will be written to the process variable with the same name.

In the CUBA screen process form, if you need to declare a list of variables exposed by the form, then you need to define output variables. If you, for example, define an output variable with the User type, then this variable will also appear in assignee dropdown lists.

Once again, all these variables list are used in the modeler only and help just to quickly reuse variables names. You can always type variable name manually. The variables list doesn’t affect runtime.

can we have a process list table then displayed in the modeler (and preserved) when we select the process itself, rather than a start event

No, there is no such feature.