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="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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/test">
  <process id="myProcess" name="My process" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <serviceTask id="servicetask1" name="Service Task" type="shell">
      <extensionElements>
         <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" /> 
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="servicetask1"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow2" sourceRef="servicetask1" targetRef="endevent1"></sequenceFlow>
  </process>
  <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>
      <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>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="710.0" y="240.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <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>
      <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>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
</c>

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.

Regards
dcs

Outcomes