[JBoss jBPM] - ORA-02292: integrity constraint child records exist
by kalimbaig
Hi All,
I'm continuously seeing ORA-02292: integrity constraint error in my log file. Is it possible to delete Token#9406556 from the database to clean up things? This is only happening with one particular token (9406556) even though the process instance is not active for that Token. and when I try to delete process instance from DB, I got constraint violation error.
I'm using Jboss4.2 and Jbpm 3.0.1 and Oracle 10G.
Thanks in advance.
rg.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.graph.exe.Token#9406556]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2541)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2697)
at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:74)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:144)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.sql.SQLException: ORA-02292: integrity constraint (JMSLANCSTR2.FK_TKVARMAP_TOKEN) violated - child record found
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1120)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1278)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3415)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3498)
at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2523)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209657#4209657
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209657
15 years, 7 months
[JBoss jBPM] - Multiple actions within an event
by richiethom
Hi,
My business analyst has designed a process whereby I have the following in the process definition:
| <state name="syntax-validation">
| <event type="node-enter">
| <action name="High Level Syntax Validation" class="com.myproject.HighLevelSyntaxValidationAction" />
| <action name="Detailed Syntax Validation" class="com.myproject.DetailedSyntaxValidation"/>
| </event>
| <transition to="final-validation" name="passed">
| <action name="Persist Entity" class="com.myproject.PersistEntityAction"></action>
| </transition>
| <transition to="entity-rejected" name="rejected"></transition>
| </state>
|
How do two actions decide between them where to transition to?
My guess is that the first action either specifies a transition (ie the entity being persisted has failed its high level validation) or doesn't specify one at all - effectively falling through - in which case the entity has passed its high level validation and the detailed validation should decided on the transition, but this doesn't seem to work.
Does anyone have any pointers to examples or somewhere in the documentation that would cover this?
Cheers
Rich
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209601#4209601
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209601
15 years, 7 months
[JBoss jBPM] - Writing the XML of a ProcessDefinition
by tbee
Is the code that writes a process definition xml and its gpd xml from the designer reusable?
I've build a rudementary JBPM designer using JGraphX. The reason is that JBPM's designer is not website embedable (AFAIK) and that some items are somewhat unnatural to edit in the graphical mode (events) of the JBPM designer.
By extending JGraphX's example designer I can create an applet where the user can edit the PD in. The example designer takes care of all the mouse drags, undo's and all the other things a graphical designer should do.
It's rudementary because it only supports start, forks, join, state and end; that is all I need at the moment. The designer has support for a.o. swiming lanes, but I have not included that yet. I did however include small buttons that allow in-design editing of the on-enter & on-leave event scripts and transaction condition scripts.
At the moment I'm working to "complete the circle": read, edit, write. Currently I parse the PD xml (using the process definition class) and read its associated GPD xml (using dom4j). Now I want to write the xml's. I can, naturally, scan the PD objects... But the designer already ca write XML's. However, when I download the designer, I do not get sources...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209529#4209529
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209529
15 years, 7 months