GenericAgent.pm - Regural Expression

Moderator: crythias

Locked
ciotola
Znuny newbie
Posts: 35
Joined: 27 Apr 2012, 13:56
Znuny Version: 3.2.9 /3.3 / 4.0.5
Real Name: Giampiero
Company: Atos
Location: Roma - IT

GenericAgent.pm - Regural Expression

Post by ciotola »

Hi to all,
we are trying to create an automated JOB for check some ticket properties and set other ones.
we also would like to use a regular expression for check all the ticket in particular queue, but it doesn't work.

In the Log we have this error:
error OTRS-otrs.GenericAgent.pl-02 Found no Queue for [RegExp]^Webfarm!

Question: We must specify all the queue name or we can also use the regular Expression for select all the one that we want?

Below the Job that we have added to the GenericAgent.pm file

Code: Select all

    'KU Note WEBFARM' => {
        # get all tickets with these properties
        States => ['Attesa Cliente','Attesa Fornitore','In Lavorazione','Preso in Carico','Sospeso'],
        Queue => ['[RegExp]^Webfarm'],
        DynamicField_KeyUserDecision =>{ Equals => 'Aggiunta Nota', },

        # new ticket properties 
        New => {
            State => 'Ricevuta risposta dal KeyUser',
            DynamicField_KeyUserDecision =>'-',
            DynamicField_LastDecision =>'Aggiunta Nota',
       },
    },
Tks in advance for your help
OTRS in several version starting from 3.0

Production Environment
OTRS 4.0.5 - Postgres9.3
ITSM, KIX4OTRS, FAQ,SURVEY
OS RedHat 6.4

Auth: Ldap - CAS - DB
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: GenericAgent.pm - Regural Expression

Post by Rooobaaat »

Configure it via Admin -> GenericAgent
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
ciotola
Znuny newbie
Posts: 35
Joined: 27 Apr 2012, 13:56
Znuny Version: 3.2.9 /3.3 / 4.0.5
Real Name: Giampiero
Company: Atos
Location: Roma - IT

Re: GenericAgent.pm - Regural Expression

Post by ciotola »

Hi, tks for the reply.
We are using for this installation OTRS 3.2 and unfortunately we cant use the new GenericAgent Interface. We also need that the JOB is executed every 1 minutes. There are also ather action that the job do and becuse the queue structure is really complex we would like to filter it by a Key.
If we can't use a regular expresison in the GenericAgent.pm file this means that we must write in the code all the configured queue.

Any Idea?
OTRS in several version starting from 3.0

Production Environment
OTRS 4.0.5 - Postgres9.3
ITSM, KIX4OTRS, FAQ,SURVEY
OS RedHat 6.4

Auth: Ldap - CAS - DB
Locked