These are chat archives for effektif/effektif

18th
Jun 2015
jblankendaal
@jblankendaal
Jun 18 2015 09:47
Hi. I'm trying to read a workflow definition from a Bpmn file. However, the documentation has a todo, and in the Tests I can't find example code. Can you tell me how I do this?
Peter Hilton
@hilton
Jun 18 2015 09:50
Have a look at BpmnTest.serialize, which round-trips to and from BPMN.
Basically, you use BpmnMapper.readFromString
jblankendaal
@jblankendaal
Jun 18 2015 09:54
Thanx, I'll have a look
jblankendaal
@jblankendaal
Jun 18 2015 11:10

I found the code to read an bpmn, but I get an error when deploying, and when I debug the activity is not found as well...
Can you test this for me?

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
  <bpmn:process id="Process_1" isExecutable="false">
    <bpmn:startEvent id="StartEvent_1" name="Start Event">
      <bpmn:outgoing>SequenceFlow_0asd3ec</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:sequenceFlow id="SequenceFlow_0asd3ec" sourceRef="StartEvent_1" targetRef="ReceiveTask_1etnz07" />
    <bpmn:endEvent id="EndEvent_0ilz28b" name="End Event">
      <bpmn:incoming>SequenceFlow_1w4611m</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="SequenceFlow_1w4611m" sourceRef="ReceiveTask_1etnz07" targetRef="EndEvent_0ilz28b" />
    <bpmn:receiveTask id="ReceiveTask_1etnz07" name="Script activity extern">
      <bpmn:incoming>SequenceFlow_0asd3ec</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1w4611m</bpmn:outgoing>
    </bpmn:receiveTask>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="173" y="102" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0asd3ec_di" bpmnElement="SequenceFlow_0asd3ec">
        <di:waypoint xsi:type="dc:Point" x="209" y="120" />
        <di:waypoint xsi:type="dc:Point" x="311" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="215" y="110" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_0ilz28b_di" bpmnElement="EndEvent_0ilz28b">
        <dc:Bounds x="523" y="102" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="496" y="138" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1w4611m_di" bpmnElement="SequenceFlow_1w4611m">
        <di:waypoint xsi:type="dc:Point" x="411" y="120" />
        <di:waypoint xsi:type="dc:Point" x="523" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="422" y="110" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ReceiveTask_1etnz07_di" bpmnElement="ReceiveTask_1etnz07">
        <dc:Bounds x="311" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>

btw: I am using MongoConfiguration

Peter Hilton
@hilton
Jun 18 2015 12:34
Not right away, I’m afraid - am in the middle of something else.