Skip to content

Instantly share code, notes, and snippets.

View porcelli's full-sized avatar

Alex Porcelli porcelli

View GitHub Profile
package org.kie.uberfire.social.activities.adapters;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.kie.uberfire.social.activities.model.ExtendedTypes;
import org.kie.uberfire.social.activities.model.SocialActivitiesEvent;
List of available perspectives (6.0.x):
Common:
org.kie.workbench.common.screens.home.client.perspectives.HomePerspective
kie-drools-wb (BRMS)
org.kie.workbench.drools.client.perspectives.AdministrationPerspective
org.kie.workbench.drools.client.perspectives.DroolsAuthoringPerspective
org.guvnor.m2repo.client.perspectives.GuvnorM2RepoPerspective
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);
parser grammar DRL6Expressions;
options {
language = Java;
tokenVocab = DRL6Lexer;
superClass=DRLExpressions;
}
@header {
package org.drools.compiler.lang;
function TodoCtrl($scope) {
$scope.placeText = "MiscellaneousFeatures";
$scope.todos = [
{text: 'learn angular', done: true},
{text: 'build an angular app', done: false}
];
$scope.addTodo = function () {
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;
});
};
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
<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>
crc - Local OpenShift 4.x cluster
INFO Caching oc binary
INFO Setting up virtualization
Password:
Q: what password for?
@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