[rt-users] About RTx-WorkflowBuilder

Pablo Silva psilvao at gmail.com
Sun May 23 21:06:41 EDT 2010


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..

1) 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

2) chmod +x /opt/rt3/local/plugins/RTx-WorkflowBuilder/bin/rt-workflow

3) change  #!/perl  -w to  #!/usr/bin/perl -w

4) In your rt site, create a queque for example workflow

5) 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' ]
}
);

6) run the script from the command line

  /opt/rt3/local/plugins/RTx-WorkflowBuilder/bin/rt-workflow --create
workflow TestQueue-Approval

7) You can see the following results

   script inside the queue (scrip.png)

   template inside the queue (template.png)


And .. enjoy it...

;-)

Greetings
Pablo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scrip.png
Type: image/png
Size: 24341 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100523/69209c5c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Template.png
Type: image/png
Size: 33365 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100523/69209c5c/attachment-0001.png>


More information about the rt-users mailing list