Skip to content

Instantly share code, notes, and snippets.

View ljmotta's full-sized avatar

Luiz João Motta ljmotta

  • Senior Software Engineer - IBM
  • São Paulo, SP - Brazil
View GitHub Profile
@ljmotta
ljmotta / Sample.dmn
Created May 24, 2024 14:20
Untitled Folder
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
@ljmotta
ljmotta / Untitled.bpmn
Created November 13, 2023 21:14 — forked from tiagobento/Untitled.bpmn
sample.dmn
<?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:drools="http://www.jboss.org/drools" xmlns:xsi="xsi" id="_eisLgWSXEDyn98EApD6EWw" 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="_784820F6-4CEF-435C-9F2C-2E97584DBF8F" name="Default Collaboration">
<bpmn2:participant id="_2F6D5544-12EB-4B19-94BF-34E9472CD13C" name="Pool Participant" processRef="Untitled"/>
</bpmn2:collaboration>
<bpmn2:process id="Untitled" drools:packageName="com.example" drools:version="1.
@ljmotta
ljmotta / Sample.dmn
Last active October 10, 2023 11:48
Untitled Folder
<?xml version="1.0" encoding="UTF-8"?>
<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:itemCompone
@ljmotta
ljmotta / Drawing 1-4.dmn
Last active August 2, 2023 19:44
Drawing 1-3.dmn
<?xml version="1.0" encoding="UTF-8"?>
<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:in
<?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
<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 / another-dmn.dmn
Last active September 12, 2022 18:14
Example
<?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
@ljmotta
ljmotta / README.md
Created September 12, 2022 18:08
Untitled Folder

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 / Dockerfile.base
Last active August 17, 2022 12:13
Base Dockerfile for Serverless Workflow
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 \
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