Open orlof opened 1 year ago
RPA.JSON library has keywords:
Convert JSON to string
Convert string to JSON
Those should do the trick without evaluating python:
Producer
# create a table for testing
${files}= List files in directory ${CURDIR}
${my_table}= Create table ${files}
Create output work item
${my_table}= Export table ${my_table}
${my_table}= Convert JSON to string ${my_table}
Set work item variable my_table ${my_table}
Save work item
Consumer
${my_table}= Get work item variable my_table
${my_table}= Convert string to JSON ${my_table}
${my_table}= Create table ${my_table}
By far the best user experience would be to allow Tables directly in Get work item variable
and Set work item variable
-keywords. The previous example would become:
Producer
# create a table for testing
${files}= List files in directory ${CURDIR}
${my_table}= Create table ${files}
Create output work item
Set work item variable my_table ${my_table}
Save work item
Consumer
${my_table}= Get work item variable my_table
Current solution requires this kind of code:
We need to design a single keyword solution.