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

Welcome Guest ( Login | Register )
      

Home » Skelta Workflow Net » Skelta Workflow Net » Application Development » How can i build my own approval/rejection...


How can i build my own approval/rejection...Expand / Collapse
Author
Message
Posted Wednesday, January 16, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Monday, February 04, 2008
Posts: 21, Visits: 51
I need to build a custom ASPX page which will dispaly the approve and reject buttons, these buttons will submit the work item using the API in addition to take the comments form my own text box.
Post #342
Posted Wednesday, January 16, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 4:46 AM
Posts: 147, Visits: 625

Integrating CustomPage.aspx into Specific action of Skelta using following steps.

 

Step 1:

 

Create a custom ASPX page with the required design.

E.g. Approval Form

 

With two buttons to Approve and Reject and textbox to enter comments.

 

In the code behind, you need to use the following namespaces:

 

// Skelta Namespaces

using Workflow.NET;

using Skelta.Core;

using Skelta.HWS;

using Skelta.HWS.WorkListChannel.Web;

using Skelta.HWS.WorkListChannel.Web.WorkItemListControl;

 

and handle Approve button click as follows:

 

protected WebWorkItemAdapter adapter; //Declare this variable at class level

 

protected void btnApprove_Click(object sender, EventArgs e)

    {

        adapter = new WebWorkItemAdapter();

        adapter.ProcessWebChannelRequest();

        adapter.CurrentWorkItem.Submit(adapter.ChannelName, “Approved”, "", txtComments.Text); //You can use last argument to pass comments to the workflow.

    }

 

Step 2:

 

1. Select the human activity [E.g. Approval Activity], select the property “DeliveryChannel” under category “Configuration”.

 

2. It will pop up a page “Configure Channels”.

 

3. Expand “WebworkList”,  you can see the default “Approval Form”. Right Click on “WebworkList”. Select the option “Add Instance of AspxForm”

  

 

4. Enter the custom ASPX page URI and click on “Save” button.

 

 

If you want to make it as default then right click on “AspxForm1” and select “Set as default Instance”

 

5. Click Save Channels.

 

Hope this information is useful

Regards,

BiNo

Post #344
Posted Wednesday, January 16, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Monday, February 04, 2008
Posts: 21, Visits: 51
yes, thanks very good for your effort.

But i get an exception when using:

"Invalid request received for Web Channel Based Form Page "

[Exception: Invalid request received for Web Channel Based Form Page]
   Skelta.HWS.WorkListChannel.Web.WebWorkItemAdapter.ProcessWebChannelRequest() +791
   Applicaitons_VacationRequest_VacationReadOnly.LoadVacation() in c:\Inetpub\wwwroot\VacationRequestDemo\Applicaitons\VacationRequest\VacationReadOnly.ascx.cs:56
   Applicaitons_VacationRequest_VacationReadOnly.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\VacationRequestDemo\Applicaitons\VacationRequest\VacationReadOnly.ascx.cs:21
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
====

another question:

can i add more than one aspx form? and if yes, how does the workitem choose which form to handle with?

thanks

Post #345
Posted Wednesday, January 16, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 4:46 AM
Posts: 147, Visits: 625

Hi,

 

Yes, You can add more than one ASPX form and you can set any one these as default as mentioned in the earlier post. In the Inbox, the default form will be displayed by default and to switch between forms, right click on the work-item, it will show all the forms and select the one which you need.

Regards,

BiNo

Post #346
Posted Wednesday, January 16, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Monday, February 04, 2008
Posts: 21, Visits: 51
Thanks very much, the problem has been resolved.
Post #350
Posted Thursday, June 19, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Thursday, July 24, 2008
Posts: 4, Visits: 22
In DeliveryChannel aspx page uri i given like http:\\localhost\webapp\view.aspx

it is working fine.

But i want http:\\localhost\webapp\view.aspx?id=<%content Variable%>

Please do needful

Post #820
« 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 3:11pm

 
Execution: 0.156.10 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