Skip to content

Instantly share code, notes, and snippets.


Rafael T. C. Soares (A.K.A Tuelho) rafaeltuelho

Block or report user

Report or block rafaeltuelho

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Notes on Case


"Case management is an extension of Business Process Management (BPM) that enables you to manage adaptable business processes."

"Many real-world applications cannot be described completely from start to finish (including all possible paths, deviations, and exceptions). Using a process-oriented approach in certain cases can lead to complex solutions that are hard to maintain."

"A case definition usually consists of loosely coupled process fragments that can be connected directly or indirectly to lead to certain milestones and ultimately a business goal, while the process is managed dynamically in response to changes that occur during run time. "

"Case management differs from business process management (BPM) in that it focuses on the actual data being handled throughout the case and less on the sequence of steps taken to complete a goal. Case data is the most important piece of information in case handling, while business context and decision-making is in the hands of the human case worker. "

View Loan prequalification.dmn
<dmn:definitions xmlns:dmn="" xmlns="" xmlns:di="" xmlns:kie="" xmlns:dmndi="" xmlns:dc="" xmlns:feel="" id="_e60ee8db-ad8b-405e-973b-195dd069c174" name="Loan prequalification" typeLanguage="" namespace="">
<dmn:itemDefinition id="_752AC063-7FAD-4A9D-B7D6-49F01A7222B1" name="tLoanPrequalification" isCollection="false">
<dmn:allowedValues id="_F50A70B8-632D-461F-9B3A-469BEDDFD69B">
<dmn:text>"Likely approved","Possibly approved","Likely disapproved"</dmn:text>
rafaeltuelho /
Created Mar 12, 2020
Some notes when working with in memory embedded DBs like H2, Derby, HSQL, etc

to start H2 in background from commandline

nohup java -cp ./h2-1.4.199.jar -web -tcp -tcpDaemon -browser -ifNotExists -baseDir . &
rafaeltuelho /
Last active Mar 4, 2020
Drools notes and tricks

Implicity services available to be used in RHS (then) clause

More details in:

some differences between ReetOO and PHREAK

In Drools 5, one fact insertion would cause a match (called "activation" in Drools 5). Drools 6 uses Phreak wich is a "lazy" modification of Rete.

rafaeltuelho / kafka-strimzi-docker-compose.yaml
Created Dec 16, 2019
AMQ Streams (kafka by Strimzi) on Docker compose
View kafka-strimzi-docker-compose.yaml
version: '2'
image: strimzi/kafka:0.14.0-kafka-2.3.0
command: [
"sh", "-c",
"bin/ config/"
rafaeltuelho /
Last active Jun 2, 2020
My Red Hat PAM/DM (jBPM/Drools) random notes

Generating new Projects using maven archetypes

jBPM project

Manually create business application In case you can’t use jBPM online service to generate the application you can manually create individual projects. jBPM provides maven archetypes that can be easily used to generate the application. In fact jBPM online service uses these archetypes behind the scenes to generate business application.

  • Business assets project archetype
  • Service project archetype
rafaeltuelho /
Last active Sep 6, 2019
Creates some number of process instances into a Kie Process Server using REST API

To start/create instances

for i in {1..100}; do \
   echo "-"; \
   http --verify=no --json --auth user:pass POST \
      https://kie-server-url/services/rest/server/containers/DEPLOYMENT_ID/processes/PROCESS_ID/instances \
View openshift-jenkinsfile-tasks-app-example.groovy
// Set your project Prefix using your GUID
def prefix = "user22"
// Routes
def clusterDomain = ""
def tasksDevRoute = "tasks-${prefix}-tasks-dev.${clusterDomain}"
def ocpRegistryRoute = "default-route-openshift-image-registry.${clusterDomain}"
def nexusRegistryRoute = "nexus-registry-${prefix}-cicd.${clusterDomain}"
// Set variable globally to be available in all stages
View reset-docker-storage.yaml
- name: Reset docker storage
hosts: ocp*
become: yes
- name: stop docker
name: docker
state: stopped
View add-docker-option-regexp.yaml
- name: Append Docker OPTION
hosts: localhost
- name: apply regex
backup: yes
dest: /etc/sysconfig/docker
regexp: '^(OPTIONS.*)(\S)$'
replace: '\1 --authorization-plugin=docker-novolume-plugin\2'
You can’t perform that action at this time.