How to show content of a process variable in UI table

1
0
-1

Hi,

I have a process variable "test", which is initialized as:

  1. import groovy.json.JsonBuilder;
  2. List<Object> test = new ArrayList<Object>();
  3. def builder = new JsonBuilder();
  4.  
  5. def line1 = builder {
  6. name "Sam"
  7. age 32
  8. }
  9. test.add(line1);
  10.  
  11. def line2 = builder {
  12. name "Tom"
  13. age 23
  14. }
  15. test.add(line2);
  16.  
  17. return test;

And in UI designer I have a variable: test = ../API/bpm/caseVariable/{{task.caseId}}/test

The problem is that if I just display test.value in a text area it shows the values properly, but in a table using:
- content = test.value
- column keys = name, age
nothing appears.

So, what could I be doing wrong?

Thanks for the help.

No answers yet.
Notifications