[JBoss jBPM] - Re: Process Logging Not Happening Correctly
by xnejp03
I have the same problem. When I create process via Seam annotation @CreateProcess, it creates the logs properly, when the process starts using LocalCommandService, it only logs the creation of the process and not the subsequent transitions and automated nodes.
My jbpm.cfg.xml:
|
| <jbpm-context>
|
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false/></field>
| </bean>
| </factory>
| </service>
|
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
| </jbpm-context>
|
Hibernate cfg:
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
|
| <property name="show_sql">false</property>
| <property name="connection.datasource">java:/JbpmDS</property>
| <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
| <!-- <property name="hbm2ddl.auto">create-drop</property> -->
|
| <!--property name="transaction.flush_before_completion">true</property-->
My process definition:
|
| <start-state name="start-state1">
| <transition to="automated node"></transition>
| </start-state>
|
|
| <node name="automated node">
| <action name="write to db 1" class="test.MyActionHandler"></action>
| <transition to="fork1"></transition>
| </node>
|
My client code (in a Seam component):
| @Transactional
| public String startBusinessProcess() {
|
| try {
| InitialContext ic = new InitialContext();
| LocalCommandServiceHome serviceHome = (LocalCommandServiceHome)ic.lookup("java:ejb/CommandServiceBean");
| LocalCommandService service = serviceHome.create();
| StartProcessInstanceCommand command = new StartProcessInstanceCommand();
| command.setActorId(actor.getId());
| command.setKey("key");
| command.setProcessName("testProcess");
| service.execute( command );
| } catch (NamingException e) {
| e.printStackTrace();
| } catch (CreateException e) {
| e.printStackTrace();
| }
|
| return null;
| }
|
Is it a configuration error (transaction setup?) or bug in the enterprise package? Anyone can help?
Thanks,
Petr
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175563#4175563
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175563
17 years, 7 months
[JBoss jBPM] - Re: ProcessDefinition to XML
by lseymore
I just have a couple of comments for anyone who might be looking at the same issue.
This is in regards to version 3.2.3.
I first tried the org.jbpm.jpdl.xml.JpdlXmlWriter class:
The org.jbpm.jpdl.xml.JpdlXmlWriter is a deprecated class and would have been useful if it wrote the complete XML.
Next I tried com.thoughtworks.xstream.XStream to create an XML representation for me, but it seems very tedious to generate a human friendly XML markup - I might end up (de-)serializing ProcessDefinition objects using this class anyway.
Finally I tried manually building up XML from the ProcessDefinition object by, but this is a very painful, horrible, and useless approach:
- I got stuck when trying to generate a Node's leavingTransitions, calling any method on the resulting list caused a NullPointerException - so I gave up.
My last resort is to try and find the where in the designer (eclipse plugin) source the XML is generated. Unfortunately I have not been successful in my search and might just give up on the whole idea soon.
If you have any comments, suggestions or alternative solutions please let me know.
Thanks,
- L
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175507#4175507
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175507
17 years, 7 months
[JBoss jBPM] - richfaces seam
by gopib
Hi
I am new to richfaces, I created one drop down box using selectOneMenu, creating upto drop down box is ok but the problem is , If i select any item from the drop down box at the same time i should display display one comment and one input text box, for others. please find the code below, thank u.
.xhtml:
---------
<h:panelGrid columns="4" width="900" columnClasses="formColumn1,formColumn2">
<h:column>
<h:outputText styleClass="formFont" value="Academic Qualification"></h:outputText>
</h:column>
<h:column>
<a4j:region>
<h:selectOneMenu styleClass="formColumnInputText" required="true" value="#{uiRenderer.title}" >
<f:selectItem itemValue=" " itemLabel=" "/>
<f:selectItem itemValue="Secondary Level" itemLabel="Secondary Level"/>
<f:selectItem itemValue="Degree Level" itemLabel="Degree Level"/>
<f:selectItem itemValue="Post Graduate" itemLabel="Post Graduate"/>
<f:selectItem itemValue="Others" itemLabel="Others" />
<a4j:support event="onchange" action="#{uiRenderer.updateView()}" reRender="ot1"/>
</h:selectOneMenu>
</a4j:region>
</h:column>
<h:column>
<a4j:outputPanel id="ot1" rendered="#{uiRendered.visible}" >
<h:outputText value="If Others(Please specify here)"/>
<h:inputText value=" " ></h:inputText>
</a4j:outputPanel>
</h:column>
</h:panelGrid>
.class file:
------------
package com.manam.mortgage.session;
import org.jboss.seam.annotations.Name;
@Name("uiRenderer")
public class UIRenderUtil {
private String listValue;
private boolean visible;
private String title;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
this.setVisible(true);
}
public void updateView(){
System.out.println("Visible Value" +visible);
System.out.println("Method Called. 34...... ");
this.setVisible(true);
}
public boolean isVisible() {
return visible;
}
public void setVisible(boolean visible) {
System.out.println("Method Visible Called");
this.visible = visible;
System.out.println("Visible Value" +visible);
}
public String getListValue() {
return listValue;
}
public void setListValue(String listValue) {
this.listValue = listValue;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175470#4175470
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175470
17 years, 7 months