Skip to content

Instantly share code, notes, and snippets.

View adrielparedes's full-sized avatar

Adriel Paredes adrielparedes

  • Associate Manager, Engineerinig @ Red Hat
  • Buenos Aires, Argentina
View GitHub Profile
@adrielparedes
adrielparedes / sample.bpmn
Created August 17, 2021 18:31
sample.bpmn
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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="_T24icOG3EDmUZdAvyytgPg" 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:itemDefinition id="_travellerItem" structureRef="org.acme.travel.Traveller"/>
<bpmn2:itemDefinition id="__0E0784C3-1BEC-4A51-A5E6-D7E5DA3A4402_eventInputXItem" structureRef="org.acme.travel.Traveller"/>
<bpmn2:itemDefinition id="processedtravellersType" s
@adrielparedes
adrielparedes / Drawing 1-4.dmn
Created July 5, 2021 20:42
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
@adrielparedes
adrielparedes / sample.dmn
Last active July 5, 2021 20:20
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="_ab1647c
org.jboss.arquillian.container.spi.client.container.DeploymentException:
Cannot deploy business-monitoring-webapp.war: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"business-monitoring-webapp.war\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000049: Unable to invoke void org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl.postConstruct() on org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl@49696dbd
Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke void org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl.postConstruct() on org.kie.workbench.common.screens.archetype.mgmt.backend.service.ArchetypeServiceImpl@49696dbd
Caused by: java.lang.reflect.InvocationTargetException
Caused b
Notification notification = new Notification();
notification.setPath("src/main/resources/diagram.dmn");
notification.setMessage("The message I want to inform");
notifications.setType(NotificationType.PROBLEM);
notification.setSeverity(NotificationSeverity.ERROR);
this.notificationsApi.createNotification(notification);
@adrielparedes
adrielparedes / adriel-bpm.bpmn
Created April 17, 2020 19:47
adriel-bpm.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="_K83ecGMSEDiZaa7FemD0-g" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:process id="new-file" drools:version="1.0" drools:adHoc="false" name="new-file" isExecutable="true" processType="Public">
<bpmn2:sequenceFlow id="_21393DAA-A38A-4E1C-B824-AF2685021A33" sourceRef="_4BA7E0B9-7E8B-4443-82AA-0675C4F7372B" targetRef="_512C75DC-9E3E-4D8B-B751-C0D07F1A9E4A"/>
<bpmn2:sequenceFlow id="_A4B073D3-126B-4997-84B8-2C79E14E0A62" sourceRef="_CC062A63-9E4E-485C-98C7-DB48BB5AF615" targetRef="_4BA7E0B9-7E8B-4443-82AA-0675C4F7372B"/>
<bpmn2:sequenceFlow id="_85533757-F44D-4C30-A488-6AA283C4C09A" sourceRef="_B0386526-27CE-422F-A0EF-A
package ar.utn.dds;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
ErraiConsoleLogHandler.java:91 Error: RuntimeException: An error occurred while invoking getElement. This interface should only be extended by @Templated beans and cannot be invoked before a bean is in service.
at m8b_g$.ryb_g$ [as createError_0_g$] (Throwable.java:120)
at m8b_g$.Byb_g$ [as initializeBackingError_0_g$] (Throwable.java:112)
at m8b_g$.lyb_g$ (Throwable.java:73)
at m8b_g$.Ryb_g$ (Exception.java:33)
at new m8b_g$ (RuntimeException.java:33)
at F3Q_g$ (IsElement.java:35)
at a3T_g$.c3T_g$ [as getElement_6_g$] (IsElement.java:31)
at x3T_g$.E3T_g$ [as lambda$0_185_g$] (LibraryScreen.java:154)
at R3T_g$.S3T_g$ [as callback_28_g$] (LibraryScreen.java:149)
[INFO] done
[INFO] done
[INFO] Computing all possible rebind results for 'com.allen_sauer.gwt.dnd.client.util.DragClientBundle'
[INFO] Rebinding com.allen_sauer.gwt.dnd.client.util.DragClientBundle
[INFO] Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[INFO] Preparing method css
[INFO] The following problems were detected
[INFO] [WARN] Line 63 column 30: encountered "=". Was expecting one of: "+" "-" "," "/" ")" <STRING> <IDENT> <NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS> <DEG> <RAD> <GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH> <UNICODERANGE> <FUNCTION>
[INFO] [ERROR] Errors in 'org/kie/workbench/common/stunner/core/client/session/impl/AbstractClientReadOnlySession.java'
[INFO] [ERROR] Line 29: The interface ClientSession cannot be implemented more than once with different arguments: ClientSession<AbstractCanvas,AbstractCan
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software