I was reading about this extension, for make workflow in RT in this
mailing list, but only I see troubles for to use it.
I found a severals steps today for to work, well here we go…
- After the install RTx-WorkflowBuilder, severals post claims about
/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.
For use it, the first is export PERL5LIB
export PERL5LIB=/opt/rt3/lib:/opt/rt3/lib:/opt/rt3/local/plugins/RTx-WorkflowBuilder/lib:$PERL5LIB
-
chmod +x /opt/rt3/local/plugins/RTx-WorkflowBuilder/bin/rt-workflow
-
change #!/perl -w to #!/usr/bin/perl -w
-
In your rt site, create a queque for example workflow
-
Add the following code to RT_SiteConfig.pm
RTx-Workflow for Approvals
Set( $WorkflowBuilderStages,
{ ‘Manager Approval’ =>
{ content => ‘Some information here’,
subject => ‘Manager Approval for workflow: {$Approving->ID} -
{$Approving->Subject}’,
owner => ‘username’
}
}
);
Set( $WorkflowBuilderRules,
{ ‘TestQueue-Approval’ => [ ‘Manager Approval’ ]
}
);
- run the script from the command line
/opt/rt3/local/plugins/RTx-WorkflowBuilder/bin/rt-workflow --create
workflow TestQueue-Approval
-
You can see the following results
script inside the queue (scrip.png)
template inside the queue (template.png)
And … enjoy it…
Greetings
Pablo