AnsweredAssumed Answered

Changes made in activiti bpmn files are not getting reflected

Question asked by paulclinton on Sep 26, 2018
Latest reply on Sep 28, 2018 by paulclinton



I'm was working on creating a custom workflow. I did exactly as done in the tutorial by Jeff Potts. Yes it did work fine. 


But one issue I'm facing is that, Whenever I make changes in the custom workflow (i.e HelloWorld.bpmn) It is not getting reflected in the final outcome.


This is my HelloWorld.bpmn file in xml

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="" xmlns:xsi="" xmlns:xsd="" xmlns:activiti="" xmlns:bpmndi="" xmlns:omgdc="" xmlns:omgdi="" typeLanguage="" expressionLanguage="" targetNamespace="">
<process id="helloWorld" name="helloWorld" isExecutable="true">
<startEvent id="startevent1" name="Start"></startEvent>
<userTask id="usertask1" name="User Task" activiti:assignee="${}"></userTask>
<endEvent id="endevent1" name="End"></endEvent>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="usertask1">
<activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
<activiti:field name="script">
<activiti:string><![CDATA[logger.log("Hello, World!");]]></activiti:string>
<sequenceFlow id="flow2" sourceRef="usertask1" targetRef="endevent1"></sequenceFlow>
<bpmndi:BPMNDiagram id="BPMNDiagram_helloWorld">
<bpmndi:BPMNPlane bpmnElement="helloWorld" id="BPMNPlane_helloWorld">
<bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
<omgdc:Bounds height="35.0" width="35.0" x="40.0" y="120.0"></omgdc:Bounds>
<bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
<omgdc:Bounds height="55.0" width="105.0" x="190.0" y="110.0"></omgdc:Bounds>
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
<omgdc:Bounds height="35.0" width="35.0" x="440.0" y="120.0"></omgdc:Bounds>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="75.0" y="137.0"></omgdi:waypoint>
<omgdi:waypoint x="190.0" y="137.0"></omgdi:waypoint>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="295.0" y="137.0"></omgdi:waypoint>
<omgdi:waypoint x="440.0" y="137.0"></omgdi:waypoint>


This works fine. I get Hello, World! printed in the logs. But when I change the log message, say for example

<activiti:string><![CDATA[logger.log("Hello !!  ");]]></activiti:string>

and do a save and execute ./


When I execute this workflow, I get the previous message in the logs i.e Hello, World! and not the new log message (ieHello !!). Why is this happening?


I'm having issues because of this, evertime I need some changes in my custom workflow, I have to create a new file and then deploy it. 


Would be thankful if anyone could clarify this.