| | | Forum Newbie
       
Group: Forum Members Last Login: Tuesday, February 26, 2008 Posts: 2, Visits: 14 |
| Hi, I am trying to create a dynamic questionnaire where the questions will be rendered via custom asp.net pages. The workflow will then route the next set of questions to be rendered. I have read the post regarding the work activity to achieve a similar thing; http://www.skelta.com/forum/Topic206-47-1.aspx?Highlight=dynamic+question
Can you give me some more details on how I can achieve this ie 1) How do I access the questions to be rendered (say in the work activity or a checklist) 2) How do I pass this back to the workflow to process 3) How do I then get the next set of questions to be rendered without having to go through the Work Item list
The scenario could be an online credit card application. The customer goes online to fill their details where the asp.net pages will render the questions and Skelta manage the questions to be answered. Once submitted the application will be passed to the processing officer to work on. The workflow for the processing officer will be managed by the Work Item List.
Thanks in advance. |
| | | | Supreme Being
       
Group: Forum Members Last Login: 2 days ago @ 10:47 AM Posts: 144, Visits: 610 |
| Hi, Please go thru the post http://www.skelta.com/forum/FindPost164.aspx This will give you more information on it.
Regards, Bineesh E Raghavan |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, June 04, 2008 Posts: 131, Visits: 423 |
| Hi, You can make use of the API's for achieving this Task1) The generic API which can be used to get the possible Status or routing conditions for the activity is as given below. But this API will only provide you the Status which can be used for routing . To access specific properties belonging to an activity you'll need to Use CurrentAction object as provided in the post specified by bineesh. Checklist: WorkItem.CurrentActivity.Properties["Questions"]; Work: WorkItem.CurrentActivity.Properties["AdvanceUI Fields"];
2) Using WorkItem.Submit 3) Using WorkItemCollection object to get task for an actor
using Workflow.NET; using Skelta.HWS; using Skelta.Core; ApplicationObject application = new ApplicationObject("WebServiceRep"); WorkflowObject workflow = new WorkflowObject("WebServiceWF", application); //To get Open tasks in Inbox WorkItemCollection workItemCollection = new WorkItemCollection(application, workflow, new Actor(application, realActorId), false, "WebWorkList"); workItemCollection.GetRecords(); //To get open tasks in queue WorkItemCollection workItemCollection = new WorkItemCollection(application, workflow, queueId, new Actor(application, realActorId)); workItemCollection.GetRecords(); //Generic API to get Possible Status List/Routing conditions WorkItem workItem = new WorkItem(workflow, workitemId); System.Collections.Generic.Dictionary<string, string> outputs = ((Skelta.HWS.IHWSActivityProvider)workItem.HWSActivity.CurrentActivity.ActionHandler) .GetPossibleStatusList(); string[] statusList = new string[outputs.Count]; outputs.Keys.CopyTo(statusList, 0); statusList; //To submit/process a workitem WorkItem workItem = new WorkItem(workflow, workitemId); workItem.Submit("WebWorkList", statusSubmitted, "", ""); Regards,
Moderator |
| | | | Forum Newbie
       
Group: Forum Members Last Login: Tuesday, February 26, 2008 Posts: 2, Visits: 14 |
| | Great Thanks - I will try that. |
| |
|
|