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

can not write chinese words in bpmn file #1

Open
qaymuic opened this issue Apr 8, 2016 · 5 comments
Open

can not write chinese words in bpmn file #1

qaymuic opened this issue Apr 8, 2016 · 5 comments

Comments

@qaymuic
Copy link

qaymuic commented Apr 8, 2016

when I design a process,it always save as ascii format with 'encoding="UTF-8"'. if I write any chinese word in the process,save and then click 'edit in modeler', parse error will be orcurred.

@jGauravGupta
Copy link
Owner

It is working fine with Hindi word, could you share the modeler file :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bpmn:definitions targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL" expressionLanguage="http://www.w3.org/1999/XPath" typeLanguage="http://www.w3.org/2001/XMLSchema" exporter="jBPMN NB" exporterVersion="0.3" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:java="http://jcp.org/en/jsr/detail?id=270" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:jbpmn="http://jbpmn.java.net" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <bpmn:process isClosed="false" name="newBPMNProcess" id="_14603447051141">
        <bpmn:scriptTask isForCompensation="false" startQuantity="1" completionQuantity="1" name="हॉलीवुड" id="_1460344716047">
            <bpmn:extensionElements>
                <jbpmn:ShapeDesign>{"outer":{"background":{"startColor":"RGB(255,255,255)","endColor":"RGB(226,232,236)"},"border":{"color":"RGB(108,142,183)","width":2.5}},"inner":{"background":{"startColor":"RGB(255,255,255)","endColor":"RGB(255,248,159)"},"border":{"color":"RGB(30,69,123)","width":1.0}}}</jbpmn:ShapeDesign>
            </bpmn:extensionElements>
        </bpmn:scriptTask>
    </bpmn:process>
    <bpmndi:BPMNDiagram>
        <bpmndi:BPMNPlane bpmnElement="_14603447051141" id="_14603447051152_p">
            <bpmndi:BPMNShape bpmnElement="_1460344716047" id="_1460344716047_gui">
                <omgdc:Bounds x="227.0" y="154.0" width="80.0" height="64.0"/>
                <bpmndi:BPMNLabel>
                    <omgdc:Bounds x="248.0" y="226.0" width="35.0" height="17.0"/>
                </bpmndi:BPMNLabel>
            </bpmndi:BPMNShape>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</bpmn:definitions>

newbpmnprocess bpmn

@qaymuic
Copy link
Author

qaymuic commented Apr 11, 2016

please see attachment file:jGau.bpmn. when you open it in modeler,following errors occurred:

Exception: javax.xml.bind.UnmarshalException

  • with linked exception:
    [com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException

the file is saved as ascii format,so the chinese words in the file is not utf8 encoding. the xml parser can not recognize those words with 'encoding="UTF-8" '.

qaymuic

From: Gaurav Gupta
Date: 2016-04-11 11:22
To: jGauravGupta/jBPMNSuite
CC: qaymuic
Subject: Re: [jGauravGupta/jBPMNSuite] can not write chinese words in bpmn file (#1)

<bpmn:definitions targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL" expressionLanguage="http://www.w3.org/1999/XPath" typeLanguage="http://www.w3.org/2001/XMLSchema" exporter="jBPMN NB" exporterVersion="0.3" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:java="http://jcp.org/en/jsr/detail?id=270" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:jbpmn="http://jbpmn.java.net" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<bpmn:process isClosed="false" name="newBPMNProcess" id="_14603447051141">
<bpmn:scriptTask isForCompensation="false" startQuantity="1" completionQuantity="1" name="हॉलीवुड" id="_1460344716047">
bpmn:extensionElements
jbpmn:ShapeDesign{"outer":{"background":{"startColor":"RGB(255,255,255)","endColor":"RGB(226,232,236)"},"border":{"color":"RGB(108,142,183)","width":2.5}},"inner":{"background":{"startColor":"RGB(255,255,255)","endColor":"RGB(255,248,159)"},"border":{"color":"RGB(30,69,123)","width":1.0}}}/jbpmn:ShapeDesign
/bpmn:extensionElements
/bpmn:scriptTask
/bpmn:process
bpmndi:BPMNDiagram
<bpmndi:BPMNPlane bpmnElement="_14603447051141" id="_14603447051152_p">
<bpmndi:BPMNShape bpmnElement="_1460344716047" id="_1460344716047_gui">
<omgdc:Bounds x="227.0" y="154.0" width="80.0" height="64.0"/>
bpmndi:BPMNLabel
<omgdc:Bounds x="248.0" y="226.0" width="35.0" height="17.0"/>
/bpmndi:BPMNLabel
/bpmndi:BPMNShape
/bpmndi:BPMNPlane
/bpmndi:BPMNDiagram
/bpmn:definitions


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@jGauravGupta
Copy link
Owner

Please attach file and share your netbeans version.

@qaymuic
Copy link
Author

qaymuic commented Apr 11, 2016

netbeans 8.1
bpmn file as follows:

<extensionElements>
 <tns:import name="java.util.*" />
</extensionElements>
<!-- nodes -->
<scriptTask id="_1460344716047" name="艾默软件" scriptFormat="http://www.java.com/java" >
  <script>System.out.println(new Date());</script>
</scriptTask>

<!-- connections -->

bpmndi:BPMNDiagram
<bpmndi:BPMNPlane bpmnElement="_14603447051141" >
<bpmndi:BPMNShape bpmnElement="_1460344716047" >
<dc:Bounds x="227" y="154" width="80" height="64" />
/bpmndi:BPMNShape
/bpmndi:BPMNPlane
/bpmndi:BPMNDiagram

@jGauravGupta
Copy link
Owner

This issue is still not reproducible (same Chinese text is working fine in my environment) :

newbpmnprocess bpmn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants