These are chat archives for effektif/effektif

Jun 2015
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
Jun 18 2015 09:50
Have a look at BpmnTest.serialize, which round-trips to and from BPMN.
Basically, you use BpmnMapper.readFromString
Jun 18 2015 09:54
Thanx, I'll have a look
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="" xmlns:bpmndi="" xmlns:di="" xmlns:dc="" xmlns:xsi="" id="Definitions_1" targetNamespace="">
  <bpmn:process id="Process_1" isExecutable="false">
    <bpmn:startEvent id="StartEvent_1" name="Start Event">
    <bpmn:sequenceFlow id="SequenceFlow_0asd3ec" sourceRef="StartEvent_1" targetRef="ReceiveTask_1etnz07" />
    <bpmn:endEvent id="EndEvent_0ilz28b" name="End Event">
    <bpmn:sequenceFlow id="SequenceFlow_1w4611m" sourceRef="ReceiveTask_1etnz07" targetRef="EndEvent_0ilz28b" />
    <bpmn:receiveTask id="ReceiveTask_1etnz07" name="Script activity extern">
  <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: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" />
          <dc:Bounds x="215" y="110" width="90" height="20" />
      <bpmndi:BPMNShape id="EndEvent_0ilz28b_di" bpmnElement="EndEvent_0ilz28b">
        <dc:Bounds x="523" y="102" width="36" height="36" />
          <dc:Bounds x="496" y="138" width="90" height="20" />
      <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" />
          <dc:Bounds x="422" y="110" width="90" height="20" />
      <bpmndi:BPMNShape id="ReceiveTask_1etnz07_di" bpmnElement="ReceiveTask_1etnz07">
        <dc:Bounds x="311" y="80" width="100" height="80" />

btw: I am using MongoConfiguration

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