Skip to content

Instantly share code, notes, and snippets.

View porcelli's full-sized avatar

Alex Porcelli porcelli

View GitHub Profile
@porcelli
porcelli / drools.java
Created June 26, 2021 13:12 — forked from evacchi/drools.java
jbang drools.java
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS org.drools:drools-engine:7.56.0.Final
//DEPS org.drools:drools-mvel:7.56.0.Final
//DEPS org.drools:drools-mvel:7.56.0.Final
//DEPS org.slf4j:slf4j-nop:1.7.31
//DEPS com.fasterxml.jackson.core:jackson-databind:2.12.3
// example
// jbang <url> '{ "name":"Mario", "age":40 }' '{ "name":"Mark", "age":37 }'
parser grammar DRL6Expressions;
options {
language = Java;
tokenVocab = DRL6Lexer;
superClass=DRLExpressions;
}
@header {
package org.drools.compiler.lang;
package org.kie.uberfire.perspective.editor.model;
import java.util.Map;
import com.google.gwt.user.client.ui.Widget;
public interface ExternalPerspectiveEditorComponent {
void setup(final String placeName,
final Map<String, String> parameters);
@porcelli
porcelli / gist:4081528
Created November 15, 2012 21:46 — forked from manstis/gist:4081431
asset types
Done - <class>org.drools.guvnor.client.asseteditor.drools.enums.EnumEditor</class>
Done - <class>org.drools.guvnor.client.asseteditor.drools.DrlEditor</class>
Done - <class>org.drools.guvnor.client.asseteditor.drools.FunctionEditor</class>
90% - <class>org.drools.guvnor.client.asseteditor.drools.factmodel.FactModelsWidget</class>
Next - <class>org.drools.guvnor.client.asseteditor.drools.modeldriven.ui.RuleModeller</class>
<class>org.drools.guvnor.client.asseteditor.drools.RuleValidatorWrapper</class>
<class>org.drools.guvnor.client.decisiontable.DecisionTableXLSWidget</class>
<class>org.drools.guvnor.client.decisiontable.GuidedDecisionTableWidget</class>
<class>org.drools.guvnor.client.asseteditor.drools.modeldriven.ui.templates.RuleTemplateEditor</class>
<class>org.drools.guvnor.client.scorecards.ScorecardsXLSWidget</class>
@porcelli
porcelli / gist:3019605
Created June 29, 2012 17:54 — forked from mikebrock/gist:3019576
Errai Servlet
/*
* Copyright 2011 JBoss, by Red Hat, Inc
*
* 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