cancel
Showing results for 
Search instead for 
Did you mean: 

upload Deployment fails

mokematt
Champ in-the-making
Champ in-the-making
Hi,

i want to add a simple deployment to activiti and log in as 'kermit' and upload this deployment containing a start event, a service task and an end event:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn-extensions" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://sourceforge.net/bpmn/definitions/_1340262474100" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="Yaoqiang BPMN Editor" exporterVersion="2.0" expressionLanguage="http://www.w3.org/1999/XPath" id="_1340262474100" name="" targetNamespace="http://sourceforge.net/bpmn/definitions/_1340262474100" typeLanguage="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://bpmn.sourceforge.net/schemas/BPMN20.xsd">
  <process id="_1" isClosed="false" isExecutable="true" processType="None">
    <startEvent id="_2" isInterrupting="true" name="Start Event" parallelMultiple="false">
      <outgoing>_9</outgoing>
    </startEvent>
    <endEvent id="_4" name="End Event">
      <incoming>_10</incoming>
    </endEvent>
    <serviceTask  activiti:class="org.activiti.examples.bpmn.servicetask.ToUppercase" completionQuantity="1" id="_8" name="Service Task" startQuantity="1">
      <incoming>_9</incoming>
      <outgoing>_10</outgoing>
    </serviceTask>
    <sequenceFlow id="_9" sourceRef="_2" targetRef="_8"/>
    <sequenceFlow id="_10" sourceRef="_8" targetRef="_4"/>
  </process>
</definitions>

I got this error message: "One of the attributes 'class', 'delegateExpression', 'type', 'operation', or 'expression' is mandatory on serviceTask. | Test-Prozess.bpmn20.xml | line 10 | column 156"

Why do i get this error? The class exists, it is a default class of the activiti-engine-examples and is described in the user guide.

thanks a lot for help
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Looks like you're using the wrong namespace URI for activiti:


xmlns:activiti="http://activiti.org/bpmn-extensions"

use this instead:


xmlns:activiti="http://activiti.org/bpmn"

mokematt
Champ in-the-making
Champ in-the-making
That's it, thank you very much.  Smiley Happy