Hello, I am using flowable java library to generate the XML file for bpmn visualization. I built org.flowable.bpmn.model.BpmnModel and after that I used org.flowable.bpmn.converter.BpmnXMLConverter#convertToXML method. But the xml file in not render at all and therefore I decided to ask you for help. Why is not it working ? My xml file is this:
<?xml version="2.0" encoding="UTF-8"?>
<definitions
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:flowable="http://flowable.org/bpmn"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:omgdi="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.flowable.org/test">
<process id="atlas.organizationcontroller.organizationcontroller_sample_workflow-1.0" name="atlas.organizationcontroller.organizationcontroller_sample_workflow" isExecutable="true">
<documentation>organizationcontroller Sample workflow</documentation>
<extensionElements>
<flowable:executionListener event="start" expression="${flowableEngineExecutionListener.onStarted(execution, '{"input":null,"output":null,"variables":null,"retries":null,"listener":null,"id":"organizationcontroller_sample_workflow","wdlVersion":"1.0","namespace":"atlas.organizationcontroller","key":"atlas.organizationcontroller.organizationcontroller_sample_workflow-1.0","author":"anagarwal@company.com","version":"1.0","description":"organizationcontroller Sample workflow","payloadType":"com.company.atlas.organizationcontroller.examples.orchestrationworker.sampleworker.SampleWorkflowPayload","outputType":null,"stepNames":["provision"],"includes":null,"steps":[{"name":"provision","timeout":"300000","description":null,"repeat":null,"wait":null,"type":"DELEGATE","expression":null,"workflow":null,"progress":{"weight":100.0},"input":[{"to":"delegate","from":"com.company.atlas.organizationcontroller.examples.orchestrationworker.sampleworker.SampleWorkflowDelegate"}],"throwError":null,"listener":null,"publish":null,"next":[{"when":null,"publish":null,"error":null,"doSteps":["end"]}],"join":null,"retries":null,"handler":null,"stepProgressEnabled":null}],"cycles":[],"handler":null,"progressEnabled":true,"recoveryEnabled":true}')}"></flowable:executionListener>
</extensionElements>
<startEvent id="organizationcontroller_sample_workflow-start-event"></startEvent>
<serviceTask id="organizationcontroller_sample_workflow-timeout-service-task-id" name="organizationcontroller_sample_workflow-timeout-service-task-name" flowable:expression="${flowableStartDelegate.execute(execution, 'organizationcontroller_sample_workflow')}"></serviceTask>
<sequenceFlow sourceRef="organizationcontroller_sample_workflow-start-event" targetRef="organizationcontroller_sample_workflow-timeout-service-task-id"></sequenceFlow>
<boundaryEvent id="organizationcontroller_sample_workflow-boundary-event" attachedToRef="organizationcontroller_sample_workflow-timeout-service-task-id" cancelActivity="true">
<extensionElements>
<flowable:executionListener event="end" expression="${flowableTimeoutExceededDelegate.execute(execution)}"></flowable:executionListener>
</extensionElements>
<timerEventDefinition>
<timeDuration>${ec_execution_timeout}</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<exclusiveGateway id="provision-id-graceful-shutdown-exclusive" name="provision-name-graceful-shutdown-exclusive" default="provision-id-graceful-shutdown-exclusive-default-sequence-flow">
<documentation>graceful shutdown</documentation>
</exclusiveGateway>
<sequenceFlow sourceRef="provision-id-graceful-shutdown-exclusive" targetRef="organizationcontroller_sample_workflow-end-event">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${flowableGracefulShutdownCheckerExecutor.execute(execution, 'provision')}]]>
</conditionExpression>
</sequenceFlow>
<callActivity id="provision" name="provision" calledElement="${flowableStepWorkflowDelegate.resolveWorkflow(execution, 'provision')}">
<extensionElements>
<flowable:in source="ec_sub_workflow_input_parameters_provision" target="ec_sub_workflow_input_parameters"></flowable:in>
<flowable:out source="ec_sub_workflow_output_parameters" target="ec_sub_workflow_output_parameters_provision"></flowable:out>
<flowable:executionListener event="start" expression="${flowableStepWorkflowDelegate.onStarted(execution, 'provision')}"></flowable:executionListener>
<flowable:executionListener event="end" expression="${flowableStepWorkflowDelegate.onFinished(execution, 'provision')}"></flowable:executionListener>
</extensionElements>
</callActivity>
<boundaryEvent id="boundary-event-catch-id-provision-b8c66536-bc11-4fab-ba4b-21043d6c5c39" attachedToRef="provision">
<extensionElements>
<flowable:executionListener event="end" expression="${flowableEngineExecutionListener.onFailed(execution, 'organizationcontroller_sample_workflow')}"></flowable:executionListener>
</extensionElements>
<errorEventDefinition errorRef="error"></errorEventDefinition>
</boundaryEvent>
<sequenceFlow sourceRef="boundary-event-catch-id-provision-b8c66536-bc11-4fab-ba4b-21043d6c5c39" targetRef="organizationcontroller_sample_workflow-end-event"></sequenceFlow>
<sequenceFlow sourceRef="provision" targetRef="organizationcontroller_sample_workflow-end-event"></sequenceFlow>
<sequenceFlow id="provision-id-graceful-shutdown-exclusive-default-sequence-flow" name="provision-name-graceful-shutdown-exclusive-default-sequence-flow" sourceRef="provision-id-graceful-shutdown-exclusive" targetRef="provision"></sequenceFlow>
<sequenceFlow sourceRef="organizationcontroller_sample_workflow-timeout-service-task-id" targetRef="provision-id-graceful-shutdown-exclusive"></sequenceFlow>
<endEvent id="organizationcontroller_sample_workflow-end-event">
<extensionElements>
<flowable:executionListener event="end" expression="${flowableEngineExecutionListener.onFinished(execution, 'organizationcontroller_sample_workflow')}"></flowable:executionListener>
</extensionElements>
</endEvent>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_atlas.organizationcontroller.organizationcontroller_sample_workflow-1.0">
<bpmndi:BPMNPlane bpmnElement="atlas.organizationcontroller.organizationcontroller_sample_workflow-1.0" id="BPMNPlane_atlas.organizationcontroller.organizationcontroller_sample_workflow-1.0"></bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>