Skip to content

Instantly share code, notes, and snippets.

Avatar

Paulo Martins paulovmr

  • Red Hat
  • Brazil
View GitHub Profile
View Drawing 1-4.dmn
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="http://www.trisotech.com/definitions/_88671935-e3b8-448d-bd1d-8125a5e3c0ec" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:tc="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:trisofeed="http://trisotech.com/feed" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:triso="http://www.trisotech.com/2015/triso/modeling" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_88671935-e3b8-448d-bd1d-8125a5e3c0ec" name="Drawing 1" expressionLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="http://www.trisotech.com/definitions/_88671935-e3b8-448d-bd1d-8125a5e3c0ec">
<dmn:extensionElements/>
<dmn:decisionService id="_1d3a5cb3-846d-4802-a
@paulovmr
paulovmr / aaaa.bpmn
Last active Jan 19, 2021
new-file.bpmn
View aaaa.bpmn
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:drools="http://www.jboss.org/drools" id="_2fAUsDy-EDmUPYofpBMZ5w" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:process id="new-file" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="new-file" isExecutable="true" processType="Public">
<bpmn2:intermediateCatchEvent id="_A74ED0E2-CB5B-4F80-8FF5-2F7276A591CE">
<bpmn2:timerEventDefinition/>
</bpmn2:intermediateCatchEvent>
</bpmn2:process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="new-file">
<bpmndi:BPMNShape id="shape__A74ED0E2-CB5B-4F80-8FF5-2F7276A591CE" bpmnElement="_A74ED0E2-CB5B-4F80-8FF5-2F7276A591CE">
<dc:Bounds height="56" width="56" x="591" y="276"/>
@paulovmr
paulovmr / new-file.bpmn
Last active Jan 19, 2021
new-file.bpmn
View new-file.bpmn
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:drools="http://www.jboss.org/drools" id="__MfesTy9EDmIlILes0ysdg" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:process id="new-file" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="new-file" isExecutable="true" processType="Public">
<bpmn2:endEvent id="_7D2A440A-8854-4C0D-9A09-F12A7FEF95CD"/>
<bpmn2:startEvent id="_C7406793-12A7-45DE-B270-C4B8FBFAD49C"/>
</bpmn2:process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="new-file">
<bpmndi:BPMNShape id="shape__C7406793-12A7-45DE-B270-C4B8FBFAD49C" bpmnElement="_C7406793-12A7-45DE-B270-C4B8FBFAD49C">
<dc:Bounds height="56" width="56" x="723" y="249"/>
</bpmndi:BPMNShape>
View myfile.dmn
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_CA7BA1C1-0994-4EF0-9E7F-B624B313F21B" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_73F9344C-4AE5-463C-9C3A-783335FABA2C" name="new-file" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_CA7BA1C1-0994-4EF0-9E7F-B624B313F21B">
<dmn:extensionElements/>
<dmn:inputData id="_AE7197E2-E23E-49D5-BD48-6A94D5E16824" name="InputData-1">
<dmn:extensionElements/>
<dmn:variable id="_EFBE4266-6A29-4362-92D6-123F2BF1C601" name="InputData-1"/>
</dmn:inputData>
<dmn:knowledgeSource id="_99011382-61FE-413D-A39A-25AEB5F346D3" name="KnowledgeSource-1" locationURI="">
<dmn:extensionElements/>
<dmn:authorityRequirement id="_CCE47BD9-9B8A-4
View myfile.dmn
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_CA7BA1C1-0994-4EF0-9E7F-B624B313F21B" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="_73F9344C-4AE5-463C-9C3A-783335FABA2C" name="new-file" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_CA7BA1C1-0994-4EF0-9E7F-B624B313F21B">
<dmn:extensionElements/>
<dmn:inputData id="_AE7197E2-E23E-49D5-BD48-6A94D5E16824" name="InputData-1">
<dmn:extensionElements/>
<dmn:variable id="_EFBE4266-6A29-4362-92D6-123F2BF1C601" name="InputData-1"/>
</dmn:inputData>
<dmn:knowledgeSource id="_99011382-61FE-413D-A39A-25AEB5F346D3" name="KnowledgeSource-1" locationURI="">
<dmn:extensionElements/>
<dmn:authorityRequirement id="_CCE47BD9-9B8A-4
View new-file.bpmn
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_I4D8gSBsEDmY0tufmWa4CQ" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:process id="new-file" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="new-file" isExecutable="true" processType="Public">
<bpmn2:sequenceFlow id="_531F23BC-AF52-42DA-BC89-543464CBDCAC" sourceRef="_0C8F6BD9-1B50-44B0-98FA-4BBB912CFA61" targetRef="_4DDED831-5C1F-4E94-9940-888B60DE0D32">
<bpmn2:extensionElements>
<drools:metaData name="isAutoConnection.source">
<drools:metaValue><![CDATA[true]]></drools:metaValue>
</drools:metaData>
<drools:metaData name="isAutoConnection.target">
@paulovmr
paulovmr / new-file2.bpmn
Last active Dec 14, 2020
new-file.bpmn
View new-file2.bpmn
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:drools="http://www.jboss.org/drools" id="_T7gb0CBsEDm0d8M4N-PqbQ" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:process id="new-file" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="new-file" isExecutable="true" processType="Public">
<bpmn2:startEvent id="_9A9ED78B-3DA2-4993-B553-D305083DAE41"/>
</bpmn2:process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="new-file">
<bpmndi:BPMNShape id="shape__9A9ED78B-3DA2-4993-B553-D305083DAE41" bpmnElement="_9A9ED78B-3DA2-4993-B553-D305083DAE41">
<dc:Bounds height="56" width="56" x="842" y="176"/>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
View new-file.bpmn
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:drools="http://www.jboss.org/drools" id="_vfgOQSBqEDmhxdqpiASSvg" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:process id="new-file" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="new-file" isExecutable="true" processType="Public"/>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="new-file"/>
</bpmndi:BPMNDiagram>
<bpmn2:relationship type="BPSimData">
<bpmn2:extensionElements>
<bpsim:BPSimData>
<bpsim:Scenario id="default" name="Simulationscenario">
<bpsim:ScenarioParameters/>
View file1.js
const editor = DmnEditor.open({
container: document.getElementById("dmn-editor-container"),
initialContent: Promise.resolve(""),
readOnly: false,
origin: "",
resources: new Map([
[
"MyIncludedModel.dmn",
{
contentType: "text",
View sample.dmn
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_857FE424-BEDA-4772-AB8E-2F4CDDB864AB" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" id="_C6CBECEB-2BBC-4E14-80B0-17F576B2CF92" name="loan_pre_qualification" expressionLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_857FE424-BEDA-4772-AB8E-2F4CDDB864AB">
<dmn:extensionElements/>
<dmn:itemDefinition id="_D40B0106-62E8-4AC0-A39A-C6C9506194A9" name="Requested_Product" isCollection="false">
<dmn:itemComponent id="_68b4a96c-198a-4575-b29a-a2c8b0539a2c" name="Type" isCollection="false">
<dmn:typeRef>Product_Type</dmn:typeRef>
</dmn:itemComponent>
<dmn:itemComponent id="_ab1647