Skip to content

Instantly share code, notes, and snippets.

View romartin's full-sized avatar

Roger Martínez romartin

  • RedHat
  • Barcelona
View GitHub Profile
@romartin
romartin / gist:186cddabfe566fecfc556ff000f7c79b
Created April 14, 2020 21:14
Case Management Showcase - Sanity checks - Error once creating a new case instance (IT_Orders)
// This happens once starting the case (IT_Orders) from the case management showcaseapp
// Follow this video: https://www.youtube.com/watch?v=hmtuRaKlG_Y (at minute 6:20 I got this exception, once creating a new case instance)
23:09:52,291 WARN [org.jboss.modules.define] (default task-12) Failed to define class org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder in Module "deployment.kie-server.war" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder (Module "deployment.kie-server.war" from Service Module Loader): org/apache/neethi/builders/AssertionBuilder
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:839)
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:424)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:519)
at org.jboss.modul
package org.kie.workbench.common.stunner.bpmn.client.forms.fields.conditionEditor;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.jboss.errai.common.client.dom.Anchor;
import org.jboss.errai.common.client.dom.DOMUtil;
import org.jboss.errai.common.client.dom.Div;
import org.jboss.errai.common.client.dom.HTMLElement;
import org.jboss.errai.common.client.dom.Span;
@romartin
romartin / gist:fc796e87c5e5cf850d61d74babeb3c3b
Created March 16, 2020 20:03
org.kie.workbench.common.stunner.kogito.client.editor.BPMNDiagramEditor
private static java.util.logging.Logger LOGGER = java.util.logging.Logger.getLogger(BaseCanvasHandler.class.getName());
@SetContent
@Override
public void setContent(final String path, final String value) {
LOGGER.severe("HELLOOOOO!!!!");
superOnClose();
diagramServices.transform(value,
new ServiceCallback<Diagram>() {
@SuppressWarnings("unchecked")
void onCommandExecuted(final @Observes CanvasCommandExecutedEvent commandExecutedEvent) {
checkNotNull("commandExecutedEvent",
commandExecutedEvent);
Command command = commandExecutedEvent.getCommand();
if (command instanceof UpdateElementPropertyCommand) {
UpdateElementPropertyCommand propertyCommand = (UpdateElementPropertyCommand) command;
Element<View<?>> element = propertyCommand.getElement();
String propertyId = propertyCommand.getPropertyId();
Object value = propertyCommand.getValue();
Stunner Kogito Showcase
=======================
For detailed instructions on how to configure your development environment and run the Kogito Showcase, please refer to
the [Stunner directory README documentation](../../../).
* Before building Kogito, build whole Stunner project under `kie-wb-common/kie-wb-common-stunner` by command:
* `mvn clean install -DskipTests -Dgwt.compiler.skip=true`
* Go to this (`kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-kogito-runtime`) directory and compile Kogito project:
* `mvn -T 8C clean install -DskipTests=true`
@romartin
romartin / WorkDefinitions.wid
Created January 8, 2020 23:03
WorkDefinitions.wid
[
[
"name" : "Email",
"parameters" : [
"From" : new StringDataType(),
"To" : new StringDataType(),
"Subject" : new StringDataType(),
"Body" : new StringDataType()
],
"displayName" : "Email",
@romartin
romartin / process1.bpmn
Created January 8, 2020 23:03
process1.bpmn
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_7-hYMBu6EeqzOJl4vdovqg" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd http://www.omg.org/spec/DD/20100524/DC DC.xsd http://www.omg.org/spec/DD/20100524/DI DI.xsd " exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:itemDefinition id="__214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_MessageInputXItem" structureRef="String"/>
<bpmn2:process id="test.process1" drools:packageName="com.myspace.test" drools:vers
@romartin
romartin / WorkDefinitions.wid
Created December 11, 2019 02:18
WorkDefinitions.wid
[
[
"name" : "Email",
"parameters" : [
"From" : new StringDataType(),
"To" : new StringDataType(),
"Subject" : new StringDataType(),
"Body" : new StringDataType()
],
"displayName" : "Email",
@romartin
romartin / process1.bpmn
Created December 11, 2019 02:18
process1.bpmn
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_7-hYMBu6EeqzOJl4vdovqg" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd http://www.omg.org/spec/DD/20100524/DC DC.xsd http://www.omg.org/spec/DD/20100524/DI DI.xsd " exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">
<bpmn2:itemDefinition id="__214C05AF-CFDB-4E30-A760-E7AC7A4EACCA_MessageInputXItem" structureRef="String"/>
<bpmn2:process id="test.process1" drools:packageName="com.myspace.test" drools:vers
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.497 s
[INFO] Finished at: 2019-12-04T00:16:38+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.2:compile (gwt-compile) on project kie-wb-common-stunner-showcase-standalone: artifact not found - Could not find artifact org.uberfire:uberfire-project-client:jar:sources:7.31.0-20191203.160131-25 in jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]