Passing XML via IPC

  • 26 May 2004
  • 1 reply
  • 0 views

Badge +1
Here is what I am trying to do.

1) Populate an XML field dynamically. This is being done by setting the value field (i.e. K2.ProcessInstance.XmlFields["SystemConfig"].Value = xmlConfigData.InnerXml;). This works fine.
2) Pass the XML to other processes via IPC. Through the UI, I match up the two approproriate XML fields, but nothing gets passed through. When I generate the code, this is what is shown

K2.BindField(IPCBindType.ProcXml, "SystemConfig", "SystemConfig", IPCBindDirection.In);

I tried writing the output using the Console.Writeline

Parent Process:
Outputting XMLField SystemConfig
Value Length : 14317
MetaData: 0
Schema: 7123

Child Process:
Outputting XMLField SystemConfig
Value Length : 0
MetaData: 0
Schema: 7123

Any ideas on what I am doing wrong?

p.s. I am using the Preview version 3.4110.1.0

1 reply

Badge +2
The IPCBindDirection should be IPCBindDirection.Out

K2.BindField(IPCBindType.ProcXml, "SystemConfig", "SystemConfig", IPCBindDirection.Out);

This direction is from the perspective of the Parent Process.

Reply