Oh, wait a minute, there’s more.
-
Going into:
Configuration → Queues → crs → Scrips
I made sure each subject line was on single line and replaced a couple of stray dashes, (I think the \xE2 was
a “−>” thing instead of a “−>” thing in the auto-generated template from bin/rt-workflow - which was installed via
the CPAN), like this:
-
Which brought me to this error:
Use of uninitialized value $content in concatenation (.) or string
at /opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm line 669.
Which I fudged with this:
$content = '' unless $content;
- Which brought me to here:
[Thu Feb 26 16:50:59 2009] [debug]: Workflow: processing create-workflow-Implemented Approval of
RT::Ticket=HASH(0x7fe03efb52f0) (/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:360)
[Thu Feb 26 16:50:59 2009] [debug]: Workflow: evaluating
Refers-To: TOP
Queue: ___Approvals
Owner:
Requestors: {$Tickets{TOP}->Requestors}
Depended-On-By: TOP
Type: approval
Depends-On: workflow-Tested Approval
Content-Type: text/plain
Due: {time + 86400}
Content: xxx
ENDOFCONTENT (/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:653)
[Thu Feb 26 16:50:59 2009] [debug]: Workflow: yielding (/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:671)
[Thu Feb 26 16:50:59 2009] [debug]: not a recognised queue object. (/opt/rt3/bin/…/lib/RT/Ticket_Overlay.pm:279)
[Thu Feb 26 16:50:59 2009] [debug]: RT::Ticket=HASH(0x7fe03f1c0278) No queue given for ticket creation.
(/opt/rt3/bin/…/lib/RT/Ticket_Overlay.pm:284)
[Thu Feb 26 16:50:59 2009] [error]: Couldn’t create related ticket create-workflow-Implemented Approval for 16
Could not create ticket. Queue not set (/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:391)
Which makes me think I must be yet closer to a working approvals system, but still no potato in sight…sigh!
All (helpful) suggestions welcome, Chia-liang!
Richard Foley
Ciao - shorter than aufwiedersehen
One, Two, Free! – Richard Foley Thursday 26 February 2009 16:20:49 Richard Foley wrote:
On Tuesday 24 February 2009 12:42:15 Chia-liang Kao wrote:
Hi,
RTx::WorkflowBuilder is a tool that helps you configure multi-stage
approval workflow in rt.
It is now available at RTx-WorkflowBuilder-1.02 - Helpers for building workflow for queues in RT - metacpan.org.
Hi Chia-liang,
This looks good, although it doesn’t appear to work smoothly yet.
- In your pod you have:
% bin/rt−workflow PO PO‐Approval −−create
Which should probably read:
% bin/rt−workflow --create PO PO‐Approval
- When I had set up the workflow within my RT_SiteConfig.pm, and run the
bin/rt-workflow script to create the scrips and templates, I naturally
created a ticket. Nothing happened, but I noticed in the logs there was the
following entry:
Found 0 scrips for TransactionBatch stage with applicable type(s)
So, I changed went into:
Configuration → Queues → crs → Scrips
and changed “Stage” from “Transaction Create” to “Transaction Batch”.
- The next time I created a ticket, the workflow/approval mechanism kicked in
and the log files filled up, but no approvals were created - because of a
stray character:
ENDOFCONTENT (/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:669)
[Thu Feb 26 14:50:29 2009] [error]: Ticket creation failed: Unrecognized
character \xE2 in column 44 at template line 1.
Stack:
[template:1]
[/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:667]
[/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:366]
[/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:303]
[/opt/rt3/bin/…/lib/RT/ScripAction_Overlay.pm:238]
[/opt/rt3/bin/…/lib/RT/Scrip_Overlay.pm:464]
[/opt/rt3/bin/…/lib/RT/Scrips_Overlay.pm:196]
[/opt/rt3/bin/…/lib/RT/Scrips_Overlay.pm:175]
[/opt/rt3/bin/…/lib/RT/Ticket_Overlay.pm:3165]
[/opt/rt3/local/html/Ticket/Create.html:394]
[/opt/rt3/share/html/autohandler:311]
(/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:672)
[Thu Feb 26 14:50:29 2009] [warning]: Exiting subroutine via next
at /opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm line 678.
(/opt/rt3/bin/…/lib/RT/Action/CreateTickets.pm:678)
I’m not sure which bit of which Template, or code, might be causing this
error, but I think we’re close to having a working Approvals system in the
outside world though. What do you think?
–
Richard Foley
Ciao - shorter than aufwiedersehen
http://www.rfi.net/
The rt-users Archives
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