Hi,
I tried to deploy my process definition, but i received this error :
org.jbpm.JbpmException: couldn't find process definition 'ValidationFicheIncident'
Cause:
org.hibernate.MappingException: Named query not known: GraphSession.findLatestProcessDefinitionQuery
Do we have to make specific change in database configuration.
Could anyone help me in sorting out the problem
Below is the code which i tried.
Thanks in advance.
public static void deployProcess(String path, JbpmContext jbpmCtx){
FileInputStream fis = null;
try {
fis = new FileInputStream(path);
if (fis != null)
System.out.println("------------>Fichier de process trouvé !!");
ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(fis);
try {
jbpmCtx.deployProcessDefinition(processDefinition);
} catch (Exception e2) {
e2.printStackTrace();
} finally {
jbpmCtx.close();
}
} catch (FileNotFoundException e1) {
System.out
.println("------------> Aucune Trace du Fichier de process !!");
e1.printStackTrace();
}
}