How to create sql scripts to deploy a process definition in jBPM?

I am studying jBPM integration with my current project, so well that I just included jpdl jar in my ear and using the module module spring 0.8 jbpm, however I should have a reasonable way from my changes to defining the process in the designer to deploying it in the production process.

The path should be repeated in several environments (dev, many test, staging, and then prod), and ideally should run while the system itself is down.

I would ideally pack the entire definition as an SQL script, however I did not see any tool for translating from processdefinition.xml to sql, and building all of these manually seems too inconvenient and error prone.

Does anyone else have any impressions here?

The system runs on websphere 6.1, and I prefer to avoid executing Java code during migration (running java code to generate artifacts that can then be used during migration, in order).

+3
source share
3 answers

If you want to avoid going along the route .par, it’s easy to write simple Java code to deploy a new version of the process definition in your database. Sort of

JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance("jbpm.cfg.xml"));
ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(newPdStream);
JbpmContext context = jbpmConfiguration.createJbpmContext();
context.getGraphSession().deployProcessDefinition(processDefinition);

You will need hibernate.propertiesor hibernate.cfg.xmlfor the appropriate database along the class path.

, , . , ( ), , .

+1

: sql

, jBPM-

context.getGraphSession().deployProcessDefinition(processDefinition);

shyamsundar

sql LogDriver: http://rkbloom.net/logdriver/logdriver.tar.gz

+1

ant, JBPM, DeployProcessTask. , .par jbpm-cfg.xml dev/test/staging/prod. , , - hibernate .

0
source

Source: https://habr.com/ru/post/1699147/


All Articles