Tag Archives: K2 blackpearl

K2 4.6.4 Released

K2 blackpearl 4.6.4 has just been released which includes the following new features and enhancements:

  • SharePoint Copy and Move
    When moving, copying or updating a document or list item in SharePoint it is now possible to preserve the existing SharePoint document or List Item’s MetaData and version history when using the SharePoint Document Wizard or the SharePoint List Item Wizard. To make use of this new functionality on existing workflows, update the  design templates, open the wizard and make the necessary configuration and redeploy the process.
  • IPC UI and threading
    The IPC Event has been improved by simplifying the mapping of Process  data and XML fields between the child and parent process using a new  grid control.  Asynchronous  IPCs will now follow the same steps as a Synchronous IPC except it will stay Asynchronous. This will prevent duplicate child instances and IPCs will no longer get stuck.

For full details visit the K2 blackpearl website.

K2 Task List – iOS App

So our company have finally pushed out a policy to allow our iOS devices to connect to our corporate wifi, apart from the obvious benefits in intranet web access I am very excited about coupling K2 smartforms and the K2 mobile task list to allow users to approve items on the go, this will become even more exciting when the infrastructure guys enable 3G connectivity.

In the next few days/weeks I will try and post a few tips and tricks to mobile enable a few K2 smartforms.

K2 SmartObjects and Attachments

The K2 ServiceObject for SQL does not support some field types, one of them being varbinay, so to upload attachments you need to use nvarchar(MAX) as your database column type for the K2 ServiceObject to become aware of it.

The reason for this is because K2 serialises attachments as XML strings and there for required the field nvarchar(MAX).

The following fields are not supported by the SQL Service Objects

– TimeStamp
– Image
– SQL_Variant
– Binary
– VarBinary
– Numeric

Another way to easily store documents is to use a SharePoint document library.

K2 ServiceObject with File Property

Some code snippets to help

FileProperty fpropData = new FileProperty("FileData", new MetaData(), String.Empty, String.Empty);
fpropData.MetaData.DisplayName = "File Data";
fpropData.MetaData.Description = "File Data";
public static object ToFilePropertyValue(string propName, string filename, byte[] content)
  return (new FileProperty(propName, new MetaData(), filename, Convert.ToBase64String(content))).Value;
dr["File"] = Helper.ToFilePropertyValue("File", "foobar.dat", {foobar byte[]});