cancel
Showing results for 
Search instead for 
Did you mean: 

///NEED HELP/// New Line in Documentation

arschloch1989
Champ in-the-making
Champ in-the-making
Hi, I need some help.

I would like to know how you separate a paragraph into different lines. i.e.
username: bull, name: andy.

into:
username: bull,
name:andy.

I would like to have it render in separate lines when viewing documentation using the activiti explorer.

what is the code to do this in the bpmn20.xml file:
<documentation>
      Details of the Company Phone request: 
      Employee ID: ${employeeName}
      Requested Phone Manufacturer: ${requestedPhoneManufacturer}
      Requested Phone Model: ${requestedPhoneModel}
      Phone Price: €${phonePrice}
      Full Name: ${name}
      House Number: ${houseNum}
      Street Address (First Line): ${addressFirstLine}
      Street Address (Second Line): ${addressSecondLine}
      Street Address (Third Line): ${addressThirdLine}
      Town/City: ${townOrCity}
      County: ${County}
      Country: ${Country}
</documentation>

this above renders all together, when viewing in the activiti exploxer, I would like to view them as on different lines, and need help with the code command to do this.
11 REPLIES 11

falko_menge
Champ in-the-making
Champ in-the-making
You could try using an XHTML line break:
<br/>In order to get it through the BPMN parser, you might have to declare an XML namespace prefix for XHTML:
xmlns:xhtml="http://www.w3.org/1999/xhtml"…and use that prefix for the br element:
<xhtml:br/>
btw: interesting nickname Smiley Wink

arschloch1989
Champ in-the-making
Champ in-the-making
thanks, that did the job.
ha! ya random german swear words

lisama
Champ in-the-making
Champ in-the-making
Hey,

I have the same problem in activiti 5.7 and 5.8 and tried the solution mentioned above, sadly it doesn't seem to work.

The line breaks don't show in the explorer and I can only add one line break in the documentation tag, after that I get an error while uploading the process.

"cvc-complex-type.2.4.d:Ungültiger Content wurde beginnend mit "xhtml:br" gefunden. An dieser Stelle wird kein untergeorndetes Element erwartet."

Any ideas? Did I miss anything?

falko_menge
Champ in-the-making
Champ in-the-making
Maybe try to enclose the entire documentation text inside a CDATA section. This way any tags in the text will be ignored by the XML parser.

lisama
Champ in-the-making
Champ in-the-making
That doesn't work either, because it doesn't know that <br/> or <xhtml:br/> isn't part of the text. I tried to put <activiti:field name="html"> in it to, but then there is no documention shown at all.

lisama
Champ in-the-making
Champ in-the-making
Should I open an JIRA Issue for that or is there something else I could try? Smiley Happy

Regards
Lisa

falko_menge
Champ in-the-making
Champ in-the-making
thanks, that did the job.
Well, apparently arschloch1989 found a solution.

@arschloch1989:
Would you mind posting some example code, so that Lisa can see exactly how you got it to work?

arschloch1989
Champ in-the-making
Champ in-the-making
Hi,

it didn't render a new line in the explorer, but when i clicked on the documentation in the explorer it was rendered on new lines, thats all I wanted, so it didn't really fix the problem.

lisama
Champ in-the-making
Champ in-the-making
To be honest, that's not what I expect and need. I need a linebreak without the need to click in the documentationfield first.