cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Modeler (5.17.0) issue with class fields in service tasks

tc1
Champ in-the-making
Champ in-the-making
Hi everybody,

we are using the current Activiti Modeler and the Activiti Designer to create new process diagramms.

For example:
I created a new process in Eclipse with a service task and a class field entry. After that, I imported the process into the Modeler tried to change the class field of the service task. But after clicking the option, nothing happend. I tried different browser, but always the same. The only workaround is, to export the diagramm, edit it in Eclipse and import it afterwards in the Modeler.

Is that a bug?

[img=600x480]http://s17.postimg.org/id1jdk3sf/service_task_class_field.png[/img]

[img=600x280]http://s21.postimg.org/9u8bxza9z/service_task_class_field_clicked.png[/img]

Regards,
Thomas


<?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:xsd="http://www.w3.org/2001/XMLSchema" 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://www.activiti.org/processdef">
  <process id="process" isExecutable="true">
    <startEvent id="sid-83121F10-77B4-4D83-9C69-26D67D2F6ED6"></startEvent>
    <sequenceFlow id="sid-D6AC9AC0-C695-40E3-8371-7D3A7B8B8963" sourceRef="sid-83121F10-77B4-4D83-9C69-26D67D2F6ED6" targetRef="sid-A94DEC40-15CC-4255-B1A3-6EE50C85809E"></sequenceFlow>
    <serviceTask id="sid-A94DEC40-15CC-4255-B1A3-6EE50C85809E" name="Test Delegate" activiti:class="Test">
      <extensionElements>
        <activiti:field name="function">
          <activiti:string><![CDATA[mail]]></activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <exclusiveGateway id="sid-E72A8388-57C9-4F80-9694-78B5C2BB9584"></exclusiveGateway>
    <sequenceFlow id="sid-07FAAE0E-CC58-4D92-AFA9-3B2EC3E7DC4F" sourceRef="sid-A94DEC40-15CC-4255-B1A3-6EE50C85809E" targetRef="sid-E72A8388-57C9-4F80-9694-78B5C2BB9584"></sequenceFlow>
    <userTask id="sid-166CA45E-6142-46BB-ACF1-A4E9061D89EF" name="Task 1" activiti:candidateGroups="sales"></userTask>
    <userTask id="sid-60955DBC-300A-479D-8FA3-0BC249851258" name="Task 2" activiti:candidateGroups="sales"></userTask>
    <exclusiveGateway id="sid-1CD72D88-7EC4-4EDA-94B1-57B940E61ED3"></exclusiveGateway>
    <sequenceFlow id="sid-25B332E9-EA91-4944-8381-EC8F3B924FFB" sourceRef="sid-166CA45E-6142-46BB-ACF1-A4E9061D89EF" targetRef="sid-1CD72D88-7EC4-4EDA-94B1-57B940E61ED3"></sequenceFlow>
    <endEvent id="sid-3302EEB7-2CF6-4520-AFE9-D12005CE59E9"></endEvent>
    <sequenceFlow id="sid-BA4BEA83-A621-4FAC-840C-8E7699C8FAF8" sourceRef="sid-1CD72D88-7EC4-4EDA-94B1-57B940E61ED3" targetRef="sid-3302EEB7-2CF6-4520-AFE9-D12005CE59E9"></sequenceFlow>
    <sequenceFlow id="sid-45D9DC59-0076-45BA-B7F0-A7DDFADC302B" sourceRef="sid-60955DBC-300A-479D-8FA3-0BC249851258" targetRef="sid-1CD72D88-7EC4-4EDA-94B1-57B940E61ED3"></sequenceFlow>
    <sequenceFlow id="sid-F567D8EA-4463-4FF5-8475-396CF521A792" name="result == true" sourceRef="sid-E72A8388-57C9-4F80-9694-78B5C2BB9584" targetRef="sid-166CA45E-6142-46BB-ACF1-A4E9061D89EF">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-AD5565DD-A441-4A33-A8B4-07A27E3D8E36" name="result == false" sourceRef="sid-E72A8388-57C9-4F80-9694-78B5C2BB9584" targetRef="sid-60955DBC-300A-479D-8FA3-0BC249851258">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==false}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_process">
    <bpmndi:BPMNPlane bpmnElement="process" id="BPMNPlane_process">
      <bpmndi:BPMNShape bpmnElement="sid-83121F10-77B4-4D83-9C69-26D67D2F6ED6" id="BPMNShape_sid-83121F10-77B4-4D83-9C69-26D67D2F6ED6">
        <omgdc:Bounds height="30.0" width="30.0" x="180.0" y="220.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-A94DEC40-15CC-4255-B1A3-6EE50C85809E" id="BPMNShape_sid-A94DEC40-15CC-4255-B1A3-6EE50C85809E">
        <omgdc:Bounds height="80.0" width="100.0" x="255.0" y="195.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-E72A8388-57C9-4F80-9694-78B5C2BB9584" id="BPMNShape_sid-E72A8388-57C9-4F80-9694-78B5C2BB9584">
        <omgdc:Bounds height="40.0" width="40.0" x="410.0" y="215.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-166CA45E-6142-46BB-ACF1-A4E9061D89EF" id="BPMNShape_sid-166CA45E-6142-46BB-ACF1-A4E9061D89EF">
        <omgdc:Bounds height="80.0" width="100.0" x="495.0" y="75.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-60955DBC-300A-479D-8FA3-0BC249851258" id="BPMNShape_sid-60955DBC-300A-479D-8FA3-0BC249851258">
        <omgdc:Bounds height="80.0" width="100.0" x="495.0" y="330.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-1CD72D88-7EC4-4EDA-94B1-57B940E61ED3" id="BPMNShape_sid-1CD72D88-7EC4-4EDA-94B1-57B940E61ED3">
        <omgdc:Bounds height="40.0" width="40.0" x="645.0" y="215.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-3302EEB7-2CF6-4520-AFE9-D12005CE59E9" id="BPMNShape_sid-3302EEB7-2CF6-4520-AFE9-D12005CE59E9">
        <omgdc:Bounds height="28.0" width="28.0" x="730.0" y="221.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-D6AC9AC0-C695-40E3-8371-7D3A7B8B8963" id="BPMNEdge_sid-D6AC9AC0-C695-40E3-8371-7D3A7B8B8963">
        <omgdi:waypoint x="210.0" y="235.0"></omgdi:waypoint>
        <omgdi:waypoint x="255.0" y="235.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-BA4BEA83-A621-4FAC-840C-8E7699C8FAF8" id="BPMNEdge_sid-BA4BEA83-A621-4FAC-840C-8E7699C8FAF8">
        <omgdi:waypoint x="685.0" y="235.0"></omgdi:waypoint>
        <omgdi:waypoint x="730.0" y="235.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-AD5565DD-A441-4A33-A8B4-07A27E3D8E36" id="BPMNEdge_sid-AD5565DD-A441-4A33-A8B4-07A27E3D8E36">
        <omgdi:waypoint x="430.1470588235294" y="254.85294117647058"></omgdi:waypoint>
        <omgdi:waypoint x="431.0" y="370.0"></omgdi:waypoint>
        <omgdi:waypoint x="495.0" y="370.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-45D9DC59-0076-45BA-B7F0-A7DDFADC302B" id="BPMNEdge_sid-45D9DC59-0076-45BA-B7F0-A7DDFADC302B">
        <omgdi:waypoint x="595.0" y="370.0"></omgdi:waypoint>
        <omgdi:waypoint x="665.0" y="370.0"></omgdi:waypoint>
        <omgdi:waypoint x="665.0" y="255.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-F567D8EA-4463-4FF5-8475-396CF521A792" id="BPMNEdge_sid-F567D8EA-4463-4FF5-8475-396CF521A792">
        <omgdi:waypoint x="430.1652892561983" y="215.16528925619835"></omgdi:waypoint>
        <omgdi:waypoint x="431.0" y="115.0"></omgdi:waypoint>
        <omgdi:waypoint x="495.0" y="115.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-25B332E9-EA91-4944-8381-EC8F3B924FFB" id="BPMNEdge_sid-25B332E9-EA91-4944-8381-EC8F3B924FFB">
        <omgdi:waypoint x="595.0" y="115.0"></omgdi:waypoint>
        <omgdi:waypoint x="665.0" y="115.0"></omgdi:waypoint>
        <omgdi:waypoint x="665.0" y="215.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-07FAAE0E-CC58-4D92-AFA9-3B2EC3E7DC4F" id="BPMNEdge_sid-07FAAE0E-CC58-4D92-AFA9-3B2EC3E7DC4F">
        <omgdi:waypoint x="355.0" y="235.0"></omgdi:waypoint>
        <omgdi:waypoint x="410.0" y="235.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

11 REPLIES 11

tc1
Champ in-the-making
Champ in-the-making
In addition here the console of chrome, after the click on "Class fields"

[img=640x480]http://s24.postimg.org/ivkith72d/chrome_console.png[/img]

jbarrez
Star Contributor
Star Contributor
Hmmm that seems like a bug. I'll look into it.

vasile_dirla
Star Contributor
Star Contributor
Just added an JIRA issue for it.
http://jira.codehaus.org/browse/ACT-2212

tc1
Champ in-the-making
Champ in-the-making
Sounds good. Thanks!

vasile_dirla
Star Contributor
Star Contributor
Fixed.
see pull request: #532

boekhold
Champ in-the-making
Champ in-the-making
Hi,

I just did a git clone of Activiti master and build the thing, and if I run the explorer, open a model, select a service task and click on "Class Fields" I get in the Chrome javascript console:

Uncaught TypeError: a.focus is not a function(anonymous function) @ angular-strap.min.js:8

I manually double-checked that the changes from pull request #532 are included in my git clone…

vasile_dirla
Star Contributor
Star Contributor
Hi,
Can you give some more details about your browser version and OS ?
I just tested this functionality in Chrome – Version 42.0.2311.90 (64-bit) on OS X 10.10.3 and there is no problem

No error in the browser's console and the popup is opening

Vasile,

I just tested this against your own fork on github:

git clone https://github.com/vasiledirla/Activiti.git
cd Activiti\distro
\Maarten\local\apache-ant-1.9.4\bin\ant clean distro
copy ..\modules\activiti-webapp-explorer2\target\activiti-webapp-explorer2-5.17.1-SNAPSHOT.war <clean tomcat webapps directory>

and it's still not working for me… The only thing unusual about the ant clean distro results is that I'm getting a lot of errors on building the documentation (javadoc & asciidoctor stuff), but the WAR seems to be generated just fine.

Can anybody else test this as well?

boekhold
Champ in-the-making
Champ in-the-making
Hi,

Windows 7 Professional Service Pack 1
Chrome Version 43.0.2357.18 beta-m

Weird… let me try Firefox 37.0.2… no, doesn't work either for me…

Clearing out my webapps directory and redeploying… nope, still nothing. I don't suppose that the Tomcat and/or java version would have anything to do with this?

I'll try with a new git clone from master (not sure when I can get around to that) and report back again.

OK, that was quicker than expected:

git clone https://github.com/Activiti/Activiti.git
cd Activity\distro
ant clean distro
clean out Tomcat webapps
copy new war file, edit db.properties/engine.properties
fire up tomcat
Same behaviour as before

Anything wrong with the above?!?