AnsweredAssumed Answered

BPMN2.0style constructs doesnot execute on activiti engine

Question asked by rashmis on Nov 22, 2010
Latest reply on Nov 23, 2010 by rashmis
hi,

I have a BPMN2.0 compliant xml as below which I wish to execute using the Activiti Execution Engine. This xml was NOT created through the Activiti modeler (neither Signavio nor IDE).

<?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"    
typeLanguage="http://www.w3.org/2001/XMLSchema
expressionLanguage="http://www.w3.org/1999/XPath"    targetNamespace="http://fox.camunda.com/model/98a0678d9e194de9b3d9284886c3">

<process isExecutable="true" id="ticket">
    
      <startEvent name="Ticketing System" id="Start"></startEvent>
       <scriptTask name="Print ticket" scriptFormat="text/x-groovy" id="Script"><script><![CDATA[
                System.out.println("Printing Ticket!! ")
            ]]></script>
        </scriptTask>
      <endEvent id="End" />
     
      <sequenceFlow id="flow01" name="From Start to Script" sourceRef="Start" targetRef="Script"></sequenceFlow>
      <sequenceFlow id="flow02" name="From Script to End" sourceRef="Script" targetRef="End"></sequenceFlow>
           
     </process>
     </definitions>

Note: According to the BPMN2.0 specification document,  scriptFormat="text/x-groovy" is the way to represent the groovy script engine.

Please note that the above piece of xml works fine on the activiti execution engine, if i replace scriptFormat="text/x-groovy" with just "groovy" .

Does this mean that the BPMN2.0 specification constructs works on the activiti execution engine only if we mention them in an activiti specific way ?

Please help.

Thanks

Outcomes