cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy Modeler-generated BPMN to activiti

jjfd
Champ in-the-making
Champ in-the-making
Hi everyone and I'm a newbie to activiti.
I use activiti-modeler on tomcat to create a very simple BPMN.
its bpmn20.xml is like:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:signavio="http://www.signavio.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="Signavio Process Editor, http://www.signavio.com" exporterVersion="" expressionLanguage="http://www.w3.org/1999/XPath" id="sid-8473055e-0e76-4ff5-b3a5-864429ff2301" targetNamespace="http://www.signavio.com/bpmn20" typeLanguage="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
   <process id="sid-f8d11382-4738-42b1-9f8b-ea48de0f4355" isExecutable="false">
      <startEvent id="sid-E7F371DB-9850-4319-907C-F737B0C3A79E" name="">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <outgoing>sid-DC7892F7-1EEC-40A3-8E8A-0042311C8858</outgoing>
      </startEvent>
      <userTask completionQuantity="1" id="sid-50AC44E8-43A5-45AD-9A00-991C025F9D7E" implementation="webService" isForCompensation="false" name="Ope" startQuantity="1">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-DC7892F7-1EEC-40A3-8E8A-0042311C8858</incoming>
         <outgoing>sid-2A81E1E7-A092-4B6B-A00E-173D35F37FFC</outgoing>
      </userTask>
      <endEvent id="sid-7BDF9812-7DE5-45C4-843C-5ADB0561413F" name="">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
         </extensionElements>
         <incoming>sid-2A81E1E7-A092-4B6B-A00E-173D35F37FFC</incoming>
      </endEvent>
      <sequenceFlow id="sid-DC7892F7-1EEC-40A3-8E8A-0042311C8858" name="" sourceRef="sid-E7F371DB-9850-4319-907C-F737B0C3A79E" targetRef="sid-50AC44E8-43A5-45AD-9A00-991C025F9D7E"/>
      <sequenceFlow id="sid-2A81E1E7-A092-4B6B-A00E-173D35F37FFC" name="" sourceRef="sid-50AC44E8-43A5-45AD-9A00-991C025F9D7E" targetRef="sid-7BDF9812-7DE5-45C4-843C-5ADB0561413F"/>
   </process>
   <bpmndi:BPMNDiagram id="sid-d6bf55dd-6250-4e5c-a32d-600b46ed71a7">
      <bpmndi:BPMNPlane bpmnElement="sid-f8d11382-4738-42b1-9f8b-ea48de0f4355" id="sid-64b6a26f-211f-476d-a8dc-e77526a5c86f">
         <bpmndi:BPMNShape bpmnElement="sid-E7F371DB-9850-4319-907C-F737B0C3A79E" id="sid-E7F371DB-9850-4319-907C-F737B0C3A79E_gui">
            <omgdc:Bounds height="30.0" width="30.0" x="135.0" y="260.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-50AC44E8-43A5-45AD-9A00-991C025F9D7E" id="sid-50AC44E8-43A5-45AD-9A00-991C025F9D7E_gui">
            <omgdc:Bounds height="80.0" width="100.0" x="260.0" y="235.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNShape bpmnElement="sid-7BDF9812-7DE5-45C4-843C-5ADB0561413F" id="sid-7BDF9812-7DE5-45C4-843C-5ADB0561413F_gui">
            <omgdc:Bounds height="28.0" width="28.0" x="447.0" y="261.0"/>
         </bpmndi:BPMNShape>
         <bpmndi:BPMNEdge bpmnElement="sid-2A81E1E7-A092-4B6B-A00E-173D35F37FFC" id="sid-2A81E1E7-A092-4B6B-A00E-173D35F37FFC_gui">
            <omgdi:waypoint x="360.0" y="275.0"/>
            <omgdi:waypoint x="447.0" y="275.0"/>
         </bpmndi:BPMNEdge>
         <bpmndi:BPMNEdge bpmnElement="sid-DC7892F7-1EEC-40A3-8E8A-0042311C8858" id="sid-DC7892F7-1EEC-40A3-8E8A-0042311C8858_gui">
            <omgdi:waypoint x="165.0" y="275.0"/>
            <omgdi:waypoint x="260.0" y="275.0"/>
         </bpmndi:BPMNEdge>
      </bpmndi:BPMNPlane>
   </bpmndi:BPMNDiagram>
</definitions>

I can upload this file to activiti through probe. and I can start the process through explorer.
But after that when i use probe to check the process instances and the page gives Web Script Status 500 - Internal Error
in database, there is no record of the started instance…

I wonder how to fix this. I cannot deploy and run a self-generated BPMN to activiti through web pages?
Thanks a lot!
5 REPLIES 5

jjfd
Champ in-the-making
Champ in-the-making
OK, i managed to execute a test process. But when i enter the process instance page in probe, error continues.
Also when the model is imported, in BPMN file the humanperformer element has a resourceref property with no value.
This hinders activiti from successfully importing the BPMN. I have to delete the property manually. This is another problem.
The third is, After importing, the model's name in database is null, which requires also manual edit to show it on explorer page.
I wonder which property of the BPMN file implies process's name in database?

trademak
Star Contributor
Star Contributor
Hi,

Based on the BPMN 2.0 XML file you attached, I can see that the userTask doesn't contain any assignment logic.
So there is no assignee or candidate user and that's not right for a userTask. Also the implementation attribute says it's a webservice, but I think this is ignore by the Activiti Engine.
So if you model an executable process it should be no problem to deploy it on the Activiti Modeler.
Although you may look into the Activiti Designer, because that tool is even better suited to create executable processes.

Best regards,

jjfd
Champ in-the-making
Champ in-the-making
Dear trademak

Thank you very much for reply.

Hi,

Based on the BPMN 2.0 XML file you attached, I can see that the userTask doesn't contain any assignment logic.
So there is no assignee or candidate user and that's not right for a userTask. Also the implementation attribute says it's a webservice, but I think this is ignore by the Activiti Engine.
Best regards,
Yes, you are right. I added assignment and the task can be seen at worklist.

But when importing to database, the name_ column is still null. This makes Processes in probe error.

vyklag
Champ in-the-making
Champ in-the-making
How can i make my activiti engine work?

frederikherema1
Star Contributor
Star Contributor
LOL, you'll have to be a bit more specific with your question…