[jboss-jira] [JBoss JIRA] Created: (GPD-231) Editing task node's name in source view breaks XML, if used

N/A N/A (JIRA) jira-events at lists.jboss.org
Tue Jul 22 10:34:17 EDT 2008


Editing task node's name in source view breaks XML, if used
-----------------------------------------------------------

                 Key: GPD-231
                 URL: https://jira.jboss.org/jira/browse/GPD-231
             Project: JBoss jBPM GPD
          Issue Type: Bug
    Affects Versions: jBPM jPDL Designer 3.1.3.SP2
         Environment: Windows XP SP3, Eclipse 3.3
            Reporter: N/A N/A
            Assignee: Koen Aers


When switching to source code view and manually editing a task node's name which is used by an existing transition, breaks the XML. You can enter whatever you like, but the task's name attribute stays the same while the transition's to-attribute is cluttered with parts of the characters you have enter. Depending on whether you use backspace, the cursor may also jump around in the document, erasing some unrelated code.

Here is an example:

BEFORE

<start-state name="First step">
  <task name="First step" swimlane="Role">
    <controller>
      <variable access="read,write,required" name="someVar" mapped-name="Some Var"/>
    </controller>
  </task>
  <transition to="Second step"/>
</start-state>
<task-node name="Second Step"> <!-- CHANGE THIS -->
  <task name="Second Step" swimlane="Second role">
    <controller>
      <variable access="read,write,required" name="someOtherVar" mapped-name="Some Other Var"/>
    </controller>
  </task>
  <transition to="Third step"/>
</task-node>

AFTER

<start-state name="First step">
  <task name="First step" swimlane="Role">
    <controller>
      <variable access="read,write,required" name="someVar" mapped-name="Some Var"/>
    </controller>
  </task>
  <transition to="Second"/> <!-- broken -->
</start-state>
<task-node name="Second Ste> <!-- broken -->
  <task nme="Second Step" swimlane="Second role"> <!-- broken (nme instead of name) -->
    <controller>
      <variable access="read,write,required" name="someOtherVar" mapped-name="Some Other Var"/>
    </controller>
  </task>
  <transition to="Third step"/>
</task-node>

Another option is adding something to the node's name... First look at the original once more, when trying to add " Part 1" to "Second Step" (so it should be Second Step Part 1) we get this as the result:

<start-state name="First step">
  <task name="First step" swimlane="Role">
    <controller>
      <variable access="read,write,required" name="someVar" mapped-name="Some Var"/>
    </controller>
  </task>
  <transition to="Second step Part 1"/> <!-- changed, even though i edited the task-node's name-attribute -->
</start-state>
<task-node name="Second Step"> <!-- unchanged -->
  <task name="Second Step" swimlane="Second role">
    <controller>
      <variable access="read,write,required" name="someOtherVar" mapped-name="Some Other Var"/>
    </controller>
  </task>
  <transition to="Third step"/>
</task-node>

This can be worked around by first changing the transition's to-attribute to something that isn't used, but it's nonetheless a bug which causes some grief.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list