[rt-users] Help with Approvals needed
Christian Loos
cloos at netcologne.de
Thu Apr 15 09:52:09 EDT 2010
Am 12.04.2010 08:53, schrieb Brumm, Torsten / Kuehne + Nagel / Ham MI-ID:
> Dear List,
> i need some help or Ideas about Approvals of RT. I have to create a huge
> workflow with several approvals needed.
>
> i know already, that i can start several approvals within one template,
> i also know, that this templates can have perl code inside, but i'm not
> sure at the moment about the best way to create something like this:
>
> Scrip: OnCreate -> CreateTickets -> Template:Approval
>
> Template should look like this:
>
> if fieldA = xyz {
> Approval 1
> if fieldB = abc {
> Approval 2
> } else if fieldC =123 {
> Approval 3
> }
> }
>
> So i need some logic inside this approvals, my question:
>
> Is this doable inside the template part or is it better to put the logic
> inside a scrip and fire from the scrip several templates?
>
> Torsten
>
> Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann
> (Vors.), Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke,
> Christian Marnetté, Mark Reinhardt, Jens Wollesen, Rainer Wunn, Sitz:
> Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878,
> Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz:
> Contern/Luxemburg, Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne
>
>
>
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
Hi Torsten,
I would create 3 templates: Approval1, Approval2 and Approval3 and
then choose the right template within the scrip
or
I would create one scrip, check the field and then create the
Approval tickets with RT::Ticket->Create.
I think a template shouldn't contain any business logic.
Chris
More information about the rt-users
mailing list