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.<br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 3:28 PM, Chuck.KS <span dir="ltr">&lt;<a href="mailto:chuck.irvine.ks@gmail.com">chuck.irvine.ks@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
<br>
ramram wrote:<br>
&gt;<br>
&gt; Hi What do u have as a problem running the human task?<br>
&gt; did u run the taskservice?<br>
&gt; u cant start a humantask flow as long as u dont have a TaskService?<br>
&gt;<br>
<br>
</div>I did manage to put some code together but I didn&#39;t feel from reading the<br>
documentation that I knew exactly what I was doing. I think it would be very<br>
helpful and many questions would be avoided if a worked out example could<br>
be provided with the drools distribution. Anyway, I really appreciate your<br>
help. The error I got is indicated below.<br>
<br>
Jan 25, 2010 12:16:39 PM org.hibernate.util.JDBCExceptionReporter<br>
logExceptions<br>
WARNING: SQL Error: 23002, SQLState: 23002<br>
Jan 25, 2010 12:16:39 PM org.hibernate.util.JDBCExceptionReporter<br>
logExceptions<br>
SEVERE: Referential integrity constraint violation: FK27A9A59B680AE0:<br>
PUBLIC.TASK FOREIGN KEY(CREATEDBY_ID) REFERENCES<br>
PUBLIC.ORGANIZATIONALENTITY(ID) [23002-77]<br>
Jan 25, 2010 12:16:39 PM org.hibernate.util.JDBCExceptionReporter<br>
logExceptions<br>
WARNING: SQL Error: 23002, SQLState: 23002<br>
Jan 25, 2010 12:16:39 PM org.hibernate.util.JDBCExceptionReporter<br>
logExceptions<br>
SEVERE: Referential integrity constraint violation: FK27A9A59B680AE0:<br>
PUBLIC.TASK FOREIGN KEY(CREATEDBY_ID) REFERENCES<br>
PUBLIC.ORGANIZATIONALENTITY(ID) [23002-77]<br>
Jan 25, 2010 12:16:39 PM<br>
org.hibernate.event.def.AbstractFlushingEventListener performExecutions<br>
SEVERE: Could not synchronize database state with session<br>
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC<br>
batch update<br>
        at<br>
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)<br>
        at<br>
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)<br>
        at<br>
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)<br>
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)<br>
<br>
Also, I&#39;m attaching my test file and persistence.xml file:<br>
<a href="http://n3.nabble.com/file/n138317/RuleFlowTest.java" target="_blank">http://n3.nabble.com/file/n138317/RuleFlowTest.java</a> RuleFlowTest.java ,<br>
<a href="http://n3.nabble.com/file/n138317/persistence.xml" target="_blank">http://n3.nabble.com/file/n138317/persistence.xml</a> persistence.xml<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Human-Task-Example-tp131011p138317.html" target="_blank">http://n3.nabble.com/Human-Task-Example-tp131011p138317.html</a><br>
</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>