Line break in the expression field


#1

Hey,

I think that, from an appearance perspective, it would be desirable to have line breaks in expression field. Formatting text would be easier.

Is there such a feature?
Can anyone tell me more about how expressions work in flowable application? Can I display something based on some condition (when a condition is met)?

Thanks.


#2

Hi Savo,

I tried expression

"${\nisSequential\n}"

in the jUnit test. The test has passed.

Try debugger to play with expressions
https://blog.flowable.org/2018/05/30/process-debugger/

Yes sure. Try examples and jUnit tests.
Martin


#3

Hey Martin,

I got an error:
org.flowable.common.engine.impl.de.odysseus.el.tree.TreeBuilderException: Error parsing ‘${\nvrijemezahtjeva\n}’: lexical error at position 2, encountered invalid character ‘\’, expected expression token


#4

Savo,

Did you execute this expression in the debugger? \n works in the jUnit test string. I do not know whether new lines are supported from the UI, but engine can parse and execute such a definition.

Martin


#5

I solved it for me by adding this line
#fieldContainer_label form-element div div .well div {white-space: pre-line }

to webapps/flowable-task/WEB-INF/classes/static/styles/common/style.css

Then the actual linebreaks from the expression editor in the modeler-app are rendered. It’s a little bit hacky but works for me.