Entries from May 1, 2008 - June 1, 2008
Directory synchronization takes several hours and I receive a "timeout" error in IIS, how can I resolve this?
Problem
Depending on the speed of your web server hardware, your database server, and the number of users and groups you want to synchronize with WorkflowGen, Directory Synchronization can take from a few minutes to several hours.
By default, the IIS .Net "State Management" is set up to have a 20 minute session timeout. This means any web pages that run without completion for over 20 minutes will be terminated - including synchronizations that may require more than 20 minutes.
Solution
You can increase the session timeout at the IIS level for WorkflowGen by doing the following:
- Open IIS
- Expand the WorkflowGen web site
- Right-click on the "wfgen" application and select "Properties"
- Select the "ASP.NET" tab and click on "Edit Configuration"
- Select the "State Management" tab and increase the "Session timeout (minutes)" to a value greater than the amount of time required to synchronize.
-
Select "OK" until you return to the main IIS page.
How do we get FireFox to use Integrated Authentication the way IE does?
Problem
When logging into WorkflowGen directly on the WorkflowGen server through FireFox using the url http://localhost/wfgen , there is a security error denying entry to the application.
Explanation
WorklfowGen is a Web Based application that can use IIS security to authenticate users attempting to log into it. In some cases, Integrated Authentication is used so that users have a "single sign on" experience (IIS will request the Windows User login information to sign in to WorkflowGen).
IIS can use Integrated Authentication to log into WorkflowGen, and by default IE has the ability to use these credentials (your windows user account)... In fact, so does Firefox! But to activate this feature you will need to make a quick configuration change to how FireFox uses your windows account.
Solution
To setup FireFox to use Integrated Authentication, follow the steps below:
1) Open up Firefox and type in about:config as the url
2) In the Filter, type in "ntlm"
3) Double click "network.automatic-ntlm-auth.trusted-uris" and type in "localhost" (without the quotes) and hit enter.
How do I calculate the number of days from Today to a specified date on my web form?
Problem
I need a function that takes a date input (using the eWorld Calandar control) on a web form and calculates the number of days from today to that slected date and puts it into a field that I can then use as an OUT parameter. I need this for a lead time...
Solution
To use a calculated amount of time as an actions Lead Time, you will need to add the following code before the form is submitted to WorkflowGen (i.e.: within the submit button's "click" event):
C#
DateTime FromTime = DateTime.Today;
DateTime ToTime = MY_DATE_PICKER.SelectedDate;
TimeSpan DateDiff = ToTime - FromTime;
int TheLeadTime = DateDiff.Minutes;
this.MY_OUT_TEXTBOX_FOR_LEADTIMES.Text = TheLeadTime;
VB.NET
Dim FromTime As DateTime = DateTime.Today
Dim ToTime As DateTime = MY_DATE_PICKER.SelectedDate
Dim DateDiff As TimeSpan = (ToTime - FromTime)
Dim TheLeadTime As Integer = DateDiff.Minutes
Me.MY_OUT_TEXTBOX_FOR_LEADTIMES.Text = TheLeadTime
You may want to add some validation such as checking if ToTime is always > FromTime
Is it possible to have multiple processes each starting at request #1?
Yes, it is possible. In the first action of your process you can pass as an IN parameter the macro "Request.Relative Id" to the form. The first relative ID for any process is 1.
Note that each request's unique Request number is still the Request Id that WorkflowGen generates automatically and that is predominantly visible on the user portal. By making the Relative Id an additional DATA element of your process you can display this Relative Id as well in the portal in the same way other process data can be displayed.
Can we use other environments other than Microsoft Visual Studio to create our .NET forms?
Yes. You can use any development environment you are comfortable with as long as it supports ASP.NET and the Microsoft .NET 2.0 (or greater) Framework (for example, Visual Studio Web Developer).