diff --git a/.gitignore b/.gitignore index 59f1da5..458afb5 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ target/ .classpath # ignore docker deployments +docker/.env docker/deployments/ docker/keys - docker/docker-compose-imixs.yaml diff --git a/README.md b/README.md index 0e165d3..aa11ac6 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,36 @@ This repository contains the source code as also build scripts to setup an Dynam ## Build & Run +The dev environment is defined by the 'docker compose' file `docker-compose-dev.yaml` + +The Environment contains the following components: + +- Imixs-Office-Workflow - application instance based on Wildfly 29.x +- PostgreSQL Server - postgres:9.6.1 - local database +- Apache Tika - apache/tika:3.2.0.0-full for OCR +- Apache Cassandra - cassandra:5.0.4 local vector database +- Collabora - collabora/code:25.04.6.2.1 for local office documents +- Imixs-Admin - imixs/imixs-admin Imixs Admin Client +- Prometheus - prom/prometheus:latest for logging metrics +- Grafana - grafana/grafana:10.4.0 - for metric monitoring + +### AI / LLM + +The system expects a LLM Server endpoint based on Open AI API. The default LLM server endpoint is defined by the environment variables `LLM_SERVICE_ENDPOINT` and `LLM_API_KEY`. You can define both variables in the file `./docker/.env` + +``` +LLM_API_ENDPOINT=https://my.llama.cpp.foo.com/ +LLM_API_KEY=your-api-key-here +``` + +### Build / Setup + To build and run the project you can use the build script `devi.sh` and run: $ ./devi setup +This wild bild the project with 'maven' and build the local docker image. + You can access the application from our Web browser http://localhost:8080 @@ -22,3 +48,5 @@ You can access the application from our Web browser (Default user `admin' - default passwort `adminadmin`) ## SSO KeyCloak + +t.b.d. diff --git a/doc/AAIF.md b/doc/AAIF.md new file mode 100644 index 0000000..73211d7 --- /dev/null +++ b/doc/AAIF.md @@ -0,0 +1,3 @@ +# AAIF.io + +https://aaif.io/ diff --git a/doc/MCP/mcp-operator-draft.bpmn b/doc/MCP/mcp-operator-draft.bpmn new file mode 100644 index 0000000..ab2e29b --- /dev/null +++ b/doc/MCP/mcp-operator-draft.bpmn @@ -0,0 +1,1259 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + Task_2 + Task_3 + StartEvent_1 + IntermediateCatchEvent_17 + ExclusiveGateway_2 + IntermediateCatchEvent_9 + Task_4 + IntermediateCatchEvent_4 + EventBasedGateway_1 + Task_1 + Task_6 + Task_5 + EndEvent_2 + + DataObject_2 + event_y0smQw + event_EyDvQQ + dataObject_EfFySw + textAnnotation_u2ezPQ + task_zu9TdQ + gateway_DPl3LQ + event_3H0YUQ + textAnnotation_xvBM3A + + + + + sequenceFlow_m6iP0g + + + + + + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + request.subject]]> + + + true + + + + + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + sequenceFlow_ytbNEQ + sequenceFlow_m6iP0g + sequenceFlow_vbc4FA +
+ + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + request.subject]]> + + + true + + + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + sequenceFlow_yYd6fw + sequenceFlow_8lEXVg + sequenceFlow_HCxYvw +
+ + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + request.subject]]> + + + true + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + SequenceFlow_40 + SequenceFlow_19 +
+ + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + _name (EAN: _ean) Preis: _price _currency]]> + + + true + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + SequenceFlow_47 + SequenceFlow_41 +
+ + SequenceFlow_47 + SequenceFlow_22 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home + + + Send offer after approval to customer This action moves the offer to the processing stage 'ordered' + offer, order, send, e-mail + Send out offer to customer + Inform customer about our new offer +]]> + + + + + + + + + + + + false + + + + + + + + + + + + + SequenceFlow_56 + sequenceFlow_HCxYvw + + + + + + + + + + + + + + _subject]]> + + + + + + + + + _amount (Brutto € _amount_brutto) +_description]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home]]> + + + + + + + + + + + + false + + + + SequenceFlow_19 + SequenceFlow_21 + + + + + + + + + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + _name (EAN: _ean) Preis: _price _currency]]> + + + true + + + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + sequenceFlow_dHUt6g + SequenceFlow_23 +
+ + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + _name (EAN: _ean) Preis: _price _currency]]> + + + true + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + SequenceFlow_22 + SequenceFlow_21 +
+ + + + + SequenceFlow_23 + SequenceFlow_34 + + sequenceFlow_8JVfGw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home]]> + + + + + + + + + + + + false + + + + + + + SequenceFlow_34 + SequenceFlow_41 + + + + + + SequenceFlow_56 + SequenceFlow_40 + + sequenceFlow_dHUt6g + sequenceFlow_yYd6fw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home +]]> + + + + + + + + + + + + false + + + + sequenceFlow_vbc4FA + sequenceFlow_Oo0jmw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + + + + + + + + false + + + + sequenceFlow_8JVfGw + sequenceFlow_vBYPvQ + sequenceFlow_ytbNEQ + + + + + + + + + + + + + + + + + + + + + + + + + + {} + request.subject + +request.description +]]]]> + + ]]> + + + + + + + + + + + + + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + request.subject]]> + + + true + + + + + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + sequenceFlow_m6iP0g + sequenceFlow_Oo0jmw + association_0cw0SA + sequenceFlow_AZ2crg +
+ + + sequenceFlow_AZ2crg + sequenceFlow_8JVfGw + sequenceFlow_L3vQ0w + sequenceFlow_vBYPvQ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + + + + + + + + false + + + + sequenceFlow_vBYPvQ + sequenceFlow_L3vQ0w + sequenceFlow_8lEXVg + + + + + + + + + + + +
+ + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/docker/docker-compose-dev.yaml b/docker/docker-compose-dev.yaml index f46017e..ac2cdbf 100644 --- a/docker/docker-compose-dev.yaml +++ b/docker/docker-compose-dev.yaml @@ -46,10 +46,8 @@ services: # Imixs-AI # Optional configured via imixs.properties - LLM_SERVICE_ENDPOINT: "https://api.llama.cpp.imixs.com/" - # LLM_SERVICE_ENDPOINT_USER: "admin" - # LLM_SERVICE_ENDPOINT_PASSWORD: "imixs4.null" - LLM_SERVICE_ENDPOINT_APIKEY: "7fdb663fa87ea16731c1e0ece8ad3214e358423eabf2403188110c731ce07321" + LLM_SERVICE_ENDPOINT: ${LLM_API_ENDPOINT} + LLM_SERVICE_ENDPOINT_APIKEY: ${LLM_API_KEY} # Cassandra Embeddings EMBEDDINGS_CLUSTER_CONTACTPOINTS: "cassandra" diff --git a/workflow/en/supplier-compliance-en-1.0.0.bpmn b/workflow/en/supplier-compliance-en-1.0.0.bpmn new file mode 100644 index 0000000..d0bfc94 --- /dev/null +++ b/workflow/en/supplier-compliance-en-1.0.0.bpmn @@ -0,0 +1,1795 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + Task_2 + Task_3 + StartEvent_1 + IntermediateCatchEvent_17 + IntermediateCatchEvent_9 + Task_4 + IntermediateCatchEvent_8 + EventBasedGateway_1 + Task_1 + Task_6 + EndEvent_2 + IntermediateCatchEvent_7 + IntermediateCatchEvent_10 + IntermediateCatchEvent_6 + + DataObject_2 + TextAnnotation_4 + textAnnotation_JTmRrA + event_oeP3WQ + event_qTIbqA + dataObject_axJA7Q + event_y0smQw + gateway_cDqotg + event_k2i6EQ + event_lpy04g + event_NzWvLw + event_DtSJMw + gateway_eB8Wow + task_cbZfAw + event_nY54MA + textAnnotation_3vdUMw + + + + SequenceFlow_0 + + + + + + + + + + + + _name** + +EAN: product.ean +Category: product.category + +**Product Details:** + +Description: +product.description + +Price: product.price _currency +Stock: product.stock +]]> + + + + + + + + + supplier.name (Country: supplier.country) ]]> + + + true + + + + + + + + + + + + + + + + + + $workflowgroup - $workflowstatus]]> + sequenceFlow_4DUFiA + sequenceFlow_S36Itg + sequenceFlow_X0UaKA + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + + + + + + + name product.name (EAN: product.ean) Preis: product.price product.currency]]> + + + true + + + + + + + + + + + + + + + + _name** + +EAN: _ean +Category: _category + +**Product Details:** + +Description: +_description + +Price: _price _currency +Stock: _stock +]]> + + + $workflowgroup - $workflowstatus]]> + SequenceFlow_42 + sequenceFlow_3m6dMQ + sequenceFlow_HCxYvw + + + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + _name (EAN: _ean) Preis: _price _currency]]> + + + true + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + SequenceFlow_17 + sequenceFlow_8XT0hw + SequenceFlow_26 + SequenceFlow_23 +
+ + SequenceFlow_22 + + sequenceFlow_xktXBA + + + + + + + + + + + _subject]]> + + + + + + + + + _amount (Brutto € _amount_brutto) +_description]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home]]> + + + + + + + + + + + + false + + + + sequenceFlow_Hq0Ccg + sequenceFlow_8XT0hw + + + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + _name (EAN: _ean) Preis: _price _currency]]> + + + true + + + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + sequenceFlow_RgOnDQ + sequenceFlow_KPfDhQ +
+ + + + + + + + + + _subject]]> + + + + + + + + + _amount (Brutto € _amount_brutto) +_description]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home]]> + + + + + + + + + order.delivery erreicht]]> + + + false + + + + + + + + + + + + + + + SequenceFlow_26 + + + Association_5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + + + + + + + + false + + + + sequenceFlow_KPfDhQ + sequenceFlow_2pAPvA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + + + + + + + + order.delivery.]]> + + + false + + + + SequenceFlow_17 + + + + + + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + _name (EAN: _ean) Preis: _price _currency]]> + + + true + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + SequenceFlow_41 + sequenceFlow_11pW0Q + SequenceFlow_22 +
+ + + + + SequenceFlow_23 + SequenceFlow_34 + + sequenceFlow_1sWpsQ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home]]> + + + + + + + + + + + + false + + + + + + + SequenceFlow_34 + SequenceFlow_41 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + + + + + + + + false + + + + SequenceFlow_42 + + + + + + + + + + + + + + + + + + + + + + Sales + +]]> + + + + + + + + + + SequenceFlow_0 + sequenceFlow_OiqVHg + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + https://embeddings.llama.cpp.imixs.com/ + true + +]]> + + + + + + + + + + + + false + + + + sequenceFlow_11pW0Q + sequenceFlow_5lrmFQ + + + + + + {} + $workflowgroup: $workflowstatus +$workflowsummary + +# Summary +$workflowabstract + +]]]]> + + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + + + + + false + + + + sequenceFlow_4DUFiA + + + + + + + + + + + + + + + + sequenceFlow_y0QT2g + sequenceFlow_Hq0Ccg + sequenceFlow_Jkgs0A + + + + + + + + + + + + + + + + + _subject]]> + + + + + + + + + _amount (Brutto € _amount_brutto) +_description]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home + + https://llama.cpp2.imixs.com/ + true + +]]> + + + + + + + + + + + + false + + + + sequenceFlow_Jkgs0A + sequenceFlow_RgOnDQ + + + + + + + + + + + + + + + + + + _subject]]> + + + + + + + + + _amount (Brutto € _amount_brutto) +_description]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home]]> + + + + + + + + + + + + false + + + + sequenceFlow_X0UaKA + sequenceFlow_3m6dMQ + + + + + + + + + + sequenceFlow_TIW7yQ + + + + + + + + + + + + _subject]]> + + + + + + + + + _amount (Brutto € _amount_brutto) +_description]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home]]> + + + + + + + + + + + + false + + + + sequenceFlow_TIW7yQ + sequenceFlow_y0QT2g + + sequenceFlow_HCxYvw + + + + + + + sequenceFlow_OiqVHg + sequenceFlow_2pAPvA + sequenceFlow_S36Itg + + + + + + + + + + + Product: _name
+EAN: _ean
+Category: _category
+Brand: _brand
+
+Description:
+_description
+
+Price: _price _currency
+Stock: _stock
+Size: _size
+Color: _color
+]]>
+
+ + + + + + + + _name (EAN: _ean) Preis: _price _currency]]> + + + true + + + + + + + + + + + + +
+ $workflowgroup - $workflowstatus]]> + sequenceFlow_bJYOKQ + sequenceFlow_5lrmFQ + sequenceFlow_xktXBA +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + home]]> + + + + + + + + + + + + false + + + + + + + sequenceFlow_1sWpsQ + sequenceFlow_bJYOKQ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +