Hey Everyone, I'm working on setting up RTx::WorkFlowBuilder, I have the following in my RT_SiteConfig:
######## Set($WorkflowBuilderStages, { 'approver1-approval' => { content => 'content', subject => 'Architect Approval for Request: {$Approving->Id} - {$Approving->Subject}', owner => 'approver1' }, 'approver2-approval' => { content => 'content', subject => 'Architect Approval for Request: {$Approving->Id} - {$Approving->Subject}', owner => 'approver2' }, 'director-approval' => { content => 'content', subject => 'Director Approval for Request: {$Approving->Id} - {$Approving->Subject}', owner => 'director'}, } ); Set( $WorkflowBuilderRules, { 'nti-test-approval' => [ ['approver1-approval', 'approver2-approval'] => 'director-approval'] } ); ######## which generates the following template: ######## ===Create-Ticket: workflow-approver1-approval Subject: Architect Approval for Request: {$Tickets{TOP}->Id} - {$Tickets{TOP}->Subject} Refers-To: TOP Queue: ___Approvals Owner: approver1 Requestors: {$Tickets{TOP}->Requestors} Type: approval Content-Type: text/plain Due: {time + 86400} Content: content ENDOFCONTENT ===Create-Ticket: workflow-approver2-approval Subject: Architect Approval for Request: {$Tickets{TOP}->Id} - {$Tickets{TOP}->Subject} Refers-To: TOP Queue: ___Approvals Owner: approver2 Requestors: {$Tickets{TOP}->Requestors} Type: approval Depends-On: workflow-approver1-approval Content-Type: text/plain Due: {time + 86400} Content: content ENDOFCONTENT ===Create-Ticket: workflow-director-approval Subject: Director Approval for Request: {$Tickets{TOP}->Id} - {$Tickets{TOP}->Subject} Refers-To: TOP Queue: ___Approvals Owner: director Requestors: {$Tickets{TOP}->Requestors} Depended-On-By: TOP Type: approval Depends-On: workflow-ARRAY(0x996b490) Content-Type: text/plain Due: {time + 86400} Content: content ENDOFCONTENT ######## we're seeing a few problems: 1. the approver2 child ticket isn't notifying the approver2 that they have a pending approval, that specific ticket is in the "new" status vs the "open" status that the other 2 are 2. the director is getting notified of pending approval before an approver1 (or approver2) approves the ticket 3. if approver1 denies the request, the ticket does not get closed (didn't test approver2).. if the director does, it closes like it should is anyone using it in production with a dual approval for the 1st step? I found the "Depends-On: workflow-ARRAY(0x996b490)" of the child ticket for the director a little interesting. Also, the doc doesn't specify, but do I need to add RTx::WorkFlowBuilder to the list of plugins in RT_SiteConfig? Nicola
_______________________________________________ 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