Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

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

🎯
Focusing
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 Management.md

Concepts

"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="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="http://www.trisotech.com/definitions/_e60ee8db-ad8b-405e-973b-195dd069c174" 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="_e60ee8db-ad8b-405e-973b-195dd069c174" name="Loan prequalification" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="http://www.trisotech.com/definitions/_e60ee8db-ad8b-405e-973b-195dd069c174">
<dmn:extensionElements/>
<dmn:itemDefinition id="_752AC063-7FAD-4A9D-B7D6-49F01A7222B1" name="tLoanPrequalification" isCollection="false">
<dmn:typeRef>string</dmn:typeRef>
<dmn:allowedValues id="_F50A70B8-632D-461F-9B3A-469BEDDFD69B">
<dmn:text>"Likely approved","Possibly approved","Likely disapproved"</dmn:text>
</dmn:allowedValues>
</dmn:itemDefinition>
<
@rafaeltuelho
rafaeltuelho / inMemoryDB.md
Created Mar 12, 2020
Some notes when working with in memory embedded DBs like H2, Derby, HSQL, etc
View inMemoryDB.md

to start H2 in background from commandline

nohup java -cp ./h2-1.4.199.jar org.h2.tools.Server -web -tcp -tcpDaemon -browser -ifNotExists -baseDir . &
@rafaeltuelho
rafaeltuelho / redhat-dm-drools.md
Last active Mar 4, 2020
Drools notes and tricks
View redhat-dm-drools.md

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

More details in: https://docs.jboss.org/drools/release/7.30.0.Final/drools-docs/html_single/#drl-rules-THEN-methods-variables-ref_drl-rules

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
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'
services:
zookeeper:
image: strimzi/kafka:0.14.0-kafka-2.3.0
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
@rafaeltuelho
rafaeltuelho / redhat-pam-dm-notes.md
Last active Jun 2, 2020
My Red Hat PAM/DM (jBPM/Drools) random notes
View redhat-pam-dm-notes.md

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
org.kie:kie-kjar-archetype:7.11.0.Final
  • Service project archetype
@rafaeltuelho
rafaeltuelho / jbpm-mass-process-loader.md
Last active Sep 6, 2019
Creates some number of process instances into a Kie Process Server using REST API
View jbpm-mass-process-loader.md

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 \
      JSON_KEY=VALUE; \
done
View openshift-jenkinsfile-tasks-app-example.groovy
// Set your project Prefix using your GUID
def prefix = "user22"
// Routes
def clusterDomain = "apps.cluster-19ae.sandbox478.opentlc.com"
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
tasks:
- name: stop docker
service:
name: docker
state: stopped
View add-docker-option-regexp.yaml
---
- name: Append Docker OPTION
hosts: localhost
tasks:
- name: apply regex
replace:
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.