Skip to content

Instantly share code, notes, and snippets.

View mauriziocarioli's full-sized avatar
🏠
Working from home

Maurizio Carioli mauriziocarioli

🏠
Working from home
View GitHub Profile
@mauriziocarioli
mauriziocarioli / test_drive_AI_assisted_openshift.md
Last active November 11, 2026 19:48
Test Drive of AI assisted OpenShift adm

I asked the button in the corner to teach me user administration

An IT administrator at a bank, new to OpenShift, and not interested in terminal-oriented tasks.

Someone on the platform team left, and the cluster came with the rest of their tickets. I am supposed to run accounts, groups, and access reviews. I prefer web consoles and mouse-oriented tasks. I was told OpenShift had a chatbot in the lower-right corner of its web console, and that I should start there if I did not know where to click.

This is what I wanted to achieve: a small lab for users and access across more than one project, using the Keycloak login we already have. I asked three times. Each question was more specific than the last. The button answered all three. This is what I asked, what I got back, and my reaction.

Finding the button

@mauriziocarioli
mauriziocarioli / PHM-Model.plantuml
Created April 1, 2020 14:46
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 March 1, 2020 01:58
Charlie's Task data for the Reminder scenario.
{
task: {
id: 58,
origId: 'B143',
suppressed: false,
suppressionPeriod: '',
expirationDate: '2020-12-31T12:00:00.000Z',
close: 'HARD',
reminderInitiation: 'PT60S',
reminderFrequency: 'R/PT60S',
@mauriziocarioli
mauriziocarioli / getPeterstaskform.json
Created February 24, 2020 19:21
Peter's Task Form
[
{
"id": "fdb03de1-ad38-49fb-af74-ff9f8c3daf08",
"name": "Task-taskform.frm",
"model": {
"taskName": "Task",
"processId": "PHM-Processes.Task",
"name": "task",
"properties": [
{
@mauriziocarioli
mauriziocarioli / getPeterstaskform.sh
Created February 24, 2020 19:20
Get Peter's Task Form
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 February 24, 2020 16:54
Event Listeners capture
│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>>
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]
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."
}'
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 '{}'
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 ''