Answered

Intermediate event from other applications

Hello!

I have a process and in subprocess i have intermediate event (type - message event). It wait message. I'm trying set intermediate event from other applications.

I generate xml file:

string sXml = "<BizAgiWSParam>"; sXml += "<domain>domain</domain>"; sXml += "<userName>admon</userName>"; sXml += "<Events>"; sXml += "<Event>"; sXml += "<EventData>"; sXml += "<radNumber>" + "number" + "</radNumber>"; sXml += "<eventName>" + "GetAnswer" + "</eventName>"; sXml += "</EventData>"; sXml += "<Entities></Entities>"; sXml += "</Event>"; sXml +="</Events>"; sXml += "</BizAgiWSParam>";

number = Me.Case.Id (get in subprocess) .

GetAnswer is name of intermediate event.

But it is not working.

Please help me.

photo
0

Change the message event to just a "none" event.

Make sure it is assigned to a participant like "admon" or another "non-user".

With the SOA layer you can trigger it and also modify scope data.

Best regards,

Jaime

photo
0

Jaime Contesse wrote:

Change the message event to just a "none" event.

Make sure it is assigned to a participant like "admon" or another "non-user".

With the SOA layer you can trigger it and also modify scope data.

Best regards,

Jaime

Thank you for your answer!

I do it, but it still does not work.

My code :

string sXml = "<BizAgiWSParam>"; sXml += "<domain>domain</domain>"; sXml += "<userName>admon</userName>"; sXml += "<Events>"; sXml += "<Event>"; sXml += "<EventData>"; sXml += "<idCase>" + number + "</idCase>"; sXml += "<eventName>IntermediateEvent1</eventName>"; sXml += "</EventData>"; sXml += "<Entities></Entities>"; sXml += "</Event>"; sXml +="</Events>"; sXml += "</BizAgiWSParam>"; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(sXml); XmlNode xn = bizagi.setEvent(xmlDoc);

photo
0

I have multiple subprocess.

photo
0

Jaime Contesse wrote:

Change the message event to just a "none" event.

Make sure it is assigned to a participant like "admon" or another "non-user".

With the SOA layer you can trigger it and also modify scope data.

Best regards,

Jaime

I have this error: Process (id:26) does not exist.

Number = 26 = Me.Cace.Id.

I don't understand how my program find right event.

photo
0

Makse sure you are using the CaseId and not the CaseNumber (sometimes these are not the same, especially if you are using subprocesses).

You can find the id's in the database

SELECT idcase CaseId, radNumber CaseNumber FROM WFCASE

In the eventName, make sure you are putting the "Name" and not the "Display Name".

Make sure the case is still live and that the token is waiting at the event.Hope this works.

photo
0

Jaime Contesse wrote:

Makse sure you are using the CaseId and not the CaseNumber (sometimes these are not the same, especially if you are using subprocesses).

You can find the id's in the database

SELECT idcase CaseId, radNumber CaseNumber FROM WFCASE

In the eventName, make sure you are putting the "Name" and not the "Display Name".

Make sure the case is still live and that the token is waiting at the event.Hope this works.

Thank you for your answer.

I am putting the "Name". And the token is waiting at the event. And id Case is right.

I don't understand why it is not work...

maybe I need to configure something ? How to program see which database to go, what project and what process ?

photo
0

Jaime Contesse

Thank you so much!

It Work!