Hi Todd, Christian,<div>thanks for your replies. I did it in the way like Christian explained and used several scrips to fire the templates.</div><div><br></div><div>Torsten<br><br><div class="gmail_quote">2010/4/15 Christian Loos <span dir="ltr"><<a href="mailto:cloos@netcologne.de">cloos@netcologne.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Am 12.04.2010 08:53, schrieb Brumm, Torsten / Kuehne + Nagel / Ham MI-ID:<br>
<div><div></div><div class="h5">> Dear List,<br>
> i need some help or Ideas about Approvals of RT. I have to create a huge<br>
> workflow with several approvals needed.<br>
><br>
> i know already, that i can start several approvals within one template,<br>
> i also know, that this templates can have perl code inside, but i'm not<br>
> sure at the moment about the best way to create something like this:<br>
><br>
> Scrip: OnCreate -> CreateTickets -> Template:Approval<br>
><br>
> Template should look like this:<br>
><br>
> if fieldA = xyz {<br>
>     Approval 1<br>
>     if fieldB = abc {<br>
>         Approval 2<br>
>     } else if fieldC =123 {<br>
>         Approval 3<br>
>     }<br>
> }<br>
><br>
> So i need some logic inside this approvals, my question:<br>
><br>
> Is this doable inside the template part or is it better to put the logic<br>
> inside a scrip and fire from the scrip several templates?<br>
><br>
> Torsten<br>
><br>
> Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann<br>
> (Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke,<br>
> Christian Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz:<br>
> Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878,<br>
> Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz:<br>
> Contern/Luxemburg, Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne<br>
><br>
><br>
><br>
><br>
><br>
</div></div><div class="im">> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
> Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br>
<br>
</div>Hi Torsten,<br>
<br>
I would create 3 templates: Approval1, Approval2 and Approval3 and<br>
then choose the right template within the scrip<br>
<br>
or<br>
<br>
I would create one scrip, check the field and then create the<br>
Approval tickets with RT::Ticket->Create.<br>
<br>
I think a template shouldn't contain any business logic.<br>
<br>
Chris<br>
<div><div></div><div class="h5"><br>
<br>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>MFG<br><br>Torsten Brumm<br><br><a href="http://www.brumm.me">http://www.brumm.me</a><br><a href="http://www.elektrofeld.de">http://www.elektrofeld.de</a><br>

</div>