-
1. TaskSummery processInstanceId is -1
salaboy21 Jan 26, 2011 7:30 AM (in response to odelyaholiday)You are doing it OK. The problem could be that you are using on memory processes. And the ProcessID is generated when it's stored in the database. You should configure persistence and the processId will be set by the database.
Greetings!
-
2. Re: TaskSummery processInstanceId is -1
odelyaholiday Jan 26, 2011 1:43 PM (in response to salaboy21)Sorry my mistake - due to the late hour I thought that it's -1, and actually it was 1..
-
3. TaskSummery processInstanceId is -1
salaboy21 Jan 26, 2011 8:01 AM (in response to odelyaholiday)yes. Are you already persisting your processes?
-
4. TaskSummery processInstanceId is -1
odelyaholiday Jan 26, 2011 8:03 AM (in response to salaboy21)I am trying to run a demo process.
How do I define it in the persistence.xml?
-
5. TaskSummery processInstanceId is -1
salaboy21 Jan 26, 2011 8:07 AM (in response to odelyaholiday)persistence.xml is defined by the JPA spec. You can find a sample persistence.xml file here:
but you probably want to tweak it to your needs and database vendor:
Notice that you must place it inside the META-INF directory.
Greetings.
-
6. TaskSummery processInstanceId is -1
odelyaholiday Jan 26, 2011 9:11 AM (in response to salaboy21)I know. I already have this file.
I just didn't get it what do I have to change in order to make ProcessID generated when it stored in db.
To which table does it belong?
-
7. Re: TaskSummery processInstanceId is -1
salaboy21 Jan 27, 2011 6:33 AM (in response to odelyaholiday)The process id should in inside the ProcessInstanceInfo table. Before calling the
task.getProcessInstanceId() take a look at the database to see if the process was persisted correctly.
Greetings.
-
8. TaskSummery processInstanceId is -1
odelyaholiday Feb 10, 2011 2:39 PM (in response to salaboy21)Hi!
I have again the same problem.
The ProcessInstanceInfo is empty. I have it in persistence.xml and I have human tasks in my BPMN so it's not an in memory process.
what could make it? where do I have to debug? where the ProcessInstanceInfo is being persisted ?
-
9. TaskSummery processInstanceId is -1
salaboy21 Feb 10, 2011 4:32 PM (in response to odelyaholiday)Can you create an isoleted test that demonstrate that functionality?
Greetings.
-
10. TaskSummery processInstanceId is -1
odelyaholiday Feb 11, 2011 3:41 AM (in response to salaboy21)Hey
I think that I found the problem
I wasn't using the JPAKnowledgeService.
I saw your new post http://www.plugtree.com/drools-%E2%80%93-use-case-emergency-service-%E2%80%93-business-process-implementation-part-2/ as well as the documentation about Persistence and will work on it.
Thanks!