[rt-users] WorkflowBuilderRules help

2009-03-06 Thread Marco Avvisano
Hi,

i have installed WorkflowBuilderRules in rt 3.8.2, but when i try to create 
rules
the script return this error (for every perl modules)

Can't  locate RT/Config.pm in @INC

suggestions?


It's possible to create a rule which depend from the customfield value, so 
different values
need different approvers?

for example  for different departments, it's possible to  create a rule so a 
dba-request is forwarded to different dba-group for approving ?


probabily this rules it's not correct..

 Set( $WorkflowBuilderStages,
   { 'RefRT approval' =
 { content = '.',
   subject = 'RefRT Approval for DBA: {$Approving-Id} - 
{$Approving-Subject}',

   owner = q!{{
Department1  = group_1,
Department2  = group_2}-{ 
$Approving-FirstCustomFieldValue('Department') }}! },
 });

  Set( $WorkflowBuilderRules,
  { 'DBA-Approval' = [ 'RefRT approval'],
 }
);


thanks for suggestions,

Marco 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] WorkflowBuilderRules help

2009-03-06 Thread Fred Blaise
Hi

Marco Avvisano wrote:
 Hi,

 i have installed WorkflowBuilderRules in rt 3.8.2, but when i try to create 
 rules
 the script return this error (for every perl modules)

 Can't  locate RT/Config.pm in @INC

 suggestions?
   
You can try exporting PERL5LIB before running the rt-worlflow command,
to set the path to your RT libraries manually.

 It's possible to create a rule which depend from the customfield value, so 
 different values
 need different approvers?

 for example  for different departments, it's possible to  create a rule so a 
 dba-request is forwarded to different dba-group for approving ?


 probabily this rules it's not correct..

  Set( $WorkflowBuilderStages,
{ 'RefRT approval' =
  { content = '.',
subject = 'RefRT Approval for DBA: {$Approving-Id} - 
 {$Approving-Subject}',

owner = q!{{
 Department1  = group_1,
 Department2  = group_2}-{ 
 $Approving-FirstCustomFieldValue('Department') }}! },
  });

   Set( $WorkflowBuilderRules,
   { 'DBA-Approval' = [ 'RefRT approval'],
  }
 );


 thanks for suggestions,

 Marco 

 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

 Community help: http://wiki.bestpractical.com
 Commercial support: sa...@bestpractical.com


 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
 Buy a copy at http://rtbook.bestpractical.com
   

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com