cancel
Showing results for 
Search instead for 
Did you mean: 

BPMN2.0style constructs doesnot execute on activiti engine

rashmis
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
The spec does indeed say we need to use a mime-type.
But the big problem here, is that there is no clear definition of what the mimetype for Groovy is (or JSP EL, or beanshell or or …)

But it is a valid request (Falko also already mentioned this), altough I believe he used a different mimetype.
Anyway, I'll look into it and see if I can add it to the engine, to be more spec-compliant. Thanks for the heads up!

rashmis
Champ in-the-making
Champ in-the-making
Mr. Barrez, Great fan Smiley Happy