/ / Xsd स्कीमा के साथ xpdl को मान्य करें - xml, xsd, bizagi

Xsd स्कीमा के साथ xpdl मान्य करें - xml, xsd, bizagi

मैं निम्नलिखित समस्या के साथ हूँ:

मुझे कुछ प्रक्रिया पढ़ने की ज़रूरत है जो कि xpdl प्रारूप में है जो प्रक्रिया के लिए एक xml विशिष्ट है। ये xpdl बिज़गी द्वारा उत्पन्न होता है।

Xpdl की आधिकारिक वेबसाइट में मैंने xml स्कीमा को पकड़ा है, लेकिन जब मैं xpdl को मान्य करने की कोशिश करता हूं जो कि bizagi द्वारा xml स्कीमा के साथ उत्पन्न होता है कि मैं वेबसाइट को पकड़ता हूं तो यह एक त्रुटि दे रहा है।

मैंने यह समझने की कोशिश की कि क्या हो सकता है, लेकिन मैं इसे प्राप्त नहीं करता।

आप मुझे समझने में मदद कर सकते हैं?

मैं त्रुटि भेज रहा हूँ:

 ["level"]=> int(2)
["code"]=> int(1871)
["column"]=> int(0)
["message"]=> string(596) "Element "{http://www.wfmc.org/2009/XPDL2.2}Activities": This element is not expected. Expected is one of ( {http://www.wfmc.org/2009/XPDL2.2}DataStoreReferences, {http://www.wfmc.org/2009/XPDL2.2}Transitions, {http://www.wfmc.org/2009/XPDL2.2}DataAssociations, {http://www.wfmc.org/2009/XPDL2.2}ExtendedAttributes, {http://www.wfmc.org/2009/XPDL2.2}Assignments, {http://www.wfmc.org/2009/XPDL2.2}PartnerLinks, {http://www.wfmc.org/2009/XPDL2.2}Object, {http://www.wfmc.org/2009/XPDL2.2}Participants, {http://www.wfmc.org/2002/XPDL1.0}DataFields, {http://www.wfmc.org/2009/XPDL2.2}Applications ). "
["file"]=> string(66) "file:///C:/Users/dieferson.medeiros/AppData/Local/Temp/php1DBF.tmp"
["line"]=> int(117)

उस कोड का अनुसरण करता है जिसका उपयोग मैं xml स्कीमा के साथ xpdl को मान्य करने के लिए करता हूं:

libxml_use_internal_errors (true);
$xml = new DOMDocument();
$xml->load($file->getPathname());
var_dump($xml->schemaValidate(__DIR__."/../../../../web/uploads/xsd/xpdl.xsd"));
var_dump(libxml_get_errors());

Xpdl के लिंक का अनुसरण करता है:

https://drive.google.com/file/d/0B1uwndG8_xlZSHBzZHZMTUZ0dkk/view?usp=sharing

Xml स्कीमा के लिंक का अनुसरण करता है:

https://drive.google.com/file/d/0B1uwndG8_xlZblpZUmY2NkxXaGc/view?usp=sharing

आपके ध्यान देने के लिए धन्यवाद!

उत्तर:

जवाब के लिए 0 № 1

यह क्या कह रहा है कि तत्व क्रियाएँ अच्छी तरह से स्थित नहीं है।

मैं आपके .xpdl को मान्य करता हूं XPMCL 2.2 मानक WFMC द्वारा

और मुझे 9 त्रुटियां मिलीं:

1. "Error: The required attribute "Id" is missing."
2. "Error: The required attribute "Id" is missing."
3. "Error: The required attribute "Id" is missing."
4. "Error: The element "Lane" in namespace "http://www.wfmc.org/2009/XPDL2.2" has invalid child element "ExtendedAttributes" in namespace "http://www.wfmc.org/2009/XPDL2.2". List of possible elements expected: "Performers, NestedLane" in namespace "http://www.wfmc.org/2009/XPDL2.2" as well as any element in namespace "##other"."
5. "Error: The element "Lane" in namespace "http://www.wfmc.org/2009/XPDL2.2" has invalid child element "ExtendedAttributes" in namespace "http://www.wfmc.org/2009/XPDL2.2". List of possible elements expected: "Performers, NestedLane" in namespace "http://www.wfmc.org/2009/XPDL2.2" as well as any element in namespace "##other"."
6. "Error: The element "Lane" in namespace "http://www.wfmc.org/2009/XPDL2.2" has invalid child element "ExtendedAttributes" in namespace "http://www.wfmc.org/2009/XPDL2.2". List of possible elements expected: "Performers, NestedLane" in namespace "http://www.wfmc.org/2009/XPDL2.2" as well as any element in namespace "##other"."
7. "Error: The element "Associations" in namespace "http://www.wfmc.org/2009/XPDL2.2" has incomplete content. List of possible elements expected: "Association" in namespace "http://www.wfmc.org/2009/XPDL2.2"."
8. "Error: The element "Artifacts" in namespace "http://www.wfmc.org/2009/XPDL2.2" has incomplete content. List of possible elements expected: "Artifact" in namespace "http://www.wfmc.org/2009/XPDL2.2"."
9. "Error: The element "WorkflowProcess" in namespace "http://www.wfmc.org/2009/XPDL2.2" has invalid child element "Activities" in namespace "http://www.wfmc.org/2009/XPDL2.2". List of possible elements expected: "DataStoreReferences, Transitions, DataAssociations, ExtendedAttributes, Assignments, PartnerLinks, Object, Extensions" in namespace "http://www.wfmc.org/2009/XPDL2.2"."

... लेकिन वह नहीं जो आपने हमारे साथ साझा किया है। जैसा कि मैंने आपकी फ़ाइल में देखा, गतिविधियाँ अच्छी तरह से स्थित हैं:

<WorkflowProcess>
...
<Activities>...<Activities/>
</WorkflowProcess>

क्या आप देख सकते हैं कि सही फ़ाइल है और / या त्रुटियों को सत्यापित करता हूं जो मैं आपके पास करता हूं? आपका स्कीमा ठीक लग रहा है।