valb3r / flowable-bpmn-intellij-plugin

Flowable, Activiti, Camunda BPMN engines process editor plugin for IntelliJ. Pure Kotlin (and some Java)
https://plugins.jetbrains.com/plugin/14318-flowable-bpmn-visualizer
MIT License
157 stars 31 forks source link

I installed version 0.5.0 on my Mac Intellij, installed the Plugin right-clicked and viewed BPM (Flowable) Diagram ... I can't see anything #324

Closed derekwwest closed 1 year ago

derekwwest commented 1 year ago

I can't see or edit any BPMN diamgrams (I am on a Mac and using Intellij IDEA 20221.1 (Ultimate Edition) I installed version 0.5.0 on my Mac Intellij, installed the Plugin right-clicked and viewed BPM (Flowable) Diagram ... I can't see anything A clear and concise description of what the bug is.

To Reproduce

  1. Go to 'any bpm20.xml file in your project'
  2. Right Click on the xml and click viewed BPM (Flowable) Diagram
  3. I Don't see anything
  4. I can't navigate to any view of my BPMN diagram at all.

Was this thing tested on a mac?

BPMN definition

<?xml version="1.0" encoding="UTF-8"?>
<definitions
        xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
        xmlns:flowable="http://flowable.org/bpmn"
        targetNamespace="Examples">

    <process id="oneTaskProcess" name="The One Task Process">
        <startEvent id="theStart" />
        <sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask" />
        <userTask id="theTask" name="my task" flowable:assignee="kermit" />
        <sequenceFlow id="flow2" sourceRef="theTask" targetRef="theEnd" />
        <endEvent id="theEnd" />
    </process>

</definitions>
<?xml version="1.0" encoding="UTF-8"?>
<definitions
    xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
    xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
    xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
    xmlns:flowable="http://flowable.org/bpmn"
    typeLanguage="http://www.w3.org/2001/XMLSchema"
    expressionLanguage="http://www.w3.org/1999/XPath"
    targetNamespace="http://www.flowable.org/processdef">
    <process id="newTemplateCreationRequest"
      name="A simple request for a new template." isExecutable="true">
        <startEvent id="start" />
        <sequenceFlow sourceRef="start" targetRef="reviewTemplateRequest" />
        <userTask id="reviewTemplateRequest" name="Review submitted template request"
          flowable:candidateGroups="editors" />
        <sequenceFlow sourceRef="reviewTemplateRequest" targetRef="decision" />
        <exclusiveGateway id="decision" />
        <sequenceFlow sourceRef="decision" targetRef="templateRequestApproved">
            <conditionExpression xsi:type="tFormalExpression">
                <![CDATA[${approved}]]>
            </conditionExpression>
        </sequenceFlow>
        <sequenceFlow sourceRef="decision" targetRef="templateRequestApprovedRejected">
            <conditionExpression xsi:type="tFormalExpression">
                <![CDATA[${!approved}]]>
            </conditionExpression>
        </sequenceFlow>
        <serviceTask id="templateRequestApproved" name="Publish the approved template Metadata."
          flowable:class="com.baeldung.service.PublishArticleService" />
        <sequenceFlow sourceRef="templateRequestApproved" targetRef="end" />
        <serviceTask id="templateRequestApprovedRejected" name="Send out rejection email"
          flowable:class="com.baeldung.service.SendMailService" />
        <sequenceFlow sourceRef="templateRequestApprovedRejected" targetRef="end" />
        <endEvent id="end" />
    </process>
</definitions>

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

IntelliJ version (please complete the following information):

Additional context Add any other context about the problem here.

derekwwest commented 1 year ago

Based off of this issue I added a few xml tags ... Now I just get a [Loading...] that never completes and I don't see a process anywhere that is doing anything?

valb3r commented 1 year ago

@DerekWWestAwesomeDeveloper Thanks for your feedback.

Was this thing tested on a Mac?

Yes

As for yours

BPMN definition

You should see these errors

Screenshot 2022-11-12 at 07 55 26

:

Screenshot 2022-11-12 at 07 54 44

Because the diagram is invalid, like you saw at https://github.com/valb3r/flowable-bpmn-intellij-plugin/issues/225

Now I just get a [Loading...] that never completes and I don't see a process anywhere that is doing anything?

Please provide the file you are testing on. Also, did you observe any exception (red blinking exclamation sign at the right corner of IntelliJ). Manual editing of BPMN file is not something what is to be expected to be easy

Another question - Why not to create the diagram directly inside plugin, why you are editing XML file manually?

valb3r commented 1 year ago

Closing as stale