www.skelta.com
Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » Skelta BPM.NET 2006 » Skelta BPM.NET 2006 » Application Development » Custom Approval Mail Form


Custom Approval Mail FormExpand / Collapse
Author
Message
Posted Wednesday, March 19, 2008
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Thursday, October 02, 2008
Posts: 5, Visits: 40
How would I go about providing the users with a new version of the current Approval workitem mail form?  I would like to provide the users with a new form that basically replaces the HTML form in the email with HTML links that can link to an internal website that submits the approval based on information from the link (ie. Approve or Reject).

I don't want the users to have to use an HTML form in their email client, I just want a simple HTML link that accomplishes the same thing as the form does.  Where do I start?

Do I have to create a new implementation of the IWorkItemForm that will do this?  Can I extend the existing MailWorkItemForm to allow me more control over building the email?  Do I have to add a new Channel and new Form to give me total control?

Any info would be helpful, thanks.

Jay

Post #696
Posted Wednesday, March 19, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Tuesday, November 18, 2008
Posts: 64, Visits: 69
If you are looking at customising the HTML templates used in mail channel, they can be accessed at WorkflowElements\Default\en-US\Templates\OutlookEmailTemplate in the Skelta installation folder.

You will need to create a custom delivery channel for meeting the specific requirement mentioned. You need to extend the WorkItemFormBase and ISkeltaAddInProvider interfaces for creating a new delivery channel. You will also need to add the corresponding entries in the SKAddInProviders table for the respective Channel and Form.

Regards,

RSimon

Post #697
Posted Thursday, March 20, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Tuesday, November 11, 2008
Posts: 166, Visits: 704

Hi Jay,

 

Please configure the custom document view for that activity. Skelta provides a link to that in the mail form.

 

For more information on configurating “Custom Doc View” please go thru the link http://skelta.com/forum/FindPost479.aspx

Regards,

Bineesh

Post #700
Posted Thursday, March 20, 2008
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Thursday, October 02, 2008
Posts: 5, Visits: 40
I guess the issue is that I don't really want to customize the existing approval mail template so much that I can't use it as it exists today.  I really just want to provide another option to provide a very simple email approval.

If I was to use the custom document view inside the mail form, I would still have to remove all the other stuff from the template that I don't want to see.  To me, it seems like I am removing the option to use the current email approval form and replacing it with my own.  Instead, I want to have both, the current form and another simple one that just provides a link instead of a form.

I have spent time building a custom channel and custom form, but it seems they throw my engine into a endless loop on startup when it is trying to load the channel and the form.  I can't figure out where it is getting stuck.

Does anyone have a simple example of a custom channel and a custom form that I can look at/install in my environment to see if I have missed something in my implementation, or is there more documentation on exactly what needs to be overridden/implemented to build a custom channel?

I have looked at the API docs and have overridden the necessary operations, but there isn't a lot of information to describe what the operations are supposed to do or have to do for the implementation to work.

Thanks for the information,
Jay

Post #705
Posted Thursday, March 20, 2008
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Thursday, October 02, 2008
Posts: 5, Visits: 40
Can anyone else try this custom channel or take a look at it and tell me if there is something I am missing.  I also provided the AddInProvider entries that I have for the database, they are in the respective class files.

Also, it seems I get an error while trying to attach a .zip file containing my VS.Net project, so here are the two classes.

Thanks
Jay

  Post Attachments 
SimpleWorkItemForm.txt (125 views, 4.10 KB)
SimpleChannel.txt (131 views, 5.46 KB)

Post #706
Posted Friday, March 21, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Tuesday, November 18, 2008
Posts: 64, Visits: 69
Please find attached a custom channel code. Sample SQL scripts required are

INSERT INTO SKAddInProviders (Type,[Name],ClassName,Assembly) VALUES

('Channel','Custom','CustomChannel.CustomChannel','bin\CustomChannel.dll')

INSERT INTO SKAddInProviders (Type,[Name],ClassName,Assembly) VALUES

 ('Form','HummingBytesForm','CustomChannel.HummingBytesForm','bin\CustomChannel.dll')

 

Regards,

RS

  Post Attachments 
CustomChannel.zip (134 views, 1.64 MB)

Post #707
Posted Monday, March 24, 2008
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Thursday, October 02, 2008
Posts: 5, Visits: 40
I was able to get your channel installed and it doesn't throw my server into an endless loop.  When I use it as a delivery channel in combination with the current WebWorkItemList, it seems to run fine and it creates the necessary entries in the database for the Custom Form, but if I try to use the Custom Channel by itself as a delivery channel for an approval task, I get the following error:

i - Failed to run activity (Approval1), Collection was modified; enumeration operation may not execute., ApplicationName - SPE, WorkflowName - humming, ExecutionId - 629, ExecutionDetailsId - 6019, Module - C:\WINDOWS\TEMP\Skelta2006Temp\WorkflowElements\ServiceCatalog\ShadowTempSPE\assembly\dl3\6a0df7a0\00d3fe42_b977c701\Skelta.HWS.DLL, FileName - Context.cs, CGY-APPS12T, 3/24/2008 10:02:37 AM

! - Error while running the Action or Handling the event- Approval1 for ExecutionDetailsID=6019, - Collection was modified; enumeration operation may not execute., ApplicationName - SPE, WorkflowName - humming, ExecutionId - 629, ExecutionDetailsId - 6019, Module - C:\WINDOWS\assembly\GAC_MSIL\Workflow.NET.NET2\3.0.0.0__00d117614105018c\Workflow.NET.NET2.dll, FileName - RunTime.cs, Source -    at Skelta.HWS.HWSActivityProviderBase.Run(Int32 ExecutionID, Int32 ExecutionDetailsID, Context CurrentContext, Action CurrentAction, String InlinkOutput, Boolean Retrying, String& Output, String& Url, Object[]& ResourceIds)   at Workflow.NET.Engine.RunTime.PerformActionThread(Object Params), CGY-APPS12T, 3/24/2008 10:02:37 AM.

Have you ever seen this before?

Thanks,
Jay

Post #712
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
-
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.

All times are GMT -5:00, Time now is 4:39am

 
Execution: 0.344.17 queries.Compression Enabled.

Copyright © 2002 - 2007 Skelta Software. All rights reserved. Tel: 1 (703) 229-6732 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company