Jean Hibbert's Blog

.NET Framework, SQL Server and other random thoughts.

February 2008 - Posts

Windows Work Flow (WWF) / .Net Framework

I have to say I have been working with WWF for the past few days and I am impressed with this technology. Not only is the designer able to visually build the work flow but the designer is able to execute the work flow also.

By customising the Activities Designer objects, the developer can also manipulate the design time behaviour of the composite and simple activities within the designer. The CompositeActivityDesigner and the ActivityDesigner are base classes that can be used with to provide overridable methods to manipulate the design time features
of thier custom activities.

if (t == null)

throw new NullReferenceException("Cannot display a null transaction");

WorkflowDesignerLoader loader = GetService(typeof(WorkflowDesignerLoader)) as WorkflowDesignerLoader;

if (loader == null)

throw new NullReferenceException("Could not load workflow designer loader");

IDesignerHost designerHost = this.designSurface.GetService(typeof(IDesignerHost)) as IDesignerHost;

CompositeActivity rootActivity = designerHost.RootComponent as CompositeActivity;

.......

loader.AddActivityToDesigner(rootActivity);

The above code loads a set of custom activities into the designer.

Posted: Feb 19 2008, 07:18 PM by jean
Filed under:
Poor leadership in South Africa

I'd like to dedicate this blog post to Thabo Mbeki. I've never met the man, but I can say he has never failed to dissapoint me. He's never made any difference to South Africa, or voiced any speech that could inspire since he has come to office. A luke warm failure of note.

Jacob Zuma is a different story. The future president of South Africa loves to sing a song which has the lyrics "bring me my machine gun". It seems as though Africa as a continent does not work well when it comes to the implementation of Democratic policies. This is because the majority of the population are ignorant (not stupid) and cannot descern a good leader from a poor one. Maybe we need a new type of democracy, or political outlook when it gets to developing countries.

A system that will:

a) Only allow educated members to vote. i.e members which have a matric or above.

b) Give more power to the police force to execute punishment on the spot.

Nelson Mandela was a great leader because he was willing to put the past behind him and look into the future.

 

Posted: Feb 13 2008, 07:42 PM by jean
Filed under:
Daily thoughts...

Ok, its time to start using my blog. For much of 2007 and all of 2008 this poor blog has been deserted and left to wallow in it's misery. I actually feel sorry for my blog, I mean... not only does it only display meaningless blog posts that are incomplete and obviously written in a rush (between the hours of 11h40 and 12h00 just  before my lunch break is supposed to start) but if you were looking for a blog that will change your life.... look elsewhere is all i can say. Ok.

So I watched a movie directed by George Clooney a while back... starring Sam Rockwell. It's about a guy who didn't really know what life was about and didn't really care. He just knew what he wanted out of life, and what he wanted was pretty simple. The problem is he just really doesn't see the point to anything at all. We work, we die, people cry. We watch mind numbing game shows and have parties where we flirt with one another and perform insane mating dances. Anyway, this guy in this movie goes through a difficult experience and at the end of it he realises life it more superficial than he initially expected. In fact most people see life this way and are only willing to give when they know they will receive. What I want to say is that you have to live for yourself in the 21st century, but you have to hold onto your own dignity. You must always be willing to give without have the notion of always receiving something in return. We should all at least try to make this world a better place. If there is a god, that is what he will judge you on. NOT the number of times you went to church.

There is so much philosophising and analysing to do. Its better to just sometimes do your best to enjoy your life. Keep a balance. And that will always mean making a sacrifice to stay healthy and sane.

 

Posted: Feb 12 2008, 07:22 AM by jean
Filed under: