[JBoss JIRA] Created: (JBPM-1259) Basic node sequence
by Thomas Diesler (JIRA)
Basic node sequence
-------------------
Key: JBPM-1259
URL: http://jira.jboss.com/jira/browse/JBPM-1259
Project: JBoss jBPM
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Reporter: Thomas Diesler
Assigned To: Thomas Diesler
Fix For: jBPM jPDL 3.2.4
String jpdl =
"<process-definition>" +
" <start-state>" +
" <transition to='stateA' />" +
" </start-state>" +
" <state name='stateA'>" +
" <transition to='end' />" +
" </state>" +
" <end-state name='end' />" +
"</process-definition>";
public void testBasicSequence() throws Exception {
// Locate the ProcessEngine
ProcessEngine engine = ProcessEngineLocator.locateProcessEngine();
// Create a ProcessDefinition through the ProcessDefinitionManager
ProcessDefinitionManager pdm = engine.getProcessDefinitionManager();
ProcessDefinition pd = pdm.createProcessDefinition(jpdl);
// Create a ProcessInstance through the ProcessInstanceManager
ProcessInstanceManager pim = engine.getProcessInstanceManager();
ProcessInstance pi = pim.createProcessInstance(pd);
// Create an Execution through the ExecutionManager
ExecutionManager pem = engine.getExecutionManager();
Execution ex = pem.createExecution(pi);
// Signal the execution
ex.signal();
// Verify the nodes
Node expNode = pd.findNode("stateA");
Node wasNode = ex.getNode();
assertEquals(expNode, wasNode);
assertEquals(expNode.getName(), wasNode.getName());
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (JBPM-1258) Implement jBPM client API in jBMP4
by Thomas Diesler (JIRA)
Implement jBPM client API in jBMP4
----------------------------------
Key: JBPM-1258
URL: http://jira.jboss.com/jira/browse/JBPM-1258
Project: JBoss jBPM
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Thomas Diesler
Assigned To: Thomas Diesler
- ThomasD + HeikoB design the BPM API in the jBPM3 SVN
- TomB reviews,comments,approves API
- ThomasD implemts the API on the jBPM3 code base
- HeikoB implemts the API on the jBPM4 code base
On our way to jBPM4 we promise backward compatibility of API and process descriptors. Necessary changes in configuration will be documented. Database structure and content may change in an incompatible way.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (JBPM-1289) session is closed error, when letting jbpm cleate an hibernate session in a transactional environment
by Thomas Heute (JIRA)
session is closed error, when letting jbpm cleate an hibernate session in a transactional environment
-----------------------------------------------------------------------------------------------------
Key: JBPM-1289
URL: http://jira.jboss.com/jira/browse/JBPM-1289
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Core Engine
Affects Versions: jBPM jPDL 3.2.2
Reporter: Thomas Heute
The following scenario seems to fail:
1) Open a Tx
2) Open a jbpmSession
--> jbpm will create a new Hibernate session in DBPersistenceService, and mark it to be close
3) do jbpm operation(s)
4) close the jbpm session
--> jbpm closes the Hibernate session
5) close the Tx
--> This will fail because of JobSession$DeleteJobsSynchronization which tries to execute operations with the now closed Hibernate session
org.hibernate.SessionException: Session is closed!
at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1258)
at org.jbpm.db.JobSession$DeleteJobsSynchronization.beforeCompletion(JobSession.java:190)
This is a major issue for jbpm upgrade in JBoss Portal
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months