cancel
Showing results for 
Search instead for 
Did you mean: 

[Eclipse] Diagram modifications removes data in XML file

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

I'am using Eclipse to create my Workflow. If I change something in the diagram (ie : just move the endEvent) and save. All code inside <activiti:string> is deleted.

Please look at the "<activiti:string>execution.setVariable('sgfwf_approveRejectOutcome',task.getVariable('sgfwf_approveRejectOutcome'));</activiti:string>"

xml file before a change in diagram

<?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:activiti="http://activiti.org/bpmn" 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" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://activiti.org/bpmn20">
  <process id="Simple" name="Adhoc Activiti Process 08:33">
    <startEvent id="start" name="Start" activiti:formKey="sgfwf:submitStart"></startEvent>
    <userTask id="modifyReview" name="Add/Modify Data, Accept or Reject" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="sgfwf:modifyReviewTask">
      <extensionElements>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string>execution.setVariable('sgfwf_approveRejectOutcome',task.getVariable('sgfwf_approveRejectOutcome'));</activiti:string>
          </activiti:field>

xml file after a change in diagram
<?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:activiti="http://activiti.org/bpmn" 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" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://activiti.org/bpmn20">
  <process id="MyProcess" name="Adhoc Activiti Process 08:33">
    <startEvent id="start" name="Start" activiti:formKey="sgfwf:submitStart"></startEvent>
    <userTask id="modifyReview" name="Add/Modify Data, Accept or Reject" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="sgfwf:modifyReviewTask">
      <extensionElements>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string></activiti:string>
          </activiti:field>

I am using Eclipse Indigo Service Release 1, Build id: 20110916-0149, WinXP SP3,   Activiti Eclipse BPMN 2.0 Designer   5.8.0.

Thank you
14 REPLIES 14

trademak
Star Contributor
Star Contributor
Hi,

Thanks for posting the issues you're facing with the Activiti Designer.
Could you post them on the user forum in the future, and if possible include a description so I can reproduce them?
I'll release a 5.9.1 version today or tomorrow with these bugs fixed.

Thanks,

tse
Champ in-the-making
Champ in-the-making
Default-flow is never stored on exclusive gateway:

* Setting the sequence flows coming out from exclusive gateway, then setting the default flow does not set in xml definition any element/attribute corresponding to default flow.
* Setting default-flow never changes the xml.

Designer version: 5.11.2


*** Default flow does work on service tasks ***

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Please read the first sentence in the post before yours…

elkammar
Champ in-the-making
Champ in-the-making
Hi, I just wanted to check if this issue is resolved or if there's any workaround for it? I'm still facing this issue with Activiti 5.18. Thank you!

jbarrez
Star Contributor
Star Contributor
There is currently a pull request open for fixing this issue.