% Context file
% Filename: test-flowchart.tex
% 
% 26-12-2011
% Copyright (c) 2011 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]


\setuppagenumbering[location=bottom]
\setuplayout
	[topspace=2.5cm,
	backspace=1.5cm,
	header=0pt,
	footer=1.5\bodyfontsize,
	height=middle,
	width=middle]
	
\mainlanguage[de]

\usemodule[chart]

\setupFLOWcharts
   [nx= 3,
    ny= 3,
    dx=\bodyfontsize,
    dy=\bodyfontsize,
    width=7\bodyfontsize,
    height=4\bodyfontsize]


\startFLOWchart[Aushebung]
   \startFLOWcell
    \name{Aush}
    \location{1,1}
    \text{Aushebung}
    \shape{action}
    \connection[rl]{Angenommen1}
   \stopFLOWcell

   \startFLOWcell
     \name{Angenommen1}
     \location{2,1}
     \text{Angenommen?}
     \shape{45} %decision
     \connection[tr]{AndRS}
     \connection[bt]{HfsRS}
     \connection[rl]{Kurs}
     \comment[tr]{Nein}
     \comment[rt]{Bed.}
     \comment[br]{Ja}
  \stopFLOWcell

    \startFLOWcell
    \name{Kurs}
    \location{3,1}
    \text{14 Tage Kurs}
    \shape{action}
    \connection[bt]{Angenommen2}
   \stopFLOWcell

   \startFLOWcell
    \name{Angenommen2}
    \location{3,2}
    \text{Angenommen?}
    \shape{45} %decision
    \connection[lt]{HfsRS}
    \connection[rr]{AndRS}
    \comment[lt]{Ja}
    \comment[rt]{Nein}
   \stopFLOWcell

   \startFLOWcell
    \name{HfsRS}
    \location{2,3}
    \text{Hfs RS}
    \shape{action}
   \stopFLOWcell

   \startFLOWcell
    \name{AndRS}
    \location{3,3}
    \text{Andere RS}
    \shape{action}
   \stopFLOWcell
\stopFLOWchart

\starttext

\FLOWchart[Aushebung]

\placefigure
    [here,middle]
    [flow:aushebung]
    {Aushebung des Militärhufschmiedes}
    {\FLOWchart[Aushebung]}

\stoptext