Problems to deploy a business rule task

Hi,
I have an error during deploying of the BPMN process, in particular at the business rule task. I have also a DMN diagram connected at BPMN diagram. Can you control the connection properties, please? Should I define a DMN table class in the main?
MalattieRenali.dmn (2.8 KB)
MalattieRenali.bpmn (5.8 KB)

package org.camunda.bpm.getstarted.malattierenali;

import org.camunda.bpm.application.ProcessApplication;
import org.camunda.bpm.application.impl.ServletProcessApplication;
import org.camunda.bpm.dmn.engine.DmnEngine;
import org.camunda.bpm.dmn.engine.DmnEngineConfiguration;

@ProcessApplication(“MalattieRenali”)
public class MalattieRenaliApplication extends ServletProcessApplication {
public static void main(String[] args) {
// create a new default DMN engine
DmnEngine dmnEngine = DmnEngineConfiguration.createDefaultDmnEngineConfiguration().buildEngine();

}
}

Thank you!

Hi @alessandra.r,

What is the error which you see in the server log file during deployment?

I was able to deploy them, however it seems to have a problem in the dmn.

Best regards,
Yana

Hi Yana,
this is the main:

package org.camunda.bpm.getstarted.malattierenali;

import java.io.IOException;
import java.io.InputStream;
//import java.io.StringWriter;

//import org.camunda.bpm.application.impl.ServletProcessApplication;
import org.camunda.bpm.dmn.engine.DmnDecision;
import org.camunda.bpm.dmn.engine.DmnDecisionTableResult;
import org.camunda.bpm.dmn.engine.DmnEngine;
import org.camunda.bpm.dmn.engine.DmnEngineConfiguration;
import org.camunda.bpm.engine.variable.VariableMap;
import org.camunda.bpm.engine.variable.Variables;

public class MalattieRenaliApplication /* extends ServletProcessApplication*/{
public static void printUsage(String errorMessage, int exitCode) {
System.err.println(“Error: " + errorMessage);
System.exit(exitCode);
}
static String convertStreamToString(java.io.InputStream is) {
java.util.Scanner s = new java.util.Scanner(is).useDelimiter(”\A");
return s.hasNext() ? s.next() : “”;
}
public static void main(String[] args) {

	String infezione = "si";
	VariableMap variables = Variables
			.putValue("infezione", infezione);

	// create a new default DMN engine
	DmnEngine dmnEngine = DmnEngineConfiguration.createDefaultDmnEngineConfiguration().buildEngine();
	InputStream inputStream = MalattieRenaliApplication.class.getResourceAsStream("/MalattieRenali.dmn");
	String x = convertStreamToString(inputStream);

	try {
		System.out.println("debug");

		DmnDecision decision = dmnEngine.parseDecision("anamnesi", inputStream);
		// evaluate decision
		DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables);

		// print result
		String Diagnosi = result.getSingleResult().getSingleEntry();
		System.out.println("Diagnosi: " +Diagnosi);

	}
	catch (Exception e) {
		System.err.println("Could not close stream: "+e.getMessage());
		e.printStackTrace();
		}
	finally {
		try {
			inputStream.close();
		}
		catch (IOException e) {
			System.err.println("Could not close stream: "+e.getMessage());
		}
	}	
}

}

MalattieRenali.bpmn (5.8 KB)
MalattieRenali.dmn (1.2 KB)

This is pom file:

pom.xml (2.7 KB)

Can you help me, please?
Thanks!!!

Hi @alessandra.r,

I saw that your referring in another post the current one
It better to not open two posts related to the same topic.

In the other post seems that you are able to deploy the process,
is that correct?

Best regards,
Yana

Sorry,
You should read the last one, because the previous problems are resolved.

So I will close this topic and the discussion could continue in the other one.