Skip to content

Instantly share code, notes, and snippets.

View porcelli's full-sized avatar

Alex Porcelli porcelli

View GitHub Profile
@porcelli
porcelli / post-commit-setup.sh
Last active May 26, 2020 19:24
Code for blog post: How to setup post-commit hooks on Business Central
$ mkdir myrepo
$ cd myrepo
$ git init
Initialized empty Git repository in /Users/porcelli/blog/myrepo/.git/
$ touch file1.txt
$ git add .
$ git commit -m "first commit"
[master (root-commit) 0fa1a4a] first commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 file1.txt
@porcelli
porcelli / sample.bpmn
Created April 20, 2020 18:32
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="_QxIJoWVjEDiE2qB7bpZkqA" 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" structureRef="org.acme.travel.Traveller"/>
<bpmn2:itemDefinition id="__60FA6326-76DC-4DB2-AB06-DB8AC8EE8DC8_namespaceInputXItem" structureRef="java.lang.String"/>
<bpmn2:itemDefinition id="__60FA6326-76DC-4DB2-AB06-DB8AC8EE8DC8_modelInputXItem" str
@porcelli
porcelli / new-file.dmn
Created April 20, 2020 18:32
new-file.dmn
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="https://kiegroup.org/dmn/_74CAE8CB-97AF-4A96-9EC1-9C5387BBCB74" 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="_9482222E-818D-4042-985F-36768867EB29" name="new-file" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://kiegroup.org/dmn/_74CAE8CB-97AF-4A96-9EC1-9C5387BBCB74">
<dmn:extensionElements/>
<dmn:itemDefinition id="_74A1EA46-DB8F-40A6-89C3-C2E75F2C28EC" name="MyType" isCollection="false">
<dmn:typeRef>number</dmn:typeRef>
</dmn:itemDefinition>
<dmn:inputData id="_C3D08B6B-819A-4351-9E83-1A83D8ED9DEA" name="InputData-1">
<dmn:extensionElements/>
<dmn:variable id="_4EC33386-9504-41F0-9B92-34B686623002" name="InputData-1" typeRef="MyType"/>
</dmn:inputData>
<dmn
crc - Local OpenShift 4.x cluster
INFO Caching oc binary
INFO Setting up virtualization
Password:
Q: what password for?
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>{group}</groupId>
<artifactId>{artifact}</artifactId>
<version>{version}</version>
</project>
Track: Business Automation
Type: Session
Presenters: Alexandre Porcelli and Mark Proctor
Abstract in one sentence: Demonstration of the new self-service software platform in BPMS/BRMS 7: Building powerful business applications in no time.
Dawn of the Citizen Developer: Low Code Application Development Made Easy in BPMS/BRMS 7.
The BPMS/BRMS products now provide a powerful low code platform for building self-service software. In this session, members of Red Hat’s Business Systems and Intelligence Group will demonstrate how to implement business applications with minimal coding effort. Starting from a simple relational data model, the team will use the new web-based tooling platform to build out customizable forms using a drag and drop based form modeler and page editor. They will show how to define an application flow based on these forms and integrate existing business rules and processes before they package and deploy the running application on OpenShift. The team will also demonstrate how to extend the ge
function ListCases($scope, $http) {
$scope.field = '';
$scope.detail = '';
$scope.listCases = function () {
$http.get('http://localhost:8080/case/custom/cases').success(function (data) {
$scope.detail = "";
$scope.cases = data.cases;
});
};
function TodoCtrl($scope) {
$scope.placeText = "MiscellaneousFeatures";
$scope.todos = [
{text: 'learn angular', done: true},
{text: 'build an angular app', done: false}
];
$scope.addTodo = function () {
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);