Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

Metastorm BPM forums
Sign up Latest Topics

  Author   Comment  

Avatar / Picture

Posts: 5,507
Reply with quote  #1 

Using %Newline() in e-Work 6.x

Last edited: 21 Jan 2005

The information in this article applies to product: e-Work 6.x


  • This example for the function %Replace() in the version 6.x Designer User Manual is incorrect:


  • In Version 6, a new XML-based Transaction Protocol (TP) was introduced.

    The most recent version of the XML Parser, which is used by the Engine, ensures that the TP XML is normalized. Part of the XML normalization process results in all line breaks being represented by a Line Feed character, %CHR(10). Until the XML is normalized, a combination of Carriage Return, %CHR(13), and Line Feed characters may represent line breaks.

    In general, all TP requests and responses passing through the Engine are normalized. However, there are some exceptions. The following list summarizes normalization of the TP XML in the Engine:

    1. Any data that comes in as a TP request is normalized as it enters the Engine.
    2. Any data that is returned from the Engine in a TP response is normalized before it leaves the Engine.
    3. Assignments to custom variables are not normalized for the duration of the request in which the assignment was made. Any processing carried out by the Engine will take place on the current values. However, a field that displays a custom variable will in effect normalize that custom variable value when it is passed back in the next TP request.

    For example, if 'When Stage Started' sets a custom variable to %NewLine, the value stored for this custom variable in the database is 'CRLF'. This remains the case until a form containing a memo field displaying this custom variable is displayed to the user. As the custom variable has been sent to the Client via the TP in XML format, its value has been normalized and the value displayed on the form is 'LF'. When the form is submitted, the value sent back to the Engine for this custom variable is 'LF'. The value stored in the database is now 'LF'.

    Process designers should be aware of this normalization process and ensure that any calculation formulas that reference a %NewLine (which returns a Carriage Return and Line Feed pair) are updated to reference a %LineFeed (which just returns a Line Feed character) where necessary. The %LineFeed function is available from Version 6.5.


  • In version 6.x, when replacing all carriage return/line feeds in a memo field with a comma, the following syntax should be used:



    %Replace(%myMemo,%LINEFEED(),%Chr(44)) - Version 6.5 or later

Keywords: kb488

Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
Previous Topic | Next Topic

Quick Navigation:

Create your own forum with Website Toolbox!