[JBoss JIRA] (DROOLS-5670) DMN produce programmatically Swagger/OpenAPI components type info
by Matteo Mortari (Jira)
Matteo Mortari created DROOLS-5670:
--------------------------------------
Summary: DMN produce programmatically Swagger/OpenAPI components type info
Key: DROOLS-5670
URL: https://issues.redhat.com/browse/DROOLS-5670
Project: Drools
Issue Type: Story
Components: dmn engine
Reporter: Matteo Mortari
Assignee: Matteo Mortari
*Motivation*: generating Swagger definitions from annotation proved limiting
*Goals*: generate JSONSchema Component for Swagger/OpenAPI programmatically from the DMN model definition, since this gives fine tuned control would overcome the current limitation from annotation based strategies.
*Impacts*: none --eventually Kogito, Kie7, etc. can make use of this later
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (DROOLS-5669) DMN Decision Table Analysis integrated in Maven and Kogito
by Matteo Mortari (Jira)
Matteo Mortari created DROOLS-5669:
--------------------------------------
Summary: DMN Decision Table Analysis integrated in Maven and Kogito
Key: DROOLS-5669
URL: https://issues.redhat.com/browse/DROOLS-5669
Project: Drools
Issue Type: Story
Components: dmn engine
Reporter: Matteo Mortari
Assignee: Matteo Mortari
*Motivation*: currently DT (static) analysis is only available when editor is open
*Goals*: perform DMN DT analysis during build time, so the user is not required to await when backend services are available, or even worse needed to open DMN files one by one and checking DT analysis manually per each file.
*Impacts*: integration with kie-maven-plugin, Kogito codegen (which in turn is used by Kogito Quarkus extension AND Kogito maven plugin for SB)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (DROOLS-5663) align kie-maven-plugin default value for generateModel configuration flag
by Matteo Mortari (Jira)
[ https://issues.redhat.com/browse/DROOLS-5663?page=com.atlassian.jira.plug... ]
Matteo Mortari commented on DROOLS-5663:
----------------------------------------
Allegedly [DROOLS-4263] assumed files:
{code:java}
META-INF/kmodule.info
META-INF/instrumentationKBase/kbase.cache
{code}
are always generated even in the case of exec model; investigating.
> align kie-maven-plugin default value for generateModel configuration flag
> -------------------------------------------------------------------------
>
> Key: DROOLS-5663
> URL: https://issues.redhat.com/browse/DROOLS-5663
> Project: Drools
> Issue Type: Bug
> Components: integration
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Priority: Major
> Attachments: Screenshot 2020-09-23 at 12.16.06.png, log.txt, screenshot-1.png, screenshot-2.png
>
>
> h2. Executive Summary
> IFF the user do NOT specify the {{generateModel}} configuration flag for the kie-maven-plugin, the KJAR project ends up being built twice.
> h2. Details
> Take note of "Steps to Reproduce".
> We can observe that, at first, {{GenerateModelMojo}} is invoked, and then {{BuildMojo}} is ALSO invoked. With the end result that the {{drools-model}} file is generated anyway in the final JAR (kjar) artifact.
> In details, from the attached log, we notice at first the {{GenerateModelMojo}} is invoked:
> !screenshot-1.png|thumbnail!
> accordingly the mojo is generating the exec model classes sources:
> {code:java}
> [INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:generateModel (default-generateModel) @ kie-maven-plugin-example ---
> [INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Found 36 generated files in Canonical Model
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P01/LambdaPredicate01D5F3DAA2D9F6094AE615B9F2841BE2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PE1/LambdaConsequenceE181A33F2423D9B3ED83D2764CD9D7CC.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/DomainClassesMetadata58cc6133a88c41de80943de1b39e3585.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/DomainClassesMetadatad1f96973064a44cabb6a83fbe9979fa0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4B/LambdaExtractor4BD2450C83C7C6D99B9E58FC68BF23B8.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P04/LambdaConsequence04E3132F35C1152F539B6ED4644AC6B3.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Alarm.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD0/LambdaPredicateD0D10C330E24C798AB29B50316181DA1.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactA.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4D/LambdaExtractor4D55E2E04863B396216330AEDCAD1569.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PA9/LambdaPredicateA93B7F5E8D7190496BC805E26AB3F457.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PBE/LambdaExtractorBEF0BEA5560B29CBC89C4FC70B9C6D9D.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD1/LambdaExtractorD1AAF936ED8E4AEEE13080EE8245A712.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P57/LambdaExtractor57699C62EC50788820BA4075F6A28AE6.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P40/LambdaPredicate403C96BCAA32F72ADA05B19CC1ADBEB2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactB.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD5/LambdaConsequenceD5F3898CC43A37A798CA2E0DEAB2CEB4.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P99/LambdaPredicate995D77A8EF2B24CA352A136704291984.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P5A/LambdaConsequence5A1A7E4CF87C795DC59A8363371B8CE2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P6B/LambdaConsequence6B7C3E3CA04C944169886E6E213AC0BD.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC7E285F358A4D3AD09E21A8F3D321D55.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PE8/LambdaExtractorE84DAABE5D3F16E8E69999DC112E2009.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PFF/LambdaExtractorFFC29BD91606D6EE3BFE77BA2739B262.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P33/LambdaExtractor338B6BF83B0E840B16074D6B7DC05F5E.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/PF1/LambdaPredicateF1676D603D66F7F6A116F4D6C8760F76.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P23/LambdaExtractor2320785F70F7E8677188D3E84D56AEAC.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P10/LambdaPredicate100D2C06CA08502866BCD5764D55E146.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/DomainClassesMetadata88d814b4ebe641c58821fd70dab846a5.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC73928745AC647142A4A98CC7D45D334.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC4/LambdaPredicateC4023187C0F98EA3ABBF5261828864D9.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0.java
> [INFO] DSL successfully generated
> [INFO]
> {code}
> then we get the classic BuildMojo kicking in:
> !screenshot-2.png|thumbnail!
> and from the log:
> {code:java}
> [INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:build (default-build) @ kie-maven-plugin-example ---
> [INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] kieMap not present
> [INFO] KieModule successfully built!
> [INFO]
> {code}
> So the KJAR project is actually built twice
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (JGRP-2502) If the KUBERNETES_NAMESPACE is not set the default value is the "default" namespace
by Sebastian Laskawiec (Jira)
[ https://issues.redhat.com/browse/JGRP-2502?page=com.atlassian.jira.plugin... ]
Sebastian Laskawiec commented on JGRP-2502:
-------------------------------------------
[~belaban] [~filippe.spolti] Yes, I agree with Bela here - the protocol is targeted for both Kubernetes and OpenShift (hence it's name - {{KUBE_PING}}). I think we should just issue a warning is someone uses the {{default}} namespace and that's it.
[~filippe.spolti] Would you mind to create a Github issue for this? I can implement this in a first free slot.
> If the KUBERNETES_NAMESPACE is not set the default value is the "default" namespace
> ------------------------------------------------------------------------------------
>
> Key: JGRP-2502
> URL: https://issues.redhat.com/browse/JGRP-2502
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 5.0.4
> Reporter: Filippe Spolti
> Assignee: Bela Ban
> Priority: Minor
>
> If no namespace is set it defaults to the "default" ocp namespace which will case the warn as described in the log message below:
>
> {code:java}
> WARN [org.jgroups.protocols.kubernetes.KUBE_PING] (thread-9,ee,hdm78-kieserver-1-nggcf) failed getting JSON response from Kubernetes Client[masterUrl=https://172.30.0.1:443/api/v1, headers={Authorization=#MASKED:937#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.jgroups.protocols.kubernetes.stream.TokenStreamProvider@69991c01] for cluster [ee], namespace [default], labels [null]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: https://172.30.0.1:443/api/v1/namespaces/default/pods]]
> {code}
> IMHO the default namespace should not be used in this case since this namespace should not be used to deploy applications.
>
> If the namespace is not set it means that we do not want to enable the clustering feature, as the namespace is set if the namespace is not set, this condition [1] is not satisfied and the configuration will proceed.
>
> Another problem found in the tests is that, if we do set the KUBERNETES_NAMESPACE with no value, it will detect that the env has an value and will try to use a blank namespace:
>
> {code:java}
> failed getting JSON response from Kubernetes Client[masterUrl=https://172.30.0.1:443/api/v1 , headers={Authorization=#MASKED:874#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.jgroups.protocols.kubernetes.stream.TokenStreamProvider@17978314] for cluster [ee], namespace [], labels [null]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: https://172.30.0.1:443/api/v1/pods ]]
> {code}
>
> [1] - https://github.com/jgroups-extras/jgroups-kubernetes/blob/master/src/main/java/org/jgroups/protocols/kubernetes/KUBE_PING.java#L145
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (DROOLS-5668) Latest drools minor versions broke deserialization from earliest 7.x version due to changes made on the serialization/deserialization of node memories
by Sylvain Lemoine (Jira)
[ https://issues.redhat.com/browse/DROOLS-5668?page=com.atlassian.jira.plug... ]
Sylvain Lemoine commented on DROOLS-5668:
-----------------------------------------
In the reproducer, I think that I serialized / deserialized the session not the kiebase
in 7.0.0:
{code:java}
Marshaller marshaller = MarshallerFactory.newMarshaller(kieBase);
final long l = System.currentTimeMillis();
Path path = Paths.get(TMP_DIR, +l + "_drools_7.0.0_session");
try (OutputStream os = new FileOutputStream(path.toFile())) {
marshaller.marshall(os, kieSession);
}{code}
and then I read it back in 7.43.1
{code:java}
KieServices kieServices = KieServices.Factory.get();
KieContainer kContainer = kieServices.getKieClasspathContainer();
KieBase kieBase = kContainer.getKieBase();
Marshaller marshaller = MarshallerFactory.newMarshaller(kieBase);
try (InputStream is = new FileInputStream(file)) {
marshaller.unmarshall(is);
}{code}
did I miss something here ?
> Latest drools minor versions broke deserialization from earliest 7.x version due to changes made on the serialization/deserialization of node memories
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-5668
> URL: https://issues.redhat.com/browse/DROOLS-5668
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.43.1.Final
> Reporter: Sylvain Lemoine
> Assignee: Mario Fusco
> Priority: Major
> Attachments: drools-node-memories-serialization.tar.gz
>
>
> Latest drools minor versions broke deserialization from earliest 7.x version due to changes made on the serialization/deserialization
> of node memories. For instance it happens if a serialization has been done with earliest version and accumulate node.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (WFCORE-1031) PS1 scripts invocation ends with "cannot be loaded because running scripts is disabled on thi s system", affect MS Windows desktop series
by Lukas Vydra (Jira)
[ https://issues.redhat.com/browse/WFCORE-1031?page=com.atlassian.jira.plug... ]
Lukas Vydra commented on WFCORE-1031:
-------------------------------------
Hi [~rsvoboda], you could try
{code:}
powershell -ExecutionPolicy Bypass -File ./standalone.ps1
{code}
I'm able to run it this way without admin mode.
> PS1 scripts invocation ends with "cannot be loaded because running scripts is disabled on thi s system", affect MS Windows desktop series
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFCORE-1031
> URL: https://issues.redhat.com/browse/WFCORE-1031
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Reporter: Rostislav Svoboda
> Priority: Major
>
> PS1 scripts invocation ends with "cannot be loaded because running scripts is disabled on thi s system".
> This was spotted on Windows 10 but it seems it affect more MS Windows desktop series (at leas 8.x too) - based on HiChat discussion.
> When I open PowerShel, enter the bin folder and run .\standalone.ps1 I get this:
> {code}
> .\standalone.ps1 : File E:\jboss-eap-7.0\bin\standalone.ps1 cannot be loaded because running scripts is disabled on this s system.
> For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
> At line:1 char:1
> + .\standalone.ps1
> + ~~~~~~~~~~~~~~~~
> + CategoryInfo : SecurityError: (:) [], PSSecurityException
> + FullyQualifiedErrorId : UnauthorizedAccess
> {code}
> what "helped" is this:
> Set-ExecutionPolicy RemoteSigned
> but I had to run powershell as administrator because it's changing registry key ... so well, not straightforward usage of ps1 scripts ... Not everybody is able to run in admin mode.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months