Skip to main content
Nintex Community Menu Bar

OpenWorklistItem always throws exception for global variable

  • March 30, 2006
  • 2 replies
  • 12 views

Forum|alt.badge.img+1
I have an activity with a client side event in it.
There are also 2 Process variables, one a string and one a boolean attached to the process.
Within code I am trying to open the worklistitem associated with this client side event, however every time I do so, I receive an exception stating that the boolean processinstance variable threw an exception of type system.exception (data field approved not found).
Here is the code I'm using :-

.Value = true;
}
catch(Exception ex)
{
string test = ex.Message.ToString();
System.Diagnostics.Debug.WriteLine(test);
}
}


ItemSelected is taken from a listbox that I previously populated with active events for that user.
I've looked through the KB, help, tutorials etc. and can't find what's wrong.
Any help appreciated.

Colin Brown

2 replies

Forum|alt.badge.img+11
  • Nintex Employee
  • March 30, 2006
I can't see anything wrong with the code so my next guess would be the boolean datafield in the process. What happens if you assign the value "true" to the other (string) datafield?

Regards,
Ockert

Forum|alt.badge.img+1
  • Author
  • March 30, 2006
I got around the problem by converting the boolean to a string and it works. I just do a conversion on the client side back to a boolean and proceed that way.