JBoss Community

Re: jBPM 4 - Deploy only if ProcessDefinition changed or new

created by rapa in jBPM - View the full discussion

Hi Michael,

 

I am afraid that findLatestProcessDefinitionByName() allows you to get the Process Definition by name and not by resource name (the name of the xml file, which is the only information I have at startup).

 

Even if it might not be useful for my case, how do you get the RepositorySession object in a clean way?

 

I see in the GetActivityCoordinates they get it like this:

 

environment.get(Repository.class)

 

but how to get the Environment?

 

EnvironmentImpl.getCurrent()

 

returns null.

 

I went through all classes containing the word resourceName in the jbpm4.4 source code but I don't see anything useful.

It doesn't seem to me that I am trying to solve any nasty problem, shouldn't it be something quite standard?

 

If it was possible to specify the process definition version (like the name or the key) in the process.jpdl.xml file it would have been solved already. Any solution to this?

Reply to this message by going to Community

Start a new discussion in jBPM at Community