What are the differences between Data Fields and XML fields

  • 9 October 2012
  • 1 reply
  • 2 views

Badge +4

I am new to K2 blackpearl.


Most of my requires need intergration InfoPath form with K2. I notice there are Data Fields and XML fields and both have Activities and Process categories.


I usually get the data from XML fields ->Process -> myform. or WFI  processfield (looks like this is auto generated).


I still don't understand what the differeences are.


Can someone please explaine it?


 


Thanks,


David


1 reply

Badge +2

Data Fields accept simple types (Integer, String, Boolean,...) where XML fields take XML data structured in a schema that you can spicefy. XML Schemas and XML data is good in cases that you want to send structed objects between your application and K2 where K2 can parse it and extract any data out of it using the K2 object browser. another use is when you want to send an array or a list of data to k2 (e.g List of destination users) then you should use XML field becase Data Fields do not support lists 

Reply