Discussion:
[jboss-user] [jBPM] - What is actually the processId and does it depend on the process version?
patrice godard
2013-03-04 08:59:44 UTC
Permalink
patrice godard [https://community.jboss.org/people/loik] created the discussion

"What is actually the processId and does it depend on the process version?"

To view the discussion, visit: https://community.jboss.org/message/800523#800523

--------------------------------------------------------------
Hi,
I'm a bit confused with the ksession.createProcessInstance(String processId, Map<String,Object>parameters) API.

Is the processId dependant on the version of the process I want to launch or do all versions of processes of a given name have the same processId?

Le'ts suppose I have a process with name "MyProcess", and version "1.0" is deployed.
I deploy  version "2.0" of this process.
How am I supposed to launch process instances of the new version of the process?
Do they both have the same processId (this is wierd to me since it's no longer an ID then)?

What I need is some kind of "launch process instance by name" that would pick up the latest version of this process definition, given a process name.

Thanks,
Pat
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/800523#800523]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
amadets
2013-03-04 09:23:24 UTC
Permalink
amadets [https://community.jboss.org/people/amadets] created the discussion

"Re: What is actually the processId and does it depend on the process version?"

To view the discussion, visit: https://community.jboss.org/message/800528#800528

--------------------------------------------------------------
To me this is not possible. I asked about this in a thread https://community.jboss.org/thread/221461?tstart=30 https://community.jboss.org/thread/221461?tstart=30.
Ksession there is no way to run a "launch process instance by name" as a major determinant in the tables in the database is ProcessID (as a String) that does not contain the version number.
You have to do simply use a naming convention for example: myprocessV1 and myprocessV2,
I found somewhere in forum (to version 5.2) that the new version of the process is not the same process, and therefore it is unrealized.
But I do not know why, then is the field version of the editor?
ts
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/800528#800528]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
patrice godard
2013-03-04 09:47:20 UTC
Permalink
patrice godard [https://community.jboss.org/people/loik] created the discussion

"Re: What is actually the processId and does it depend on the process version?"

To view the discussion, visit: https://community.jboss.org/message/800542#800542

--------------------------------------------------------------
Thank you for your reply.
I came to this conclusion too but hopefully some jBPM expert will contradict us?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/800542#800542]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
amadets
2013-03-04 10:18:33 UTC
Permalink
amadets [https://community.jboss.org/people/amadets] created the discussion

"Re: What is actually the processId and does it depend on the process version?"

To view the discussion, visit: https://community.jboss.org/message/800551#800551

--------------------------------------------------------------
I hope, too, but the latest version 6.0 (alpha or whatever is) in a  TASK table in databese does not have the field so it is unlikely to work.

see for example:
http://grepcode.com/file/repo1.maven.org/maven2/org.jbpm/jbpm-human-task-core/6.0.0.Alpha6/org/jbpm/task/TaskData.java?av=f http://grepcode.com/file/repo1.maven.org/maven2/org.jbpm/jbpm-human-task-core/6.0.0.Alpha6/org/jbpm/task/TaskData.java?av=f

ts
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/800551#800551]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-03-04 23:08:33 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: What is actually the processId and does it depend on the process version?"

To view the discussion, visit: https://community.jboss.org/message/800699#800699

--------------------------------------------------------------
Unlike jbpm4, jbpm5 doesnot deploy the process definitions in the database. There may be a possibility with guvnor but as far as I know, it is not possible with guvnor too.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/800699#800699]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
amadets
2013-03-05 00:13:32 UTC
Permalink
amadets [https://community.jboss.org/people/amadets] created the discussion

"Re: What is actually the processId and does it depend on the process version?"

To view the discussion, visit: https://community.jboss.org/message/800703#800703

--------------------------------------------------------------
yes, it does not deploy definition. But when save process instance to database, the instance do not have information which version is running. It is only processId.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/800703#800703]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...