Dynamic destination in K2 process and run updating to MOSS list item

  • 31 July 2009
  • 1 reply
  • 3 views

Badge +1

Hi folks,

Currently I'm facing with two problems that dragging me so long.

Firstly, I'm trying to create a simple K2 process with one approval node.

The destination user of that node has to read from sharepoint list item after new item is created.(dynamic assign the destination from sharepoint list item)

Last, I want to update back the existing sharepoint list Item from K2 process event.

So, what kind of approach can meet this requirement?

Please point me out the simple way to achieve it coz I'm totally newbie to K2 as well as MOSS.

 

Thanks in advance.


1 reply

Badge +1

Here's one of the simple way to achieve above statement.

To assign destination from sharepoint list item

1) add new Data Fields in process based on the sharepoint list column. eg. Approver, Approver Email

2) Then map sharepoint list column with datafield respectively when run Sharepoint Workflow Integration Wizard in advanced mode.

(when the sharepoint list item is created, all the mapped sharepoint data will be set the value to process Data Fields as well)

3) In Destination Rule, add the destination user from the process datafield that u've created. eg. Approver

To update sharepoint list item from workflow process

1) Create a smart object

2) Add Sharepoint List Item Event in process and run it in advanced mode.

3) After filled up correct Sharepoint Site Url, List Name in Update List Item. In List Item ID, put the ItemId browsing under XML Fields>Your Process Name>SPIntegrationData>SPData.

4) Set the value whatever you want in List Item Metadata by assigning.

 

Have fun..

Reply