Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown type <bpmn:Definitions> #21

Closed
sanjay-thiyagarajan opened this issue Nov 27, 2021 · 3 comments
Closed

unknown type <bpmn:Definitions> #21

sanjay-thiyagarajan opened this issue Nov 27, 2021 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sanjay-thiyagarajan
Copy link

image
The above error occurs when calling the function as instructed in the documentation.

Input XML :

<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" 
		xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" 
		id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn"><bpmn:process id="Process_1" isExecutable="false"><bpmn:endEvent id="endEvent2" name="end_component"></bpmn:endEvent><bpmn:startEvent id="startEvent3" name="start_component"></bpmn:startEvent><bpmn:sequenceFlow id="sequenceFlow1" sourceRef="startEvent3" targetRef="endEvent2" /></bpmn:process></bpmn:definitions>

I've tried renaming the XML parent tag to bpmn:Definitions too. It didn't work though.

@sanjay-thiyagarajan sanjay-thiyagarajan added the bug Something isn't working label Nov 27, 2021
@MaxTru
Copy link

MaxTru commented Nov 27, 2021

Could you please use the issue template? In particular: please provide precise steps how to reproduce the issue. Thanks

@MaxTru MaxTru added the help wanted Extra attention is needed label Nov 27, 2021
@sanjay-thiyagarajan
Copy link
Author

@MaxTru The library works very well when I run it locally. The problem arises when I try to use it through ResourceLoader in my PHP project. Is there anything which I should do, other than the code provided in the README in that case ?

@MaxTru
Copy link

MaxTru commented Nov 29, 2021

From the error message I would assume that you pass a diagram file or string, which is not actually a BPMN XML.

However, now it seems this is a problem of your setup and not of the library per se. Hence I would close this issue. Please feel free to re-open, if you observe a concrete bug.

For general questions, please also feel free to use our forum: https://forum.bpmn.io/

@MaxTru MaxTru closed this as completed Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Development

No branches or pull requests

2 participants