| | | Supreme Being
       
Group: Forum Members Last Login: Monday, February 04, 2008 Posts: 21, Visits: 51 |
| | Hi all, I am new to Skilta, I am using 2006 version and I create a new workflow and deploy it. what is the next step? I put the WorkItemControl on an ASPX page and put the user id equals to 1, because I am using custom database for resources, but I get an exception "Object reference not set to an instance of an object. " Please help me what is the real step after deploying the workflow. If someone has a video or article describes a step by step applicaiton development, kindly send me it. Thanks for all even no response... |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, June 04, 2008 Posts: 131, Visits: 423 |
| Hi, The basic steps for executig a workflow is 1) Configuring the application and resource handlers 2) Using process designer control & Designing the worklfow 3) Using workitem list & configuring unique identifier If the resource handler has unique identifier type set as type integer, then you should set the UserIdInteger property for workitem list, else if it's string then you should set the UserIdString property.
Instead of drag and drop try to use panel for loading the work item list control. Skelta.HWS.WorkListChannel.Web.WorkItemListControl.WorkItemControl WIL = new Skelta.HWS.WorkListChannel.Web.WorkItemListControl.WorkItemControl(); WIL.ApplicationName = "ApplicationName"; WIL.UserIdString = "UserId [If unique idenfiier is set as string]"; WIL.ID = "WorkItemListControl"; PanelWIL.Controls.Add(WIL);
4) Executing a workflow. [Make sure the Skelta engine windows service is runing] E.g., string xmlcontent = <Expense><Amount>2000</Amount></Expense>"; Client objClient = new Client("ApplicationName","WorkflowName"); Int ExecutionID =objClient.Execute("UserId [If unique idenfiier is set as string]",xmlcontent); objClient.Close();I would recommend you go through the API help provided along with the installation. i have attached an image which will help you on which sections to concentrate.
Moderator
|
| | | | Supreme Being
       
Group: Forum Members Last Login: Today @ 12:17 AM Posts: 136, Visits: 600 |
| | Hi, Please ensure that you've assigned the following properties: ApplicationName = "" UserIdInteger =1 These two properties are mandatory and you can't directly use the property "UserID". The value for this property need to be passed through any of the following properties: UserIDInteger (If database datatype is int) UserIDGuid (If database datatype is uniqueindentifier) UserIDString (If not int and uniqueindentifier) Hope this information was useful. Assuring you of our support at all times.
Regards, Bineesh E Raghavan |
| | | | Supreme Being
       
Group: Forum Members Last Login: Monday, February 04, 2008 Posts: 21, Visits: 51 |
| | Thanks for your reply, I am now able to display the workitemcontrol but it is empty, so the question is "How to submit an application?". In other word, I have an website that enable a user to register in, after registeration he will fill an applicaion and submit it, so what sould I do to intergrate this application with my workflow?. Thanks again, |
| | | | Supreme Being
       
Group: Forum Members Last Login: Today @ 12:17 AM Posts: 136, Visits: 600 |
| | Hi, As he register/login, you need to store the userid in session variable. For Eg: Session["UserID"] Then when he submits the application form on the submit button click event, write the following code. Client client = new Client("YourApplicationName","YourWorkflowName") client.Execute(Convert.ToInt32(Session["UserID"]),"<data>1</data>") client.Close(); Hope this information was useful. Assuring you of our support at all times.
Regards, Bineesh E Raghavan |
| | | | Supreme Being
       
Group: Forum Members Last Login: Today @ 12:17 AM Posts: 136, Visits: 600 |
| | Hi, You need to use the following namespaces before initiating the workflow. //Skelta namespaces using Workflow.NET; using Workflow.NET.Engine; using Workflow.NET.Engine.Interfaces; I've missed this step in last reply.
Assuring you of our support at all times.
Regards, Bineesh E Raghavan |
| | | | Supreme Being
       
Group: Forum Members Last Login: Monday, February 04, 2008 Posts: 21, Visits: 51 |
| | hi, I get the following exception: Exception occured while executing the workflow with ExecutionId17 for application Test. System.Exception: Maximum number of concurrent workflows exceeded the limit. |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, June 04, 2008 Posts: 131, Visits: 423 |
| Hi, This is a license validation. A developer edition can have only limited running live instances of a workflow.A workflow instance which is not completed is called as a live running instance. Options are: 1) Get in touch with the sales team to increase the license. 2) Change the InternalStatus of a workflow to FE or FN in the SWExecute table.This is a work around. Make sure the workflows which started are completed before you start the next ones.
Moderator |
| | | | Supreme Being
       
Group: Forum Members Last Login: Today @ 12:17 AM Posts: 136, Visits: 600 |
| | Hi, You are getting this exception, because Developer edition can have maximum 10 concurrent workflows. So the following are the solutions for the same: 1. Act on all running human activities from WorkItemList. OR 2. Run the following database query in the Skelta database to avoid the error. update swexecute set internalstatus = 'FN' where internalstatus = 'SL'
Hope this information was useful. Assuring you of our support at all times.
Regards, Bineesh E Raghavan |
| |
|
|