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

Welcome Guest ( Login | Register )
      

Home » Skelta Workflow Net » Skelta Workflow Net » Application Development » How to consume my workflow?


How to consume my workflow?Expand / Collapse
Author
Message
Posted Sunday, January 06, 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
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...

Post #237
Posted Sunday, January 06, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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

  Post Attachments 
APIHelp.JPG (110 views, 120.71 KB)

Post #238
Posted Monday, January 07, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, July 31, 2008
Posts: 145, Visits: 619
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,

BiNo

Post #239
Posted Monday, January 07, 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 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,

Post #241
Posted Monday, January 07, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, July 31, 2008
Posts: 145, Visits: 619
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,

BiNo

Post #242
Posted Monday, January 07, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, July 31, 2008
Posts: 145, Visits: 619
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,

BiNo

Post #243
Posted Monday, January 07, 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
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.

Post #244
Posted Monday, January 07, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #245
Posted Monday, January 07, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, July 31, 2008
Posts: 145, Visits: 619
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,

BiNo

Post #246
« Prev Topic | Next Topic »


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