RTx::WorkflowBuilder - unable to run rt-workflow

Hello,

We have been using RT for about a month for simple tracking of problem requests and now my manager is looking to implement an approvals process. I tried following the suggestions in the wiki with not much luck. I then stumbled on the workflow builder extension.

I am trying to set up a very simple one person approval. I have set the following in my RT_Siteconfig:

RTx-Workflow for Approvals

Set( $WorkflowBuilderStages,
{ ‘Manager Approval’ =>
{ content => ‘some content here’,
subject => ‘Manager Approval for Test Queue: {$Approving->ID} - {$Approving->Subject}’,
owner => ‘username’
}
}
);

Set( $WorkflowBuilderRules,
{ ‘TestQueue-Approval’ => [ ‘Manager Approval’ ]
}
);

I am getting this error when going to run rt-workflow:
/opt/rt3/local/plugins/RTx-WorkflowBuilder# bin/rt-workflow --create TestQueue TestQueue-Approval
Can’t locate RTx/WorkflowBuilder.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at bin/rt-workflow line 5.
BEGIN failed–compilation aborted at bin/rt-workflow line 5.

Can anyone point me in the right direction? My RT Configuration page shows /opt/rt3/local/plugins/RTx-WorkflowBuilder/lib as one of the perl paths. Should I be running the script as someone other than root? I am sure I am missing something trivial.

Paul Samarco
Network Administrator
e. psamarco@delonghiusa.com
v. 201.518.2257

/opt/rt3/local/plugins/RTx-WorkflowBuilder# bin/rt-workflow --create
TestQueue TestQueue-Approval
Can’t locate RTx/WorkflowBuilder.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at bin/rt-workflow line 5.
BEGIN failed–compilation aborted at bin/rt-workflow line 5.

The error message lists your @INC paths; your RT library path is not
included. Does the following work any better for you?

PERL5LIB=/opt/rt3/lib:$PERL5LIB bin/rt-workflow --create TestQueue
TestQueue-Approval

Shawn

Thanks for your help.

That seems to get me by this particular module, however it failed on my next plugin module. I also added that path, and again it worked, but failed on my next plugin. Below is the new error:

[Tue Dec 15 20:22:08 2009] [crit]: Can’t locate RT/Authen/ExternalAuth.pm in @INC (@INC contains: /opt/rt3/local/plugins/RTx-WorkflowBuilder/lib /opt/rt3/local/plugins/RT-FM/lib /opt/rt3/lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/rt3/lib/RT.pm line 627. (/opt/rt3/lib/RT.pm:377)
Can’t locate RT/Authen/ExternalAuth.pm in @INC (@INC contains: /opt/rt3/local/plugins/RTx-WorkflowBuilder/lib /opt/rt3/local/plugins/RT-FM/lib /opt/rt3/lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/rt3/lib/RT.pm line 627.

As you can see, we’re now failing in RT.pm. Am I going to have to re-construct the $PERL5LIB variable to include everything shown on my RT Configuration page?

Thanks in advance

–paul-----Original Message-----
From: Shawn M Moore [mailto:sartak@bestpractical.com]
Sent: Tuesday, December 15, 2009 2:53 PM
To: Samarco, Paul
Cc: 'rt-users@lists.bestpractical.com’
Subject: Re: [rt-users] RTx::WorkflowBuilder - unable to run rt-workflow

On 09/12/15 14:37, Samarco, Paul wrote:

/opt/rt3/local/plugins/RTx-WorkflowBuilder# bin/rt-workflow --create
TestQueue TestQueue-Approval
Can’t locate RTx/WorkflowBuilder.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at bin/rt-workflow line 5.
BEGIN failed–compilation aborted at bin/rt-workflow line 5.

The error message lists your @INC paths; your RT library path is not
included. Does the following work any better for you?

PERL5LIB=/opt/rt3/lib:$PERL5LIB bin/rt-workflow --create TestQueue
TestQueue-Approval

Shawn

Thanks for your help.

That seems to get me by this particular module, however it failed on my next plugin module. I also added that path, and again it worked, but failed on my next plugin. Below is the new error:

[Tue Dec 15 20:22:08 2009] [crit]: Can’t locate RT/Authen/ExternalAuth.pm in @INC (@INC contains: /opt/rt3/local/plugins/RTx-WorkflowBuilder/lib /opt/rt3/local/plugins/RT-FM/lib /opt/rt3/lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/rt3/lib/RT.pm line 627. (/opt/rt3/lib/RT.pm:377)
Can’t locate RT/Authen/ExternalAuth.pm in @INC (@INC contains: /opt/rt3/local/plugins/RTx-WorkflowBuilder/lib /opt/rt3/local/plugins/RT-FM/lib /opt/rt3/lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/rt3/lib/RT.pm line 627.

As you can see, we’re now failing in RT.pm. Am I going to have to re-construct the $PERL5LIB variable to include everything shown on my RT Configuration page?

You have to include local/lib or RT won’t load extensions,
PERL5LIB=/opt/rt3/local/lib:/opt/rt3/lib:$PERL5LIB should be fine

-kevin

I tried that, but am still not having any luck. Is rt-workflow supposed to be run from a command line or somehow from within the RT web interface?From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Tuesday, December 15, 2009 4:05 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RTx::WorkflowBuilder - unable to run rt-workflow

Thanks for your help.

That seems to get me by this particular module, however it failed on my next plugin module. I also added that path, and again it worked, but failed on my next plugin. Below is the new error:

[Tue Dec 15 20:22:08 2009] [crit]: Can’t locate
RT/Authen/ExternalAuth.pm in @INC (@INC contains: /opt/rt3/local/plugins/RTx-WorkflowBuilder/lib /opt/rt3/local/plugins/RT-FM/lib /opt/rt3/lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/rt3/lib/RT.pm line 627. (/opt/rt3/lib/RT.pm:377) Can’t locate RT/Authen/ExternalAuth.pm in @INC (@INC contains: /opt/rt3/local/plugins/RTx-WorkflowBuilder/lib /opt/rt3/local/plugins/RT-FM/lib /opt/rt3/lib /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/rt3/lib/RT.pm line 627.

As you can see, we’re now failing in RT.pm. Am I going to have to re-construct the $PERL5LIB variable to include everything shown on my RT Configuration page?

You have to include local/lib or RT won’t load extensions, PERL5LIB=/opt/rt3/local/lib:/opt/rt3/lib:$PERL5LIB should be fine

-kevin

Thanks in advance

–paul

-----Original Message-----
From: Shawn M Moore [mailto:sartak@bestpractical.com]
Sent: Tuesday, December 15, 2009 2:53 PM
To: Samarco, Paul
Cc: 'rt-users@lists.bestpractical.com’
Subject: Re: [rt-users] RTx::WorkflowBuilder - unable to run
rt-workflow

/opt/rt3/local/plugins/RTx-WorkflowBuilder# bin/rt-workflow --create
TestQueue TestQueue-Approval Can’t locate RTx/WorkflowBuilder.pm in
@INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.10.0 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at bin/rt-workflow line 5.
BEGIN failed–compilation aborted at bin/rt-workflow line 5.

The error message lists your @INC paths; your RT library path is not
included. Does the following work any better for you?

PERL5LIB=/opt/rt3/lib:$PERL5LIB bin/rt-workflow --create TestQueue
TestQueue-Approval

Shawn


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

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

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