Skip to content

Instantly share code, notes, and snippets.

Avatar

Luiz João Motta ljmotta

  • Senior Software Engineer - IBM
  • São Paulo, SP - Brazil
View GitHub Profile
View fix-dmn-result.dmn
<?xml version="1.0" encoding="UTF-8"?>
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_469EA3E0-73B1-48E8-B5DD-ACE1F71420DE" 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="_CA0B6FD7-3DDB-4B4A-85FD-A0A981323089" name="Untitled-1" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_469EA3E0-73B1-48E8-B5DD-ACE1F71420DE">
<dmn:extensionElements/>
<dmn:itemDefinition id="_AFA90073-4859-43EA-AA80-E85FB2134F48" name="Data" isCollection="false">
<dmn:itemComponent id="_A05D1AE9-2AAC-4BE0-9C1C-E345D76EC491" name="Id" isCollection="false">
<dmn:typeRef>number</dmn:typeRef>
</dmn:itemComponent>
<dmn:itemComponent id="_9090319F-9373-47DC-B83F-72C703EADCAA" name="Net Cash Flow" isColl
@ljmotta
ljmotta / README.md
Created September 12, 2022 18:08
Untitled Folder
View README.md

This Gist was created from KIE Sandbox.

This file is temporary and you should not be seeing it. If you are, it means that creating this Gist failed and it can safely be deleted.

View test.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="_pPMmED1vEDmrl71M3PsZwA" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:process id="test011" drools:packageName="com.example" drools:version="1.0" drools:adHoc="false" name="test011" isExecutable="true" processType="Public">
<bpmn2:sequenceFlow id="_0B23423C-5364-4441-8816-5AB0F2E1E345" sourceRef="_38F47BA2-7872-4306-A48C-013AFFA175C3" targetRef="_D73432FE-7AE8-4B58-A126-55CD77550CBA">
<bpmn2:extensionElements>
<drools:metaData name="isAutoConnection.source">
<drools:metaValue><![CDATA[true]]></drools:metaValue>
</drools:metaData>
<drools:metaData name="isAutoConnection.target">
@ljmotta
ljmotta / Dockerfile.base
Last active August 17, 2022 12:13
Base Dockerfile for Serverless Workflow
View Dockerfile.base
FROM maven:3.8.5-jdk-11 as create
ARG QUARKUS_PLATFORM_VERSION
WORKDIR /tmp/
RUN mvn io.quarkus.platform:quarkus-maven-plugin:${QUARKUS_PLATFORM_VERSION}:create \
-DprojectGroupId=org.kie \
-DprojectArtifactId=kn-plugin-workflow \
-DnoCode \
View Dockerfile
FROM quay.io/lmotta/kn-plugin-workflow:0.0.1
WORKDIR /tmp/kn-workflow/
ARG WORKFLOW_FILE
COPY ${WORKFLOW_FILE} ./serverless-workflow/src/main/resources/
RUN cd serverless-workflow && ./mvnw package -Dnative -Dquarkus.kubernetes.deployment-target=knative
@ljmotta
ljmotta / README.md
Created July 13, 2022 14:59
Untitled Folder
View README.md

This Gist was created from KIE Sandbox.

This file is temporary and you should not be seeing it. If you are, it means that creating this Gist failed and it can safely be deleted.

@ljmotta
ljmotta / README.md
Created March 24, 2022 18:54
Untitled Folder
View README.md

This Gist was created from KIE Sandbox.

This file is temporary and you should not be seeing it. If you are, it means that creating this Gist failed and it can safely be deleted.

@ljmotta
ljmotta / README.md
Last active March 24, 2022 18:53
Untitled Folder
View README.md

This Gist was created from KIE Sandbox.

This file is temporary and you should not be seeing it. If you are, it means that creating this Gist failed and it can safely be deleted.

@ljmotta
ljmotta / new-file.bpmn
Last active September 12, 2022 18:10 — forked from tiagobento/Untitled.bpmn
sample.dmn
View new-file.bpmn
<?xml version="1.0" encoding="UTF-8"?>
<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" xmlns:xsi="xsi" id="_D-in0BT0EDulE8jKYYMZ8w" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd http://www.omg.org/spec/DD/20100524/DC DC.xsd http://www.omg.org/spec/DD/20100524/DI DI.xsd " exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:collaboration id="_C9D9268C-C71F-4677-8FA4-61BF9D1FB925" name="Default Collaboration">
<bpmn2:participant id="_F0407E9C-657F-43CD-8D91-3F6DA91B50B7" name="Pool Participant" processRef="new_file"/>
</bpmn2:collaboration>
<bpmn2:process id="new_file" d
@ljmotta
ljmotta / another-dmn.dmn
Last active September 12, 2022 18:14
Example
View another-dmn.dmn
<?xml version="1.0" encoding="UTF-8"?>
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_3B43CC66-E86C-48E6-9B9C-99435BA2B628" 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="_5BA6081A-7F44-46FF-8714-15998F72B873" name="Untitled" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_3B43CC66-E86C-48E6-9B9C-99435BA2B628">
<dmn:extensionElements/>
<dmn:inputData id="_5937E4F1-7B59-4986-B846-29200DABC01D" name="myInput">
<dmn:extensionElements/>
<dmn:variable id="_9FC6FA97-04A6-4F22-B5B2-A7C336489C5C" name="myInput" typeRef="string"/>
</dmn:inputData>
<dmn:decision id="_20608E65-1528-4D19-B7E0-9206C06FC729" name="myDecision">
<dmn:extensionElements/>
<dmn:variable id="_490C9F86