Answered

New entity item without new process from another application

Hello!

I have Process entity MainTask, it bind with entity Email (one to many), Email bind with entity Answer ( one to one).

My process wait GetAnswer( it is Event) when another application set event and then I need create Answer and bind with Email.

I can do it when I use function createCase, but then I have new case.

My code:

sXml = "<BizAgiWSParam>"; sXml += "<domain>domain</domain>"; sXml += "<userName>admon</userName>"; sXml += "<Events>"; sXml += "<Event>"; sXml += "<EventData>"; sXml += "<idCase>" + match.Groups[1].ToString() + "</idCase>"; sXml += "<eventName>GetAnswer</eventName>"; sXml += "</EventData>"; sXml += "<Entities>"; sXml += "</Entities>"; sXml += "</Event>"; sXml += "</Events>"; sXml += "</BizAgiWSParam>";

xDoc.LoadXml(sXml); xn = bizagi.setEvent(xDoc);

sXml = "<BizAgiWSParam>";

sXml += "<domain>domain</domain>";

sXml += "<userName>admon</userName>";

sXml += "<Cases>";

sXml += "<Case>";

sXml += "<Process>MainTask</Process>";

sXml += "<Entities>";

sXml += "<MainTask>";

sXml += "<Emails>";

sXml += "<Email>";

sXml += "<idAnswer>"; sXml += "<Text>Answer</Text>"; sXml += "<idEmail>" + match.Groups[2].ToString() + "</iEmail>"; sXml += "<email>" + m.ReturnPath + "</email>"; sXml += "<Subject>" + m.Subject + "</Suject>"; sXml += "</idAnswer>"; sXml += "</Email>"; sXml += "</Emails>"; sXml += "</MainTask>"; sXml += "</Entities>"; sXml += "</Case>"; sXml += "</Cases>"; sXml += "</BizAgiWSParam>";

xDoc.LoadXml(sXml); xn = bizagi.createCases(xDoc);

Maybe It is can do it without new process.

Please help me!

photo
0

Thank you. I finded solution.

photo
0

Dear Sofya,

We are glad to hear that you have solved it. Please, share the solution in order to help to our community.

Best regards