cancel
Showing results for 
Search instead for 
Did you mean: 

Xml elements disappearing when saving diagram

pfeiffer
Champ in-the-making
Champ in-the-making
In the altest version of the activiti designer eclipse plugin I noticed some elements are disappearing after saving the diagram.

For example

Before:
<userTask id="reassign_reviewer" name="Reassign reviewer" activiti:candidateUsers="role(Reviewer)">
      <documentation>Assign a new reviewer for this Issue.</documentation>
      <extensionElements>
        <activiti:formProperty id="selectedReviewer" name="Select Reviewer" type="user" required="true" proposedValues="${proposedUsers}"></activiti:formProperty>
        <activiti:taskListener event="create" class="com.collibra.dgc.core.workflow.activiti.tasklistener.ProposedValuesTaskListener">

<userTask id="reassign_reviewer" name="Reassign reviewer" activiti:candidateUsers="role(Reviewer)">
      <documentation>Assign a new reviewer for this Issue.</documentation>
      <extensionElements>
        <activiti:formProperty id="selectedReviewer" name="Select Reviewer" type="user" required="true"></activiti:formProperty>

I know the disappearing attribute is a custom attribute, but is it normal they disappear when saving ?

I also noticed that all my executionlisteners on <userTask> elements are gone after saving.

Is this a bug or should I be doing these things in another way ?
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

Yes custom attributes are currently not there anymore after saving. The way it works is that the diagram creates an XML of the modeled diagram every time you save. And custom attributes are not part of the modeled diagram. If you manually type an listener that should be picked up by the Designer, so if those are disappearing after saving then that's a bug. Can you create a JIRA for that?

Best regards,