cancel
Showing results for 
Search instead for 
Did you mean: 

Constructing BPMN 2.0.XML manually with only process related XML tags and deploying the same

vijoyv
Champ in-the-making
Champ in-the-making
Hi,

I am new to Activiti (5.19.0.2) and created an BPMN 2.0 XML with only process related tags and was trying deploy the same to Activiti Engine using Activiti Explorer. Obviously, it is giving exceptions. it is looking for BPMNDI tags and elements. Is there any way to deploy the skeleton process definition alone to BPMN engine and get the work done? I am not interested in the diagram/visual part.
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
yes, this one works in jUnit tests


<?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" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC"
xmlnsSmiley Surprisedmgdi="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="multipleServiceInvocations">
  <startEvent id="startevent1" name="Start" />
  <serviceTask id="servicetask1" name="Create User Dave Wersh And Membership"
   activiti:class="org.activiti.engine.test.bpmn.servicetask.CreateUserAndMembershipTestDelegate" />
  <sequenceFlow id="flow1" name="" sourceRef="startevent1"
   targetRef="servicetask1" />
  <sequenceFlow id="flow2" name="" sourceRef="servicetask1"
   targetRef="endevent1" />
  <endEvent id="endevent1" name="End" />
</process>
</definitions>

Regards
Martin