I would like to change the background color of an activity (as you can do using the color picker per screenshot) using FlexScript.
As far as I noticed, the color picker modifies the values under the subnodes of the activity treenode under:
- .find(">visual/color")
address. However, when I change these values using:
- .subnodes[1].value = 0.8
these changes are not observed immediately. To see the effect, you need to close the window of the process flow and re-open it. That suggests I'm missing some kind of repaint/redraw instruction. Could you please suggest what the missing lines of code are?:
- treenode cameleon = getactivity("ProcessFlow", "Cameleon");
- treenode colornode = cameleon.find(">visual/color");
- colornode.subnodes[1].value = 0.8;
- colornode.subnodes[2].value = 0.8;
- colornode.subnodes[3].value = 0.8;
- // how do I "refresh" Process Flow window to observe these changes to color?