<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RTx::WorkFlowBuilder Depends On Question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Hey Everyone,<BR>
<BR>
I'm working on setting up RTx::WorkFlowBuilder, I have the following in my RT_SiteConfig:<BR>
<BR>
########<BR>
Set($WorkflowBuilderStages,<BR>
        { 'approver1-approval' =><BR>
          { content => 'content',<BR>
            subject => 'Architect Approval for Request: {$Approving->Id} - {$Approving->Subject}',<BR>
            owner => 'approver1'<BR>
            },<BR>
          'approver2-approval' =><BR>
          { content => 'content',<BR>
            subject => 'Architect Approval for Request: {$Approving->Id} - {$Approving->Subject}',<BR>
            owner => 'approver2'<BR>
            },<BR>
          'director-approval' =><BR>
          { content => 'content',<BR>
            subject => 'Director Approval for  Request: {$Approving->Id} - {$Approving->Subject}',<BR>
            owner => 'director'},<BR>
        }<BR>
   );<BR>
<BR>
Set( $WorkflowBuilderRules,<BR>
       { 'nti-test-approval' => [ ['approver1-approval', 'approver2-approval'] => 'director-approval'] }<BR>
   );<BR>
########<BR>
<BR>
which generates the following template:<BR>
<BR>
########<BR>
===Create-Ticket: workflow-approver1-approval<BR>
Subject: Architect Approval for Request: {$Tickets{TOP}->Id} - {$Tickets{TOP}->Subject}<BR>
Refers-To: TOP<BR>
Queue: ___Approvals<BR>
Owner: approver1<BR>
Requestors: {$Tickets{TOP}->Requestors}<BR>
Type: approval<BR>
Content-Type: text/plain<BR>
Due: {time + 86400}<BR>
Content: content<BR>
ENDOFCONTENT<BR>
===Create-Ticket: workflow-approver2-approval<BR>
Subject: Architect Approval for Request: {$Tickets{TOP}->Id} - {$Tickets{TOP}->Subject}<BR>
Refers-To: TOP<BR>
Queue: ___Approvals<BR>
Owner: approver2<BR>
Requestors: {$Tickets{TOP}->Requestors}<BR>
Type: approval<BR>
Depends-On: workflow-approver1-approval<BR>
Content-Type: text/plain<BR>
Due: {time + 86400}<BR>
Content: content<BR>
ENDOFCONTENT<BR>
===Create-Ticket: workflow-director-approval<BR>
Subject: Director Approval for  Request: {$Tickets{TOP}->Id} - {$Tickets{TOP}->Subject}<BR>
Refers-To: TOP<BR>
Queue: ___Approvals<BR>
Owner: director<BR>
Requestors: {$Tickets{TOP}->Requestors}<BR>
Depended-On-By: TOP<BR>
Type: approval<BR>
Depends-On: workflow-ARRAY(0x996b490)<BR>
Content-Type: text/plain<BR>
Due: {time + 86400}<BR>
Content: content<BR>
ENDOFCONTENT<BR>
########<BR>
<BR>
we're seeing a few problems:<BR>
<BR>
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<BR>
<BR>
2.  the director is getting notified of pending approval before an approver1 (or approver2) approves the ticket<BR>
<BR>
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<BR>
<BR>
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?<BR>
<BR>
Nicola</FONT>
</P>

</BODY>
</HTML>