I see that problem before. It means that you need to populate some users
first. Insert in the database an administrator user before running the
process.
On Mon, Jan 25, 2010 at 3:28 PM, Chuck.KS <chuck.irvine.ks(a)gmail.com> wrote:
ramram wrote:
>
> Hi What do u have as a problem running the human task?
> did u run the taskservice?
> u cant start a humantask flow as long as u dont have a TaskService?
>
I did manage to put some code together but I didn't feel from reading the
documentation that I knew exactly what I was doing. I think it would be
very
helpful and many questions would be avoided if a worked out example could
be provided with the drools distribution. Anyway, I really appreciate your
help. The error I got is indicated below.
Jan 25, 2010 12:16:39 PM org.hibernate.util.JDBCExceptionReporter
logExceptions
WARNING: SQL Error: 23002, SQLState: 23002
Jan 25, 2010 12:16:39 PM org.hibernate.util.JDBCExceptionReporter
logExceptions
SEVERE: Referential integrity constraint violation: FK27A9A59B680AE0:
PUBLIC.TASK FOREIGN KEY(CREATEDBY_ID) REFERENCES
PUBLIC.ORGANIZATIONALENTITY(ID) [23002-77]
Jan 25, 2010 12:16:39 PM org.hibernate.util.JDBCExceptionReporter
logExceptions
WARNING: SQL Error: 23002, SQLState: 23002
Jan 25, 2010 12:16:39 PM org.hibernate.util.JDBCExceptionReporter
logExceptions
SEVERE: Referential integrity constraint violation: FK27A9A59B680AE0:
PUBLIC.TASK FOREIGN KEY(CREATEDBY_ID) REFERENCES
PUBLIC.ORGANIZATIONALENTITY(ID) [23002-77]
Jan 25, 2010 12:16:39 PM
org.hibernate.event.def.AbstractFlushingEventListener performExecutions
SEVERE: Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute
JDBC
batch update
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
Also, I'm attaching my test file and persistence.xml file:
http://n3.nabble.com/file/n138317/RuleFlowTest.java RuleFlowTest.java ,
http://n3.nabble.com/file/n138317/persistence.xml persistence.xml
--
View this message in context:
http://n3.nabble.com/Human-Task-Example-tp131011p138317.html
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users