Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-14845

Workflow Editor: fixes and improvements

    Details

    • Type: Story
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: UI
    • Labels:

      Description

      Fixes / improvements to the Workflow Editor:

      (1) When you open the editor or create a new "blank" workflow, the XML attributes on the top-level element are not what they need to be. They must be:

      <?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:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" 
        xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
        xmlns:flowable="http://flowable.org/bpmn"
        id="definitions" 
        targetNamespace="Examples"
        xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
      

      (2) I'd like two buttons at the top of the XML editor view:

      (a) "Reformat" which reformats the XML
      (b) "Validate" which invokes the new model validation REST endpoint

      (3) When you copy-n-paste XML into the editor and there is no diagram specified, we currently insert some diagram XML to prevent errors. There is an error in this XML.

      <bpmndi:BPMNDiagram xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" id="BPMNDiagram_1">
          <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"/>
      </bpmndi:BPMNDiagram>
      

      ^^^ notice the bpmnElement="Process_1", which needs to have a value that matches the "id" attribute of what I pasted into the editor.

      For example, if I pasted:

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions id="definitions" 
        xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
        xmlns:flowable="http://flowable.org/bpmn"
        targetNamespace="Examples">
      
        <process id="businessRuleProcess" name="Invoke Business Rule Task">
      ...
      

      ^^^ you see that I have a 2nd-level "process" attribute with id="businessRuleProcess"

      This is the ID that needs to be used in the inserted diagram XML.

      Also, there can be multiple "process" elements, so it would be best if you just picked the first one.

      (4) It would be nice if the scriptTask XML element had the following attribute on it by default when the editor creates them:

      scriptFormat="groovy"
      

      (5) There is a minor bug with XML editor line-numbers disappearing when you scroll the editor. You only see the line numbers that existed before scrolling.

        Attachments

          Activity

            People

            • Assignee:
              jason.browne Jason Browne
              Reporter:
              travis.haagen Travis Haagen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: