Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Maurizio Carioli mauriziocarioli

🏠
Working from home
View GitHub Profile
View PHM-Model.plantuml
@startuml
title __PHM-MODEL's Class Diagram__\n
namespace com.health_insurance.phm_model {
class com.health_insurance.phm_model.Reminder {
__private attributes__
long SerialVersionUID
String address
String body
@mauriziocarioli
mauriziocarioli / charliestaskreminder.js
Last active Mar 1, 2020
Charlie's Task data for the Reminder scenario.
View charliestaskreminder.js
{
task: {
id: 58,
origId: 'B143',
suppressed: false,
suppressionPeriod: '',
expirationDate: '2020-12-31T12:00:00.000Z',
close: 'HARD',
reminderInitiation: 'PT60S',
reminderFrequency: 'R/PT60S',
View getPeterstaskform.json
[
{
"id": "fdb03de1-ad38-49fb-af74-ff9f8c3daf08",
"name": "Task-taskform.frm",
"model": {
"taskName": "Task",
"processId": "PHM-Processes.Task",
"name": "task",
"properties": [
{
View getPeterstaskform.sh
curl --user Peter:secret \
--location --request GET 'http://localhost:8080/kie-server/services/rest/server/containers/PHM-Processes/forms/tasks/1?lang=en&type=ANY&marshallContent=true' \
--header 'Accept: application/json'
@mauriziocarioli
mauriziocarioli / server.log
Created Feb 24, 2020
Event Listeners capture
View server.log
│2020-02-24 11:34:17,233 INFO [stdout] (default task-16) Process <<Trigger>>-<19> ->Variable <<pMemberId>>-<pMemberId> is about to be changed from │
│2020-02-24 11:34:17,234 INFO [stdout] (default task-16) <<null>> │
│2020-02-24 11:34:17,234 INFO [stdout] (default task-16) to │
│2020-02-24 11:34:17,234 INFO [stdout] (default task-16) <<123>>
View phmapi.sh
4> git clone https://github.com/mauriziocarioli/PHM-API.git
Cloning into 'PHM-API'...
remote: Enumerating objects: 17, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 17 (delta 6), reused 15 (delta 4), pack-reused 0
Unpacking objects: 100% (17/17), done.
[ec2-user@ip-172-31-33-184.ec2.internal/~/Demos]
5> cd PHM-API
[ec2-user@ip-172-31-33-184.ec2.internal/~/Demos/PHM-API]
View definePeterstaskoutput.sh
curl --user Peter:secret \
--location --request PUT 'http://localhost:8080/kie-server/services/rest/server/containers/PHM-Processes/tasks/1/contents/output' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"answer": "Hello."
}'
View hardclosePeterstask.sh
curl --user externalsystem:secret \
--location --request POST 'http://localhost:8080/kie-server/services/rest/server/containers/PHM-Processes/processes/instances/4/signal/hard_close' \
--header 'Content-Type: application/json' \
--data-raw '{}'
View completePeterstask.sh
curl --user Peter:secret \
--location --request PUT 'http://localhost:8080/kie-server/services/rest/server/containers/PHM-Processes/tasks/1/states/completed' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw ''
View startPeterstask.sh
curl --user Peter:secret \
--location --request PUT 'http://localhost:8080/kie-server/services/rest/server/containers/PHM-Processes/tasks/1/states/started' \
--header 'Accept: application/json' \
--data-raw ''