% Context file
% Testchart


\setupoutput[pdftex]
\usemodule[chart]
\usemodule[units]
\setuppapersize[A4][A4]

\setupcolors[state=start]
\definecolor[grey][r=.85,g=.85,b=.85]
\definecolor[darkgreen][r=0,g=0.5,b=0]
\definecolor[Blau][r=0.0,g=0.0,b=0.9]

\setupFLOWcharts
   [x=1,
    y=1,
    nx= 5,
    ny= 8,
    dx=2\bodyfontsize,
    dy=2\bodyfontsize,
    maxheight=\textheight]

\setupFLOWshapes
	[framecolor=black]

\setupbodyfont[ss,10pt]

\startFLOWchart[Beslisboom1]

\bgroup
	\setupFLOWshapes%
		[framecolor=Blau]
	\setupFLOWlines%
		[dash=no,color=Blau]

   \startFLOWcell
	\name{Start}
	\location {3,1}
	\shape{12}
	\connection[b,t]{Test1}
	\text{metaal in eindproduct}
   \stopFLOWcell

   \startFLOWcell
	\name{Test1}
	\location {3,2}
	\shape{45}
	\text{beheersmaatregel uitgevoerd?}
	\connection[b,t]{Test2}
	\label [b]{j}
	\setupFLOWlines%
		[color=black,dash=yes]
	\connection[l,t]{Test4}
	\label[l]{n}
   \stopFLOWcell

   \startFLOWcell
	\name{Test2}
	\location {3,3}
	\shape{45}
	\text{gereduceerd?\\ge\"elimineerd?}
	\setupFLOWlines%
		[color=black,dash=yes]
	\connection[b,t]{Test3}
	\label[b]{n}
	\setupFLOWlines%
		[color=Blau,dash=no]
	\connection[r,r]{Test6}
	\label[r]{j}
   \stopFLOWcell

   \startFLOWcell
	\name{Test6}
	\location {3,6}
	\shape{45}
	\text{laater in proces\\nog beheers\\maatregelen?}
	\connection[b,t]{CCPja}
	\label[b]{n}
	\setupFLOWlines
		[dash=yes, color=black]
	\connection[l,r]{Node2}
	\label[l]{j}
   \stopFLOWcell

   \startFLOWcell
	\name{CCPja}
	\location {3,7}
	\shape{12}
	\text{\bf{CCP}}
   \stopFLOWcell

\egroup

\bgroup

\setupFLOWlines%
	[dash=yes,arrow=yes]

   \startFLOWcell
	\name{Test4}
	\location {2,3}
	\shape{45}
	\text{beheersmaatregel noodzakelijk?}
	\connection[b,t]{Test5}
	\label [b]{j}
	\connection[r,r]{Node1}
	\label[r]{n}
   \stopFLOWcell

   \startFLOWcell
	\name{Test5}
	\location {2,4}
	\shape{45}
	\text{beheerst door alg.\\procedure?}
	\connection[b,t]{Node1}
	\label [b]{j}
	\connection[l,r]{Aanpassen}
	\label[l]{n}
   \stopFLOWcell

   \startFLOWcell
	\name{Aanpassen}
	\location {1,4}
	\shape{action}
	\text{Aanpassen proces \\ of maatregel}
	\connection[t,l]{Start}
   \stopFLOWcell

   \startFLOWcell
	\name{Node1}
	\location {2,5}
	\shape{node}
	\text{}
	\connection[b,t]{Node2}
   \stopFLOWcell

   \startFLOWcell
	\name{Node2}
	\location {2,6}
	\shape{node}
	\text{}
	\connection[b,t]{CCPnee}
    \stopFLOWcell

   \startFLOWcell
	\name{CCPnee}
	\location {2,7}
	\shape{12}
	\text{\bf{geen CCP}}
   \stopFLOWcell

   \startFLOWcell
	\name{Test3}
	\location {3,4}
	\shape{45}
	\text{gevaar blijft?\\gevaar hoger?}
	\connection[b,t]{Test6}
	\label[b]{j}
	\connection[l,r]{Node1}
	\label[l]{n}
   \stopFLOWcell

\egroup
\stopFLOWchart

\starttext

\FLOWchart[Beslisboom1]

\stoptext