Work > K2.net

C# using statement and the K2 APIs

3 Mins. Read.

Recently in one of our projects, we had to do some performance optimizations that required us to look a bit closer at the resources our application used. In general, you should always dispose an object that’s implementing the IDisposable interface.

K2’s client API’s use a connection to the K2 server which needs to be closed and disposed after you’re done using them. In C# you can use the using-statement to dispose your objects when you’re done with it. The using-statement only works on objects that inherits from IDisposable.
Here are some examples of how to correctly use the using-statement when using K2 API’s.

K2 Web Services - Part 1

10 Mins. Read.
This blogpost is outdated. Please see K2 SmartObject Services – Configuration update static endpoint if you have any problems with the K2HostServer.config file changes.

In the 1200 series, a few new web services are available out of the box. In this article I’ll tell you what they are for, how you can use them and give some insight on the technical details behind the services to make you understand them better.

There are two services new to K2 in the 1200 series:

  • K2 Services
  • K2 SmartObject Services

The K2 Services were first introduced in the KB001200 Update which contains a WS and WCF endpoint.  A later release will bring REST-enabled endpoints for the K2 Services.  The SmartObject Services are released in KB001230.

This post will cover the KB001200 and KB0001230 release functionality.  The additional REST-enabled endpoints for K2 Services will be discussed in a separate post once released.

KB001200 now available

1 Mins. Read.
Just a quick post to let you know that the KB001200 that i posted about, is now available! Customers that already have a K2 blackpearl/blackpoint license can download this update from their customer portal. There’s a PDF up that shows all the features (and know issues). And if you want to upgrade, check this PDF.

K2's KB001200 release

Since the release of K2 4.5 back in April, it’s been a bit quite of time before we got something new. We’ve seen the K2 components for SharePoint 2010 been release, but that didn’t bring any new functionality to the table. For those who don’t know, it “only” provides the same functionality of the SharePoint 2007 components. This doesn’t mean guys in South Africa have only been watching the worldcup, they’ve been working on a beauty called the 1200 series, which starts with the KB001200 update release.

K2's 4.5 RC is here.

Nearly every SharePoint blog is reporting on the release date of SharePoint 2010. You might have not noticed that K2 has released the RC version of the all important 4.5 :) The RC version is available via the K2 Portal site under the beta download section. This also means it’s only available for the current partners, customers and insiders. Here are the main enhancements (copied from the release notes): New support for:

K2's 4.5 Release - Inline Functions

Last October I had the privilege to visit the K2 Insiders conference. We all got to see a preview of K2’s new 4.5 release. Now (finally!) a targeted beta is available for selected partners, customers and insiders. This blog post will focus on Inline functions, a new feature of the 4.5 release which will be available for K2 blackpoint 4.5 and K2 blackpearl 4.5. The new release also features improvements to the designers, as you can read in Jey’s blogpost.

Other info from K2 Conference

At the K2 conference, we also got information on what K2 will do with SharePoint 2010. As you can see in this post, K2 is working hard to enhance the new functionality of the Office 2010 platform. Personally, i really like the integration with the office applications itself as lots of clients actually don’t want to leave outlook. Apart from this new functionality, K2 will also support the current functionality in SP2010, which we saw a demo of at the conference.

K2 Insider Conference 2009

K2 Insider Conference Last weekend was the K2 insider Conference in Las Vegas. They neatly planned it just before the SharePoint Conference to make it more easy for us to come over. This post will not cover a lot of info that’s been said at the conference, some of it is even under NDA, so I’m simply not allowed to blog about, which is a shame, as I can’t wait to get all those new bits!

K2's Custom Event Notification - Twitter

4 Mins. Read.
The K2 BlackPearl platform as it stands today is a large platform with a lot of out of the box functionality. When using out of the box products, I always fear that it might be too limited. When doing K2 projects I sometimes hit those boundaries, but I’m always able to use one of K2’s extension options to help me out. A custom action for the Event Bus (what this blog post is about) is just one of the possibilities.

Update a K2 ClientEvent URL using code

In our current project there are 18 processes with each at least 4 client events. There are even processes with 8 or 12 client events. We also have 1 webpart that handles all the client events. In the beginning we decide on the URL passing a parameter to allow the webpart to render correctly. The basis of that decision has (of course) changed and the querystring isn’t used anymore. This also means, that querystring only contains the SerialNumber.