improvements - a2a integration (first draft)
This commit is contained in:
parent
a942f9f15f
commit
b3d1d7e1e2
30 changed files with 2983 additions and 522 deletions
|
|
@ -1,7 +1,12 @@
|
||||||
FROM imixs/imixs-office-workflow:5.1.3-SNAPSHOT-wildfly-29.0.1.Final-jdk17
|
FROM imixs/imixs-office-workflow:5.1.3-SNAPSHOT-wildfly-29.0.1.Final-jdk17
|
||||||
|
|
||||||
|
# Debug
|
||||||
|
# Setup configuration
|
||||||
|
#COPY ./docker/configuration/wildfly/standalone-debug.xml /opt/jboss/wildfly/standalone/configuration/
|
||||||
|
|
||||||
|
|
||||||
# Deploy artefact
|
# Deploy artefact
|
||||||
RUN rm -r /opt/jboss/wildfly/standalone/deployments/*
|
RUN rm -r /opt/jboss/wildfly/standalone/deployments/*
|
||||||
COPY ./target/hai-office-demo /opt/jboss/wildfly/standalone/deployments/hai-office-demo.war/
|
# Deploy artefact
|
||||||
|
ADD ./dynamixs-ai-app/target/dynamixs-ai*.war /opt/jboss/wildfly/standalone/deployments/
|
||||||
|
|
||||||
|
|
|
||||||
103
doc/A2A.md
Normal file
103
doc/A2A.md
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
# A2A
|
||||||
|
|
||||||
|
Die Skill-ID wird damit zur direkten "Adresse" für die Workflow-Ausführung.
|
||||||
|
Skill-ID als Execution Path:
|
||||||
|
|
||||||
|
```
|
||||||
|
Skill ID: "office-de-1.0.0_100_10"
|
||||||
|
│ │ │
|
||||||
|
│ │ └── eventId (10 = "Freigeben")
|
||||||
|
│ └────── taskId (100 = "Freigabe")
|
||||||
|
└───────────────────── modelVersion ("office-de-1.0.0")
|
||||||
|
```
|
||||||
|
|
||||||
|
## Direct Execution via A2A message/send:
|
||||||
|
|
||||||
|
```java
|
||||||
|
// Aus A2A Skill ID direkt Imixs Execution Parameter extrahieren
|
||||||
|
String skillId = "office-de-1.0.0_100_10";
|
||||||
|
String[] parts = skillId.split("_");
|
||||||
|
String modelVersion = parts[0];
|
||||||
|
int taskId = Integer.parseInt(parts[1]);
|
||||||
|
int eventId = Integer.parseInt(parts[2]);
|
||||||
|
|
||||||
|
// Direkt Imixs ProcessWorkitem aufrufen
|
||||||
|
workflowService.processWorkitem(workitem, modelVersion, taskId, eventId);
|
||||||
|
```
|
||||||
|
|
||||||
|
## A2A Message → Imixs Workflow Mapping:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"method": "message/send",
|
||||||
|
"params": {
|
||||||
|
"message": {
|
||||||
|
"parts": [
|
||||||
|
{
|
||||||
|
"kind": "data",
|
||||||
|
"data": {
|
||||||
|
"skillId": "office-de-1.0.0_100_10",
|
||||||
|
"workitemId": "12345-67890-abcdef",
|
||||||
|
"parameters": {
|
||||||
|
"comment": "Approved - Budget OK",
|
||||||
|
"amount": 1500.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Example Skill Task
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"a2a_skill": {
|
||||||
|
"id": "invoice-workflow-2.1_100_10",
|
||||||
|
"name": "Invoice Approval",
|
||||||
|
"description": "Approve invoices after financial review and compliance check. This action moves the invoice to the payment processing stage and triggers automatic payment scheduling.",
|
||||||
|
"tags": [
|
||||||
|
"invoice",
|
||||||
|
"approval",
|
||||||
|
"finance",
|
||||||
|
"payment",
|
||||||
|
"compliance",
|
||||||
|
"workflow",
|
||||||
|
"business-critical"
|
||||||
|
],
|
||||||
|
"examples": [
|
||||||
|
"Approve invoice INV-2024-001 with comment 'Budget confirmed, proceed with payment'",
|
||||||
|
"Approve recurring invoice from vendor Acme Corp for monthly services",
|
||||||
|
"Approve invoice with manual adjustment: reduce amount to 1450.00 EUR due to discount"
|
||||||
|
],
|
||||||
|
"inputModes": ["application/json", "text/plain"],
|
||||||
|
"outputModes": ["application/json", "text/html", "text/plain"],
|
||||||
|
"metadata": {
|
||||||
|
"imixs": {
|
||||||
|
"workflowGroup": "Invoice",
|
||||||
|
"taskName": "Rechnungsprüfung",
|
||||||
|
"eventName": "Freigeben",
|
||||||
|
"requiredRoles": ["manager", "finance", "accounting"],
|
||||||
|
"estimatedDuration": "PT15M",
|
||||||
|
"priority": "high",
|
||||||
|
"nextTask": 200,
|
||||||
|
"nextTaskName": "Zahlungsfreigabe",
|
||||||
|
"formFields": ["comment", "adjustedAmount", "paymentDate"],
|
||||||
|
"notificationEnabled": true,
|
||||||
|
"requiresApprovalLimit": 5000.0
|
||||||
|
},
|
||||||
|
"a2a": {
|
||||||
|
"complexity": "medium",
|
||||||
|
"isLongRunning": false,
|
||||||
|
"requiresHumanInteraction": true,
|
||||||
|
"canCreateNewWorkitem": false,
|
||||||
|
"requiresWorkitem": true,
|
||||||
|
"category": "business_process",
|
||||||
|
"businessImpact": "high"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
673
docker/configuration/wildfly/standalone-debug.xml
Normal file
673
docker/configuration/wildfly/standalone-debug.xml
Normal file
|
|
@ -0,0 +1,673 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<server xmlns="urn:jboss:domain:20.0">
|
||||||
|
<extensions>
|
||||||
|
<extension module="org.jboss.as.clustering.infinispan" />
|
||||||
|
<extension module="org.jboss.as.connector" />
|
||||||
|
<extension module="org.jboss.as.deployment-scanner" />
|
||||||
|
<extension module="org.jboss.as.ee" />
|
||||||
|
<extension module="org.jboss.as.ejb3" />
|
||||||
|
<extension module="org.jboss.as.jaxrs" />
|
||||||
|
<extension module="org.jboss.as.jdr" />
|
||||||
|
<extension module="org.jboss.as.jmx" />
|
||||||
|
<extension module="org.jboss.as.jpa" />
|
||||||
|
<extension module="org.jboss.as.jsf" />
|
||||||
|
<extension module="org.jboss.as.logging" />
|
||||||
|
<extension module="org.jboss.as.mail" />
|
||||||
|
<extension module="org.jboss.as.naming" />
|
||||||
|
<extension module="org.jboss.as.pojo" />
|
||||||
|
<extension module="org.jboss.as.remoting" />
|
||||||
|
<extension module="org.jboss.as.sar" />
|
||||||
|
<extension module="org.jboss.as.transactions" />
|
||||||
|
<extension module="org.jboss.as.webservices" />
|
||||||
|
<extension module="org.jboss.as.weld" />
|
||||||
|
<extension module="org.wildfly.extension.batch.jberet" />
|
||||||
|
<extension module="org.wildfly.extension.bean-validation" />
|
||||||
|
<extension module="org.wildfly.extension.clustering.ejb" />
|
||||||
|
<extension module="org.wildfly.extension.clustering.web" />
|
||||||
|
<extension module="org.wildfly.extension.core-management" />
|
||||||
|
<extension module="org.wildfly.extension.discovery" />
|
||||||
|
<extension module="org.wildfly.extension.ee-security" />
|
||||||
|
<extension module="org.wildfly.extension.elytron" />
|
||||||
|
<extension module="org.wildfly.extension.elytron-oidc-client" />
|
||||||
|
<extension module="org.wildfly.extension.health" />
|
||||||
|
<extension module="org.wildfly.extension.io" />
|
||||||
|
<extension module="org.wildfly.extension.metrics" />
|
||||||
|
<extension module="org.wildfly.extension.microprofile.config-smallrye" />
|
||||||
|
<extension module="org.wildfly.extension.microprofile.jwt-smallrye" />
|
||||||
|
<extension module="org.wildfly.extension.request-controller" />
|
||||||
|
<extension module="org.wildfly.extension.security.manager" />
|
||||||
|
<extension module="org.wildfly.extension.undertow" />
|
||||||
|
|
||||||
|
<!-- added microprofile health -->
|
||||||
|
<extension module="org.wildfly.extension.microprofile.health-smallrye" />
|
||||||
|
</extensions>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- EclipseLink Integration -->
|
||||||
|
<system-properties>
|
||||||
|
<property name="eclipselink.archive.factory"
|
||||||
|
value="org.jipijapa.eclipselink.JBossArchiveFactoryImpl" />
|
||||||
|
</system-properties>
|
||||||
|
|
||||||
|
<management>
|
||||||
|
<audit-log>
|
||||||
|
<formatters>
|
||||||
|
<json-formatter name="json-formatter" />
|
||||||
|
</formatters>
|
||||||
|
<handlers>
|
||||||
|
<file-handler name="file" formatter="json-formatter" path="audit-log.log"
|
||||||
|
relative-to="jboss.server.data.dir" />
|
||||||
|
</handlers>
|
||||||
|
<logger log-boot="true" log-read-only="false" enabled="false">
|
||||||
|
<handlers>
|
||||||
|
<handler name="file" />
|
||||||
|
</handlers>
|
||||||
|
</logger>
|
||||||
|
</audit-log>
|
||||||
|
<management-interfaces>
|
||||||
|
<http-interface http-authentication-factory="management-http-authentication">
|
||||||
|
<http-upgrade enabled="true"
|
||||||
|
sasl-authentication-factory="management-sasl-authentication" />
|
||||||
|
<socket-binding http="management-http" />
|
||||||
|
</http-interface>
|
||||||
|
</management-interfaces>
|
||||||
|
<access-control provider="simple">
|
||||||
|
<role-mapping>
|
||||||
|
<role name="SuperUser">
|
||||||
|
<include>
|
||||||
|
<user name="$local" />
|
||||||
|
</include>
|
||||||
|
</role>
|
||||||
|
</role-mapping>
|
||||||
|
</access-control>
|
||||||
|
</management>
|
||||||
|
<profile>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:logging:8.0">
|
||||||
|
<console-handler name="CONSOLE">
|
||||||
|
<!-- INFO | DEBUG -->
|
||||||
|
<level name="DEBUG" />
|
||||||
|
<formatter>
|
||||||
|
<named-formatter name="COLOR-PATTERN" />
|
||||||
|
</formatter>
|
||||||
|
</console-handler>
|
||||||
|
<periodic-rotating-file-handler name="FILE" autoflush="true">
|
||||||
|
<formatter>
|
||||||
|
<named-formatter name="PATTERN" />
|
||||||
|
</formatter>
|
||||||
|
<file relative-to="jboss.server.log.dir" path="server.log" />
|
||||||
|
<suffix value=".yyyy-MM-dd" />
|
||||||
|
<append value="true" />
|
||||||
|
</periodic-rotating-file-handler>
|
||||||
|
<logger category="com.arjuna">
|
||||||
|
<level name="WARN" />
|
||||||
|
</logger>
|
||||||
|
<logger category="io.jaegertracing.Configuration">
|
||||||
|
<level name="WARN" />
|
||||||
|
</logger>
|
||||||
|
<logger category="org.jboss.as.config">
|
||||||
|
<level name="DEBUG" />
|
||||||
|
</logger>
|
||||||
|
<logger category="sun.rmi">
|
||||||
|
<level name="WARN" />
|
||||||
|
</logger>
|
||||||
|
|
||||||
|
<!-- Imixs OIDC -->
|
||||||
|
<logger category="org.imixs.security.oidc">
|
||||||
|
<level name="DEBUG" />
|
||||||
|
</logger>
|
||||||
|
<root-logger>
|
||||||
|
<level name="INFO" />
|
||||||
|
<handlers>
|
||||||
|
<handler name="CONSOLE" />
|
||||||
|
<handler name="FILE" />
|
||||||
|
</handlers>
|
||||||
|
</root-logger>
|
||||||
|
<formatter name="PATTERN">
|
||||||
|
<pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n" />
|
||||||
|
</formatter>
|
||||||
|
<formatter name="COLOR-PATTERN">
|
||||||
|
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n" />
|
||||||
|
</formatter>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:batch-jberet:3.0">
|
||||||
|
<default-job-repository name="in-memory" />
|
||||||
|
<default-thread-pool name="batch" />
|
||||||
|
<security-domain name="ApplicationDomain" />
|
||||||
|
<job-repository name="in-memory">
|
||||||
|
<in-memory />
|
||||||
|
</job-repository>
|
||||||
|
<thread-pool name="batch">
|
||||||
|
<max-threads count="10" />
|
||||||
|
<keepalive-time time="30" unit="seconds" />
|
||||||
|
</thread-pool>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:bean-validation:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:core-management:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:datasources:7.0">
|
||||||
|
<datasources>
|
||||||
|
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS"
|
||||||
|
enabled="true" use-java-context="true"
|
||||||
|
statistics-enabled="${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}">
|
||||||
|
<connection-url>
|
||||||
|
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR}</connection-url>
|
||||||
|
<driver>h2</driver>
|
||||||
|
<security>
|
||||||
|
<user-name>sa</user-name>
|
||||||
|
<password>sa</password>
|
||||||
|
</security>
|
||||||
|
</datasource>
|
||||||
|
|
||||||
|
<!-- imixs-workflow datasource -->
|
||||||
|
<datasource jta="true" jndi-name="java:/jdbc/office" pool-name="office"
|
||||||
|
enabled="true" use-ccm="true">
|
||||||
|
<connection-url>${env.POSTGRES_CONNECTION}</connection-url>
|
||||||
|
<driver-class>org.postgresql.Driver</driver-class>
|
||||||
|
<driver>postgresql</driver>
|
||||||
|
<security>
|
||||||
|
<user-name>${env.POSTGRES_USER}</user-name>
|
||||||
|
<password>${env.POSTGRES_PASSWORD}</password>
|
||||||
|
</security>
|
||||||
|
<validation>
|
||||||
|
<valid-connection-checker
|
||||||
|
class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker" />
|
||||||
|
<!-- any background-validation-millis > 0 will enable background validation.
|
||||||
|
See https://jira.jboss.org/browse/JBAS-4088. -->
|
||||||
|
<background-validation-millis>60000</background-validation-millis>
|
||||||
|
<exception-sorter
|
||||||
|
class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"></exception-sorter>
|
||||||
|
</validation>
|
||||||
|
</datasource>
|
||||||
|
<drivers>
|
||||||
|
<driver name="h2" module="com.h2database.h2">
|
||||||
|
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
|
||||||
|
</driver>
|
||||||
|
<!-- Postgres Integration -->
|
||||||
|
<driver name="postgresql" module="org.postgresql">
|
||||||
|
<driver-class>org.postgresql.Driver</driver-class>
|
||||||
|
</driver>
|
||||||
|
</drivers>
|
||||||
|
</datasources>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">
|
||||||
|
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir"
|
||||||
|
scan-interval="5000"
|
||||||
|
runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}" />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:discovery:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:distributable-ejb:1.0" default-bean-management="default">
|
||||||
|
<infinispan-bean-management name="default" max-active-beans="10000"
|
||||||
|
cache-container="ejb" cache="passivation" />
|
||||||
|
<local-client-mappings-registry />
|
||||||
|
<infinispan-timer-management name="persistent" cache-container="ejb" cache="persistent"
|
||||||
|
max-active-timers="10000" />
|
||||||
|
<infinispan-timer-management name="transient" cache-container="ejb" cache="transient"
|
||||||
|
max-active-timers="10000" />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:distributable-web:3.0"
|
||||||
|
default-session-management="default" default-single-sign-on-management="default">
|
||||||
|
<infinispan-session-management name="default" cache-container="web"
|
||||||
|
granularity="SESSION">
|
||||||
|
<local-affinity />
|
||||||
|
</infinispan-session-management>
|
||||||
|
<infinispan-single-sign-on-management name="default" cache-container="web" cache="sso" />
|
||||||
|
<local-routing />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:ee:6.0">
|
||||||
|
<spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
|
||||||
|
<concurrent>
|
||||||
|
<context-services>
|
||||||
|
<context-service name="default"
|
||||||
|
jndi-name="java:jboss/ee/concurrency/context/default" />
|
||||||
|
</context-services>
|
||||||
|
<managed-thread-factories>
|
||||||
|
<managed-thread-factory name="default"
|
||||||
|
jndi-name="java:jboss/ee/concurrency/factory/default"
|
||||||
|
context-service="default" />
|
||||||
|
</managed-thread-factories>
|
||||||
|
<managed-executor-services>
|
||||||
|
<managed-executor-service name="default"
|
||||||
|
jndi-name="java:jboss/ee/concurrency/executor/default"
|
||||||
|
context-service="default" hung-task-termination-period="0"
|
||||||
|
hung-task-threshold="60000" keepalive-time="5000" />
|
||||||
|
</managed-executor-services>
|
||||||
|
<managed-scheduled-executor-services>
|
||||||
|
<managed-scheduled-executor-service name="default"
|
||||||
|
jndi-name="java:jboss/ee/concurrency/scheduler/default"
|
||||||
|
context-service="default" hung-task-termination-period="0"
|
||||||
|
hung-task-threshold="60000" keepalive-time="3000" />
|
||||||
|
</managed-scheduled-executor-services>
|
||||||
|
</concurrent>
|
||||||
|
<default-bindings context-service="java:jboss/ee/concurrency/context/default"
|
||||||
|
datasource="java:jboss/datasources/ExampleDS"
|
||||||
|
managed-executor-service="java:jboss/ee/concurrency/executor/default"
|
||||||
|
managed-scheduled-executor-service="java:jboss/ee/concurrency/scheduler/default"
|
||||||
|
managed-thread-factory="java:jboss/ee/concurrency/factory/default" />
|
||||||
|
|
||||||
|
<!-- GrallVM Scrpting Engine -->
|
||||||
|
<global-modules>
|
||||||
|
<module name="jdk.unsupported" />
|
||||||
|
</global-modules>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:ee-security:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:ejb3:10.0">
|
||||||
|
<session-bean>
|
||||||
|
<stateless>
|
||||||
|
<bean-instance-pool-ref pool-name="slsb-strict-max-pool" />
|
||||||
|
</stateless>
|
||||||
|
<stateful default-access-timeout="5000" cache-ref="simple"
|
||||||
|
passivation-disabled-cache-ref="simple" />
|
||||||
|
<singleton default-access-timeout="5000" />
|
||||||
|
</session-bean>
|
||||||
|
<pools>
|
||||||
|
<bean-instance-pools>
|
||||||
|
<strict-max-pool name="slsb-strict-max-pool" derive-size="from-worker-pools"
|
||||||
|
instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES" />
|
||||||
|
<strict-max-pool name="mdb-strict-max-pool" derive-size="from-cpu-count"
|
||||||
|
instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES" />
|
||||||
|
</bean-instance-pools>
|
||||||
|
</pools>
|
||||||
|
<caches>
|
||||||
|
<simple-cache name="simple" />
|
||||||
|
<distributable-cache name="distributable" />
|
||||||
|
</caches>
|
||||||
|
<async thread-pool-name="default" />
|
||||||
|
<timer-service thread-pool-name="default" default-data-store="default-file-store">
|
||||||
|
<data-stores>
|
||||||
|
<file-data-store name="default-file-store" path="timer-service-data"
|
||||||
|
relative-to="jboss.server.data.dir" />
|
||||||
|
</data-stores>
|
||||||
|
</timer-service>
|
||||||
|
<remote cluster="ejb" connectors="http-remoting-connector" thread-pool-name="default">
|
||||||
|
<channel-creation-options>
|
||||||
|
<option name="MAX_OUTBOUND_MESSAGES" value="1234" type="remoting" />
|
||||||
|
</channel-creation-options>
|
||||||
|
</remote>
|
||||||
|
<thread-pools>
|
||||||
|
<thread-pool name="default">
|
||||||
|
<max-threads count="10" />
|
||||||
|
<keepalive-time time="60" unit="seconds" />
|
||||||
|
</thread-pool>
|
||||||
|
</thread-pools>
|
||||||
|
<default-security-domain value="other" />
|
||||||
|
<application-security-domains>
|
||||||
|
<!-- imixs realm ref -->
|
||||||
|
<application-security-domain name="imixsrealm" security-domain="imixsrealm" />
|
||||||
|
<application-security-domain name="other" security-domain="ApplicationDomain" />
|
||||||
|
</application-security-domains>
|
||||||
|
<default-missing-method-permissions-deny-access value="true" />
|
||||||
|
<statistics
|
||||||
|
enabled="${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}" />
|
||||||
|
<log-system-exceptions value="true" />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:wildfly:elytron:18.0" final-providers="combined-providers"
|
||||||
|
disallowed-providers="OracleUcrypto">
|
||||||
|
<providers>
|
||||||
|
<aggregate-providers name="combined-providers">
|
||||||
|
<providers name="elytron" />
|
||||||
|
<providers name="openssl" />
|
||||||
|
</aggregate-providers>
|
||||||
|
<provider-loader name="elytron" module="org.wildfly.security.elytron" />
|
||||||
|
<provider-loader name="openssl" module="org.wildfly.openssl" />
|
||||||
|
</providers>
|
||||||
|
<audit-logging>
|
||||||
|
<file-audit-log name="local-audit" path="audit.log"
|
||||||
|
relative-to="jboss.server.log.dir" format="JSON" />
|
||||||
|
</audit-logging>
|
||||||
|
<security-domains>
|
||||||
|
<security-domain name="ApplicationDomain" default-realm="ApplicationRealm"
|
||||||
|
permission-mapper="default-permission-mapper">
|
||||||
|
<realm name="ApplicationRealm" role-decoder="groups-to-roles" />
|
||||||
|
<realm name="local" />
|
||||||
|
</security-domain>
|
||||||
|
<security-domain name="ManagementDomain" default-realm="ManagementRealm"
|
||||||
|
permission-mapper="default-permission-mapper">
|
||||||
|
<realm name="ManagementRealm" role-decoder="groups-to-roles" />
|
||||||
|
<realm name="local" role-mapper="super-user-mapper" />
|
||||||
|
</security-domain>
|
||||||
|
<security-domain name="imixsrealm" default-realm="imixsrealm"
|
||||||
|
permission-mapper="default-permission-mapper">
|
||||||
|
<realm name="imixsrealm" />
|
||||||
|
</security-domain>
|
||||||
|
</security-domains>
|
||||||
|
<security-realms>
|
||||||
|
<identity-realm name="local" identity="$local" />
|
||||||
|
<properties-realm name="ApplicationRealm">
|
||||||
|
<users-properties path="application-users.properties"
|
||||||
|
relative-to="jboss.server.config.dir" digest-realm-name="ApplicationRealm" />
|
||||||
|
<groups-properties path="application-roles.properties"
|
||||||
|
relative-to="jboss.server.config.dir" />
|
||||||
|
</properties-realm>
|
||||||
|
<properties-realm name="ManagementRealm">
|
||||||
|
<users-properties path="mgmt-users.properties"
|
||||||
|
relative-to="jboss.server.config.dir" digest-realm-name="ManagementRealm" />
|
||||||
|
<groups-properties path="mgmt-groups.properties"
|
||||||
|
relative-to="jboss.server.config.dir" />
|
||||||
|
</properties-realm>
|
||||||
|
|
||||||
|
<!-- Imixs -->
|
||||||
|
<jdbc-realm name="imixsrealm">
|
||||||
|
<principal-query
|
||||||
|
sql="select PASSWORD from USERID where ID=? AND PASSWORD IS NOT NULL"
|
||||||
|
data-source="office">
|
||||||
|
<simple-digest-mapper algorithm="simple-digest-sha-256" password-index="1"
|
||||||
|
hash-encoding="hex" />
|
||||||
|
</principal-query>
|
||||||
|
<principal-query sql="select GROUP_ID from USERID_USERGROUP where ID=?"
|
||||||
|
data-source="office">
|
||||||
|
<attribute-mapping>
|
||||||
|
<attribute to="Roles" index="1" />
|
||||||
|
</attribute-mapping>
|
||||||
|
</principal-query>
|
||||||
|
</jdbc-realm>
|
||||||
|
|
||||||
|
</security-realms>
|
||||||
|
<mappers>
|
||||||
|
<simple-permission-mapper name="default-permission-mapper" mapping-mode="first">
|
||||||
|
<permission-mapping>
|
||||||
|
<principal name="anonymous" />
|
||||||
|
<permission-set name="default-permissions" />
|
||||||
|
</permission-mapping>
|
||||||
|
<permission-mapping match-all="true">
|
||||||
|
<permission-set name="login-permission" />
|
||||||
|
<permission-set name="default-permissions" />
|
||||||
|
</permission-mapping>
|
||||||
|
</simple-permission-mapper>
|
||||||
|
<constant-realm-mapper name="local" realm-name="local" />
|
||||||
|
<simple-role-decoder name="groups-to-roles" attribute="groups" />
|
||||||
|
<constant-role-mapper name="super-user-mapper">
|
||||||
|
<role name="SuperUser" />
|
||||||
|
</constant-role-mapper>
|
||||||
|
</mappers>
|
||||||
|
<permission-sets>
|
||||||
|
<permission-set name="login-permission">
|
||||||
|
<permission class-name="org.wildfly.security.auth.permission.LoginPermission" />
|
||||||
|
</permission-set>
|
||||||
|
<permission-set name="default-permissions">
|
||||||
|
<permission
|
||||||
|
class-name="org.wildfly.transaction.client.RemoteTransactionPermission"
|
||||||
|
module="org.wildfly.transaction.client" />
|
||||||
|
<permission class-name="org.jboss.ejb.client.RemoteEJBPermission"
|
||||||
|
module="org.jboss.ejb-client" />
|
||||||
|
<permission
|
||||||
|
class-name="org.wildfly.extension.batch.jberet.deployment.BatchPermission"
|
||||||
|
module="org.wildfly.extension.batch.jberet" target-name="*" />
|
||||||
|
</permission-set>
|
||||||
|
</permission-sets>
|
||||||
|
<http>
|
||||||
|
<http-authentication-factory name="application-http-authentication"
|
||||||
|
security-domain="ApplicationDomain" http-server-mechanism-factory="global">
|
||||||
|
<mechanism-configuration>
|
||||||
|
<mechanism mechanism-name="BASIC">
|
||||||
|
<mechanism-realm realm-name="ApplicationRealm" />
|
||||||
|
</mechanism>
|
||||||
|
</mechanism-configuration>
|
||||||
|
</http-authentication-factory>
|
||||||
|
<http-authentication-factory name="management-http-authentication"
|
||||||
|
security-domain="ManagementDomain" http-server-mechanism-factory="global">
|
||||||
|
<mechanism-configuration>
|
||||||
|
<mechanism mechanism-name="DIGEST">
|
||||||
|
<mechanism-realm realm-name="ManagementRealm" />
|
||||||
|
</mechanism>
|
||||||
|
</mechanism-configuration>
|
||||||
|
</http-authentication-factory>
|
||||||
|
<provider-http-server-mechanism-factory name="global" />
|
||||||
|
</http>
|
||||||
|
<sasl>
|
||||||
|
<sasl-authentication-factory name="application-sasl-authentication"
|
||||||
|
sasl-server-factory="configured" security-domain="ApplicationDomain">
|
||||||
|
<mechanism-configuration>
|
||||||
|
<mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local" />
|
||||||
|
<mechanism mechanism-name="DIGEST-MD5">
|
||||||
|
<mechanism-realm realm-name="ApplicationRealm" />
|
||||||
|
</mechanism>
|
||||||
|
</mechanism-configuration>
|
||||||
|
</sasl-authentication-factory>
|
||||||
|
<sasl-authentication-factory name="management-sasl-authentication"
|
||||||
|
sasl-server-factory="configured" security-domain="ManagementDomain">
|
||||||
|
<mechanism-configuration>
|
||||||
|
<mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local" />
|
||||||
|
<mechanism mechanism-name="DIGEST-MD5">
|
||||||
|
<mechanism-realm realm-name="ManagementRealm" />
|
||||||
|
</mechanism>
|
||||||
|
</mechanism-configuration>
|
||||||
|
</sasl-authentication-factory>
|
||||||
|
<configurable-sasl-server-factory name="configured" sasl-server-factory="elytron">
|
||||||
|
<properties>
|
||||||
|
<property name="wildfly.sasl.local-user.default-user" value="$local" />
|
||||||
|
<property name="wildfly.sasl.local-user.challenge-path"
|
||||||
|
value="${jboss.server.temp.dir}/auth" />
|
||||||
|
</properties>
|
||||||
|
</configurable-sasl-server-factory>
|
||||||
|
<mechanism-provider-filtering-sasl-server-factory name="elytron"
|
||||||
|
sasl-server-factory="global">
|
||||||
|
<filters>
|
||||||
|
<filter provider-name="WildFlyElytron" />
|
||||||
|
</filters>
|
||||||
|
</mechanism-provider-filtering-sasl-server-factory>
|
||||||
|
<provider-sasl-server-factory name="global" />
|
||||||
|
</sasl>
|
||||||
|
<tls>
|
||||||
|
<key-stores>
|
||||||
|
<key-store name="applicationKS">
|
||||||
|
<credential-reference clear-text="password" />
|
||||||
|
<implementation type="JKS" />
|
||||||
|
<file path="application.keystore" relative-to="jboss.server.config.dir" />
|
||||||
|
</key-store>
|
||||||
|
</key-stores>
|
||||||
|
<key-managers>
|
||||||
|
<key-manager name="applicationKM" key-store="applicationKS"
|
||||||
|
generate-self-signed-certificate-host="localhost">
|
||||||
|
<credential-reference clear-text="password" />
|
||||||
|
</key-manager>
|
||||||
|
</key-managers>
|
||||||
|
<server-ssl-contexts>
|
||||||
|
<server-ssl-context name="applicationSSC" key-manager="applicationKM" />
|
||||||
|
</server-ssl-contexts>
|
||||||
|
</tls>
|
||||||
|
<policy name="jacc">
|
||||||
|
<jacc-policy />
|
||||||
|
</policy>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:wildfly:elytron-oidc-client:2.0" />
|
||||||
|
<subsystem xmlns="urn:wildfly:health:1.0" security-enabled="false" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:infinispan:14.0">
|
||||||
|
<cache-container name="hibernate" marshaller="JBOSS"
|
||||||
|
modules="org.infinispan.hibernate-cache">
|
||||||
|
<local-cache name="entity">
|
||||||
|
<heap-memory size="10000" />
|
||||||
|
<expiration max-idle="100000" />
|
||||||
|
</local-cache>
|
||||||
|
<local-cache name="local-query">
|
||||||
|
<heap-memory size="10000" />
|
||||||
|
<expiration max-idle="100000" />
|
||||||
|
</local-cache>
|
||||||
|
<local-cache name="timestamps">
|
||||||
|
<expiration interval="0" />
|
||||||
|
</local-cache>
|
||||||
|
<local-cache name="pending-puts">
|
||||||
|
<expiration max-idle="60000" />
|
||||||
|
</local-cache>
|
||||||
|
</cache-container>
|
||||||
|
<cache-container name="ejb" default-cache="passivation" marshaller="PROTOSTREAM"
|
||||||
|
aliases="sfsb" modules="org.wildfly.clustering.ejb.infinispan">
|
||||||
|
<local-cache name="passivation">
|
||||||
|
<expiration interval="0" />
|
||||||
|
<file-store passivation="true" />
|
||||||
|
</local-cache>
|
||||||
|
<local-cache name="persistent">
|
||||||
|
<locking isolation="REPEATABLE_READ" />
|
||||||
|
<transaction mode="BATCH" />
|
||||||
|
<expiration interval="0" />
|
||||||
|
<file-store preload="true" />
|
||||||
|
</local-cache>
|
||||||
|
<local-cache name="transient">
|
||||||
|
<locking isolation="REPEATABLE_READ" />
|
||||||
|
<transaction mode="BATCH" />
|
||||||
|
<expiration interval="0" />
|
||||||
|
<file-store passivation="true" purge="true" />
|
||||||
|
</local-cache>
|
||||||
|
</cache-container>
|
||||||
|
<cache-container name="web" default-cache="passivation" marshaller="PROTOSTREAM"
|
||||||
|
modules="org.wildfly.clustering.web.infinispan">
|
||||||
|
<local-cache name="passivation">
|
||||||
|
<expiration interval="0" />
|
||||||
|
<file-store passivation="true" />
|
||||||
|
</local-cache>
|
||||||
|
<local-cache name="sso">
|
||||||
|
<expiration interval="0" />
|
||||||
|
</local-cache>
|
||||||
|
</cache-container>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:io:3.0">
|
||||||
|
<worker name="default" />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:jaxrs:3.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:jca:6.0">
|
||||||
|
<archive-validation enabled="true" fail-on-error="true" fail-on-warn="false" />
|
||||||
|
<bean-validation enabled="true" />
|
||||||
|
<default-workmanager>
|
||||||
|
<short-running-threads>
|
||||||
|
<core-threads count="50" />
|
||||||
|
<queue-length count="50" />
|
||||||
|
<max-threads count="50" />
|
||||||
|
<keepalive-time time="10" unit="seconds" />
|
||||||
|
</short-running-threads>
|
||||||
|
<long-running-threads>
|
||||||
|
<core-threads count="50" />
|
||||||
|
<queue-length count="50" />
|
||||||
|
<max-threads count="50" />
|
||||||
|
<keepalive-time time="10" unit="seconds" />
|
||||||
|
</long-running-threads>
|
||||||
|
</default-workmanager>
|
||||||
|
<cached-connection-manager />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:jdr:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:jmx:1.3">
|
||||||
|
<expose-resolved-model />
|
||||||
|
<expose-expression-model />
|
||||||
|
<remoting-connector />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:jpa:1.1">
|
||||||
|
<jpa default-extended-persistence-inheritance="DEEP" />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:jsf:1.1" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:mail:4.0">
|
||||||
|
<mail-session name="default" jndi-name="java:jboss/mail/Default">
|
||||||
|
<smtp-server outbound-socket-binding-ref="mail-smtp" />
|
||||||
|
</mail-session>
|
||||||
|
<mail-session name="java:/mail/org.imixs.workflow.mail"
|
||||||
|
jndi-name="java:/mail/org.imixs.workflow.mail" debug="false">
|
||||||
|
<smtp-server outbound-socket-binding-ref="mail-smtp" />
|
||||||
|
</mail-session>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:wildfly:metrics:1.0" security-enabled="false" exposed-subsystems="*"
|
||||||
|
prefix="${wildfly.metrics.prefix:wildfly}" />
|
||||||
|
<subsystem xmlns="urn:wildfly:microprofile-config-smallrye:2.0" />
|
||||||
|
<subsystem xmlns="urn:wildfly:microprofile-health-smallrye:3.0" security-enabled="false"
|
||||||
|
empty-liveness-checks-status="${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}"
|
||||||
|
empty-readiness-checks-status="${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}"
|
||||||
|
empty-startup-checks-status="${env.MP_HEALTH_EMPTY_STARTUP_CHECKS_STATUS:UP}" />
|
||||||
|
|
||||||
|
<subsystem xmlns="urn:wildfly:microprofile-jwt-smallrye:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:naming:2.0">
|
||||||
|
<remote-naming />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:pojo:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:remoting:5.0">
|
||||||
|
<http-connector name="http-remoting-connector" connector-ref="default"
|
||||||
|
sasl-authentication-factory="application-sasl-authentication" />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:request-controller:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:resource-adapters:7.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:sar:1.0" />
|
||||||
|
<subsystem xmlns="urn:jboss:domain:security-manager:1.0">
|
||||||
|
<deployment-permissions>
|
||||||
|
<maximum-set>
|
||||||
|
<permission class="java.security.AllPermission" />
|
||||||
|
</maximum-set>
|
||||||
|
</deployment-permissions>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:transactions:6.0">
|
||||||
|
<core-environment node-identifier="${jboss.tx.node.id:1}">
|
||||||
|
<process-id>
|
||||||
|
<uuid />
|
||||||
|
</process-id>
|
||||||
|
</core-environment>
|
||||||
|
<recovery-environment socket-binding="txn-recovery-environment"
|
||||||
|
status-socket-binding="txn-status-manager" />
|
||||||
|
<!-- set transaction timeout from 5min to 15min - from 15min to 30min -->
|
||||||
|
<coordinator-environment default-timeout="1800"
|
||||||
|
statistics-enabled="${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}}" />
|
||||||
|
<object-store path="tx-object-store" relative-to="jboss.server.data.dir" />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:undertow:14.0" default-virtual-host="default-host"
|
||||||
|
default-servlet-container="default" default-server="default-server"
|
||||||
|
statistics-enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}"
|
||||||
|
default-security-domain="other">
|
||||||
|
<byte-buffer-pool name="default" />
|
||||||
|
<buffer-cache name="default" />
|
||||||
|
<server name="default-server">
|
||||||
|
<http-listener name="default" socket-binding="http" redirect-socket="https"
|
||||||
|
enable-http2="true" />
|
||||||
|
<https-listener name="https" socket-binding="https" ssl-context="applicationSSC"
|
||||||
|
enable-http2="true" />
|
||||||
|
<host name="default-host" alias="localhost">
|
||||||
|
<location name="/" handler="welcome-content" />
|
||||||
|
<http-invoker http-authentication-factory="application-http-authentication" />
|
||||||
|
</host>
|
||||||
|
</server>
|
||||||
|
<servlet-container name="default">
|
||||||
|
<jsp-config />
|
||||||
|
<websockets />
|
||||||
|
</servlet-container>
|
||||||
|
<handlers>
|
||||||
|
<file name="welcome-content" path="${jboss.home.dir}/welcome-content" />
|
||||||
|
</handlers>
|
||||||
|
<application-security-domains>
|
||||||
|
<!-- Disable integrated jaspic -->
|
||||||
|
<application-security-domain name="other" security-domain="ApplicationDomain"
|
||||||
|
integrated-jaspi="false" />
|
||||||
|
<application-security-domain name="imixsrealm" security-domain="imixsrealm"
|
||||||
|
integrated-jaspi="false" />
|
||||||
|
</application-security-domains>
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:webservices:2.0"
|
||||||
|
statistics-enabled="${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}}">
|
||||||
|
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
|
||||||
|
<endpoint-config name="Standard-Endpoint-Config" />
|
||||||
|
<endpoint-config name="Recording-Endpoint-Config">
|
||||||
|
<pre-handler-chain name="recording-handlers"
|
||||||
|
protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
|
||||||
|
<handler name="RecordingHandler"
|
||||||
|
class="org.jboss.ws.common.invocation.RecordingServerHandler" />
|
||||||
|
</pre-handler-chain>
|
||||||
|
</endpoint-config>
|
||||||
|
<client-config name="Standard-Client-Config" />
|
||||||
|
</subsystem>
|
||||||
|
<subsystem xmlns="urn:jboss:domain:weld:5.0" />
|
||||||
|
</profile>
|
||||||
|
<interfaces>
|
||||||
|
<interface name="management">
|
||||||
|
<inet-address value="${jboss.bind.address.management:127.0.0.1}" />
|
||||||
|
</interface>
|
||||||
|
<interface name="public">
|
||||||
|
<inet-address value="${jboss.bind.address:127.0.0.1}" />
|
||||||
|
</interface>
|
||||||
|
</interfaces>
|
||||||
|
<socket-binding-group name="standard-sockets" default-interface="public"
|
||||||
|
port-offset="${jboss.socket.binding.port-offset:0}">
|
||||||
|
<socket-binding name="ajp" port="${jboss.ajp.port:8009}" />
|
||||||
|
<socket-binding name="http" port="${jboss.http.port:8080}" />
|
||||||
|
<socket-binding name="https" port="${jboss.https.port:8443}" />
|
||||||
|
<socket-binding name="management-http" interface="management"
|
||||||
|
port="${jboss.management.http.port:9990}" />
|
||||||
|
<socket-binding name="management-https" interface="management"
|
||||||
|
port="${jboss.management.https.port:9993}" />
|
||||||
|
<socket-binding name="txn-recovery-environment" port="4712" />
|
||||||
|
<socket-binding name="txn-status-manager" port="4713" />
|
||||||
|
<outbound-socket-binding name="mail-smtp">
|
||||||
|
<remote-destination host="${env.MAILGATEWAY}" port="25" />
|
||||||
|
</outbound-socket-binding>
|
||||||
|
</socket-binding-group>
|
||||||
|
</server>
|
||||||
|
|
@ -11,10 +11,10 @@ services:
|
||||||
- dbdata-hai:/var/lib/postgresql/data
|
- dbdata-hai:/var/lib/postgresql/data
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Imixs-Hai
|
# Dynamixs AI
|
||||||
#######################
|
#######################
|
||||||
imixs-hai:
|
dynamixsai:
|
||||||
image: imixs/hai-office-demo
|
image: imixs/dynamixs-ai
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -119,43 +119,10 @@ services:
|
||||||
#######################
|
#######################
|
||||||
# Imixs Admin Client
|
# Imixs Admin Client
|
||||||
#######################
|
#######################
|
||||||
imixsadmin:
|
# imixsadmin:
|
||||||
image: imixs/imixs-admin
|
# image: imixs/imixs-admin
|
||||||
ports:
|
|
||||||
- "8888:8080"
|
|
||||||
|
|
||||||
##################################
|
|
||||||
# Keycloak SQL Server
|
|
||||||
##################################
|
|
||||||
# dbkeycloak:
|
|
||||||
# image: postgres:15
|
|
||||||
# environment:
|
|
||||||
# POSTGRES_PASSWORD: adminadmin
|
|
||||||
# POSTGRES_USER: keycloak
|
|
||||||
# POSTGRES_DB: keycloak
|
|
||||||
# volumes:
|
|
||||||
# - dbkeycloak:/var/lib/postgresql/data
|
|
||||||
|
|
||||||
# ##################################
|
|
||||||
# # Keycloak Server
|
|
||||||
# ##################################
|
|
||||||
# keycloak:
|
|
||||||
# #image: quay.io/keycloak/keycloak:23.0.5
|
|
||||||
# image: quay.io/keycloak/keycloak:26.2.4
|
|
||||||
# command:
|
|
||||||
# - start-dev
|
|
||||||
# environment:
|
|
||||||
# - KEYCLOAK_ADMIN=admin
|
|
||||||
# - KEYCLOAK_ADMIN_PASSWORD=adminadmin
|
|
||||||
# - KC_DB=postgres
|
|
||||||
# - KC_DB_URL=jdbc:postgresql://dbkeycloak:5432/keycloak
|
|
||||||
# - KC_DB_USER=keycloak
|
|
||||||
# - KC_DB_PASSWORD=adminadmin
|
|
||||||
# volumes:
|
|
||||||
# - /etc/localtime:/etc/localtime:ro
|
|
||||||
# - ./configuration/keycloak/themes/:/opt/keycloak/themes/
|
|
||||||
# ports:
|
# ports:
|
||||||
# - "8084:8080"
|
# - "8888:8080"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
dbdata-hai:
|
dbdata-hai:
|
||||||
|
|
|
||||||
172
docker/docker-compose-keycloak.yaml
Normal file
172
docker/docker-compose-keycloak.yaml
Normal file
|
|
@ -0,0 +1,172 @@
|
||||||
|
services:
|
||||||
|
#######################
|
||||||
|
# PostgreSQL
|
||||||
|
#######################
|
||||||
|
db:
|
||||||
|
image: postgres:9.6.1
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: adminadmin
|
||||||
|
POSTGRES_DB: office
|
||||||
|
volumes:
|
||||||
|
- dbdata-hai:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
#######################
|
||||||
|
# Dynamixs AI
|
||||||
|
#######################
|
||||||
|
dynamixsai:
|
||||||
|
image: imixs/dynamixs-ai
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
environment:
|
||||||
|
JAVA_OPTS: "-Dnashorn.args=--no-deprecation-warning"
|
||||||
|
POSTGRES_USER: "postgres"
|
||||||
|
POSTGRES_PASSWORD: "adminadmin"
|
||||||
|
POSTGRES_CONNECTION: "jdbc:postgresql://db/office"
|
||||||
|
TZ: "Europe/Berlin"
|
||||||
|
LANG: "en_US.UTF-8"
|
||||||
|
MAILGATEWAY: "localhost"
|
||||||
|
ASYNCEVENT_PROCESSOR_ENABLED: "true"
|
||||||
|
ASYNCEVENT_PROCESSOR_INITIALDELAY: "30000"
|
||||||
|
OCR_SERVICE_ENDPOINT: "http://tika:9998/tika"
|
||||||
|
OCR_SERVICE_MODE: "MODEL"
|
||||||
|
#OCR_STRATEGY: "NO_OCR, OCR_ONLY, OCR_AND_TEXT_EXTRACTION, AUTO (default)"
|
||||||
|
OCR_STRATEGY: "AUTO"
|
||||||
|
# Collabora integration
|
||||||
|
WOPI_PUBLIC_ENDPOINT: "http://localhost:9980"
|
||||||
|
WOPI_DISCOVERY_ENDPOINT: "http://collabora:9980/hosting/discovery"
|
||||||
|
WOPI_HOST_ENDPOINT: "http://imixs-documents:8080/api/wopi/"
|
||||||
|
COLLABORA_CONVERTER_URL: "http://collabora:9980/lool/convert-to/"
|
||||||
|
|
||||||
|
# Imixs-Archive
|
||||||
|
# ARCHIVE_SERVICE_ENDPOINT: "http://imixs-archive:8080/api"
|
||||||
|
|
||||||
|
# Imixs-AI
|
||||||
|
# Optional configured via imixs.properties
|
||||||
|
LLM_SERVICE_ENDPOINT: "https://llama.cpp.imixs.com/"
|
||||||
|
LLM_SERVICE_ENDPOINT_USER: "admin"
|
||||||
|
LLM_SERVICE_ENDPOINT_PASSWORD: "imixs4.null"
|
||||||
|
|
||||||
|
# Cassandra Embeddings
|
||||||
|
EMBEDDINGS_CLUSTER_CONTACTPOINTS: "cassandra"
|
||||||
|
EMBEDDINGS_CLUSTER_KEYSPACE: "embeddings"
|
||||||
|
|
||||||
|
# OIDC
|
||||||
|
OIDCCONFIG_PROVIDERURI: "http://keycloak.imixs.local:8084/realms/dynamixsai/.well-known/openid-configuration"
|
||||||
|
OIDCCONFIG_CLIENTID: "imixs"
|
||||||
|
OIDCCONFIG_CLIENTSECRET: "aSuEXUeD7bARAlX8o3fLagSYbIagBrrM"
|
||||||
|
OIDCCONFIG_REDIRECTURI: "http://localhost:8080/callback"
|
||||||
|
#OIDCCONFIG_SCOPE: "openid profile email"
|
||||||
|
#OIDCCONFIG_CLAIM_CALLERNAME: "preferred_username"
|
||||||
|
#OIDCCONFIG_CLAIM_ROLES: "groups"
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
- "9990:9990"
|
||||||
|
- "8787:8787"
|
||||||
|
volumes:
|
||||||
|
- ./deployments:/opt/jboss/wildfly/standalone/deployments/
|
||||||
|
- ./import_examples:/opt/jboss/import_examples/
|
||||||
|
|
||||||
|
# Mapping the host ip to the container
|
||||||
|
# This setting is used for local testing only
|
||||||
|
# Wildfly can access the keycloak server via the external host address
|
||||||
|
extra_hosts:
|
||||||
|
- "keycloak.imixs.local:host-gateway"
|
||||||
|
|
||||||
|
#######################
|
||||||
|
# Tika OCR Service
|
||||||
|
#######################
|
||||||
|
tika:
|
||||||
|
#image: imixs/tika
|
||||||
|
image: apache/tika:1.24.1-full
|
||||||
|
environment:
|
||||||
|
TZ: "Europe/Berlin"
|
||||||
|
ports:
|
||||||
|
- "9998:9998"
|
||||||
|
|
||||||
|
#######################
|
||||||
|
# Cassandra
|
||||||
|
#######################
|
||||||
|
cassandra:
|
||||||
|
image: cassandra:5.0.4
|
||||||
|
container_name: cassandra
|
||||||
|
mem_limit: 2G # Mindestens 2 GB RAM für Cassandra 5.x
|
||||||
|
mem_reservation: 1G # Reserviert 1 GB
|
||||||
|
environment:
|
||||||
|
- TZ="Europe/Berlin"
|
||||||
|
- JVM_OPTS=-Xms1G -Xmx1G # Heap auf 1 GB begrenzen
|
||||||
|
- CASSANDRA_CLUSTER_NAME=dynamixsAiCluster
|
||||||
|
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
|
||||||
|
- CASSANDRA_DC=datacenter1
|
||||||
|
- CASSANDRA_RACK=rack1
|
||||||
|
ports:
|
||||||
|
- "9042:9042" # CQL-Port
|
||||||
|
- "7000:7000" # Inter-Node-Kommunikation
|
||||||
|
- "7001:7001" # TLS-fähige Inter-Node-Kommunikation
|
||||||
|
- "7199:7199" # JMX-Port
|
||||||
|
volumes:
|
||||||
|
- cassandra_data:/var/lib/cassandra
|
||||||
|
|
||||||
|
#######################
|
||||||
|
# collabora Office Online
|
||||||
|
#######################
|
||||||
|
collabora:
|
||||||
|
image: collabora/code:23.05.0.5.1
|
||||||
|
#expose:
|
||||||
|
# - 9980
|
||||||
|
ports:
|
||||||
|
- "9980:9980"
|
||||||
|
environment:
|
||||||
|
- username=admin
|
||||||
|
- password=adminadmin
|
||||||
|
- extra_params=--o:ssl.enable=false
|
||||||
|
- aliasgroup1=http://imixs-documents:8080
|
||||||
|
volumes:
|
||||||
|
- ./configuration/collabora/fonts:/usr/share/fonts/truetype/more/
|
||||||
|
- ./configuration/collabora/fonts:/opt/cool/systemplate/usr/share/fonts/truetype/more/
|
||||||
|
|
||||||
|
#######################
|
||||||
|
# Imixs Admin Client
|
||||||
|
#######################
|
||||||
|
# imixsadmin:
|
||||||
|
# image: imixs/imixs-admin
|
||||||
|
# ports:
|
||||||
|
# - "8888:8080"
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# Keycloak SQL Server
|
||||||
|
##################################
|
||||||
|
dbkeycloak:
|
||||||
|
image: postgres:15
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: adminadmin
|
||||||
|
POSTGRES_USER: keycloak
|
||||||
|
POSTGRES_DB: keycloak
|
||||||
|
volumes:
|
||||||
|
- dbkeycloak:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# Keycloak Server
|
||||||
|
##################################
|
||||||
|
keycloak:
|
||||||
|
#image: quay.io/keycloak/keycloak:23.0.5
|
||||||
|
image: quay.io/keycloak/keycloak:26.2.4
|
||||||
|
command:
|
||||||
|
- start-dev
|
||||||
|
environment:
|
||||||
|
- KEYCLOAK_ADMIN=admin
|
||||||
|
- KEYCLOAK_ADMIN_PASSWORD=adminadmin
|
||||||
|
- KC_DB=postgres
|
||||||
|
- KC_DB_URL=jdbc:postgresql://dbkeycloak:5432/keycloak
|
||||||
|
- KC_DB_USER=keycloak
|
||||||
|
- KC_DB_PASSWORD=adminadmin
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- ./configuration/keycloak/themes/:/opt/keycloak/themes/
|
||||||
|
ports:
|
||||||
|
- "8084:8080"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
dbdata-hai:
|
||||||
|
dbkeycloak:
|
||||||
|
cassandra_data:
|
||||||
|
|
@ -12,10 +12,10 @@ services:
|
||||||
- dbdata:/var/lib/postgresql/data
|
- dbdata:/var/lib/postgresql/data
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Imixs-hai
|
# Dynamixs AI
|
||||||
#######################
|
#######################
|
||||||
imixs-hai:
|
dynamixsai:
|
||||||
image: imixs/hai-office-demo
|
image: imixs/dynamixs-ai
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
156
dynamixs-ai-a2a/pom.xml
Normal file
156
dynamixs-ai-a2a/pom.xml
Normal file
|
|
@ -0,0 +1,156 @@
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<artifactId>dynamixs-ai</artifactId>
|
||||||
|
<groupId>ai.dynamixs</groupId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>dynamixs-ai-a2a</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>Dynamixs AI A2A Library</name>
|
||||||
|
|
||||||
|
|
||||||
|
<build>
|
||||||
|
|
||||||
|
<plugins>
|
||||||
|
|
||||||
|
<!-- use JDK settings for compiling -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.8.1</version>
|
||||||
|
<configuration>
|
||||||
|
<source>${java.source}</source>
|
||||||
|
<target>${java.target}</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Testing JUnit 5 -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<version>2.22.2</version>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- issue #572
|
||||||
|
hack for:
|
||||||
|
https://stackoverflow.com/questions/75116023/unable-to-make-protected-final-java-lang-class-java-lang-classloader-defineclass
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<version>3.3.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>default-test</id>
|
||||||
|
<phase>test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>test</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<argLine>
|
||||||
|
--add-opens java.base/java.lang=ALL-UNNAMED
|
||||||
|
</argLine>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<!-- Jakarta EE -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>jakarta.platform</groupId>
|
||||||
|
<artifactId>jakarta.jakartaee-api</artifactId>
|
||||||
|
<version>${jakarta.version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- Microprofile -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.eclipse.microprofile</groupId>
|
||||||
|
<artifactId>microprofile</artifactId>
|
||||||
|
<version>${microprofile.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Imixs Workflow -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.imixs.workflow</groupId>
|
||||||
|
<artifactId>imixs-workflow-core</artifactId>
|
||||||
|
<type>jar</type>
|
||||||
|
<version>${org.imixs.workflow.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.imixs.workflow</groupId>
|
||||||
|
<artifactId>imixs-workflow-engine</artifactId>
|
||||||
|
<type>jar</type>
|
||||||
|
<version>${org.imixs.workflow.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.imixs.workflow</groupId>
|
||||||
|
<artifactId>imixs-workflow-jax-rs</artifactId>
|
||||||
|
<type>jar</type>
|
||||||
|
<version>${org.imixs.workflow.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.imixs.workflow</groupId>
|
||||||
|
<artifactId>imixs-workflow-faces</artifactId>
|
||||||
|
<type>jar</type>
|
||||||
|
<version>${org.imixs.workflow.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Testing -->
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter-api</artifactId>
|
||||||
|
<version>${junit.jupiter.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter-engine</artifactId>
|
||||||
|
<version>${junit.jupiter.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-core</artifactId>
|
||||||
|
<version>${mockito.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-junit-jupiter</artifactId>
|
||||||
|
<version>${mockito.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.eclipse.parsson</groupId>
|
||||||
|
<artifactId>jakarta.json</artifactId>
|
||||||
|
<version>1.1.1</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.glassfish.jaxb</groupId>
|
||||||
|
<artifactId>jaxb-runtime</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jakarta.xml.bind</groupId>
|
||||||
|
<artifactId>jakarta.xml.bind-api</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
448
dynamixs-ai-a2a/src/main/java/ai/dynamixs/a2a/A2ASkillCard.java
Normal file
448
dynamixs-ai-a2a/src/main/java/ai/dynamixs/a2a/A2ASkillCard.java
Normal file
|
|
@ -0,0 +1,448 @@
|
||||||
|
package ai.dynamixs.a2a;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
import jakarta.json.Json;
|
||||||
|
import jakarta.json.JsonArray;
|
||||||
|
import jakarta.json.JsonArrayBuilder;
|
||||||
|
import jakarta.json.JsonObject;
|
||||||
|
import jakarta.json.JsonObjectBuilder;
|
||||||
|
import jakarta.json.JsonString;
|
||||||
|
import jakarta.json.JsonValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an A2A Skill Card based on Imixs-Workflow BPMN models.
|
||||||
|
*
|
||||||
|
* The skill ID follows the pattern: {modelVersion}_{taskId}_{eventId} This
|
||||||
|
* allows direct mapping to Imixs workflow execution parameters.
|
||||||
|
*
|
||||||
|
* Example: "office-de-2.0_100_10" represents: - Model Version: "office-de-2.0"
|
||||||
|
* - Task ID: 100 - Event ID: 10
|
||||||
|
*/
|
||||||
|
public class A2ASkillCard implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private static final Logger logger = Logger.getLogger(A2ASkillCard.class.getSimpleName());
|
||||||
|
|
||||||
|
// A2A Standard Fields
|
||||||
|
private String id; // {modelVersion}_{taskId}_{eventId}
|
||||||
|
private String name; // Human-readable skill name
|
||||||
|
private String description; // Detailed description
|
||||||
|
private List<String> tags; // Categorization tags
|
||||||
|
private List<String> examples; // Example usage scenarios
|
||||||
|
private List<String> inputModes; // Supported input media types
|
||||||
|
private List<String> outputModes; // Supported output media types
|
||||||
|
private Map<String, Object> metadata; // Additional metadata
|
||||||
|
|
||||||
|
// Constructors
|
||||||
|
public A2ASkillCard() {
|
||||||
|
this.tags = new ArrayList<>();
|
||||||
|
this.examples = new ArrayList<>();
|
||||||
|
this.inputModes = new ArrayList<>();
|
||||||
|
this.outputModes = new ArrayList<>();
|
||||||
|
this.metadata = new HashMap<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Id is computed by version, task and event id "invoice-workflow-2.1_100_10"
|
||||||
|
*
|
||||||
|
* @param modelVersion
|
||||||
|
* @param taskID
|
||||||
|
* @param eventID
|
||||||
|
*/
|
||||||
|
public A2ASkillCard(String modelVersion, int taskID, int eventID) {
|
||||||
|
this();
|
||||||
|
this.id = createSkillId(modelVersion, taskID, eventID);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Imixs-specific convenience methods for parsing skill ID
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts the model version from the skill ID
|
||||||
|
*
|
||||||
|
* @return model version (e.g., "office-de-2.0")
|
||||||
|
*/
|
||||||
|
public String getModelVersion() {
|
||||||
|
if (id == null || !id.contains("_")) {
|
||||||
|
throw new IllegalStateException("Invalid skill ID format: " + id);
|
||||||
|
}
|
||||||
|
return id.substring(0, id.lastIndexOf('_', id.lastIndexOf('_') - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts the task ID from the skill ID
|
||||||
|
*
|
||||||
|
* @return Imixs task ID as integer
|
||||||
|
*/
|
||||||
|
public int getTaskId() {
|
||||||
|
if (id == null || !id.contains("_")) {
|
||||||
|
throw new IllegalStateException("Invalid skill ID format: " + id);
|
||||||
|
}
|
||||||
|
String[] parts = id.split("_");
|
||||||
|
if (parts.length < 3) {
|
||||||
|
throw new IllegalStateException("Invalid skill ID format: " + id);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
return Integer.parseInt(parts[parts.length - 2]);
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
throw new IllegalStateException("Invalid task ID in skill ID: " + id, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extracts the event ID from the skill ID
|
||||||
|
*
|
||||||
|
* @return Imixs event ID as integer
|
||||||
|
*/
|
||||||
|
public int getEventId() {
|
||||||
|
if (id == null || !id.contains("_")) {
|
||||||
|
throw new IllegalStateException("Invalid skill ID format: " + id);
|
||||||
|
}
|
||||||
|
String[] parts = id.split("_");
|
||||||
|
if (parts.length < 3) {
|
||||||
|
throw new IllegalStateException("Invalid skill ID format: " + id);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
return Integer.parseInt(parts[parts.length - 1]);
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
throw new IllegalStateException("Invalid event ID in skill ID: " + id, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a skill ID from Imixs workflow components
|
||||||
|
*
|
||||||
|
* @param modelVersion the workflow model version
|
||||||
|
* @param taskId the task ID
|
||||||
|
* @param eventId the event ID
|
||||||
|
* @return formatted skill ID
|
||||||
|
*/
|
||||||
|
public static String createSkillId(String modelVersion, int taskId, int eventId) {
|
||||||
|
if (modelVersion == null || modelVersion.trim().isEmpty()) {
|
||||||
|
throw new IllegalArgumentException("Model version cannot be null or empty");
|
||||||
|
}
|
||||||
|
return String.format("%s_%d_%d", modelVersion, taskId, eventId);
|
||||||
|
}
|
||||||
|
|
||||||
|
// JSON Serialization
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts this skill card to a Jakarta JSON object
|
||||||
|
*
|
||||||
|
* @return JsonObject representation of this skill card
|
||||||
|
*/
|
||||||
|
public JsonObject toJsonObject() {
|
||||||
|
JsonObjectBuilder builder = Json.createObjectBuilder()
|
||||||
|
.add("id", id != null ? id : "")
|
||||||
|
.add("name", name != null ? name : "")
|
||||||
|
.add("description", description != null ? description : "");
|
||||||
|
|
||||||
|
// Tags array
|
||||||
|
JsonArrayBuilder tagsBuilder = Json.createArrayBuilder();
|
||||||
|
if (tags != null) {
|
||||||
|
tags.forEach(tagsBuilder::add);
|
||||||
|
}
|
||||||
|
builder.add("tags", tagsBuilder.build());
|
||||||
|
|
||||||
|
// Examples array
|
||||||
|
JsonArrayBuilder examplesBuilder = Json.createArrayBuilder();
|
||||||
|
if (examples != null) {
|
||||||
|
examples.forEach(examplesBuilder::add);
|
||||||
|
}
|
||||||
|
builder.add("examples", examplesBuilder.build());
|
||||||
|
|
||||||
|
// Input modes array
|
||||||
|
JsonArrayBuilder inputModesBuilder = Json.createArrayBuilder();
|
||||||
|
if (inputModes != null) {
|
||||||
|
inputModes.forEach(inputModesBuilder::add);
|
||||||
|
}
|
||||||
|
builder.add("inputModes", inputModesBuilder.build());
|
||||||
|
|
||||||
|
// Output modes array
|
||||||
|
JsonArrayBuilder outputModesBuilder = Json.createArrayBuilder();
|
||||||
|
if (outputModes != null) {
|
||||||
|
outputModes.forEach(outputModesBuilder::add);
|
||||||
|
}
|
||||||
|
builder.add("outputModes", outputModesBuilder.build());
|
||||||
|
|
||||||
|
// Metadata object
|
||||||
|
if (metadata != null && !metadata.isEmpty()) {
|
||||||
|
JsonObjectBuilder metadataBuilder = Json.createObjectBuilder();
|
||||||
|
metadata.forEach((key, value) -> {
|
||||||
|
if (value instanceof String) {
|
||||||
|
metadataBuilder.add(key, (String) value);
|
||||||
|
} else if (value instanceof Number) {
|
||||||
|
metadataBuilder.add(key, ((Number) value).doubleValue());
|
||||||
|
} else if (value instanceof Boolean) {
|
||||||
|
metadataBuilder.add(key, (Boolean) value);
|
||||||
|
} else if (value != null) {
|
||||||
|
metadataBuilder.add(key, value.toString());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
builder.add("metadata", metadataBuilder.build());
|
||||||
|
}
|
||||||
|
|
||||||
|
return builder.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an A2ASkillCard from a JSON string
|
||||||
|
*
|
||||||
|
* @param jsonString JSON representation of a skill card
|
||||||
|
* @return A2ASkillCard instance
|
||||||
|
*/
|
||||||
|
// public static A2ASkillCard fromJsonString(String jsonString) {
|
||||||
|
// try (JsonReader reader = Json.createReader(new
|
||||||
|
// java.io.StringReader(jsonString))) {
|
||||||
|
// JsonObject jsonObject = reader.readObject();
|
||||||
|
// return fromJsonObject(jsonObject);
|
||||||
|
// } catch (Exception e) {
|
||||||
|
// logger.severe("Failed to parse A2ASkillCard from JSON: " + e.getMessage());
|
||||||
|
// throw new IllegalArgumentException("Invalid JSON format for A2ASkillCard",
|
||||||
|
// e);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an A2ASkillCard from a JsonObject
|
||||||
|
*
|
||||||
|
* @param jsonObject JsonObject representation
|
||||||
|
* @return A2ASkillCard instance
|
||||||
|
*/
|
||||||
|
public static A2ASkillCard fromJsonObject(JsonObject jsonObject) {
|
||||||
|
A2ASkillCard skill = new A2ASkillCard();
|
||||||
|
|
||||||
|
// Basic fields
|
||||||
|
skill.setId(jsonObject.getString("id", ""));
|
||||||
|
skill.setName(jsonObject.getString("name", ""));
|
||||||
|
skill.setDescription(jsonObject.getString("description", ""));
|
||||||
|
|
||||||
|
// Arrays
|
||||||
|
if (jsonObject.containsKey("tags")) {
|
||||||
|
JsonArray tagsArray = jsonObject.getJsonArray("tags");
|
||||||
|
skill.setTags(jsonArrayToStringList(tagsArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (jsonObject.containsKey("examples")) {
|
||||||
|
JsonArray examplesArray = jsonObject.getJsonArray("examples");
|
||||||
|
skill.setExamples(jsonArrayToStringList(examplesArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (jsonObject.containsKey("inputModes")) {
|
||||||
|
JsonArray inputModesArray = jsonObject.getJsonArray("inputModes");
|
||||||
|
skill.setInputModes(jsonArrayToStringList(inputModesArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (jsonObject.containsKey("outputModes")) {
|
||||||
|
JsonArray outputModesArray = jsonObject.getJsonArray("outputModes");
|
||||||
|
skill.setOutputModes(jsonArrayToStringList(outputModesArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Metadata
|
||||||
|
if (jsonObject.containsKey("metadata")) {
|
||||||
|
JsonObject metadataObject = jsonObject.getJsonObject("metadata");
|
||||||
|
Map<String, Object> metadata = new HashMap<>();
|
||||||
|
metadataObject.forEach((key, value) -> {
|
||||||
|
switch (value.getValueType()) {
|
||||||
|
case STRING:
|
||||||
|
metadata.put(key, ((JsonString) value).getString());
|
||||||
|
break;
|
||||||
|
case NUMBER:
|
||||||
|
metadata.put(key, ((jakarta.json.JsonNumber) value).doubleValue());
|
||||||
|
break;
|
||||||
|
case TRUE:
|
||||||
|
metadata.put(key, Boolean.TRUE);
|
||||||
|
break;
|
||||||
|
case FALSE:
|
||||||
|
metadata.put(key, Boolean.FALSE);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
metadata.put(key, value.toString());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
skill.setMetadata(metadata);
|
||||||
|
}
|
||||||
|
|
||||||
|
return skill;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper method to convert JsonArray to List<String>
|
||||||
|
*/
|
||||||
|
private static List<String> jsonArrayToStringList(JsonArray jsonArray) {
|
||||||
|
List<String> list = new ArrayList<>();
|
||||||
|
for (JsonValue value : jsonArray) {
|
||||||
|
if (value.getValueType() == JsonValue.ValueType.STRING) {
|
||||||
|
list.add(((JsonString) value).getString());
|
||||||
|
} else {
|
||||||
|
list.add(value.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Validation
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validates this skill card for A2A compliance
|
||||||
|
*
|
||||||
|
* @return true if valid, false otherwise
|
||||||
|
*/
|
||||||
|
public boolean isValid() {
|
||||||
|
if (id == null || id.trim().isEmpty()) {
|
||||||
|
logger.warning("Skill card validation failed: missing ID");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (name == null || name.trim().isEmpty()) {
|
||||||
|
logger.warning("Skill card validation failed: missing name");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (description == null || description.trim().isEmpty()) {
|
||||||
|
logger.warning("Skill card validation failed: missing description");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Validate skill ID format
|
||||||
|
try {
|
||||||
|
getModelVersion();
|
||||||
|
getTaskId();
|
||||||
|
getEventId();
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warning("Skill card validation failed: invalid ID format: " + id);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Getters and Setters
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getTags() {
|
||||||
|
return tags;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTags(List<String> tags) {
|
||||||
|
this.tags = tags != null ? tags : new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getExamples() {
|
||||||
|
return examples;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExamples(List<String> examples) {
|
||||||
|
this.examples = examples != null ? examples : new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getInputModes() {
|
||||||
|
return inputModes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInputModes(List<String> inputModes) {
|
||||||
|
this.inputModes = inputModes != null ? inputModes : new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getOutputModes() {
|
||||||
|
return outputModes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOutputModes(List<String> outputModes) {
|
||||||
|
this.outputModes = outputModes != null ? outputModes : new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Map<String, Object> getMetadata() {
|
||||||
|
return metadata;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMetadata(Map<String, Object> metadata) {
|
||||||
|
this.metadata = metadata != null ? metadata : new HashMap<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convenience methods for metadata
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a metadata entry
|
||||||
|
*/
|
||||||
|
public void addMetadata(String key, Object value) {
|
||||||
|
if (metadata == null) {
|
||||||
|
metadata = new HashMap<>();
|
||||||
|
}
|
||||||
|
metadata.put(key, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a metadata value as String
|
||||||
|
*/
|
||||||
|
public String getMetadataString(String key) {
|
||||||
|
Object value = metadata != null ? metadata.get(key) : null;
|
||||||
|
return value != null ? value.toString() : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a metadata value as Boolean
|
||||||
|
*/
|
||||||
|
public Boolean getMetadataBoolean(String key) {
|
||||||
|
Object value = metadata != null ? metadata.get(key) : null;
|
||||||
|
if (value instanceof Boolean) {
|
||||||
|
return (Boolean) value;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// toString for debugging
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.format("A2ASkillCard{id='%s', name='%s', modelVersion='%s', taskId=%d, eventId=%d}",
|
||||||
|
id, name,
|
||||||
|
id != null ? getModelVersion() : "unknown",
|
||||||
|
id != null ? getTaskId() : -1,
|
||||||
|
id != null ? getEventId() : -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null || getClass() != obj.getClass())
|
||||||
|
return false;
|
||||||
|
A2ASkillCard that = (A2ASkillCard) obj;
|
||||||
|
return id != null ? id.equals(that.id) : that.id == null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return id != null ? id.hashCode() : 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,436 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Imixs Workflow
|
||||||
|
* Copyright (C) 2001, 2011 Imixs Software Solutions GmbH,
|
||||||
|
* http://www.imixs.com
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* as published by the Free Software Foundation; either version 2
|
||||||
|
* of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You can receive a copy of the GNU General Public
|
||||||
|
* License at http://www.gnu.org/licenses/gpl.html
|
||||||
|
*
|
||||||
|
* Project:
|
||||||
|
* http://www.imixs.org
|
||||||
|
* http://java.net/projects/imixs-workflow
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Imixs Software Solutions GmbH - initial API and implementation
|
||||||
|
* Ralph Soika - Software Developer
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
package ai.dynamixs.a2a;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import jakarta.enterprise.context.RequestScoped;
|
||||||
|
import jakarta.inject.Inject;
|
||||||
|
import jakarta.inject.Named;
|
||||||
|
import jakarta.json.Json;
|
||||||
|
import jakarta.json.JsonArray;
|
||||||
|
import jakarta.json.JsonArrayBuilder;
|
||||||
|
import jakarta.json.JsonObject;
|
||||||
|
import jakarta.json.JsonObjectBuilder;
|
||||||
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.GET;
|
||||||
|
import jakarta.ws.rs.POST;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.core.Context;
|
||||||
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
import jakarta.ws.rs.core.Response;
|
||||||
|
import jakarta.ws.rs.core.UriInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The TextblockRestService provides methods to access the content of a textbock
|
||||||
|
* in various ways.
|
||||||
|
*
|
||||||
|
* @author rsoika
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Named
|
||||||
|
@RequestScoped
|
||||||
|
@Path("/a2a/")
|
||||||
|
@Produces({ MediaType.TEXT_HTML, MediaType.APPLICATION_XHTML_XML, MediaType.TEXT_PLAIN })
|
||||||
|
public class A2ASkillCardRestService implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private static Logger logger = Logger.getLogger(A2ASkillCardRestService.class.getSimpleName());
|
||||||
|
|
||||||
|
@Context
|
||||||
|
UriInfo uriInfo;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
A2ASkillService a2aSkillService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A2A Agent Card Discovery Endpoint According to RFC 8615 - Well-Known URIs
|
||||||
|
* URL: /.well-known/agent.json
|
||||||
|
*/
|
||||||
|
@GET
|
||||||
|
@Path("/.well-known/agent.json")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public Response getAgentCard() {
|
||||||
|
try {
|
||||||
|
JsonObject agentCard = buildAgentCard();
|
||||||
|
return Response.ok(agentCard).build();
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.severe("Error creating agent card: " + e.getMessage());
|
||||||
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
|
||||||
|
.entity(buildJsonRpcError(-32603, "Internal server error", null))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A2A JSON-RPC 2.0 Endpoint All A2A protocol methods are handled here URL:
|
||||||
|
* /a2a/v1 (as specified in Agent Card)
|
||||||
|
*/
|
||||||
|
@POST
|
||||||
|
@Path("/a2a/v1")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public Response handleJsonRpcRequest(JsonObject request) {
|
||||||
|
try {
|
||||||
|
// Validate JSON-RPC 2.0 structure
|
||||||
|
if (!isValidJsonRpcRequest(request)) {
|
||||||
|
return Response.status(Response.Status.BAD_REQUEST)
|
||||||
|
.entity(buildJsonRpcError(-32600, "Invalid Request", null))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
String method = request.getString("method");
|
||||||
|
Object id = request.get("id");
|
||||||
|
JsonObject params = request.getJsonObject("params");
|
||||||
|
|
||||||
|
// Route to appropriate A2A method
|
||||||
|
switch (method) {
|
||||||
|
case "message/send":
|
||||||
|
return handleMessageSend(id, params);
|
||||||
|
case "tasks/get":
|
||||||
|
return handleTasksGet(id, params);
|
||||||
|
case "tasks/cancel":
|
||||||
|
return handleTasksCancel(id, params);
|
||||||
|
case "agent/authenticatedExtendedCard":
|
||||||
|
return handleAuthenticatedExtendedCard(id, params);
|
||||||
|
default:
|
||||||
|
return Response.status(Response.Status.NOT_FOUND)
|
||||||
|
.entity(buildJsonRpcError(-32601, "Method not found", id))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.severe("Error processing JSON-RPC request: " + e.getMessage());
|
||||||
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
|
||||||
|
.entity(buildJsonRpcError(-32603, "Internal server error", null))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds the A2A compliant Agent Card
|
||||||
|
*/
|
||||||
|
private JsonObject buildAgentCard() {
|
||||||
|
// Security schemes for authentication
|
||||||
|
JsonObject securitySchemes = Json.createObjectBuilder()
|
||||||
|
.add("bearer", Json.createObjectBuilder()
|
||||||
|
.add("type", "http")
|
||||||
|
.add("scheme", "bearer")
|
||||||
|
.add("bearerFormat", "JWT")
|
||||||
|
.build())
|
||||||
|
.add("apiKey", Json.createObjectBuilder()
|
||||||
|
.add("type", "apiKey")
|
||||||
|
.add("in", "header")
|
||||||
|
.add("name", "X-API-Key")
|
||||||
|
.build())
|
||||||
|
.build();
|
||||||
|
|
||||||
|
// Security requirements
|
||||||
|
JsonArray security = Json.createArrayBuilder()
|
||||||
|
.add(Json.createObjectBuilder()
|
||||||
|
.add("bearer", Json.createArrayBuilder().build())
|
||||||
|
.build())
|
||||||
|
.build();
|
||||||
|
|
||||||
|
// Agent capabilities
|
||||||
|
JsonObject capabilities = Json.createObjectBuilder()
|
||||||
|
.add("streaming", false) // SSE not implemented yet
|
||||||
|
.add("pushNotifications", false) // Push notifications not implemented yet
|
||||||
|
.add("stateTransitionHistory", false)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
// Agent provider information
|
||||||
|
JsonObject provider = Json.createObjectBuilder()
|
||||||
|
.add("organization", "Dynamixs.AI")
|
||||||
|
.add("url", "https://www.dynamixs.ai")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
// Skills array
|
||||||
|
JsonArray skills = buildA2ASkills();
|
||||||
|
|
||||||
|
// Build complete A2A Agent Card
|
||||||
|
JsonObjectBuilder cardBuilder = Json.createObjectBuilder()
|
||||||
|
.add("name", "Dynamixs.AI Processing Agent")
|
||||||
|
.add("description",
|
||||||
|
"An agent for processing business documents and tasks.")
|
||||||
|
.add("url", getBaseUrl() + "a2a/v1") // JSON-RPC endpoint
|
||||||
|
.add("provider", provider)
|
||||||
|
.add("version", "1.0.0")
|
||||||
|
.add("documentationUrl", getBaseUrl() + "docs/a2a")
|
||||||
|
.add("capabilities", capabilities)
|
||||||
|
.add("securitySchemes", securitySchemes)
|
||||||
|
.add("security", security)
|
||||||
|
.add("defaultInputModes", Json.createArrayBuilder()
|
||||||
|
.add("text/plain")
|
||||||
|
.add("application/json")
|
||||||
|
.build())
|
||||||
|
.add("defaultOutputModes", Json.createArrayBuilder()
|
||||||
|
.add("text/plain")
|
||||||
|
.add("application/json")
|
||||||
|
.add("text/html")
|
||||||
|
.build())
|
||||||
|
.add("skills", skills)
|
||||||
|
.add("supportsAuthenticatedExtendedCard", false); // Simplified for now
|
||||||
|
|
||||||
|
return cardBuilder.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds A2A compliant skills array
|
||||||
|
*/
|
||||||
|
private JsonArray buildA2ASkills() {
|
||||||
|
|
||||||
|
logger.info("Starting to build A2A skills...");
|
||||||
|
|
||||||
|
List<A2ASkillCard> skills = a2aSkillService.parseModels();
|
||||||
|
logger.info("parseModels() returned " + (skills != null ? skills.size() : "null") + " skills");
|
||||||
|
|
||||||
|
if (skills != null) {
|
||||||
|
for (A2ASkillCard skill : skills) {
|
||||||
|
logger.info("Skill found: " + skill.getId() + " - Valid: " + skill.isValid());
|
||||||
|
if (!skill.isValid()) {
|
||||||
|
logger.warning("Invalid skill: " + skill);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
List<A2ASkillCard> validSkills = skills.stream()
|
||||||
|
.filter(A2ASkillCard::isValid)
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
logger.info("Valid skills after filtering: " + validSkills.size());
|
||||||
|
|
||||||
|
return validSkills.stream()
|
||||||
|
.map(A2ASkillCard::toJsonObject)
|
||||||
|
.collect(Json::createArrayBuilder,
|
||||||
|
JsonArrayBuilder::add,
|
||||||
|
JsonArrayBuilder::addAll)
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle A2A message/send method
|
||||||
|
*/
|
||||||
|
private Response handleMessageSend(Object id, JsonObject params) {
|
||||||
|
try {
|
||||||
|
// Extract message from params
|
||||||
|
JsonObject message = params.getJsonObject("message");
|
||||||
|
if (message == null) {
|
||||||
|
return Response.status(Response.Status.BAD_REQUEST)
|
||||||
|
.entity(buildJsonRpcError(-32602, "Invalid params: missing message",
|
||||||
|
id))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Process the message and create a task
|
||||||
|
String taskId = generateTaskId();
|
||||||
|
String contextId = generateContextId();
|
||||||
|
|
||||||
|
// For demo: create a simple completed task
|
||||||
|
JsonObject task = Json.createObjectBuilder()
|
||||||
|
.add("id", taskId)
|
||||||
|
.add("contextId", contextId)
|
||||||
|
.add("status", Json.createObjectBuilder()
|
||||||
|
.add("state", "completed")
|
||||||
|
.add("timestamp", getCurrentTimestamp())
|
||||||
|
.build())
|
||||||
|
.add("artifacts", Json.createArrayBuilder()
|
||||||
|
.add(Json.createObjectBuilder()
|
||||||
|
.add("artifactId", generateArtifactId())
|
||||||
|
.add("name", "Processing Result")
|
||||||
|
.add("parts", Json.createArrayBuilder()
|
||||||
|
.add(Json.createObjectBuilder()
|
||||||
|
.add("kind", "text")
|
||||||
|
.add("text", "Task completed successfully. Message processed: "
|
||||||
|
+
|
||||||
|
message.getJsonArray(
|
||||||
|
"parts")
|
||||||
|
.getJsonObject(0)
|
||||||
|
.getString("text",
|
||||||
|
""))
|
||||||
|
.build())
|
||||||
|
.build())
|
||||||
|
.build())
|
||||||
|
.build())
|
||||||
|
.add("history", Json.createArrayBuilder()
|
||||||
|
.add(message)
|
||||||
|
.build())
|
||||||
|
.add("kind", "task")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
// Return JSON-RPC success response
|
||||||
|
JsonObject response = Json.createObjectBuilder()
|
||||||
|
.add("jsonrpc", "2.0")
|
||||||
|
.add("id", id.toString())
|
||||||
|
.add("result", task)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
return Response.ok(response).build();
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.severe("Error in message/send: " + e.getMessage());
|
||||||
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
|
||||||
|
.entity(buildJsonRpcError(-32603, "Internal server error", id))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle A2A tasks/get method
|
||||||
|
*/
|
||||||
|
private Response handleTasksGet(Object id, JsonObject params) {
|
||||||
|
try {
|
||||||
|
String taskId = params.getString("id");
|
||||||
|
|
||||||
|
// For demo: return a mock task
|
||||||
|
JsonObject task = Json.createObjectBuilder()
|
||||||
|
.add("id", taskId)
|
||||||
|
.add("contextId", generateContextId())
|
||||||
|
.add("status", Json.createObjectBuilder()
|
||||||
|
.add("state", "completed")
|
||||||
|
.add("timestamp", getCurrentTimestamp())
|
||||||
|
.build())
|
||||||
|
.add("kind", "task")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
JsonObject response = Json.createObjectBuilder()
|
||||||
|
.add("jsonrpc", "2.0")
|
||||||
|
.add("id", id.toString())
|
||||||
|
.add("result", task)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
return Response.ok(response).build();
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.severe("Error in tasks/get: " + e.getMessage());
|
||||||
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
|
||||||
|
.entity(buildJsonRpcError(-32001, "Task not found", id))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle A2A tasks/cancel method
|
||||||
|
*/
|
||||||
|
private Response handleTasksCancel(Object id, JsonObject params) {
|
||||||
|
try {
|
||||||
|
String taskId = params.getString("id");
|
||||||
|
|
||||||
|
JsonObject task = Json.createObjectBuilder()
|
||||||
|
.add("id", taskId)
|
||||||
|
.add("contextId", generateContextId())
|
||||||
|
.add("status", Json.createObjectBuilder()
|
||||||
|
.add("state", "canceled")
|
||||||
|
.add("timestamp", getCurrentTimestamp())
|
||||||
|
.build())
|
||||||
|
.add("kind", "task")
|
||||||
|
.build();
|
||||||
|
|
||||||
|
JsonObject response = Json.createObjectBuilder()
|
||||||
|
.add("jsonrpc", "2.0")
|
||||||
|
.add("id", id.toString())
|
||||||
|
.add("result", task)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
return Response.ok(response).build();
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
|
||||||
|
.entity(buildJsonRpcError(-32002, "Task cannot be canceled", id))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle authenticated extended card (not implemented)
|
||||||
|
*/
|
||||||
|
private Response handleAuthenticatedExtendedCard(Object id, JsonObject params) {
|
||||||
|
return Response.status(Response.Status.NOT_IMPLEMENTED)
|
||||||
|
.entity(buildJsonRpcError(-32004, "This operation is not supported", id))
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validates JSON-RPC 2.0 request structure
|
||||||
|
*/
|
||||||
|
private boolean isValidJsonRpcRequest(JsonObject request) {
|
||||||
|
return request.containsKey("jsonrpc") &&
|
||||||
|
"2.0".equals(request.getString("jsonrpc")) &&
|
||||||
|
request.containsKey("method") &&
|
||||||
|
request.containsKey("id");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds a JSON-RPC 2.0 error response
|
||||||
|
*/
|
||||||
|
private JsonObject buildJsonRpcError(int code, String message, Object id) {
|
||||||
|
JsonObjectBuilder errorBuilder = Json.createObjectBuilder()
|
||||||
|
.add("code", code)
|
||||||
|
.add("message", message);
|
||||||
|
|
||||||
|
JsonObjectBuilder responseBuilder = Json.createObjectBuilder()
|
||||||
|
.add("jsonrpc", "2.0")
|
||||||
|
.add("error", errorBuilder.build());
|
||||||
|
|
||||||
|
if (id != null) {
|
||||||
|
responseBuilder.add("id", id.toString());
|
||||||
|
} else {
|
||||||
|
responseBuilder.addNull("id");
|
||||||
|
}
|
||||||
|
|
||||||
|
return responseBuilder.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper methods for generating IDs and timestamps
|
||||||
|
*/
|
||||||
|
private String generateTaskId() {
|
||||||
|
return java.util.UUID.randomUUID().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private String generateContextId() {
|
||||||
|
return java.util.UUID.randomUUID().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private String generateArtifactId() {
|
||||||
|
return java.util.UUID.randomUUID().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getCurrentTimestamp() {
|
||||||
|
return java.time.Instant.now().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getBaseUrl() {
|
||||||
|
return uriInfo.getBaseUri().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,152 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Imixs Workflow
|
||||||
|
* Copyright (C) 2001, 2011 Imixs Software Solutions GmbH,
|
||||||
|
* http://www.imixs.com
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* as published by the Free Software Foundation; either version 2
|
||||||
|
* of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You can receive a copy of the GNU General Public
|
||||||
|
* License at http://www.gnu.org/licenses/gpl.html
|
||||||
|
*
|
||||||
|
* Project:
|
||||||
|
* http://www.imixs.org
|
||||||
|
* http://java.net/projects/imixs-workflow
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Imixs Software Solutions GmbH - initial API and implementation
|
||||||
|
* Ralph Soika - Software Developer
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
package ai.dynamixs.a2a;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
import org.imixs.workflow.ItemCollection;
|
||||||
|
import org.imixs.workflow.ModelManager;
|
||||||
|
import org.imixs.workflow.engine.ModelService;
|
||||||
|
import org.imixs.workflow.engine.WorkflowService;
|
||||||
|
import org.imixs.workflow.exceptions.ModelException;
|
||||||
|
import org.imixs.workflow.exceptions.PluginException;
|
||||||
|
import org.openbpmn.bpmn.BPMNModel;
|
||||||
|
|
||||||
|
import jakarta.annotation.security.DeclareRoles;
|
||||||
|
import jakarta.annotation.security.RolesAllowed;
|
||||||
|
import jakarta.ejb.LocalBean;
|
||||||
|
import jakarta.ejb.Stateless;
|
||||||
|
import jakarta.inject.Inject;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The A2ASkillService parses the model information to provide A2ASkillCards
|
||||||
|
*
|
||||||
|
* @author rsoika
|
||||||
|
*/
|
||||||
|
@DeclareRoles({ "org.imixs.ACCESSLEVEL.NOACCESS",
|
||||||
|
"org.imixs.ACCESSLEVEL.READERACCESS",
|
||||||
|
"org.imixs.ACCESSLEVEL.AUTHORACCESS",
|
||||||
|
"org.imixs.ACCESSLEVEL.EDITORACCESS",
|
||||||
|
"org.imixs.ACCESSLEVEL.MANAGERACCESS" })
|
||||||
|
@RolesAllowed({ "org.imixs.ACCESSLEVEL.NOACCESS",
|
||||||
|
"org.imixs.ACCESSLEVEL.READERACCESS",
|
||||||
|
"org.imixs.ACCESSLEVEL.AUTHORACCESS",
|
||||||
|
"org.imixs.ACCESSLEVEL.EDITORACCESS",
|
||||||
|
"org.imixs.ACCESSLEVEL.MANAGERACCESS" })
|
||||||
|
@Stateless
|
||||||
|
@LocalBean
|
||||||
|
public class A2ASkillService {
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
ModelService modelService;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
WorkflowService workflowService;
|
||||||
|
|
||||||
|
private static Logger logger = Logger.getLogger(A2ASkillService.class
|
||||||
|
.getName());
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method iterates over all models and returns a list of skill card objects
|
||||||
|
*
|
||||||
|
* The method tests if a event has a <imixs-ai name="SKILL"> tag.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public List<A2ASkillCard> parseModels() {
|
||||||
|
logger.log(Level.INFO, "├── 🔃 parsing A2A SkillCards....");
|
||||||
|
List<A2ASkillCard> result = new ArrayList<>();
|
||||||
|
ModelManager modelManager = new ModelManager(workflowService);
|
||||||
|
List<String> versions = modelService.getVersions();
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
for (String version : versions) {
|
||||||
|
logger.log(Level.INFO, "│ ├── {0}", version);
|
||||||
|
BPMNModel model = modelManager.getModel(version);
|
||||||
|
|
||||||
|
Set<String> groups = modelManager.findAllGroupsByModel(model);
|
||||||
|
for (String group : groups) {
|
||||||
|
List<ItemCollection> tasks = modelManager.findTasks(model, group);
|
||||||
|
for (ItemCollection task : tasks) {
|
||||||
|
int taskID = task.getItemValueInteger("taskid");
|
||||||
|
List<ItemCollection> events = modelManager.findEventsByTask(model, taskID);
|
||||||
|
|
||||||
|
for (ItemCollection event : events) {
|
||||||
|
int eventID = event.getItemValueInteger("eventid");
|
||||||
|
// test if we have a <imixs-ai name="SKILL">
|
||||||
|
try {
|
||||||
|
List<ItemCollection> llmPromptDefinitions = workflowService.evalWorkflowResultXML(event,
|
||||||
|
"imixs-ai",
|
||||||
|
"SKILL", null, false);
|
||||||
|
// did we found a skill?
|
||||||
|
for (ItemCollection skillItemCol : llmPromptDefinitions) {
|
||||||
|
A2ASkillCard skillCard = new A2ASkillCard(version, taskID, eventID);
|
||||||
|
|
||||||
|
skillCard.setName(event.getItemValueString("name"));
|
||||||
|
skillCard.setDescription(skillItemCol.getItemValueString("description"));
|
||||||
|
String tags = skillItemCol.getItemValueString("tags");
|
||||||
|
if (tags != null && !tags.isBlank()) {
|
||||||
|
String[] parts = tags.split(",\\s*");
|
||||||
|
skillCard.setTags(Arrays.asList(parts));
|
||||||
|
}
|
||||||
|
|
||||||
|
skillCard.setExamples(skillItemCol.getItemValueList("example", String.class));
|
||||||
|
|
||||||
|
// skillCard.addMetadata("aea", versions);
|
||||||
|
|
||||||
|
if (skillCard.isValid()) {
|
||||||
|
result.add(skillCard);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (PluginException e) {
|
||||||
|
// no match
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
} catch (ModelException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
30
dynamixs-ai-a2a/src/main/resources/META-INF/COPYRIGHT
Normal file
30
dynamixs-ai-a2a/src/main/resources/META-INF/COPYRIGHT
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
Imixs-Office-Workflow
|
||||||
|
Copyright (C) 2001-2018 Imixs Software Solutions GmbH,
|
||||||
|
http://www.imixs.com
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
Project:
|
||||||
|
http://www.imixs.org
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Imixs Software Solutions GmbH - initial API and implementation
|
||||||
|
Ralph Soika - Software Developer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
621
dynamixs-ai-a2a/src/main/resources/META-INF/LICENSE
Normal file
621
dynamixs-ai-a2a/src/main/resources/META-INF/LICENSE
Normal file
|
|
@ -0,0 +1,621 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
6
dynamixs-ai-a2a/src/main/resources/META-INF/beans.xml
Normal file
6
dynamixs-ai-a2a/src/main/resources/META-INF/beans.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd"
|
||||||
|
bean-discovery-mode="all" version="3.0">
|
||||||
|
</beans>
|
||||||
10
dynamixs-ai-a2a/src/main/resources/copyright.txt
Normal file
10
dynamixs-ai-a2a/src/main/resources/copyright.txt
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
Imixs Workflow Technology
|
||||||
|
Copyright (C) 2010 Imixs Software Solutions GmbH,
|
||||||
|
http://www.imixs.com
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Imixs Software Solutions GmbH - initial implementation
|
||||||
|
Ralph Soika
|
||||||
|
|
||||||
1
dynamixs-ai-a2a/src/main/resources/licence.txt
Normal file
1
dynamixs-ai-a2a/src/main/resources/licence.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
??
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
<exec executable="docker">
|
<exec executable="docker">
|
||||||
<arg value="build" />
|
<arg value="build" />
|
||||||
<arg value="-f" />
|
<arg value="-f" />
|
||||||
<arg value="./Dockerfile-wildfly-debug" />
|
<arg value="./Dockerfile-debug" />
|
||||||
<arg value="-t" />
|
<arg value="-t" />
|
||||||
<arg value="imixs/${imixs-office.applicationname}" />
|
<arg value="imixs/${imixs-office.applicationname}" />
|
||||||
<arg value="./." />
|
<arg value="./." />
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,7 @@
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<name>Dynamixs AI Web App</name>
|
<name>Dynamixs AI Web App</name>
|
||||||
|
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>debug</id>
|
<id>debug</id>
|
||||||
<build>
|
<build>
|
||||||
|
|
@ -32,7 +29,7 @@
|
||||||
<exec executable="docker">
|
<exec executable="docker">
|
||||||
<arg value="build" />
|
<arg value="build" />
|
||||||
<arg value="-f" />
|
<arg value="-f" />
|
||||||
<arg value="./Dockerfile-wildfly-debug" />
|
<arg value="../Dockerfile-debug" />
|
||||||
<arg value="-t" />
|
<arg value="-t" />
|
||||||
<arg value="imixs/${imixs-office.applicationname}" />
|
<arg value="imixs/${imixs-office.applicationname}" />
|
||||||
<arg value="./." />
|
<arg value="./." />
|
||||||
|
|
@ -52,6 +49,25 @@
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>imixs-cloud</id>
|
<id>imixs-cloud</id>
|
||||||
|
|
||||||
|
<!-- Imixs Security OIDC -->
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.imixs.security</groupId>
|
||||||
|
<artifactId>imixs-oidc</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<type>jar</type>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.imixs.security</groupId>
|
||||||
|
<artifactId>imixs-oidc-marty</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<type>jar</type>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
@ -68,7 +84,7 @@
|
||||||
<arg value="-t" />
|
<arg value="-t" />
|
||||||
<arg
|
<arg
|
||||||
value="imixs/${imixs-office.applicationname}:${project.version}" />
|
value="imixs/${imixs-office.applicationname}:${project.version}" />
|
||||||
<arg value="./." />
|
<arg value="../." />
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="docker">
|
<exec executable="docker">
|
||||||
<arg value="tag" />
|
<arg value="tag" />
|
||||||
|
|
@ -228,6 +244,15 @@
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- A2A -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>ai.dynamixs</groupId>
|
||||||
|
<artifactId>dynamixs-ai-a2a</artifactId>
|
||||||
|
<type>jar</type>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- Marty -->
|
<!-- Marty -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.imixs.workflow</groupId>
|
<groupId>org.imixs.workflow</groupId>
|
||||||
|
|
@ -330,6 +355,21 @@
|
||||||
<version>${org.imixs.adapter.version}</version>
|
<version>${org.imixs.adapter.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- OIDC
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.imixs.security</groupId>
|
||||||
|
<artifactId>imixs-oidc</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<type>jar</type>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.imixs.security</groupId>
|
||||||
|
<artifactId>imixs-oidc-marty</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
<type>jar</type>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
-->
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -25,6 +25,10 @@ security.userid.input.mode=LOWERCASE
|
||||||
security.email.unique=true
|
security.email.unique=true
|
||||||
#security.userid.input.pattern=
|
#security.userid.input.pattern=
|
||||||
|
|
||||||
|
|
||||||
|
# Profile - autoprocess event
|
||||||
|
profile.login.event=100
|
||||||
|
|
||||||
# Marty Mail Plugin
|
# Marty Mail Plugin
|
||||||
# mail.defaultSender=info@imixs.com
|
# mail.defaultSender=info@imixs.com
|
||||||
|
|
||||||
|
|
@ -34,8 +38,6 @@ image.fileExtension=jpg,gif
|
||||||
image.maxWidth=2048
|
image.maxWidth=2048
|
||||||
|
|
||||||
|
|
||||||
# Profile - autoprocess event
|
|
||||||
#profile.login.event=10
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"client-id": "imixs",
|
|
||||||
"provider-url": "http://keycloak.imixs.local:8084/realms/imixs-office-workflow",
|
|
||||||
"principal-attribute": "preferred_username",
|
|
||||||
"credentials": {
|
|
||||||
"secret": "RBX0YBVvrK84Cpq8CIRXISpy2X7mjpRJ"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -58,10 +58,8 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
<finalName>hai-office-demo</finalName>
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
@ -144,17 +142,6 @@
|
||||||
<artifactId>imixs-archive-documents</artifactId>
|
<artifactId>imixs-archive-documents</artifactId>
|
||||||
<version>${org.imixs.archive.version}</version>
|
<version>${org.imixs.archive.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.imixs.workflow</groupId>
|
|
||||||
<artifactId>imixs-archive-importer</artifactId>
|
|
||||||
<version>${org.imixs.archive.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<!-- -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.pdfbox</groupId>
|
|
||||||
<artifactId>pdfbox</artifactId>
|
|
||||||
<version>${apache.pdfbox.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Imixs-AI -->
|
<!-- Imixs-AI -->
|
||||||
|
|
@ -182,66 +169,6 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- Imixs-QR-Code -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.imixs.workflow</groupId>
|
|
||||||
<artifactId>imixs-adapters-qrcode</artifactId>
|
|
||||||
<version>${org.imixs.adapter.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Imixs-Wopi -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.imixs.workflow</groupId>
|
|
||||||
<artifactId>imixs-adapters-wopi</artifactId>
|
|
||||||
<version>${org.imixs.adapter.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.imixs.workflow</groupId>
|
|
||||||
<artifactId>imixs-adapters-odf</artifactId>
|
|
||||||
<version>${org.imixs.adapter.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Imixs Signature Feature -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.imixs.workflow</groupId>
|
|
||||||
<artifactId>imixs-signature-api</artifactId>
|
|
||||||
<version>${org.imixs.signature.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- SEPA -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.imixs.workflow</groupId>
|
|
||||||
<artifactId>imixs-adapters-sepa</artifactId>
|
|
||||||
<version>${org.imixs.adapter.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- DATEV -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.imixs.workflow</groupId>
|
|
||||||
<artifactId>imixs-adapters-datev</artifactId>
|
|
||||||
<version>${org.imixs.adapter.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- POI Adapter -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.imixs.workflow</groupId>
|
|
||||||
<artifactId>imixs-adapters-poi</artifactId>
|
|
||||||
<version>${org.imixs.adapter.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- xsl 2.0 support
|
|
||||||
<dependency>
|
|
||||||
<groupId>net.sf.saxon</groupId>
|
|
||||||
<artifactId>Saxon-HE</artifactId>
|
|
||||||
<version>${net.sf.saxon.version}</version>
|
|
||||||
</dependency>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Testing -->
|
<!-- Testing -->
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
|
|
@ -200,6 +200,8 @@ public class ClusterService {
|
||||||
session = initSessionWithKeyspace();
|
session = initSessionWithKeyspace();
|
||||||
logger.info("│ ├── ✅ schema status = OK");
|
logger.info("│ ├── ✅ schema status = OK");
|
||||||
|
|
||||||
|
createSchema();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ClusterException(ClusterException.CLUSTER_ERROR,
|
throw new ClusterException(ClusterException.CLUSTER_ERROR,
|
||||||
"Failed to init cassandra session: " + e.getMessage(), e);
|
"Failed to init cassandra session: " + e.getMessage(), e);
|
||||||
|
|
@ -228,7 +230,7 @@ public class ClusterService {
|
||||||
try {
|
try {
|
||||||
// try to connect keyspace ...
|
// try to connect keyspace ...
|
||||||
session = createSession(keySpacename);
|
session = createSession(keySpacename);
|
||||||
logger.info("│ ├── ✅ keyspace status = OK");
|
logger.info("│ ├── ✅ keyspace '" + keySpacename + "' status = OK");
|
||||||
return session;
|
return session;
|
||||||
} catch (InvalidQueryException | InvalidKeyspaceException e) {
|
} catch (InvalidQueryException | InvalidKeyspaceException e) {
|
||||||
logger.warning("│ ├── ⚠️ Keyspace does not yet exist, creating new keyspace...");
|
logger.warning("│ ├── ⚠️ Keyspace does not yet exist, creating new keyspace...");
|
||||||
|
|
@ -238,7 +240,7 @@ public class ClusterService {
|
||||||
// close and reconnect session...
|
// close and reconnect session...
|
||||||
session.close();
|
session.close();
|
||||||
session = createSession(keySpacename);
|
session = createSession(keySpacename);
|
||||||
createSchema();
|
|
||||||
return session;
|
return session;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -334,7 +336,7 @@ public class ClusterService {
|
||||||
*/
|
*/
|
||||||
private void createSchema() throws ClusterException {
|
private void createSchema() throws ClusterException {
|
||||||
|
|
||||||
logger.info("│ ├── create schema...");
|
logger.info("│ ├── verify schema...");
|
||||||
// now create table schemas
|
// now create table schemas
|
||||||
String query = "CREATE TABLE IF NOT EXISTS document_vectors (\n" + //
|
String query = "CREATE TABLE IF NOT EXISTS document_vectors (\n" + //
|
||||||
" id text,\n" + //
|
" id text,\n" + //
|
||||||
|
|
@ -347,7 +349,7 @@ public class ClusterService {
|
||||||
");";
|
");";
|
||||||
session.execute(query);
|
session.execute(query);
|
||||||
|
|
||||||
logger.info("│ ├── create index...");
|
logger.info("│ ├── verify index...");
|
||||||
query = "CREATE INDEX IF NOT EXISTS edv_ann_index\n" + //
|
query = "CREATE INDEX IF NOT EXISTS edv_ann_index\n" + //
|
||||||
" ON document_vectors(content_vector) USING 'sai';";
|
" ON document_vectors(content_vector) USING 'sai';";
|
||||||
session.execute(query);
|
session.execute(query);
|
||||||
|
|
@ -360,7 +362,7 @@ public class ClusterService {
|
||||||
" ON document_vectors(task_id) USING 'sai';";
|
" ON document_vectors(task_id) USING 'sai';";
|
||||||
session.execute(query);
|
session.execute(query);
|
||||||
|
|
||||||
logger.info("│ ├── ✅ database schema created.");
|
logger.info("│ ├── ✅ database schema OK.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
3
pom.xml
3
pom.xml
|
|
@ -7,6 +7,7 @@
|
||||||
<modules>
|
<modules>
|
||||||
<module>dynamixs-ai-app</module>
|
<module>dynamixs-ai-app</module>
|
||||||
<module>dynamixs-ai-rag</module>
|
<module>dynamixs-ai-rag</module>
|
||||||
|
<module>dynamixs-ai-a2a</module>
|
||||||
</modules>
|
</modules>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Dynamixs AI</name>
|
<name>Dynamixs AI</name>
|
||||||
|
|
@ -76,7 +77,7 @@
|
||||||
<mockito.version>5.8.0</mockito.version>
|
<mockito.version>5.8.0</mockito.version>
|
||||||
|
|
||||||
<custom.webResources>src/main/webapp</custom.webResources>
|
<custom.webResources>src/main/webapp</custom.webResources>
|
||||||
<imixs-office.applicationname>hai-office-demo</imixs-office.applicationname>
|
<imixs-office.applicationname>dynamixs-ai</imixs-office.applicationname>
|
||||||
<!-- Environment Settings -->
|
<!-- Environment Settings -->
|
||||||
<imixs-office.contextroot>/</imixs-office.contextroot>
|
<imixs-office.contextroot>/</imixs-office.contextroot>
|
||||||
<imixs-office.realm>imixsrealm</imixs-office.realm>
|
<imixs-office.realm>imixsrealm</imixs-office.realm>
|
||||||
|
|
|
||||||
|
|
@ -2710,6 +2710,8 @@ result.isValid=true;
|
||||||
<bpmndi:BPMNEdge bpmnElement="Association_4" id="BPMNEdge_Association_4" sourceElement="BPMNShape_DataObject_2" targetElement="BPMNShape_Task_2">
|
<bpmndi:BPMNEdge bpmnElement="Association_4" id="BPMNEdge_Association_4" sourceElement="BPMNShape_DataObject_2" targetElement="BPMNShape_Task_2">
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_95"/>
|
<bpmndi:BPMNLabel id="BPMNLabel_95"/>
|
||||||
<di:waypoint x="248.0" y="855.0"/>
|
<di:waypoint x="248.0" y="855.0"/>
|
||||||
|
<di:waypoint x="248.0" y="855.0"/>
|
||||||
|
<di:waypoint x="248.0" y="855.0"/>
|
||||||
<di:waypoint x="248.0" y="636.0"/>
|
<di:waypoint x="248.0" y="636.0"/>
|
||||||
<di:waypoint x="310.0" y="636.0"/>
|
<di:waypoint x="310.0" y="636.0"/>
|
||||||
</bpmndi:BPMNEdge>
|
</bpmndi:BPMNEdge>
|
||||||
|
|
|
||||||
|
|
@ -359,7 +359,14 @@ Betrag: <itemvalue>_amount</itemvalue> (Brutto € <itemvalue>_amount_brutto</it
|
||||||
<imixs:value/>
|
<imixs:value/>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="txtactivityresult" type="xs:string">
|
<imixs:item name="txtactivityresult" type="xs:string">
|
||||||
<imixs:value><![CDATA[<item name="action">home</item>]]></imixs:value>
|
<imixs:value><![CDATA[<item name="action">home</item>
|
||||||
|
|
||||||
|
<imixs-ai name="SKILL">
|
||||||
|
<description>Send offer after approval to customer This action moves the offer to the processing stage 'ordered'</description>
|
||||||
|
<tags>offer, order, send, e-mail</tags>
|
||||||
|
<example>Send out offer to customer</example>
|
||||||
|
<example>Inform customer about our new offer</example>
|
||||||
|
</imixs-ai>]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="txtname" type="xs:string">
|
<imixs:item name="txtname" type="xs:string">
|
||||||
<imixs:value><![CDATA[Freigabe einholen]]></imixs:value>
|
<imixs:value><![CDATA[Freigabe einholen]]></imixs:value>
|
||||||
|
|
@ -1497,7 +1504,7 @@ Füge eine Tabelle mit den folgenden Spalten für die Angebotserstellung mit ein
|
||||||
<item name="offer.proposal" type="custom" path="markdown" />
|
<item name="offer.proposal" type="custom" path="markdown" />
|
||||||
</imixs-form-section>
|
</imixs-form-section>
|
||||||
|
|
||||||
<imixs-form-section columns="1" label="Produkte Vorschalg" readonly="true" >
|
<imixs-form-section columns="1" label="Produktvorschläge" readonly="true" >
|
||||||
<item name="product.ref"
|
<item name="product.ref"
|
||||||
type="custom" required="true"
|
type="custom" required="true"
|
||||||
path="workitemlink"
|
path="workitemlink"
|
||||||
|
|
|
||||||
|
|
@ -1488,7 +1488,16 @@ Weiterleitung zur Sachprüfung/Freigabe]]></bpmn2:text>
|
||||||
<result-item>validation.result</result-item>
|
<result-item>validation.result</result-item>
|
||||||
<debug>true</debug>
|
<debug>true</debug>
|
||||||
</imixs-ai>
|
</imixs-ai>
|
||||||
<validation name="required">false</validation>]]></imixs:value>
|
<validation name="required">false</validation>
|
||||||
|
|
||||||
|
<imixs-ai name="SKILL">
|
||||||
|
<description>Approve invoices after financial review and compliance check. This action moves the invoice to the payment processing stage and triggers</description>
|
||||||
|
<tags>invoice, approval, finance, payment, compliance, workflow, business-critical</tags>
|
||||||
|
<example>Approve invoice INV-2024-001 with comment 'Budget confirmed, proceed with payment'</example>
|
||||||
|
<example>Approve recurring invoice from vendor Acme Corp for monthly services</example>
|
||||||
|
<example>Approve invoice with manual adjustment: reduce amount to 1450.00 EUR due to discount</example>
|
||||||
|
</imixs-ai>
|
||||||
|
]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="txtname" type="xs:string">
|
<imixs:item name="txtname" type="xs:string">
|
||||||
<imixs:value><![CDATA[Speichern]]></imixs:value>
|
<imixs:value><![CDATA[Speichern]]></imixs:value>
|
||||||
|
|
@ -2279,15 +2288,15 @@ result.isValid=true;
|
||||||
</bpmndi:BPMNLabel>
|
</bpmndi:BPMNLabel>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="dataObject_JcJNZQ" id="BPMNShape_sUFyyw">
|
<bpmndi:BPMNShape bpmnElement="dataObject_JcJNZQ" id="BPMNShape_sUFyyw">
|
||||||
<dc:Bounds height="50.0" width="35.0" x="674.0" y="102.0"/>
|
<dc:Bounds height="50.0" width="35.0" x="674.0" y="77.0"/>
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_s9g7gA">
|
<bpmndi:BPMNLabel id="BPMNLabel_s9g7gA">
|
||||||
<dc:Bounds height="20.0" width="100.0" x="641.5" y="157.0"/>
|
<dc:Bounds height="20.0" width="100.0" x="641.5" y="132.0"/>
|
||||||
</bpmndi:BPMNLabel>
|
</bpmndi:BPMNLabel>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNEdge bpmnElement="association_DjQqGw" id="BPMNEdge_rT26yg" sourceElement="BPMNShape_fsNO7Q" targetElement="BPMNShape_sUFyyw">
|
<bpmndi:BPMNEdge bpmnElement="association_DjQqGw" id="BPMNEdge_rT26yg" sourceElement="BPMNShape_fsNO7Q" targetElement="BPMNShape_sUFyyw">
|
||||||
<di:waypoint x="631.0" y="187.0"/>
|
<di:waypoint x="631.0" y="187.0"/>
|
||||||
<di:waypoint x="631.0" y="127.0"/>
|
<di:waypoint x="631.0" y="102.0"/>
|
||||||
<di:waypoint x="674.0" y="127.0"/>
|
<di:waypoint x="674.0" y="102.0"/>
|
||||||
</bpmndi:BPMNEdge>
|
</bpmndi:BPMNEdge>
|
||||||
<bpmndi:BPMNShape bpmnElement="gateway_up89xA" id="BPMNShape_708evw">
|
<bpmndi:BPMNShape bpmnElement="gateway_up89xA" id="BPMNShape_708evw">
|
||||||
<dc:Bounds height="50.0" width="50.0" x="470.0" y="180.0"/>
|
<dc:Bounds height="50.0" width="50.0" x="470.0" y="180.0"/>
|
||||||
|
|
|
||||||
|
|
@ -43,20 +43,6 @@
|
||||||
<bpmn2:outgoing>SequenceFlow_16</bpmn2:outgoing>
|
<bpmn2:outgoing>SequenceFlow_16</bpmn2:outgoing>
|
||||||
<bpmn2:documentation id="documentation_Ngc9hA"/>
|
<bpmn2:documentation id="documentation_Ngc9hA"/>
|
||||||
</bpmn2:startEvent>
|
</bpmn2:startEvent>
|
||||||
<bpmn2:task id="Task_3" imixs:processid="209" name="Gesperrt">
|
|
||||||
<bpmn2:extensionElements>
|
|
||||||
<imixs:item name="keyupdateacl" type="xs:boolean">
|
|
||||||
<imixs:value>true</imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="txttype" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[profilearchive]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
</bpmn2:extensionElements>
|
|
||||||
<bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_24</bpmn2:outgoing>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_25</bpmn2:outgoing>
|
|
||||||
<bpmn2:documentation id="documentation_2mwtqg"/>
|
|
||||||
</bpmn2:task>
|
|
||||||
<bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_3" imixs:activityid="10" name="Speichern">
|
<bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_3" imixs:activityid="10" name="Speichern">
|
||||||
<bpmn2:extensionElements>
|
<bpmn2:extensionElements>
|
||||||
<imixs:item name="keylogtimeformat" type="xs:string">
|
<imixs:item name="keylogtimeformat" type="xs:string">
|
||||||
|
|
@ -123,8 +109,6 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<imixs:value>false</imixs:value>
|
<imixs:value>false</imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
</bpmn2:extensionElements>
|
</bpmn2:extensionElements>
|
||||||
<bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
|
|
||||||
<bpmn2:incoming>SequenceFlow_33</bpmn2:incoming>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
|
<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
|
||||||
<bpmn2:documentation id="documentation_voD05g"/>
|
<bpmn2:documentation id="documentation_voD05g"/>
|
||||||
</bpmn2:intermediateCatchEvent>
|
</bpmn2:intermediateCatchEvent>
|
||||||
|
|
@ -142,131 +126,10 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
</bpmn2:extensionElements>
|
</bpmn2:extensionElements>
|
||||||
<bpmn2:incoming>SequenceFlow_20</bpmn2:incoming>
|
<bpmn2:incoming>SequenceFlow_20</bpmn2:incoming>
|
||||||
<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
|
<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
|
||||||
<bpmn2:incoming>SequenceFlow_36</bpmn2:incoming>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
|
|
||||||
<bpmn2:documentation id="documentation_0j7ZIQ"/>
|
<bpmn2:documentation id="documentation_0j7ZIQ"/>
|
||||||
|
<bpmn2:outgoing>sequenceFlow_ybZfyA</bpmn2:outgoing>
|
||||||
|
<bpmn2:incoming>sequenceFlow_osGWVw</bpmn2:incoming>
|
||||||
</bpmn2:task>
|
</bpmn2:task>
|
||||||
<bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_4" imixs:activityid="90" name="Profile sperren">
|
|
||||||
<bpmn2:extensionElements>
|
|
||||||
<imixs:item name="keylogtimeformat" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[2]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="namreaders" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[org.imixs.ACCESSLEVEL.MANAGERACCESS]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="$readaccess" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[org.imixs.ACCESSLEVEL.MANAGERACCESS]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyarchive" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyaccessmode" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyscheduledactivity" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyversion" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="numnextactivityid" type="xs:int">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyfollowup" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[2]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keypublicresult" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[1]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keylogdateformat" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[2]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="txtnextprocesstree" type="xs:string">
|
|
||||||
<imixs:value/>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="numnextid" type="xs:int">
|
|
||||||
<imixs:value><![CDATA[209]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="txtactivityresult" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[<item name="action">/pages/admin/profilelist</item>]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyownershipmode" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[1]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="rtfresultlog" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[Benutzerprofile gesperrt durch <username>namcurrentEditor</username>]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyupdateacl" type="xs:boolean">
|
|
||||||
<imixs:value>false</imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
</bpmn2:extensionElements>
|
|
||||||
<bpmn2:incoming>SequenceFlow_31</bpmn2:incoming>
|
|
||||||
<bpmn2:incoming>SequenceFlow_35</bpmn2:incoming>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>
|
|
||||||
<bpmn2:documentation id="documentation_HdXDBg"/>
|
|
||||||
</bpmn2:intermediateCatchEvent>
|
|
||||||
<bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_5" imixs:activityid="20" name="Profile aktivieren">
|
|
||||||
<bpmn2:extensionElements>
|
|
||||||
<imixs:item name="keylogtimeformat" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[2]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyarchive" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="txtmailsubject" type="xs:string">
|
|
||||||
<imixs:value/>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyaccessmode" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyscheduledactivity" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="rtfmailbody" type="xs:string">
|
|
||||||
<imixs:value/>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyversion" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyaddwritefields" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[namCreator]]></imixs:value>
|
|
||||||
<imixs:value><![CDATA[txtName]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="numnextactivityid" type="xs:int">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyfollowup" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[2]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keypublicresult" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[1]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keylogdateformat" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[2]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="numnextid" type="xs:int">
|
|
||||||
<imixs:value><![CDATA[210]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="txtnextprocesstree" type="xs:string">
|
|
||||||
<imixs:value/>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="txtactivityresult" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[<item name="action">/pages/admin/profilelist</item>]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyownershipmode" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="rtfresultlog" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[Benutzerprofile aktiviert durch <username>namcurrentEditor</username>]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keyupdateacl" type="xs:boolean">
|
|
||||||
<imixs:value>false</imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
</bpmn2:extensionElements>
|
|
||||||
<bpmn2:incoming>SequenceFlow_25</bpmn2:incoming>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_36</bpmn2:outgoing>
|
|
||||||
<bpmn2:documentation id="documentation_oPKrOg"/>
|
|
||||||
</bpmn2:intermediateCatchEvent>
|
|
||||||
<bpmn2:task id="Task_5" imixs:processid="200" name="Neu">
|
<bpmn2:task id="Task_5" imixs:processid="200" name="Neu">
|
||||||
<bpmn2:extensionElements>
|
<bpmn2:extensionElements>
|
||||||
<imixs:item name="txttype" type="xs:string">
|
<imixs:item name="txttype" type="xs:string">
|
||||||
|
|
@ -278,8 +141,8 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<bpmn2:documentation id="documentation_22tAaA"/>
|
<bpmn2:documentation id="documentation_22tAaA"/>
|
||||||
</bpmn2:task>
|
</bpmn2:task>
|
||||||
<bpmn2:endEvent id="EndEvent_1" name="Ende">
|
<bpmn2:endEvent id="EndEvent_1" name="Ende">
|
||||||
<bpmn2:incoming>SequenceFlow_24</bpmn2:incoming>
|
|
||||||
<bpmn2:documentation id="documentation_bTCEgg"/>
|
<bpmn2:documentation id="documentation_bTCEgg"/>
|
||||||
|
<bpmn2:incoming>sequenceFlow_ybZfyA</bpmn2:incoming>
|
||||||
</bpmn2:endEvent>
|
</bpmn2:endEvent>
|
||||||
<bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_7" imixs:activityid="5" name="Automatische Neuanlage">
|
<bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_7" imixs:activityid="5" name="Automatische Neuanlage">
|
||||||
<bpmn2:extensionElements>
|
<bpmn2:extensionElements>
|
||||||
|
|
@ -352,132 +215,78 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_20" sourceRef="IntermediateCatchEvent_7" targetRef="Task_4">
|
<bpmn2:sequenceFlow id="SequenceFlow_20" sourceRef="IntermediateCatchEvent_7" targetRef="Task_4">
|
||||||
<bpmn2:documentation id="documentation_R1GczA"/>
|
<bpmn2:documentation id="documentation_R1GczA"/>
|
||||||
</bpmn2:sequenceFlow>
|
</bpmn2:sequenceFlow>
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_23" sourceRef="IntermediateCatchEvent_4" targetRef="Task_3">
|
|
||||||
<bpmn2:documentation id="documentation_hHYtJA"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_24" sourceRef="Task_3" targetRef="EndEvent_1">
|
|
||||||
<bpmn2:documentation id="documentation_6fUs8A"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_25" sourceRef="Task_3" targetRef="IntermediateCatchEvent_5">
|
|
||||||
<bpmn2:documentation id="documentation_U9rpDg"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_1" sourceRef="IntermediateCatchEvent_3" targetRef="Task_4">
|
<bpmn2:sequenceFlow id="SequenceFlow_1" sourceRef="IntermediateCatchEvent_3" targetRef="Task_4">
|
||||||
<bpmn2:documentation id="documentation_bHS76g"/>
|
<bpmn2:documentation id="documentation_bHS76g"/>
|
||||||
</bpmn2:sequenceFlow>
|
</bpmn2:sequenceFlow>
|
||||||
<bpmn2:eventBasedGateway gatewayDirection="Diverging" id="EventBasedGateway_1">
|
<bpmn2:sequenceFlow id="sequenceFlow_ybZfyA" sourceRef="Task_4" targetRef="EndEvent_1">
|
||||||
<bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
|
<bpmn2:documentation id="documentation_IoULHQ"/>
|
||||||
<bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_34</bpmn2:outgoing>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_35</bpmn2:outgoing>
|
|
||||||
<bpmn2:documentation id="documentation_FIqEUw"/>
|
|
||||||
</bpmn2:eventBasedGateway>
|
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_8" sourceRef="Task_4" targetRef="EventBasedGateway_1">
|
|
||||||
<bpmn2:documentation id="documentation_CdJ2hg"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
</bpmn2:sequenceFlow>
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_11" sourceRef="EventBasedGateway_1" targetRef="IntermediateCatchEvent_3">
|
<bpmn2:textAnnotation id="textAnnotation_S06aWQ" textFormat="">
|
||||||
<bpmn2:documentation id="documentation_m0Mb4A"/>
|
<bpmn2:text id="text_9JgB8A"><![CDATA[Access is controled by Keycloak.
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:task id="Task_8" imixs:processid="220" name="Passwort Erinnerung">
|
The Userprofile is automatically updated after a user has logged in via event 100.
|
||||||
|
|
||||||
|
See file: 'imixs.properties']]></bpmn2:text>
|
||||||
|
<bpmn2:documentation id="documentation_iVejWw"/>
|
||||||
|
</bpmn2:textAnnotation>
|
||||||
|
<bpmn2:intermediateCatchEvent id="event_nwuGrQ" imixs:activityid="100" name="[oidc update]">
|
||||||
<bpmn2:extensionElements>
|
<bpmn2:extensionElements>
|
||||||
<imixs:item name="txttype" type="xs:string">
|
<imixs:item name="keylogtimeformat" type="xs:string">
|
||||||
<imixs:value><![CDATA[profile]]></imixs:value>
|
<imixs:value><![CDATA[2]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
</bpmn2:extensionElements>
|
<imixs:item name="keyarchive" type="xs:string">
|
||||||
<bpmn2:documentation id="Documentation_6"><![CDATA[Bitte ändern Sie Ihr Passwort]]></bpmn2:documentation>
|
|
||||||
<bpmn2:incoming>SequenceFlow_27</bpmn2:incoming>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_30</bpmn2:outgoing>
|
|
||||||
<bpmn2:outgoing>SequenceFlow_33</bpmn2:outgoing>
|
|
||||||
</bpmn2:task>
|
|
||||||
<bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_11" imixs:activityid="100" name="[2 Monate]">
|
|
||||||
<bpmn2:extensionElements>
|
|
||||||
<imixs:item name="rtfresultlog" type="CDATA">
|
|
||||||
<imixs:value><![CDATA[Passwort Erinnerung]]></imixs:value>
|
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="keypublicresult" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
<imixs:value><![CDATA[0]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="keyscheduledbaseobject" type="xs:string">
|
<imixs:item name="txtmailsubject" type="xs:string">
|
||||||
<imixs:value><![CDATA[1]]></imixs:value>
|
<imixs:value/>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="keyactivitydelayunit" type="xs:string">
|
<imixs:item name="keyaccessmode" type="xs:string">
|
||||||
<imixs:value><![CDATA[3]]></imixs:value>
|
<imixs:value><![CDATA[0]]></imixs:value>
|
||||||
</imixs:item>
|
|
||||||
<imixs:item name="numactivitydelay" type="xs:string">
|
|
||||||
<imixs:value><![CDATA[90]]></imixs:value>
|
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="keyscheduledactivity" type="xs:string">
|
<imixs:item name="keyscheduledactivity" type="xs:string">
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
<imixs:value><![CDATA[0]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
</bpmn2:extensionElements>
|
<imixs:item name="rtfmailbody" type="xs:string">
|
||||||
<bpmn2:incoming>SequenceFlow_34</bpmn2:incoming>
|
<imixs:value/>
|
||||||
<bpmn2:outgoing>SequenceFlow_27</bpmn2:outgoing>
|
</imixs:item>
|
||||||
<bpmn2:timerEventDefinition id="TimerEventDefinition_1"/>
|
<imixs:item name="keyversion" type="xs:string">
|
||||||
<bpmn2:documentation id="documentation_fEtexA"/>
|
<imixs:value><![CDATA[0]]></imixs:value>
|
||||||
</bpmn2:intermediateCatchEvent>
|
</imixs:item>
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_27" sourceRef="IntermediateCatchEvent_11" targetRef="Task_8">
|
<imixs:item name="keyaddwritefields" type="xs:string">
|
||||||
<bpmn2:documentation id="documentation_98Zzbw"/>
|
<imixs:value><![CDATA[namCreator]]></imixs:value>
|
||||||
</bpmn2:sequenceFlow>
|
<imixs:value><![CDATA[txtName]]></imixs:value>
|
||||||
<bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_12" imixs:activityid="100" name="[14 Tage]">
|
</imixs:item>
|
||||||
<bpmn2:extensionElements>
|
<imixs:item name="numnextactivityid" type="xs:int">
|
||||||
<imixs:item name="rtfresultlog" type="CDATA">
|
<imixs:value><![CDATA[0]]></imixs:value>
|
||||||
<imixs:value><![CDATA[Passwort abgelaufen]]></imixs:value>
|
</imixs:item>
|
||||||
|
<imixs:item name="keyfollowup" type="xs:string">
|
||||||
|
<imixs:value><![CDATA[2]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="keypublicresult" type="xs:string">
|
<imixs:item name="keypublicresult" type="xs:string">
|
||||||
<imixs:value><![CDATA[0]]></imixs:value>
|
<imixs:value><![CDATA[0]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="numactivitydelay" type="xs:string">
|
<imixs:item name="keylogdateformat" type="xs:string">
|
||||||
<imixs:value><![CDATA[21]]></imixs:value>
|
<imixs:value><![CDATA[2]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="keyscheduledbaseobject" type="xs:string">
|
<imixs:item name="numnextid" type="xs:int">
|
||||||
<imixs:value><![CDATA[1]]></imixs:value>
|
<imixs:value><![CDATA[210]]></imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="keyactivitydelayunit" type="xs:string">
|
<imixs:item name="txtnextprocesstree" type="xs:string">
|
||||||
<imixs:value><![CDATA[3]]></imixs:value>
|
<imixs:value/>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
<imixs:item name="keyscheduledactivity" type="xs:string">
|
<imixs:item name="keyownershipmode" type="xs:string">
|
||||||
<imixs:value><![CDATA[1]]></imixs:value>
|
<imixs:value><![CDATA[0]]></imixs:value>
|
||||||
|
</imixs:item>
|
||||||
|
<imixs:item name="keyupdateacl" type="xs:boolean">
|
||||||
|
<imixs:value>false</imixs:value>
|
||||||
</imixs:item>
|
</imixs:item>
|
||||||
</bpmn2:extensionElements>
|
</bpmn2:extensionElements>
|
||||||
<bpmn2:incoming>SequenceFlow_30</bpmn2:incoming>
|
<bpmn2:documentation id="documentation_OO5qPg">Erster Zugriff eines neuen Users, eMail mit Info geht raus, User erhält Autorenrecht.</bpmn2:documentation>
|
||||||
<bpmn2:outgoing>SequenceFlow_31</bpmn2:outgoing>
|
<bpmn2:outgoing>sequenceFlow_osGWVw</bpmn2:outgoing>
|
||||||
<bpmn2:timerEventDefinition id="TimerEventDefinition_2"/>
|
|
||||||
<bpmn2:documentation id="documentation_AfuklA"/>
|
|
||||||
</bpmn2:intermediateCatchEvent>
|
</bpmn2:intermediateCatchEvent>
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_30" sourceRef="Task_8" targetRef="IntermediateCatchEvent_12">
|
<bpmn2:sequenceFlow id="sequenceFlow_osGWVw" sourceRef="event_nwuGrQ" targetRef="Task_4">
|
||||||
<bpmn2:documentation id="documentation_7KdkLw"/>
|
<bpmn2:documentation id="documentation_0pkl8g"/>
|
||||||
</bpmn2:sequenceFlow>
|
</bpmn2:sequenceFlow>
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_31" sourceRef="IntermediateCatchEvent_12" targetRef="IntermediateCatchEvent_4">
|
|
||||||
<bpmn2:documentation id="documentation_sfWxEA"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_33" sourceRef="Task_8" targetRef="IntermediateCatchEvent_3">
|
|
||||||
<bpmn2:documentation id="documentation_3CHUvw"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_34" sourceRef="EventBasedGateway_1" targetRef="IntermediateCatchEvent_11">
|
|
||||||
<bpmn2:documentation id="documentation_klDJZw"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_35" sourceRef="EventBasedGateway_1" targetRef="IntermediateCatchEvent_4">
|
|
||||||
<bpmn2:documentation id="documentation_Qqc0pg"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:sequenceFlow id="SequenceFlow_36" sourceRef="IntermediateCatchEvent_5" targetRef="Task_4">
|
|
||||||
<bpmn2:documentation id="documentation_uv0Fjw"/>
|
|
||||||
</bpmn2:sequenceFlow>
|
|
||||||
<bpmn2:textAnnotation id="TextAnnotation_1">
|
|
||||||
<bpmn2:text>ID:90 - Remove assigend Access Roles</bpmn2:text>
|
|
||||||
<bpmn2:documentation id="documentation_MAeBhQ"/>
|
|
||||||
</bpmn2:textAnnotation>
|
|
||||||
<bpmn2:association id="Association_1" sourceRef="TextAnnotation_1" targetRef="IntermediateCatchEvent_4">
|
|
||||||
<bpmn2:documentation id="documentation_MuMSkQ"/>
|
|
||||||
</bpmn2:association>
|
|
||||||
<bpmn2:textAnnotation id="TextAnnotation_2">
|
|
||||||
<bpmn2:text>Inaktiv</bpmn2:text>
|
|
||||||
<bpmn2:documentation id="documentation_rsgqHg"/>
|
|
||||||
</bpmn2:textAnnotation>
|
|
||||||
<bpmn2:association id="Association_2" sourceRef="TextAnnotation_2" targetRef="IntermediateCatchEvent_11">
|
|
||||||
<bpmn2:documentation id="documentation_zSxsrw"/>
|
|
||||||
</bpmn2:association>
|
|
||||||
<bpmn2:association id="Association_3" sourceRef="TextAnnotation_2" targetRef="IntermediateCatchEvent_12">
|
|
||||||
<bpmn2:documentation id="documentation_xa6DuQ"/>
|
|
||||||
</bpmn2:association>
|
|
||||||
</bpmn2:process>
|
</bpmn2:process>
|
||||||
<bpmn2:process definitionalCollaborationRef="Collaboration_1" id="Process_2" isExecutable="false" name="Prozess" processType="Private">
|
<bpmn2:process definitionalCollaborationRef="Collaboration_1" id="Process_2" isExecutable="false" name="Prozess" processType="Private">
|
||||||
<bpmn2:task id="Task_1" imixs:processid="300" name="Aktiv (Eingeschränkt)">
|
<bpmn2:task id="Task_1" imixs:processid="300" name="Aktiv (Eingeschränkt)">
|
||||||
|
|
@ -1272,37 +1081,22 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<dc:Bounds height="14.0" width="25.0" x="118.0" y="310.0"/>
|
<dc:Bounds height="14.0" width="25.0" x="118.0" y="310.0"/>
|
||||||
</bpmndi:BPMNLabel>
|
</bpmndi:BPMNLabel>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="Task_3" id="BPMNShape_Task_3">
|
|
||||||
<dc:Bounds height="50.0" width="110.0" x="1220.0" y="260.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_3" id="BPMNShape_IntermediateCatchEvent_3">
|
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_3" id="BPMNShape_IntermediateCatchEvent_3">
|
||||||
<dc:Bounds height="36.0" width="36.0" x="617.0" y="347.0"/>
|
<dc:Bounds height="36.0" width="36.0" x="487.0" y="407.0"/>
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_19">
|
<bpmndi:BPMNLabel id="BPMNLabel_19">
|
||||||
<dc:Bounds height="14.0" width="56.0" x="607.0" y="386.0"/>
|
<dc:Bounds height="14.0" width="56.0" x="477.0" y="446.0"/>
|
||||||
</bpmndi:BPMNLabel>
|
</bpmndi:BPMNLabel>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="Task_4" id="BPMNShape_Task_4">
|
<bpmndi:BPMNShape bpmnElement="Task_4" id="BPMNShape_Task_4">
|
||||||
<dc:Bounds height="50.0" width="110.0" x="450.0" y="260.0"/>
|
<dc:Bounds height="50.0" width="110.0" x="450.0" y="260.0"/>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_4" id="BPMNShape_IntermediateCatchEvent_4">
|
|
||||||
<dc:Bounds height="36.0" width="36.0" x="1117.0" y="267.0"/>
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_21">
|
|
||||||
<dc:Bounds height="14.0" width="80.0" x="1098.0" y="310.0"/>
|
|
||||||
</bpmndi:BPMNLabel>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_5" id="BPMNShape_IntermediateCatchEvent_5">
|
|
||||||
<dc:Bounds height="36.0" width="36.0" x="1257.0" y="167.0"/>
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_22">
|
|
||||||
<dc:Bounds height="28.0" width="54.0" x="1248.0" y="207.0"/>
|
|
||||||
</bpmndi:BPMNLabel>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="Task_5" id="BPMNShape_Task_5">
|
<bpmndi:BPMNShape bpmnElement="Task_5" id="BPMNShape_Task_5">
|
||||||
<dc:Bounds height="50.0" width="110.0" x="200.0" y="260.0"/>
|
<dc:Bounds height="50.0" width="110.0" x="200.0" y="260.0"/>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="EndEvent_1" id="BPMNShape_EndEvent_1">
|
<bpmndi:BPMNShape bpmnElement="EndEvent_1" id="BPMNShape_EndEvent_1">
|
||||||
<dc:Bounds height="36.0" width="36.0" x="1407.0" y="267.0"/>
|
<dc:Bounds height="36.0" width="36.0" x="707.0" y="267.0"/>
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_25" labelStyle="BPMNLabelStyle_1">
|
<bpmndi:BPMNLabel id="BPMNLabel_25" labelStyle="BPMNLabelStyle_1">
|
||||||
<dc:Bounds height="14.0" width="29.0" x="1413.0" y="310.0"/>
|
<dc:Bounds height="14.0" width="29.0" x="713.0" y="310.0"/>
|
||||||
</bpmndi:BPMNLabel>
|
</bpmndi:BPMNLabel>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_7" id="BPMNShape_IntermediateCatchEvent_7">
|
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_7" id="BPMNShape_IntermediateCatchEvent_7">
|
||||||
|
|
@ -1311,12 +1105,6 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<dc:Bounds height="28.0" width="80.0" x="347.0" y="310.0"/>
|
<dc:Bounds height="28.0" width="80.0" x="347.0" y="310.0"/>
|
||||||
</bpmndi:BPMNLabel>
|
</bpmndi:BPMNLabel>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="EventBasedGateway_1" id="BPMNShape_EventBasedGateway_1" isMarkerVisible="true">
|
|
||||||
<dc:Bounds height="50.0" width="50.0" x="610.0" y="260.0"/>
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_38">
|
|
||||||
<dc:Bounds height="20.0" width="100.0" x="585.0" y="313.0"/>
|
|
||||||
</bpmndi:BPMNLabel>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="EndEvent_2" id="BPMNShape_EndEvent_2">
|
<bpmndi:BPMNShape bpmnElement="EndEvent_2" id="BPMNShape_EndEvent_2">
|
||||||
<dc:Bounds height="36.0" width="36.0" x="1487.0" y="937.0"/>
|
<dc:Bounds height="36.0" width="36.0" x="1487.0" y="937.0"/>
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_43" labelStyle="BPMNLabelStyle_1">
|
<bpmndi:BPMNLabel id="BPMNLabel_43" labelStyle="BPMNLabelStyle_1">
|
||||||
|
|
@ -1341,9 +1129,6 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<dc:Bounds height="14.0" width="47.0" x="795.0" y="1435.0"/>
|
<dc:Bounds height="14.0" width="47.0" x="795.0" y="1435.0"/>
|
||||||
</bpmndi:BPMNLabel>
|
</bpmndi:BPMNLabel>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="TextAnnotation_1" id="BPMNShape_TextAnnotation_1">
|
|
||||||
<dc:Bounds height="50.0" width="121.0" x="1140.0" y="420.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_9" id="BPMNShape_IntermediateCatchEvent_9">
|
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_9" id="BPMNShape_IntermediateCatchEvent_9">
|
||||||
<dc:Bounds height="36.0" width="36.0" x="737.0" y="747.0"/>
|
<dc:Bounds height="36.0" width="36.0" x="737.0" y="747.0"/>
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_49">
|
<bpmndi:BPMNLabel id="BPMNLabel_49">
|
||||||
|
|
@ -1356,24 +1141,6 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<dc:Bounds height="28.0" width="93.0" x="649.0" y="1347.0"/>
|
<dc:Bounds height="28.0" width="93.0" x="649.0" y="1347.0"/>
|
||||||
</bpmndi:BPMNLabel>
|
</bpmndi:BPMNLabel>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape bpmnElement="Task_8" id="BPMNShape_Task_8" isExpanded="true">
|
|
||||||
<dc:Bounds height="50.0" width="110.0" x="840.0" y="260.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_11" id="BPMNShape_IntermediateCatchEvent_11">
|
|
||||||
<dc:Bounds height="36.0" width="36.0" x="737.0" y="267.0"/>
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_56">
|
|
||||||
<dc:Bounds height="14.0" width="57.0" x="730.0" y="310.0"/>
|
|
||||||
</bpmndi:BPMNLabel>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="IntermediateCatchEvent_12" id="BPMNShape_IntermediateCatchEvent_12">
|
|
||||||
<dc:Bounds height="36.0" width="36.0" x="1007.0" y="267.0"/>
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_59">
|
|
||||||
<dc:Bounds height="14.0" width="50.0" x="1003.0" y="310.0"/>
|
|
||||||
</bpmndi:BPMNLabel>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="TextAnnotation_2" id="BPMNShape_TextAnnotation_2">
|
|
||||||
<dc:Bounds height="50.0" width="100.0" x="850.0" y="420.0"/>
|
|
||||||
</bpmndi:BPMNShape>
|
|
||||||
<bpmndi:BPMNShape bpmnElement="Task_9" id="BPMNShape_Task_9">
|
<bpmndi:BPMNShape bpmnElement="Task_9" id="BPMNShape_Task_9">
|
||||||
<dc:Bounds height="50.0" width="110.0" x="640.0" y="1390.0"/>
|
<dc:Bounds height="50.0" width="110.0" x="640.0" y="1390.0"/>
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
|
|
@ -1438,42 +1205,16 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<di:waypoint x="403.0" y="285.0"/>
|
<di:waypoint x="403.0" y="285.0"/>
|
||||||
<di:waypoint x="450.0" y="285.0"/>
|
<di:waypoint x="450.0" y="285.0"/>
|
||||||
</bpmndi:BPMNEdge>
|
</bpmndi:BPMNEdge>
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_23" id="BPMNEdge_SequenceFlow_27" sourceElement="BPMNShape_IntermediateCatchEvent_4" targetElement="BPMNShape_Task_3">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_34"/>
|
|
||||||
<di:waypoint x="1153.0" y="285.0"/>
|
|
||||||
<di:waypoint x="1220.0" y="285.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_24" id="BPMNEdge_SequenceFlow_28" sourceElement="BPMNShape_Task_3" targetElement="BPMNShape_EndEvent_1">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_35"/>
|
|
||||||
<di:waypoint x="1330.0" y="285.0"/>
|
|
||||||
<di:waypoint x="1407.0" y="285.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_25" id="BPMNEdge_SequenceFlow_29" sourceElement="BPMNShape_Task_3" targetElement="BPMNShape_IntermediateCatchEvent_5">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_36"/>
|
|
||||||
<di:waypoint x="1275.0" y="260.0"/>
|
|
||||||
<di:waypoint x="1275.0" y="203.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_1" id="BPMNEdge_SequenceFlow_1" sourceElement="BPMNShape_IntermediateCatchEvent_3" targetElement="BPMNShape_Task_4">
|
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_1" id="BPMNEdge_SequenceFlow_1" sourceElement="BPMNShape_IntermediateCatchEvent_3" targetElement="BPMNShape_Task_4">
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_4"/>
|
<bpmndi:BPMNLabel id="BPMNLabel_4"/>
|
||||||
<di:waypoint x="617.0" y="367.0"/>
|
<di:waypoint x="505.0" y="407.0"/>
|
||||||
<di:waypoint x="503.0" y="367.0"/>
|
<di:waypoint x="505.0" y="310.0"/>
|
||||||
<di:waypoint x="503.0" y="310.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
</bpmndi:BPMNEdge>
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_5" id="BPMNEdge_SequenceFlow_5" sourceElement="BPMNShape_IntermediateCatchEvent_2" targetElement="BPMNShape_Task_2">
|
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_5" id="BPMNEdge_SequenceFlow_5" sourceElement="BPMNShape_IntermediateCatchEvent_2" targetElement="BPMNShape_Task_2">
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_6"/>
|
<bpmndi:BPMNLabel id="BPMNLabel_6"/>
|
||||||
<di:waypoint x="445.0" y="1477.0"/>
|
<di:waypoint x="445.0" y="1477.0"/>
|
||||||
<di:waypoint x="445.0" y="1440.0"/>
|
<di:waypoint x="445.0" y="1440.0"/>
|
||||||
</bpmndi:BPMNEdge>
|
</bpmndi:BPMNEdge>
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_8" id="BPMNEdge_SequenceFlow_6" sourceElement="BPMNShape_Task_4" targetElement="BPMNShape_EventBasedGateway_1">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_39"/>
|
|
||||||
<di:waypoint x="560.0" y="285.0"/>
|
|
||||||
<di:waypoint x="610.0" y="285.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_11" id="BPMNEdge_SequenceFlow_11" sourceElement="BPMNShape_EventBasedGateway_1" targetElement="BPMNShape_IntermediateCatchEvent_3">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_41"/>
|
|
||||||
<di:waypoint x="635.0" y="310.0"/>
|
|
||||||
<di:waypoint x="635.0" y="347.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_13" id="BPMNEdge_SequenceFlow_13" sourceElement="BPMNShape_Task_6" targetElement="BPMNShape_EndEvent_2">
|
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_13" id="BPMNEdge_SequenceFlow_13" sourceElement="BPMNShape_Task_6" targetElement="BPMNShape_EndEvent_2">
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_44"/>
|
<bpmndi:BPMNLabel id="BPMNLabel_44"/>
|
||||||
<di:waypoint x="1430.0" y="955.0"/>
|
<di:waypoint x="1430.0" y="955.0"/>
|
||||||
|
|
@ -1496,13 +1237,6 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<di:waypoint x="833.0" y="1415.0"/>
|
<di:waypoint x="833.0" y="1415.0"/>
|
||||||
<di:waypoint x="890.0" y="1415.0"/>
|
<di:waypoint x="890.0" y="1415.0"/>
|
||||||
</bpmndi:BPMNEdge>
|
</bpmndi:BPMNEdge>
|
||||||
<bpmndi:BPMNEdge bpmnElement="Association_1" id="BPMNEdge_Association_1" sourceElement="BPMNShape_TextAnnotation_1" targetElement="BPMNShape_IntermediateCatchEvent_4">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_48"/>
|
|
||||||
<di:waypoint x="1198.0" y="420.0"/>
|
|
||||||
<di:waypoint x="1198.0" y="352.0"/>
|
|
||||||
<di:waypoint x="1132.0" y="352.0"/>
|
|
||||||
<di:waypoint x="1132.0" y="303.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_18" id="BPMNEdge_SequenceFlow_16" sourceElement="BPMNShape_Task_6" targetElement="BPMNShape_IntermediateCatchEvent_9">
|
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_18" id="BPMNEdge_SequenceFlow_16" sourceElement="BPMNShape_Task_6" targetElement="BPMNShape_IntermediateCatchEvent_9">
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_50"/>
|
<bpmndi:BPMNLabel id="BPMNLabel_50"/>
|
||||||
<di:waypoint x="1375.0" y="930.0"/>
|
<di:waypoint x="1375.0" y="930.0"/>
|
||||||
|
|
@ -1521,58 +1255,6 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<di:waypoint x="445.0" y="1327.0"/>
|
<di:waypoint x="445.0" y="1327.0"/>
|
||||||
<di:waypoint x="445.0" y="1390.0"/>
|
<di:waypoint x="445.0" y="1390.0"/>
|
||||||
</bpmndi:BPMNEdge>
|
</bpmndi:BPMNEdge>
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_27" id="BPMNEdge_SequenceFlow_23" sourceElement="BPMNShape_IntermediateCatchEvent_11" targetElement="BPMNShape_Task_8">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_58"/>
|
|
||||||
<di:waypoint x="773.0" y="285.0"/>
|
|
||||||
<di:waypoint x="840.0" y="285.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_30" id="BPMNEdge_SequenceFlow_30" sourceElement="BPMNShape_Task_8" targetElement="BPMNShape_IntermediateCatchEvent_12">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_63"/>
|
|
||||||
<di:waypoint x="950.0" y="285.0"/>
|
|
||||||
<di:waypoint x="1007.0" y="285.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_31" id="BPMNEdge_SequenceFlow_31" sourceElement="BPMNShape_IntermediateCatchEvent_12" targetElement="BPMNShape_IntermediateCatchEvent_4">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_64"/>
|
|
||||||
<di:waypoint x="1043.0" y="285.0"/>
|
|
||||||
<di:waypoint x="1117.0" y="285.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_33" id="BPMNEdge_SequenceFlow_33" sourceElement="BPMNShape_Task_8" targetElement="BPMNShape_IntermediateCatchEvent_3">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_67"/>
|
|
||||||
<di:waypoint x="856.0" y="310.0"/>
|
|
||||||
<di:waypoint x="856.0" y="371.0"/>
|
|
||||||
<di:waypoint x="652.0" y="371.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_34" id="BPMNEdge_SequenceFlow_34" sourceElement="BPMNShape_EventBasedGateway_1" targetElement="BPMNShape_IntermediateCatchEvent_11">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_68"/>
|
|
||||||
<di:waypoint x="660.0" y="285.0"/>
|
|
||||||
<di:waypoint x="737.0" y="285.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_35" id="BPMNEdge_SequenceFlow_35" sourceElement="BPMNShape_EventBasedGateway_1" targetElement="BPMNShape_IntermediateCatchEvent_4">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_69"/>
|
|
||||||
<di:waypoint x="640.0" y="265.0"/>
|
|
||||||
<di:waypoint x="640.0" y="212.0"/>
|
|
||||||
<di:waypoint x="1138.0" y="212.0"/>
|
|
||||||
<di:waypoint x="1138.0" y="267.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_36" id="BPMNEdge_SequenceFlow_36" sourceElement="BPMNShape_IntermediateCatchEvent_5" targetElement="BPMNShape_Task_4">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_70"/>
|
|
||||||
<di:waypoint x="1275.0" y="167.0"/>
|
|
||||||
<di:waypoint x="1275.0" y="134.0"/>
|
|
||||||
<di:waypoint x="508.0" y="134.0"/>
|
|
||||||
<di:waypoint x="508.0" y="260.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="Association_2" id="BPMNEdge_Association_2" sourceElement="BPMNShape_TextAnnotation_2" targetElement="BPMNShape_IntermediateCatchEvent_11">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_42"/>
|
|
||||||
<di:waypoint x="850.0" y="445.0"/>
|
|
||||||
<di:waypoint x="753.0" y="445.0"/>
|
|
||||||
<di:waypoint x="753.0" y="303.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="Association_3" id="BPMNEdge_Association_3" sourceElement="BPMNShape_TextAnnotation_2" targetElement="BPMNShape_IntermediateCatchEvent_12">
|
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_57"/>
|
|
||||||
<di:waypoint x="950.0" y="445.0"/>
|
|
||||||
<di:waypoint x="1026.0" y="445.0"/>
|
|
||||||
<di:waypoint x="1026.0" y="303.0"/>
|
|
||||||
</bpmndi:BPMNEdge>
|
|
||||||
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_9" id="BPMNEdge_SequenceFlow_9" sourceElement="BPMNShape_Task_2" targetElement="BPMNShape_IntermediateCatchEvent_13">
|
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_9" id="BPMNEdge_SequenceFlow_9" sourceElement="BPMNShape_Task_2" targetElement="BPMNShape_IntermediateCatchEvent_13">
|
||||||
<bpmndi:BPMNLabel id="BPMNLabel_62"/>
|
<bpmndi:BPMNLabel id="BPMNLabel_62"/>
|
||||||
<di:waypoint x="500.0" y="1415.0"/>
|
<di:waypoint x="500.0" y="1415.0"/>
|
||||||
|
|
@ -1739,6 +1421,23 @@ if (workitem.getTaskID()==220 && workitem.getEventID==10 && workitem.getItemValu
|
||||||
<di:waypoint x="260.0" y="1415.0"/>
|
<di:waypoint x="260.0" y="1415.0"/>
|
||||||
<di:waypoint x="390.0" y="1415.0"/>
|
<di:waypoint x="390.0" y="1415.0"/>
|
||||||
</bpmndi:BPMNEdge>
|
</bpmndi:BPMNEdge>
|
||||||
|
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_ybZfyA" id="BPMNEdge_CKx3Vg" sourceElement="BPMNShape_Task_4" targetElement="BPMNShape_EndEvent_1">
|
||||||
|
<di:waypoint x="560.0" y="285.0"/>
|
||||||
|
<di:waypoint x="707.0" y="285.0"/>
|
||||||
|
</bpmndi:BPMNEdge>
|
||||||
|
<bpmndi:BPMNShape bpmnElement="textAnnotation_S06aWQ" id="BPMNShape_OjI4Eg">
|
||||||
|
<dc:Bounds height="86.0" width="622.0" x="130.0" y="90.0"/>
|
||||||
|
</bpmndi:BPMNShape>
|
||||||
|
<bpmndi:BPMNShape bpmnElement="event_nwuGrQ" id="BPMNShape_a9eJNg">
|
||||||
|
<dc:Bounds height="36.0" width="36.0" x="487.0" y="187.0"/>
|
||||||
|
<bpmndi:BPMNLabel id="BPMNLabel_vVexTQ">
|
||||||
|
<dc:Bounds height="20.0" width="100.0" x="455.0" y="226.0"/>
|
||||||
|
</bpmndi:BPMNLabel>
|
||||||
|
</bpmndi:BPMNShape>
|
||||||
|
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_osGWVw" id="BPMNEdge_xm0CTg" sourceElement="BPMNShape_a9eJNg" targetElement="BPMNShape_Task_4">
|
||||||
|
<di:waypoint x="505.0" y="223.0"/>
|
||||||
|
<di:waypoint x="505.0" y="260.0"/>
|
||||||
|
</bpmndi:BPMNEdge>
|
||||||
</bpmndi:BPMNPlane>
|
</bpmndi:BPMNPlane>
|
||||||
<bpmndi:BPMNLabelStyle id="BPMNLabelStyle_1">
|
<bpmndi:BPMNLabelStyle id="BPMNLabelStyle_1">
|
||||||
<dc:Font name="arial" size="9.0"/>
|
<dc:Font name="arial" size="9.0"/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue