Solved

getEntitySchemaStr Related Complex Entity

Hi,

When calling the getEntitySchemaStr from the EntityManagerSOA web service the XSD that is returned is not relating complex elements (related entities) correctly.

Called using "ProcessName"

Returned:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">;
  3. <xs:element name="ProcessName">
  4. <xs:complexType>
  5. <xs:sequence>
  6. <xs:element minOccurs="0" maxOccurs="1" name="MasterEntity" type="xs:integer" />
  7. <xs:element minOccurs="0" maxOccurs="1" name="AStringValue" type="xs:string" />
  8. </xs:sequence>
  9. </xs:complexType>
  10. </xs:element>
  11. </xs:schema>

Excepted:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">;
  3. <xs:element name="ProcessName">
  4. <xs:complexType>
  5. <xs:sequence>
  6. <xs:element minOccurs="0" maxOccurs="1" name="MasterEntity">
  7. <xs:complexType>
  8. <xs:sequence>
  9. <xs:element minOccurs="0" maxOccurs="1" name="ACurrencyValue" type="xs:decimal" />
  10. <xs:element minOccurs="0" maxOccurs="1" name="AIntegerValue" type="xs:integer" />
  11. </xs:sequence>
  12. <xs:attribute form="unqualified" name="entityName" type="xs:string" />
  13. </xs:complexType>
  14. </xs:element>
  15. <xs:element minOccurs="0" maxOccurs="1" name="AStringValue" type="xs:string" />
  16. </xs:sequence>
  17. </xs:complexType>
  18. </xs:element>
  19. </xs:schema>

Passing "MasterEntity" via getEntitySchemaStr:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">;
  3. <xs:element name="MasterEntity">
  4. <xs:complexType>
  5. <xs:sequence>
  6. <xs:element minOccurs="0" maxOccurs="1" name="ACurrencyValue" type="xs:decimal" />
  7. <xs:element minOccurs="0" maxOccurs="1" name="AIntegerValue" type="xs:integer" />
  8. </xs:sequence>
  9. </xs:complexType>
  10. </xs:element>
  11. </xs:schema>

Comments (6)

photo
1

Dear Shaun,

In order to reproduce it and find out a solution, please tell us your current Bizagi Studio version.

We look forward to hearing from you

photo
1

Hi Juan,

The version number is 10.7.0.2082.

Thanks Shaun

photo
1

Dear Shaun,

Thank you for your quick answer. You can try applying this FIX: https://bizagi.sharefile.com/d-s6a88b608a8b4933b and following these steps:

  1. Stop web application (using IISRESET /Stop command in a Command Prompt window).
  2. Make a copy of the your web application bin and jquery subfolders (usually located in C:\Bizagi\Projects\ProjectName\WebApplication\).
  3. Extract and copy the files from the compressed file to the corresponding bin and jquery folders of the web application replacing the existing files. (Please check the compressed file properties, sometimes Windows block it. You could read the following article for more information: How to unblock files in Windows

We look forward to hearing from you

photo
1

Hi Juan,

I followed your instructions with no success:

Passed "ProcessName" and the following was returned

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; attributeFormDefault="qualified" elementFormDefault="qualified">
  3. <xs:element name="ProcessName">
  4. <xs:complexType>
  5. <xs:sequence>
  6. <xs:element name="MasterEntity" type="xs:integer" minOccurs="0" maxOccurs="1" ></xs:element>
  7. <xs:element name="AStringValue" type="xs:string" minOccurs="0" maxOccurs="1" ></xs:element>
  8. </xs:sequence>
  9. </xs:complexType>
  10. </xs:element>
  11. </xs:schema>

38ff1e6ec34bc368845f9f51487be425

b1ec34d46c45b8cb48a43729e8d88304

I also tried using a relationship as well using other example entities:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; attributeFormDefault="qualified" elementFormDefault="qualified">
  3. <xs:element name="OtherProcessName">
  4. <xs:complexType>
  5. <xs:sequence>
  6. <xs:element name="idOtherMasterEntity" type="xs:integer" minOccurs="0" maxOccurs="1" />
  7. <xs:element name="AStringVlaue" type="xs:string" minOccurs="0" maxOccurs="1" />
  8. </xs:sequence>
  9. </xs:complexType>
  10. </xs:element>
  11. </xs:schema>

8b4e192b119fe0ab73c14f77d22d18c6

photo
1

Hi Juan,

Can I provide anymore info to assist?

Thanks

photo
1

Dear Shaun,

A member of our support team will contact you to analyse much better your question

Regards