I am trying to show list values in select widget in bonita ui using process variable but its not working .I am using Bonita BPM Community Edition
Version : 7.3.3 Studio. Its showing values character by character not as string values.It should show values like:
some 1
some 2
but its displaying values like:
[
s
o
m
e
Yes it’s weird, the REST Api is returning a String representation of the List.
As for a workaround, I managed to make it work by using an intermediate variable (Javascript expression) that takes the value returned by the REST Api and convert it into an Array:
var slicedString = $data.listval.value.slice( 1 );
slicedString = slicedString.slice(0, -1);
var splitString = slicedString.split(",");
return splitString;
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.