[rt-users] Help with Approvals needed

Torsten Brumm torsten.brumm at googlemail.com
Thu Apr 15 09:54:27 EDT 2010


Hi Todd, Christian,
thanks for your replies. I did it in the way like Christian explained and
used several scrips to fire the templates.

Torsten

2010/4/15 Christian Loos <cloos at netcologne.de>

> 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
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>



-- 
MFG

Torsten Brumm

http://www.brumm.me
http://www.elektrofeld.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100415/b765e448/attachment.htm>


More information about the rt-users mailing list