gitgabrio commented on issue #403: URL: https://github.com/apache/incubator-kie-issues/issues/403#issuecomment-2012139887
@tiagobento I see the gists. Those models are invalid (the dmn:import is in wrong place) so they can't possibly work with jitexecutor. I think there are alkso other issues with them, but I think it is not worth to spend time on them. I tried them, but I'm confused about what's actually going on and where the results shown actually comes from - I have to double check what endpoints are invoked and how - since I do not see nothing in debug console. Beside that, please use those other models -> https://github.com/apache/incubator-kie-drools/blob/4004fe9bf745c5eae18223cd1d3a42d8efd4566e/kie-dmn/kie-dmn-test-resources/src/test/resources/Imported_Model_Unamed.dmn https://github.com/apache/incubator-kie-drools/blob/4004fe9bf745c5eae18223cd1d3a42d8efd4566e/kie-dmn/kie-dmn-test-resources/src/test/resources/Importing_EmptyNamed_Model.dmn https://github.com/apache/incubator-kie-drools/blob/4004fe9bf745c5eae18223cd1d3a42d8efd4566e/kie-dmn/kie-dmn-test-resources/src/test/resources/Importing_Named_Model.dmn I've uploaded them to sandbox, and when I open [Importing_Named_Model](https://sandbox.kie.org/dev/#/ca621c28-77d2-4dcf-97b5-fd4cd0f06069/file/Importing_Named_Model.dmn) , this is what I see in logs for validation: ``` [1:11](https://ibm-cloud.slack.com/archives/D04AL7XQ684/p1711023061614179) MultipleResourcesPayload{mainURI='Importing_Named_Model.dmn', resources=[ResourceWithURI{URI='Importing_Named_Model.dmn', content='<?xml version="1.0" encoding="UTF-8"?> <dmn:definitions xmlns="http://www.trisotech.com/dmn/definitions/_f79aa7a4-f9a3-410a-ac95-bea496edabgc" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns:tc="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="DMN Modeler" exporterVersion="6.0.3.201802231629" id="_f79aa7a4-f9a3-410a-ac95-bea496edabgc" name="Importing named Model" namespace="http://www.trisotech.com/dmn/definitions/_f79aa7a4-f9a3-410a-ac95-bea496edabgc"> <dmn:extensionElements> </dmn:extensionElements> <dmn:import xmlns:drools="http://www.drools.org/kie/dmn/1.1" xmlns:triso="http://www.trisotech.com/2015/triso/modeling" importType="http://www.omg.org/spec/DMN1-2Alpha/20160929/MODEL" namespace="http://www.trisotech.com/dmn/definitions/_f27bb64b-6fc7-4e1f-9848-11ba35e0df44" name="Imported Model" drools:modelName="Imported Model" triso:fileId="eyJmIjp7InNrdSI6IjEwMmM0MDQ3LTg5NjctNGI3ZS1hODgxLTBhY2ZkNWJjOTAwMiIsIm5hbWUiOiJJbXBvcnRlZCBNb2RlbCJ9fQ==" triso:fileName="Edson Tirelli/Imported Model"/> <dmn:inputData id="_51190b90-924d-479b-872b-4c6f3486c2cb" name="A Person"> <dmn:variable id="_44a44de4-c0ab-408e-9ba9-983d8ec2f6b5" name="A Person" typeRef="Imported Model.tPerson"/> </dmn:inputData> <dmn:decision id="_bf4a9628-15ae-4887-97f2-7099426cb60f" name="Local Greeting"> <dmn:variable id="_ecc6e0bb-a0af-4e99-aac6-5b8bed09c538" name="Local Greeting" typeRef="string"/> <dmn:informationRequirement> <dmn:requiredInput href="#_51190b90-924d-479b-872b-4c6f3486c2cb"/> </dmn:informationRequirement> <dmn:knowledgeRequirement> <dmn:requiredKnowledge href="#_42543811-b499-4608-b784-6c6f294b1c59"/> </dmn:knowledgeRequirement> <dmn:literalExpression xmlns:triso="http://www.trisotech.com/2015/triso/modeling" id="_d7e6836b-8491-487a-a653-5735daa85be1" triso:unparsed="true"> <dmn:text>Local Hello( A Person )</dmn:text> </dmn:literalExpression> </dmn:decision> <dmn:decision id="_bf4a9628-15ae-4887-97f2-7099426cb60g" name="Imported Greeting"> <dmn:variable id="_ecc6e0bb-a0af-4e99-aac6-5b8bed09c539" name="Imported Greeting" typeRef="string"/> <dmn:informationRequirement> <dmn:requiredInput href="#_51190b90-924d-479b-872b-4c6f3486c2cb"/> </dmn:informationRequirement> <dmn:knowledgeRequirement> <dmn:requiredKnowledge href="http://www.trisotech.com/dmn/definitions/_f27bb64b-6fc7-4e1f-9848-11ba35e0df44#_32543811-b499-4608-b784-6c6f294b1c58"/> </dmn:knowledgeRequirement> <dmn:literalExpression xmlns:triso="http://www.trisotech.com/2015/triso/modeling" id="_d7e6836b-8491-487a-a653-5735daa85be2" triso:unparsed="true"> <dmn:text>Imported Model.Say Hello( A Person )</dmn:text> </dmn:literalExpression> </dmn:decision> <dmn:businessKnowledgeModel id="_42543811-b499-4608-b784-6c6f294b1c59" name="Local Hello"> <dmn:variable id="_a8eb10e1-30e6-40d8-a564-a868f4e0af45" name="Local Hello" typeRef="string"/> <dmn:encapsulatedLogic kind="FEEL" id="_acbb96c9-34a3-4628-8179-dfc5f583e695"> <dmn:formalParameter id="_4a626f74-2ecc-4759-b76a-04baec6b795d" name="Person" typeRef="Imported Model.tPerson"/> <dmn:literalExpression id="_c173a894-3719-4d2f-a365-25850e217310"> <dmn:text>"Local Hello " + Person.name + "!"</dmn:text> </dmn:literalExpression> </dmn:encapsulatedLogic> </dmn:businessKnowledgeModel> </dmn:definitions> '}]} ``` (there should be both models/resources, but only one is sent) Last, I would suggest to buld jitexecutor native locally with the `-Djitexecutor.dmn.log.level=DEBUG` flag, to see in console what actually gets and is executed on backend side -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
