Workflow Soluiton

 View Only
  • 1.  Issue with Approval Process

    Posted Nov 18, 2010 01:29 PM

    Top of the Morning

    Created a Form in a DialogWorkflow Component with a Submit Button.  Next Component downstream is another DialogWorkflow.  In this DialogWorkflow, the Interaction Tab setup is a FormBuilder Componet showing all of the questions & answers that were submitted and a reject and approv button and the Event Congiureation Tab setup has a SendEmailComponentViaSTMP with two different 'To' Addresses.  My issue is when the two approvers receive the emails to approve, the first person approvers with no problem.  The second approver getting the email, when clicking on the either approve or reject gets

    could not find work queue item 6ad46c99-614d-437f-aa37-452fb41368ad the item no longer exists. number of items in queue 1  

    I would like the workflow to wait until both approvers have approve the request and then go onto the next component.  Any ideas or suggestions would be kindly excepted

     

    thanks in advance

     



  • 2.  RE: Issue with Approval Process
    Best Answer

    Posted Nov 18, 2010 02:01 PM
      |   view attached

    I would recommend you force it to go asynch.  You need an approval for each approver.  (Think of each dialog workflow as a user session.)  When you have 3 users, you need 3 dialog workfows.    (Or kind of....)  You will need to add Demo and Advanced Workfow dlls.  

    Look at my screenshot to see what  I mean...

     



  • 3.  RE: Issue with Approval Process

    Posted Nov 18, 2010 02:05 PM

    Import the Workflow.Advanced.dll into your project. You can then incorporate a loop mechanism for your second dialog (approval dialog) where it will wait until all approvers have gone through the dialog before exiting by using the Merge (Wait) components brought into play by the Workflow.Advanced library.

    There may be a better way to do this but what I use prior to the approval Dialog is a For Each Element in Collection and a Random Rule. The For Each Element in Collection is using a custom data type I have to hold the Approvers' full name and email address. The Random rule just allows a mechanism to hit the Dialog and then go back to the For Each Item component, until the For Each Item hits the last item. After the Approval Dialog, add one of the Merge (Wait) components. Link the 'Finished' path of the For Each Item component to this Wait component along with your Approve path from your Approval dialog. Setup your send email component to send to the email address of the current element from the For Each Item component. Here is an example of how this looks:

    When run, it'll loop through each approver and won't proceed until all have Approved (in the example it says 'Submit' but you should get the idea).



  • 4.  RE: Issue with Approval Process

    Posted Nov 22, 2010 04:02 PM

    yliquor....works like a charm

    matzebru....thanks for your input