<!--
* 
*
*  ProLinga-Doc
*
*  Copyright (C) 2002-2008 Xobas Software.
*  All rights reserved.
*  
*  This file is part of ProLinga-Doc.
*
*  ProLinga-Doc is free software: you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation, either version 3 of the License, or
*  (at your option) any later version.
*
*  ProLinga-Doc is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with ProLinga-Doc.  If not, see <http://www.gnu.org/licenses/>.
*
*  More information is available at the following addresses:
*
*  Website     : http://www.prolinga.org
*
*  Email       : prolinga-list@prolinga.org
*
*
-->
<refentry id="obj_runcontrol">
  <refmeta>
    <refentrytitle>RunControl Object</refentrytitle>
    <manvolnum>1</manvolnum>
  </refmeta>

  <refnamediv>
    <refname>RunControl</refname>
    <refpurpose>XML generated document from 4GL logic.</refpurpose>
  </refnamediv>

  <refsect1 id="obj_runcontrol_introduction">
    <title>Introduction</title>
    <para>
      The RunControl is an XML document generated from the 4GL source. It 
      contains the series of logic commands to be executed including all 
      the arguments and step order. This document should NOT be modified 
      manually. For more information, check the ProLinga-Validate project
      documentation.
    </para>
  </refsect1>

  <refsect1 id="obj_runcontrol_example">
    <title>Example</title>
<programlisting><![CDATA[
<Object Application="MyOrder" Type="RunControl" Name="CustomerNew">
  <RunControl>
    <Statements>
      <Statement SequenceNo="1" NextTrue="2" NextFalse="2" Command="2">
        <Arguments>
          <Argument>TITLE</Argument>
          <Argument>"Customer -  untitled"</Argument>
        </Arguments>
      </Statement>
      <Statement SequenceNo="2" NextTrue="3" NextFalse="3" Command="4">
        <Arguments>
          <Argument>RECORD</Argument>
          <Argument>Customer.Customer</Argument>
        </Arguments>
      </Statement>
      <Statement SequenceNo="3" NextTrue="4" NextFalse="4" Command="5">
        <Arguments>
          <Argument>F-CountryCode.Customer</Argument>
          <Argument>P-CountryCode(1)</Argument>
        </Arguments>
      </Statement>
      <Statement SequenceNo="4" NextTrue="5" NextFalse="5" Command="8">
        <Arguments>
          <Argument>ALL</Argument>
        </Arguments>
      </Statement>
      <Statement SequenceNo="5" NextTrue="0" NextFalse="0" Command="3">
        <Arguments>
          <Argument>"Created new customer entry."</Argument>
        </Arguments>
      </Statement>
    </Statements>
  <RunControl>
</Object>
]]></programlisting>
  </refsect1>

</refentry>

