[jboss-user] [JBoss jBPM] - JBPM_VARIABLEINSTANCE - REGISTERS WITHOUT PROCESS OR TASK AS

eskina do-not-reply at jboss.com
Wed Aug 16 20:34:21 EDT 2006


Hi!

Using the example websale.
1 - I create a new instance of process
	ProcessDefinition processDefinition =
 graphSession.findLatestProcessDefinition("websale");
	ProcessInstance processInstance = new ProcessInstance(processDefinition);
2 - I create the Task
	TaskInstance taskInstance = 
processInstance.getTaskMgmtInstance().createStartTaskInstance();
3 - I create the variable
	taskInstance.setVariable("item", "TV");
                taskInstance.setVariable("quantity", "20");
	taskInstance.setVariable("address", "Here");
4 - saved ProcessInstance
	jbpmContext.save(processInstance);
5 - it close jbpmContext
	jbpmContext.close();

To the look table JBPM_VARIABLEINSTANCE I have the following one:
id_	class_	name_	converter_	token_	tokenvariablemap_	processinstance_	...	longvalue_	...	stringvalue_	taskinstance_
1	N	item	null	null	null	null	...	null	...	null	null
2	N	quantity	null	null	null	null	...	null	...	null	null
3	N	address	null	null	null	null	...	null	...	null	null
4	S	item	null	1	null	1	...	null	...	TV	1
5	L	quantity	I	1	null	1	...	20	...	null	1
6	S	address	null	1	null	1	...	null	...	Here	1

The question is the following one, why is created registers without ProcessInstance or TaskInstance associates, who later the o to follow ahead with the process remain thus?

I am using jBPM 3.1.2. 

Thanks!


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965602#3965602

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965602



More information about the jboss-user mailing list