AnsweredAssumed Answered

Deplyoing Shell-ServiceTasks doesn't work

Question asked by dcs1 on Aug 6, 2013
Latest reply on Sep 21, 2015 by greglee
Hello everybody,

i am not very familiar with activiti so it may be a stupid question. I have installed Activiti 5.13 on a centOs-machine which has a TomCat6 and a mysql-database. I have change the configuration to work with the mysql-database. All other configuration-files have default values.
My first scenario is very simple, but doesn't work. I have Start -> ServiceTask(Shell) -> End. I tried to create it in the BPM Modeler and with the Designer in Eclipse. The Import works, but when i want to deploy it, it always says
Create of BPMN XML failed
Errors while parsing: One of the attributes 'class','delegateExpression','type','operation', or 'expression is mandatory on serviceTask.|servicetask1|line 5|column 83'

This is my bpmn-file:
<c><?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="" xmlns:xsi="" xmlns:activiti="" xmlns:bpmndi="" xmlns:omgdc="" xmlns:omgdi="" typeLanguage="" expressionLanguage="" targetNamespace="">
  <process id="myProcess" name="My process" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <serviceTask id="servicetask1" name="Service Task" type="shell">
         <activiti:field name="command" stringValue="cmd" /> 
         <activiti:field name="arg1" stringValue="/c" /> 
         <activiti:field name="arg2" stringValue="echo" /> 
         <activiti:field name="arg3" stringValue="EchoTest" /> 
         <activiti:field name="wait" stringValue="true" /> 
         <activiti:field name="outputVariable" stringValue="resultVar" /> 
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="servicetask1"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow2" sourceRef="servicetask1" targetRef="endevent1"></sequenceFlow>
  <bpmndi:BPMNDiagram id="BPMNDiagram_myProcess">
    <bpmndi:BPMNPlane bpmnElement="myProcess" id="BPMNPlane_myProcess">
      <bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
        <omgdc:Bounds height="55.0" width="105.0" x="550.0" y="230.0"></omgdc:Bounds>
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="470.0" y="240.0"></omgdc:Bounds>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="710.0" y="240.0"></omgdc:Bounds>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="505.0" y="257.0"></omgdi:waypoint>
        <omgdi:waypoint x="550.0" y="257.0"></omgdi:waypoint>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="655.0" y="257.0"></omgdi:waypoint>
        <omgdi:waypoint x="710.0" y="257.0"></omgdi:waypoint>

I did a lot of search on the Guide and the net, but couldn't find any solution for my problem. I hope you can help me.