flowable / flowable-engine

A compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.
https://www.flowable.org
Apache License 2.0
8.01k stars 2.63k forks source link

Cannot display text on exclusive gateway connecting line #246

Open smile2014 opened 7 years ago

smile2014 commented 7 years ago

Cannot display text on exclusive gateway connecting line

tijsrademakers commented 7 years ago

Could you provide more details about the issue you are seeing and maybe add a screenshot?

smile2014 commented 7 years ago

businessprocess models visual editor show-details

smile2014 commented 7 years ago

This question is about the modeler, mainly through it after the release of the text can not display on the process definition, please repair the bug.Below is the problem description screenshots of the problem (Flowable Modeler)

smile2014 commented 6 years ago

??????@tijsrademakers

tijsrademakers commented 6 years ago

It doesn't really help to add a lot of questions marks to a post. Yes, you are right that this should be fixed. Maybe you can help with finding a solution for the issue?

smile2014 commented 6 years ago

Ok, you won, thank you.

smile2014 commented 6 years ago

BpmDisplayJsonConverter.java

protected void processElements(Collection elementList, BpmnModel model, ArrayNode elementArray, ArrayNode flowArray, GraphicInfo diagramInfo) {

    for (FlowElement element : elementList) {
        // ignore data objects in visual representation
        if (DataObject.class.isInstance(element)) {
            continue;

        } else if (element instanceof SequenceFlow) {
            ObjectNode elementNode = objectMapper.createObjectNode();
            SequenceFlow flow = (SequenceFlow) element;
            elementNode.put("id", flow.getId());
            elementNode.put("name", flow.getName()); -------
            elementNode.put("type", "sequenceFlow");
            elementNode.put("sourceRef", flow.getSourceRef());