Skip to main content

Hello

I am new to k2 and i have a schema wich contains mutiple nodes and fields.

i am creating a plan page and i need to update an xml field of the schema process.

my code as follows:

  Dim conk2 As New K2ROM.Connection
        Dim strCon As String
        strCon = "Â;];Authentication=Windows;Domain=;User=administrator;Password=password"      

        conk2.Open("ntxgdsbiztalk", strCon)


        Dim callisp As K2ROM.ProcessInstance
        callisp = conk2.CreateProcessInstance("DSLWorkflowsProcess DSL OrderEscalationsEscalations_CallISP")
callisp.XmlFields(           

conk2.StartProcessInstance(callisp)

         

 In the callisp.XmlFields it is asking for the index as integer

How can i update an xml field in a given schema


Thanks a lot 

callisp.ProcessInstance.XmlFields("FormData").Value = gsFormData

"FormData" is your XML field name.


I'm facing the same problem with xml fields.

I think that XML schema is not established by the time I start a process instance within a plan page.

So the callisp.ProcessInstance.XmlFields("FormData").Value = gsFormData don't work and it gives me an error

saying that this field doesn't exist.

How can we solve this problem ?

Thanks in advanced. 


Hi,
Even am facing same issue below is the my code
pi.XmlFields["Level1Approvers"].Value = GetXmlFieldDataUsers(level1Approvers);
pi.Update();

for me above line not throwing any exception but its not updating value to K2 workflow processInstance. Can anyone help how to resolve this?

Reply