<commit_before><?xml version="1.0" encoding="UTF-8"?>
<chapter version="5.0" xmlns="http://docbook.org/ns/docbook"
                    xmlns:xlink="http://www.w3.org/1999/xlink"
                    xmlns:xi="http://www.w3.org/2001/XInclude"
                    xmlns:svg="http://www.w3.org/2000/svg"
                    xmlns:m="http://www.w3.org/1998/Math/MathML"
                    xmlns:html="http://www.w3.org/1999/xhtml"
                    xmlns:db="http://docbook.org/ns/docbook" xml:base="./" >

  <title>Debugging processes</title>

  <para>This section describes how to debug processes.  This means
  that the current state of your running processes can be inspected
  and visualized during the execution.  We use a simple example
  throughout this section to illustrate the debugging capabilities.
  The example will be introduced first, followed by an illustration
  on how to use the debugging capabilities.
  </para>

  <section>
    <title>A simple example</title>
    <para>Our example contains two processes and some rules (used
    inside the ruleflow groups):</para>
      <orderedlist>
        <listitem>
          <para>The main process contains some of the most common
          nodes: a start and end node (obviously), two ruleflow groups,
          an action (that simply prints a string to the default output),
          a milestone (a wait state that is trigger when a specific
          Event is inserted in the working memory) and a subprocess.</para>

          <mediaobject>
            <imageobject>
	        <imagedata align="center" format="BMP" role="" 
                         fileref="images/Chapter-Debugging/example.bmp"/>
            </imageobject><commit_msg>JBRULES-2467: Flow User Guide needs to say how to set a breakpoint  - added section that describes node breakpoints are not supported<commit_after><?xml version="1.0" encoding="UTF-8"?>
<chapter version="5.0" xmlns="http://docbook.org/ns/docbook"
                    xmlns:xlink="http://www.w3.org/1999/xlink"
                    xmlns:xi="http://www.w3.org/2001/XInclude"
                    xmlns:svg="http://www.w3.org/2000/svg"
                    xmlns:m="http://www.w3.org/1998/Math/MathML"
                    xmlns:html="http://www.w3.org/1999/xhtml"
                    xmlns:db="http://docbook.org/ns/docbook" xml:base="./" >

  <title>Debugging processes</title>

  <para>This section describes how to debug processes.  This means
  that the current state of your running processes can be inspected
  and visualized during the execution.  Note that we currently don't
  allow you to put breakpoints on the nodes within a RuleFlow directly.
  You can however put breakpoints inside rules (that could be evaluated
  in the context of a process if you use a ruleset node), or on any
  Java code you might have (i.e. your application code that is invoking
  the engine or invoked by the engine, listeners, etc.).  At these
  breakpoints, you can then inspect the internal state of your processes.
  </para>

  <para>We use a simple example throughout this section to illustrate
  the debugging capabilities. The example will be introduced first,
  followed by an illustration on how to use the debugging capabilities.
  </para>

  <section>
    <title>A simple example</title>
    <para>Our example contains two processes and some rules (used
    inside the ruleflow groups):</para>
      <orderedlist>
        <listitem>
          <para>The main process contains some of the most common
          nodes: a start and end node (obviously), two ruleflow groups,
          an action (that simply prints a string to the default output),
          a milestone (a wait state that is trigger when a specific
          Event is inserted in the working memory) and a subprocess.</para>

          <mediaobject>
            <imageobject>
	        <imagedata align="center" format="BMP" role="" 
                         fileref="images/Chapter-Debugging/example.bmp"/>
            </imageobject>
{'fraction_non_alphanumeric': 0.094916103180566, 'fraction_numerical': 0.016028049085900324, 'mean_word_length': 2.547069271758437, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 2, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 18}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '987669', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1056, 'n_words': 395}