[JBoss jBPM] - JBPM_VARIABLEINSTANCE - REGISTERS WITHOUT PROCESS OR TASK AS
by eskina
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
19 years, 8 months
[JBoss Eclipse IDE (users)] - xdoclet configurations panel broken
by toddp
hi,
I'm trying to complete the jboss-ide tutorial ( http://docs.jboss.com/jbosside/tutorial/build/en/html/ejb.file.generation... ), but the xdoclet configurations panel under myProjectName-->rightclick->properties->XDoclet Configuration seems to be broken.
only the 'enable Xdoclet' checkbox and the 'define xdoclet configurations available' textarea appears -- no buttons to add configs to the textarea are available, so I can't add them.
This is on a Mac OS 10.4.7, Eclipse 3.2.0 , jboss-ide 1.6.0GA. There also seems to be other non-jboss xdoclet stuff in there too -- for example, there is a jboss-ide xdoclet menu under window-->Preferences, but also an 'Xdoclet' menu at the top level there as well. Is there a known working eclipse/xdoclet versions I should be sticking to ?
I've seen other posts indicating that the perspective must be set to Java, and you must use the project explorer to get to the Properties in order for hthe xdoclet config panel to work, but I've done both of those things and it still does not render correctly.
When I get to properties and select "xdoclet configuration", an alert box appears which says "could not accept changes -- The currently displayed page contains invalid values". No stacktrace appears in my shell running eclipse.
I have also tried refreshing the xdoclet modules and data via window-->Preferences.
I apologize if this has been covered before, but I couldn't find any symptoms quite like these in all my searching.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965600#3965600
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965600
19 years, 8 months
[Installation, Configuration & Deployment] - Re: SQL 2000
by PeterJ
JBoss uses a database to store JMS messages that are in transit and have not yet been delivered. By default, JMS is configured to use the Hypersonic database. I can't recall if there are other services that use this database also. If you are not using JMS, you can either remove the service, or ignore it. If you are using JMS, you will want to switch to another database.
Other than that, a database would be used by an application deployed to JBoss. For example, I have a simple testing application that uses either MySQL or PostgreSQL as the database.
Another example is the JBoss Portal, which is an application deployed to JBoss. It can use one of a variety of databases to store the portal information.
Note that you can have multiple databases in use by the same instance of JBoss.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965595#3965595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965595
19 years, 8 months
[JBoss jBPM] - Re: Jbpm classes deployed inside a hibernate HAR
by jurglic
Actually, you don't need har. Any sar will do.
Basically, you need a sar with all the hbm.xml files of jbpm and following mbean:
| <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.jca:service=HibernateFactory,name=HibernateFactory">
|
| <depends>jboss.jca:service=RARDeployer</depends>
| <depends>jboss.jca:service=DataSourceBinding,name=HibernateDB2</depends>
|
| <attribute name="SessionFactoryName">java:/HibernateSessionFactory</attribute>
| <attribute name="DatasourceName">java:/HibernateDB2</attribute>
| <attribute name="Dialect">org.hibernate.dialect.DB2Dialect</attribute>
|
| <attribute name="ShowSqlEnabled">true</attribute>
| <attribute name="ScanForMappingsEnabled">true</attribute>
|
| </mbean>
|
The mbean above will initialize hibernate session factory and load all hbm.xml files in the enclosing sar. Those mapping files should be for jbpm persistent objects and for yours own as well.
That was first step. Second step is to configure jbpm to use configured hibernate session factory and to deploy it. You can do that with customizing jbpm.cfg.xml in your jbpm sar. More accurately, you must configure persistence service in the following manner:
<service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="sessionFactoryJndiName">
| <string value="java:/HibernateSessionFactory" />
| </field>
| </bean>
| </factory>
| </service>
And thats about it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965593#3965593
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965593
19 years, 8 months