Flow, Human Task, Group Assignment
by Chris Raschl
Hi,
I've got a question concerning drools flow, human tasks and group
assignments.
I assigned a human task to a group (via the groupId parameter) and can
successfully retrieve it using the TaskServiceSession function:
getTasksAssignedAsPotentialOwner(userId, groupIds, language)
This function implies in my understanding that the knowledge about group
membership is not (yet?) managed within the human task management
component, otherwise there would be no need to pass the groupIds to it.
If a user tries to claim the task now, a PermissionDeniedException is
thown because drools currently has no information about his group
membership.
see TaskServiceSession, line 602:
isAllowed(final User user, final List<OrganizationalEntity> entities)
There is even a comment in there...
"for now just do a contains, I'll figure out group membership later."
Is there a way to work around this issue? I'd like to avoid implementing
my own TaskServiceSession because of the lack of an interface and a
dependency to SubTasksStrategies.
Thanks in advance,
Chris
14 years, 8 months
Double Handling
by Ade Timi
Hi,
I am new to Drools. I am having a problem comparing 2 double values. I have
a Java class with a double attribute called loanToValue. The loanToValue is
been read from an XML file and the value is 92000.0. Based on this value I
do not expect this rule to be fired, but for some reason it does. And the
print statement returns 92000.0. Does anyone know what I'm doing wrong? My
rule looks as follows:
rule "G2 Equity in Asset"
ruleflow-group "goods"
dialect "mvel"
when
$d : IndividualDecision()
Individual(eval($d.getLoanToValue() < "85"))
then
System.out.println("loanToValue: " + ($d.getLoanToValue()));
end
Thanks,
Ade
Adeyinka Timi | Technical Supprt | Nathean Technologies Ltd
Registered Office 3 Lyncon Court, IDA Science & Technology Park, Snugborough
Road, Blanchardstown, Dublin 15, Ireland
T +353 1 685 3001 | VOIP 076 615 1117 | E adeyinka.timi(a)nathean.com |
<http://www.nathean.com/> <http://www.nathean.com> www.nathean.com
Incorporated in Ireland, No. 339972
The information appearing in this email and any files transmitted with it is
confidential and may not be reproduced, modified, distributed, transmitted,
displayed, published or broadcast without the prior written permission of
Nathean Technologies Ltd. It is intended solely for the use of the
addressee(s). Nathean Technologies Ltd, its directors, officers and
employees do not accept liability for any loss or damage of any nature
howsoever arising pertaining to the use of information appearing in this
email and/or any files transmitted with it. Whilst this email has been
checked for the presence of computer viruses, Nathean Technologies Ltd does
not, except as required by law, represent, warrant and/or guarantee that the
integrity of this communication has been maintained nor that the
communication is free of errors, viruses, interception or interference.
14 years, 8 months
Exceptions on Human Task creation
by Robert
Hi,
I try to use the Human Task View within Eclipse (I don't think that is the
problem) creating a Human Task.
(Remark: I tried this with Drools-Version 5.1.0 M1 and 5.1.0 Trunk
(selfbuild). Each time the same problems. I would like to stay on my build
trunk-version, since it works with the BPMN2, which the M1 did not).
Used Jars (relevant for here):
- h2-1.1.119.jar
- hibernate-core-3.3.0.SP1.jar
- persistence-api-1.0.jar
In general, if you need more information, just let me know.
What did I do ?
1. Starting a Mina-Server:
public class TaskManagementServer {
private EntityManagerFactory emf;
private TaskService taskService;
private TaskServiceSession taskSession;
private MinaTaskServer server;
public static void main(String[] args) throws Exception {
new TaskManagementServer().start();
}
private void start() throws Exception {
EntityManagerFactory emf =
Persistence.createEntityManagerFactory("org.drools.task");
taskService = new TaskService(emf,
SystemEventListenerFactory.getSystemEventListener());
taskSession = taskService.createSession();
taskSession.addUser(new User("Admin"));
taskSession.addUser(new User("Tim"));
taskSession.addUser(new User("Romy"));
server = new MinaTaskServer(taskService);
Thread thread = new Thread(server);
thread.start();
Thread.sleep( 500 );
System.out.println("Server started ...");
}
}
Starts-up without any errors.
2. Eclipse Human Task View: Enter Tim -> Refresh -> Empty list (as
expected)
3. Eclipse Human Task View: Enter Tim -> Create -> Dialog shows-up
(Create New Task) -> Enter data (Name: Clean Room ; Potential owner: Tim ;
Subject: Cleaning ; rest I kept empty) -> Hit OK.
4a. The Error appears in the Server console (Server console log, see below)
4b. Humans Task View -> Dialog shows-up (Task View: "Could not connect to
server, refresh first").
5. Eclipse Human Task View: Press Refresh -> Empty list (sure, still
empty because of the error/exceptions).
Thanks for your help, cheers, Rob.
This is the complete console output of the Task-Server:
For the exceptions see a little more down.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/D:/temp/Drools/alllibs/slf4j-jdk14-1.5.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/D:/temp/Drools/alllibs/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/D:/temp/Drools/alllibs/slf4j-log4j12-1.5.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/D:/temp/Drools/alllibs/slf4j-simple-1.5.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/D:/Downloads/Drools/drools-5.1.0.M1-bin/lib/slf4j-jdk14-1.5.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
10.04.2010 14:34:35 org.hibernate.cfg.annotations.Version <clinit>
INFO: Hibernate Annotations 3.4.0.GA
10.04.2010 14:34:35 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.0.SP1
10.04.2010 14:34:35 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
10.04.2010 14:34:35 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
10.04.2010 14:34:35 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
10.04.2010 14:34:35 org.hibernate.annotations.common.Version <clinit>
INFO: Hibernate Commons Annotations 3.1.0.GA
10.04.2010 14:34:35 org.hibernate.ejb.Version <clinit>
INFO: Hibernate EntityManager 3.4.0.GA
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksAssignedAsBusinessAdministrator => select
new org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText
descriptions, OrganizationalEntity businessAdministrator where
businessAdministrator.id = :userId and businessAdministrator in elements (
t.peopleAssignments.businessAdministrators ) and names.language =
:language and names in elements( t.names) and ( subjects.language =
:language and subjects in elements( t.subjects) or t.subjects.size = 0 )
and ( descriptions.language = :language and descriptions in elements(
t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime
is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksAssignedAsExcludedOwner => select new
org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText
descriptions, OrganizationalEntity excludedOwners where excludedOwners.id
= :userId and excludedOwners in elements (
t.peopleAssignments.excludedOwners ) and names.language = :language and
names in elements( t.names) and ( subjects.language = :language and
subjects in elements( t.subjects) or t.subjects.size = 0 ) and (
descriptions.language = :language and descriptions in elements(
t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime
is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksAssignedAsPotentialOwner => select new
org.drools.task.query.TaskSummary( t.id, names.text, subject.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy left join t.taskData.actualOwner left join
t.subjects as subject, I18NText names, I18NText descriptions,
OrganizationalEntity potentialOwners where potentialOwners.id = :userId
and potentialOwners in elements ( t.peopleAssignments.potentialOwners )
and names.language = :language and names in elements( t.names) and (
subject.language = :language or t.subjects.size = 0 ) and (
descriptions.language = :language and descriptions in elements(
t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in
('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and
t.taskData.expirationTime is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksAssignedAsPotentialOwnerWithGroups =>
select new org.drools.task.query.TaskSummary( t.id, names.text,
subjects.text, descriptions.text, t.taskData.status, t.priority,
t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy,
t.taskData.createdOn, t.taskData.activationTime,
t.taskData.expirationTime) from Task t left join t.taskData.createdBy left
join t.taskData.actualOwner, I18NText names, I18NText subjects, I18NText
descriptions, OrganizationalEntity potentialOwners where (
potentialOwners.id = :userId or potentialOwners.id in (:groupIds) ) and
potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and
names.language = :language and names in elements( t.names) and (
subjects.language = :language and subjects in elements( t.subjects) or
t.subjects.size = 0 ) and ( descriptions.language = :language and
descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and
t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress',
'Suspended') and t.taskData.expirationTime is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksAssignedAsPotentialOwnerByGroup => select
new org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy left join t.taskData.actualOwner, I18NText
names, I18NText subjects, I18NText descriptions, OrganizationalEntity
potentialOwners where potentialOwners.id = :groupId and potentialOwners in
elements ( t.peopleAssignments.potentialOwners ) and names.language =
:language and names in elements( t.names) and ( subjects.language =
:language and subjects in elements( t.subjects) or t.subjects.size = 0 )
and ( descriptions.language = :language and descriptions in elements(
t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in
('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and
t.taskData.expirationTime is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: SubTasksAssignedAsPotentialOwner => select new
org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy left join t.taskData.actualOwner, I18NText
names, I18NText subjects, I18NText descriptions, OrganizationalEntity
potentialOwners where t.taskData.parentId = :parentId and
potentialOwners.id = :userId and potentialOwners in elements (
t.peopleAssignments.potentialOwners ) and names.language = :language and
names in elements( t.names) and ( subjects.language = :language and
subjects in elements( t.subjects) or t.subjects.size = 0 ) and (
descriptions.language = :language and descriptions in elements(
t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in
('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and
t.taskData.expirationTime is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: GetSubTasksByParentTaskId => select new
org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t,
I18NText names, I18NText subjects, I18NText descriptions where
t.taskData.parentId = :parentId and names.language = :language and names
in elements( t.names) and ( subjects.language = :language and subjects in
elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language
= :language and descriptions in elements( t.descriptions) or
t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready',
'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is
null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksAssignedAsRecipient => select new
org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText
descriptions, OrganizationalEntity recipients where recipients.id =
:userId and recipients in elements ( t.peopleAssignments.recipients ) and
names.language = :language and names in elements( t.names) and (
subjects.language = :language and subjects in elements( t.subjects) or
t.subjects.size = 0 ) and ( descriptions.language = :language and
descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and
t.taskData.expirationTime is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksAssignedAsTaskInitiator => select new
org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText
descriptions, OrganizationalEntity taskInitiator where taskInitiator.id =
:userId and taskInitiator = t.peopleAssignments.taskInitiator and
names.language = :language and names in elements( t.names) and (
subjects.language = :language and subjects in elements( t.subjects) or
t.subjects.size = 0 ) and ( descriptions.language = :language and
descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and
t.taskData.expirationTime is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksAssignedAsTaskStakeholder => select new
org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText
descriptions, OrganizationalEntity taskStakeholder where
taskStakeholder.id = :userId and taskStakeholder in elements (
t.peopleAssignments.taskStakeholders ) and names.language = :language and
names in elements( t.names) and ( subjects.language = :language and
subjects in elements( t.subjects) or t.subjects.size = 0 ) and (
descriptions.language = :language and descriptions in elements(
t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime
is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: TasksOwned => select new
org.drools.task.query.TaskSummary( t.id, names.text, subjects.text,
descriptions.text, t.taskData.status, t.priority, t.taskData.skipable,
t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,
t.taskData.activationTime, t.taskData.expirationTime) from Task t left
join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText
descriptions where t.taskData.actualOwner.id = :userId and names in
elements( t.names) and names.language = :language and ( subjects.language
= :language and subjects in elements( t.subjects) or t.subjects.size = 0 )
and ( descriptions.language = :language and descriptions in elements(
t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime
is null
10.04.2010 14:34:36 org.hibernate.cfg.annotations.QueryBinder bindQuery
INFO: Binding Named query: UnescalatedDeadlines => select new
org.drools.task.query.DeadlineSummary( t.id, d.id, d.date) from Task t,
Deadline d where (d in elements( t.deadlines.startDeadlines ) or d in
elements( t.deadlines.endDeadlines ) ) and d.escalated = false order by
d.date
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Attachment
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.Attachment on table Attachment
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Content
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.Content on table Content
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.task.BooleanExpression
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.BooleanExpression on table
BooleanExpression
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Comment
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.Comment on table Comment
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Deadline
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.Deadline on table Deadline
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Escalation
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.Escalation on table Escalation
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.task.OrganizationalEntity
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.OrganizationalEntity on table
OrganizationalEntity
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Group
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.I18NText on table I18NText
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Notification
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.Notification on table Notification
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.task.EmailNotification
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.task.EmailNotificationHeader
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.EmailNotificationHeader on table
EmailNotificationHeader
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Reassignment
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.Reassignment on table Reassignment
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.Task
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.Task on table Task
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.SubTasksStrategy
10.04.2010 14:34:36 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity org.drools.task.SubTasksStrategy on table
SubTasksStrategy
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.task.OnParentAbortAllSubTasksEndStrategy
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.task.OnAllSubTasksEndParentEndStrategy
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: org.drools.task.User
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Task.taskData.comments -> Comment
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Task.taskData.attachments ->
Attachment
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Task.subjects -> I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Task.subTaskStrategies ->
SubTasksStrategy
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Task.names -> I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Task.descriptions -> I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Task.deadlines.startDeadlines ->
Deadline
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Task.deadlines.endDeadlines ->
Deadline
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Reassignment.documentation ->
I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Notification.subjects -> I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Notification.names -> I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Notification.documentation ->
I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Notification.descriptions ->
I18NText
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Escalation.reassignments ->
Reassignment
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Escalation.notifications ->
Notification
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Escalation.constraints ->
BooleanExpression
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Deadline.escalations ->
Escalation
10.04.2010 14:34:36 org.hibernate.cfg.annotations.CollectionBinder
bindOneToManySecondPass
INFO: Mapping collection: org.drools.task.Deadline.documentation ->
I18NText
10.04.2010 14:34:36 org.hibernate.cfg.AnnotationConfiguration
secondPassCompile
INFO: Hibernate Validator not found: ignoring
10.04.2010 14:34:36 org.hibernate.ejb.Ejb3Configuration configure
WARNUNG: hibernate.connection.autocommit = false break the EJB3
specification
10.04.2010 14:34:36
org.hibernate.cfg.search.HibernateSearchEventListenerRegister
enableHibernateSearch
INFO: Unable to find org.hibernate.search.event.FullTextIndexEventListener
on the classpath. Hibernate Search is not enabled.
10.04.2010 14:34:36
org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
10.04.2010 14:34:36
org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
10.04.2010 14:34:36
org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
10.04.2010 14:34:36
org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: org.h2.Driver at URL: jdbc:h2:mem:mydb
10.04.2010 14:34:36
org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=sa, password=****, autocommit=false,
release_mode=auto}
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: H2, version: 1.1.119 (2009-09-26)
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: H2 JDBC Driver, version: 1.1.119 (2009-09-26)
10.04.2010 14:34:37 org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.H2Dialect
10.04.2010 14:34:37 org.hibernate.transaction.TransactionFactoryFactory
buildTransactionFactory
INFO: Transaction strategy:
org.hibernate.transaction.JDBCTransactionFactory
10.04.2010 14:34:37
org.hibernate.transaction.TransactionManagerLookupFactory
getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of
read-write or transactional second-level cache is not recommended)
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 3
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory
createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
10.04.2010 14:34:37 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: enabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory createRegionFactory
INFO: Cache region factory :
org.hibernate.cache.impl.NoCachingRegionFactory
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
10.04.2010 14:34:37 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
10.04.2010 14:34:37 org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
10.04.2010 14:34:37 org.hibernate.impl.SessionFactoryObjectFactory
addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
10.04.2010 14:34:37 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: Running hbm2ddl schema export
10.04.2010 14:34:37 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: exporting generated schema to database
10.04.2010 14:34:38 org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: schema export complete
Hibernate: select task0_.id as col_0_0_, deadline1_.id as col_1_0_,
deadline1_.date as col_2_0_ from Task task0_, Deadline deadline1_ where
(deadline1_.id in (select startdeadl2_.id from Deadline startdeadl2_ where
task0_.id=startdeadl2_.Deadlines_StartDeadLine_Id) or deadline1_.id in
(select enddeadlin3_.id from Deadline enddeadlin3_ where
task0_.id=enddeadlin3_.Deadlines_EndDeadLine_Id)) and
deadline1_.escalated=0 order by deadline1_.date
Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('User', ?)
Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('User', ?)
Hibernate: insert into OrganizationalEntity (DTYPE, id) values ('User', ?)
Server started ...
[2010:04:100 14:04:84:debug] Message receieved on server :
QueryTasksAssignedAsPotentialOwner
[2010:04:100 14:04:84:debug] Arguments : [, en-UK]
Hibernate: select task0_.id as col_0_0_, i18ntext4_.text as col_1_0_,
subjects3_.text as col_2_0_, i18ntext5_.text as col_3_0_, task0_.status as
col_4_0_, task0_.priority as col_5_0_, task0_.skipable as col_6_0_,
task0_.actualOwner_id as col_7_0_, task0_.createdBy_id as col_8_0_,
task0_.createdOn as col_9_0_, task0_.activationTime as col_10_0_,
task0_.expirationTime as col_11_0_ from Task task0_ left outer join
OrganizationalEntity user1_ on task0_.createdBy_id=user1_.id left outer
join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left
outer join I18NText subjects3_ on task0_.id=subjects3_.Task_Subjects_Id,
I18NText i18ntext4_, I18NText i18ntext5_, OrganizationalEntity
organizati6_ where organizati6_.id=? and (organizati6_.id in (select
potentialo9_.entity_id from PeopleAssignments_PotentialOwners potentialo9_
where task0_.id=potentialo9_.task_id)) and i18ntext4_.language=? and
(i18ntext4_.id in (select names10_.id from I18NText names10_ where
task0_.id=names10_.Task_Names_Id)) and (subjects3_.language=? or (select
count(subjects11_.Task_Subjects_Id) from I18NText subjects11_ where
task0_.id=subjects11_.Task_Subjects_Id)=0) and (i18ntext5_.language=? and
(i18ntext5_.id in (select descriptio12_.id from I18NText descriptio12_
where task0_.id=descriptio12_.Task_Descriptions_Id)) or (select
count(descriptio13_.Task_Descriptions_Id) from I18NText descriptio13_
where task0_.id=descriptio13_.Task_Descriptions_Id)=0) and (task0_.status
in ('Created' , 'Ready' , 'Reserved' , 'InProgress' , 'Suspended')) and
(task0_.expirationTime is null)
10.04.2010 14:35:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: CREATED
10.04.2010 14:35:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: OPENED
10.04.2010 14:35:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=196 cap=2048: 00 00 00 C0 AC ED 00 05
73 72 01 00 1F 6F 72 67...]
10.04.2010 14:35:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=192 cap=256: 00 00 00 BC AC ED 00 05 73
72 01 00 1F 6F 72 67...]
10.04.2010 14:35:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
[2010:04:100 14:04:525:debug] Message receieved on server :
QueryTasksAssignedAsPotentialOwner
[2010:04:100 14:04:525:debug] Arguments : [Tim, en-UK]
Hibernate: select task0_.id as col_0_0_, i18ntext4_.text as col_1_0_,
subjects3_.text as col_2_0_, i18ntext5_.text as col_3_0_, task0_.status as
col_4_0_, task0_.priority as col_5_0_, task0_.skipable as col_6_0_,
task0_.actualOwner_id as col_7_0_, task0_.createdBy_id as col_8_0_,
task0_.createdOn as col_9_0_, task0_.activationTime as col_10_0_,
task0_.expirationTime as col_11_0_ from Task task0_ left outer join
OrganizationalEntity user1_ on task0_.createdBy_id=user1_.id left outer
join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left
outer join I18NText subjects3_ on task0_.id=subjects3_.Task_Subjects_Id,
I18NText i18ntext4_, I18NText i18ntext5_, OrganizationalEntity
organizati6_ where organizati6_.id=? and (organizati6_.id in (select
potentialo9_.entity_id from PeopleAssignments_PotentialOwners potentialo9_
where task0_.id=potentialo9_.task_id)) and i18ntext4_.language=? and
(i18ntext4_.id in (select names10_.id from I18NText names10_ where
task0_.id=names10_.Task_Names_Id)) and (subjects3_.language=? or (select
count(subjects11_.Task_Subjects_Id) from I18NText subjects11_ where
task0_.id=subjects11_.Task_Subjects_Id)=0) and (i18ntext5_.language=? and
(i18ntext5_.id in (select descriptio12_.id from I18NText descriptio12_
where task0_.id=descriptio12_.Task_Descriptions_Id)) or (select
count(descriptio13_.Task_Descriptions_Id) from I18NText descriptio13_
where task0_.id=descriptio13_.Task_Descriptions_Id)=0) and (task0_.status
in ('Created' , 'Ready' , 'Reserved' , 'InProgress' , 'Suspended')) and
(task0_.expirationTime is null)
10.04.2010 14:35:41 org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=199 cap=2048: 00 00 00 C3 AC ED 00 05
73 72 01 00 1F 6F 72 67...]
10.04.2010 14:35:41 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=192 cap=256: 00 00 00 BC AC ED 00 05 73
72 01 00 1F 6F 72 67...]
10.04.2010 14:35:41 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
[2010:04:100 14:04:559:debug] Server IDLE 1
10.04.2010 14:35:51 org.apache.mina.filter.logging.LogLevel$4 log
INFO: IDLE: both idle
[2010:04:100 14:04:564:debug] Server IDLE 2
10.04.2010 14:36:01 org.apache.mina.filter.logging.LogLevel$4 log
INFO: IDLE: both idle
10.04.2010 14:36:11 org.apache.mina.filter.logging.LogLevel$4 log
INFO: IDLE: both idle
[2010:04:100 14:04:568:debug] Server IDLE 3
10.04.2010 14:36:13 org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=379 cap=1024: 00 00 01 77 AC ED 00 05
73 72 01 00 1F 6F 72 67...]
[2010:04:100 14:04:291:debug] Message receieved on server : AddTaskRequest
[2010:04:100 14:04:301:debug] Arguments : [org.drools.task.Task@6668ee36,
null]
Hibernate: select user_.id from OrganizationalEntity user_ where user_.id=?
Hibernate: insert into Task (id, allowedToDelegate, taskInitiator_id,
priority, activationTime, actualOwner_id, createdBy_id, createdOn,
documentAccessType, documentContentId, documentType, expirationTime,
faultAccessType, faultContentId, faultName, faultType, outputAccessType,
outputContentId, outputType, parentId, previousStatus, skipable, status,
workItemId) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into I18NText (id, language, text) values (null, ?, ?)
Hibernate: insert into I18NText (id, language, text) values (null, ?, ?)
Hibernate: insert into I18NText (id, language, text) values (null, ?, ?)
Hibernate: update I18NText set Task_Descriptions_Id=? where id=?
Hibernate: update I18NText set Task_Names_Id=? where id=?
Hibernate: insert into PeopleAssignments_BusinessAdministrators (task_id,
entity_id) values (?, ?)
10.04.2010 14:36:13 org.hibernate.util.JDBCExceptionReporter logExceptions
WARNUNG: SQL Error: 23002, SQLState: 23002
10.04.2010 14:36:13 org.hibernate.util.JDBCExceptionReporter logExceptions
SCHWERWIEGEND: Referentielle Integrität verletzt: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID)
Referential integrity constraint violation: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID); SQL statement:
insert into PeopleAssignments_BusinessAdministrators (task_id, entity_id)
values (?, ?) [23002-119]
10.04.2010 14:36:13 org.hibernate.util.JDBCExceptionReporter logExceptions
WARNUNG: SQL Error: 23002, SQLState: 23002
10.04.2010 14:36:13 org.hibernate.util.JDBCExceptionReporter logExceptions
SCHWERWIEGEND: Referentielle Integrität verletzt: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID)
Referential integrity constraint violation: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID); SQL statement:
insert into PeopleAssignments_BusinessAdministrators (task_id, entity_id)
values (?, ?) [23002-119]
[2010:04:100 14:04:471:exception] Error while commiting the transaction
javax.persistence.RollbackException: Error while commiting the transaction
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:71)
at
org.drools.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:685)
at
org.drools.task.service.TaskServiceSession.addTask(TaskServiceSession.java:118)
at
org.drools.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:88)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:95)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: 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.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:114)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244)
at
org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1141)
at
org.hibernate.action.CollectionRecreateAction.execute(CollectionRecreateAction.java:58)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:171)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
... 28 more
Caused by: org.h2.jdbc.JdbcBatchUpdateException: Referentielle Integrität
verletzt: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID)
Referential integrity constraint violation: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID); SQL statement:
insert into PeopleAssignments_BusinessAdministrators (task_id, entity_id)
values (?, ?) [23002-119]
at
org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1090)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 42 more
10.04.2010 14:36:13 org.hibernate.event.def.AbstractFlushingEventListener
performExecutions
SCHWERWIEGEND: 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.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:114)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244)
at
org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1141)
at
org.hibernate.action.CollectionRecreateAction.execute(CollectionRecreateAction.java:58)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:171)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
at
org.drools.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:685)
at
org.drools.task.service.TaskServiceSession.addTask(TaskServiceSession.java:118)
at
org.drools.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:88)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:95)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.h2.jdbc.JdbcBatchUpdateException: Referentielle Integrität
verletzt: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID)
Referential integrity constraint violation: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID); SQL statement:
insert into PeopleAssignments_BusinessAdministrators (task_id, entity_id)
values (?, ?) [23002-119]
at
org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1090)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 42 more
javax.persistence.RollbackException: Error while commiting the transaction
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:71)
at
org.drools.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:685)
at
org.drools.task.service.TaskServiceSession.addTask(TaskServiceSession.java:118)
at
org.drools.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:88)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:95)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
at
org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: 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.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:114)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244)
at
org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1141)
at
org.hibernate.action.CollectionRecreateAction.execute(CollectionRecreateAction.java:58)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:171)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
... 28 more
Caused by: org.h2.jdbc.JdbcBatchUpdateException: Referentielle Integrität
verletzt: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID)
Referential integrity constraint violation: FK3D56AB6EB009A012:
PUBLIC.PEOPLEASSIGNMENTS_BUSINESSADMINISTRATORS FOREIGN KEY(ENTITY_ID)
REFERENCES PUBLIC.ORGANIZATIONALENTITY(ID); SQL statement:
insert into PeopleAssignments_BusinessAdministrators (task_id, entity_id)
values (?, ?) [23002-119]
at
org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1090)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 42 more
10.04.2010 14:36:13 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=8706 cap=16384: 00 00 21 FE AC ED 00 05
73 72 01 00 1F 6F 72 67...]
10.04.2010 14:36:13 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
10.04.2010 14:36:18 org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=199 cap=1024: 00 00 00 C3 AC ED 00 05
73 72 01 00 1F 6F 72 67...]
10.04.2010 14:36:18 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=192 cap=256: 00 00 00 BC AC ED 00 05 73
72 01 00 1F 6F 72 67...]
10.04.2010 14:36:18 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
[2010:04:100 14:04:308:debug] Message receieved on server :
QueryTasksAssignedAsPotentialOwner
[2010:04:100 14:04:308:debug] Arguments : [Tim, en-UK]
Hibernate: select task0_.id as col_0_0_, i18ntext4_.text as col_1_0_,
subjects3_.text as col_2_0_, i18ntext5_.text as col_3_0_, task0_.status as
col_4_0_, task0_.priority as col_5_0_, task0_.skipable as col_6_0_,
task0_.actualOwner_id as col_7_0_, task0_.createdBy_id as col_8_0_,
task0_.createdOn as col_9_0_, task0_.activationTime as col_10_0_,
task0_.expirationTime as col_11_0_ from Task task0_ left outer join
OrganizationalEntity user1_ on task0_.createdBy_id=user1_.id left outer
join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left
outer join I18NText subjects3_ on task0_.id=subjects3_.Task_Subjects_Id,
I18NText i18ntext4_, I18NText i18ntext5_, OrganizationalEntity
organizati6_ where organizati6_.id=? and (organizati6_.id in (select
potentialo9_.entity_id from PeopleAssignments_PotentialOwners potentialo9_
where task0_.id=potentialo9_.task_id)) and i18ntext4_.language=? and
(i18ntext4_.id in (select names10_.id from I18NText names10_ where
task0_.id=names10_.Task_Names_Id)) and (subjects3_.language=? or (select
count(subjects11_.Task_Subjects_Id) from I18NText subjects11_ where
task0_.id=subjects11_.Task_Subjects_Id)=0) and (i18ntext5_.language=? and
(i18ntext5_.id in (select descriptio12_.id from I18NText descriptio12_
where task0_.id=descriptio12_.Task_Descriptions_Id)) or (select
count(descriptio13_.Task_Descriptions_Id) from I18NText descriptio13_
where task0_.id=descriptio13_.Task_Descriptions_Id)=0) and (task0_.status
in ('Created' , 'Ready' , 'Reserved' , 'InProgress' , 'Suspended')) and
(task0_.expirationTime is null)
10.04.2010 14:36:28 org.apache.mina.filter.logging.LogLevel$4 log
INFO: IDLE: both idle
[2010:04:100 14:04:342:debug] Server IDLE 1
10.04.2010 14:36:32 org.apache.mina.filter.logging.LogLevel$4 log
INFO: CLOSED
10.04.2010 14:36:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: CREATED
10.04.2010 14:36:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: OPENED
10.04.2010 14:36:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=199 cap=2048: 00 00 00 C3 AC ED 00 05
73 72 01 00 1F 6F 72 67...]
10.04.2010 14:36:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=192 cap=256: 00 00 00 BC AC ED 00 05 73
72 01 00 1F 6F 72 67...]
10.04.2010 14:36:34 org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
[2010:04:100 14:04:371:debug] Message receieved on server :
QueryTasksAssignedAsPotentialOwner
[2010:04:100 14:04:371:debug] Arguments : [Tim, en-UK]
Hibernate: select task0_.id as col_0_0_, i18ntext4_.text as col_1_0_,
subjects3_.text as col_2_0_, i18ntext5_.text as col_3_0_, task0_.status as
col_4_0_, task0_.priority as col_5_0_, task0_.skipable as col_6_0_,
task0_.actualOwner_id as col_7_0_, task0_.createdBy_id as col_8_0_,
task0_.createdOn as col_9_0_, task0_.activationTime as col_10_0_,
task0_.expirationTime as col_11_0_ from Task task0_ left outer join
OrganizationalEntity user1_ on task0_.createdBy_id=user1_.id left outer
join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left
outer join I18NText subjects3_ on task0_.id=subjects3_.Task_Subjects_Id,
I18NText i18ntext4_, I18NText i18ntext5_, OrganizationalEntity
organizati6_ where organizati6_.id=? and (organizati6_.id in (select
potentialo9_.entity_id from PeopleAssignments_PotentialOwners potentialo9_
where task0_.id=potentialo9_.task_id)) and i18ntext4_.language=? and
(i18ntext4_.id in (select names10_.id from I18NText names10_ where
task0_.id=names10_.Task_Names_Id)) and (subjects3_.language=? or (select
count(subjects11_.Task_Subjects_Id) from I18NText subjects11_ where
task0_.id=subjects11_.Task_Subjects_Id)=0) and (i18ntext5_.language=? and
(i18ntext5_.id in (select descriptio12_.id from I18NText descriptio12_
where task0_.id=descriptio12_.Task_Descriptions_Id)) or (select
count(descriptio13_.Task_Descriptions_Id) from I18NText descriptio13_
where task0_.id=descriptio13_.Task_Descriptions_Id)=0) and (task0_.status
in ('Created' , 'Ready' , 'Reserved' , 'InProgress' , 'Suspended')) and
(task0_.expirationTime is null)
10.04.2010 14:36:45 org.apache.mina.filter.logging.LogLevel$4 log
INFO: IDLE: both idle
[2010:04:100 14:04:397:debug] Server IDLE 1
10.04.2010 14:36:55 org.apache.mina.filter.logging.LogLevel$4 log
INFO: IDLE: both idle
[2010:04:100 14:04:401:debug] Server IDLE 2
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
14 years, 8 months
Resuming the Flow: SESSION_ID, PROCESS_INSTANCE_ID, WORKITEM_ID
by tolitius
Hi Flow Crew,
This is about reloading the session and resuming the flow.
Let's say the flow reached one of its wait states, and was persisted.
Two days later an "assigned actor" does his/her duties, and the flow can
be resumed.
At this point, we need to call something, let's call it a
WorkflowService, that would have a resumeFlow( someBusinessId ) method that
will be called.
Here is where the question starts...
I understand there are three pieces in this puzzle: SESSION_ID,
PROCESS_INSTANCE_ID and WORKITEM_ID
I also understand that in order to resume the flow, I need to get a hold
of that certain work item that is ready to be completed, and let the flow
know it is completed.
But at the point, where I should resume the flow, I have no reference to
neither SESSION_ID, PROCESS_INSTANCE_ID or WORKFLOW_ID.
1. How are these three related to each other?
2. How do I find these three associated IDs?
2. Which one(s) do I need to resume the flow?
3. If I (somehow) get the reference to SESSION and PROCESS_INSTANCE
ids, how do I know which work item is ready to be completed?
Thank you,
/Anatoly
--
View this message in context: http://n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WOR...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 8 months
RulesFlow - DroolsFlow - Parallelism - Split Nodes - Help
by Pedro Maria Buitrago Mantilla
Greetings for all,
We're learning about jboss rules ( drools ), in particular, drools flow by
the workflow topic.
In the documentation, the parallelism is solved by means of split node of
type 1 (AND).
However, when we execute the testing ,the execution is sequential.
In particular, the idea is that our workflow executes two subflows in
parallel. For this target we configured a
"split node" with type 'AND' and a "join node" with type 'AND', no more
configuration, Is it required another configurations?
Is it problem of standalone applications? We don't know.
This is the case:
0. Drools:
Created-By: Apache Maven
Built-By: trikkola
Build-Jdk: 1.5.0_15
Specification-Title: Drools :: API
Specification-Version: 5.0.1
Specification-Vendor: JBoss Inc.
Implementation-Title: Drools :: API
Implementation-Version: 5.0.1
Implementation-Vendor-Id: org.drools
Implementation-Vendor: JBoss Inc.
1. ProcessXML:
*<?xml version="1.0" encoding="UTF-8"?> *
*<process xmlns="http://drools.org/drools-5.0/process"*
* xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"*
* xs:schemaLocation="http://drools.org/drools-5.0/processdrools-processes-5.0.xsd"
*
* type="RuleFlow" name="PriDigitalTest"
id="com.epmbog.esb.drools.mediator.PriDigitalTest"
package-name="com.epmbog.esb.drools.mediator" >*
*
*
* <header>*
* <variables>*
* <variable name="factsMap" >*
* <type
name="org.drools.process.core.datatype.impl.type.ObjectDataType"
className="java.util.HashMap" />*
* </variable>*
* <variable name="resultsMap" >*
* <type
name="org.drools.process.core.datatype.impl.type.ObjectDataType"
className="java.util.HashMap" />*
* </variable>*
* </variables>*
* </header>*
*
*
* <nodes>*
* *
* <start id="1" name="Start" x="126" y="16" width="48" height="48" />*
* *
* <split id="19" name="AND" x="109" y="95" width="80" height="40"
type="1" />*
* *
* <subProcess id="17" name="UMGSubFlow" x="16" y="168" width="119"
height="49" processId="com.epmbog.esb.drools.mediator.UMGFlow"
waitForCompletion="false" independent="false" >*
* <mapping type="in" from="resultsMap" to="resultsMap" />*
* <mapping type="in" from="factsMap" to="factsMap" />*
* </subProcess>*
* *
* <subProcess id="18" name="SoftSwitchSubFlow" x="167" y="168"
width="119" height="49"
processId="com.epmbog.esb.drools.mediator.SoftSwitchFlow"
waitForCompletion="false" independent="false" >*
* <mapping type="in" from="resultsMap" to="resultsMap" />*
* <mapping type="in" from="factsMap" to="factsMap" />*
* </subProcess>*
* *
* <join id="20" name="Join(And)" x="110" y="251" width="80" height="40"
type="1" />*
* *
* <end id="6" name="End" x="112" y="414" width="80" height="40" />*
* *
* </nodes>*
*
*
* <connections>*
* *
* <connection from="1" to="19" />*
* *
* <connection from="19" to="17" />*
* <connection from="19" to="18" />*
* *
* <connection from="17" to="20" />*
* <connection from="18" to="20" />*
* *
* <connection from="20" to="6" />*
* *
* </connections>*
*
*
*</process>*
*
*
*2. Chart*
*
*
[image: PriDigitalTest.JPG]
We greatly appreciate your help, any suggestions? Thank you a lot
PEDRO MARIA BUITRAGO MANTILLA
Bogotá, Colombia
14 years, 8 months
errors with GWT-console
by laurence vignollet
I am a new to Drools Flow, guvnor, and GWT-console-server-drools.
I am trying to deploy Gwt-console-server and to get a process running in it.
I am using Drools 5.1.0.M1, JBoss-AS 4.2.3.GA.
I have followed all the instruction in the Drools Flow 5.1.0 Documentation,
the chapter about Console.
When I start the aplication server I get the following errors:
10:31:16,957 INFO [TomcatDeployer] deploy, ctxPath=/gwt-console-server,
warUrl=
.../deploy/gwt-console-server-drools-5.1.0.M1.war/
10:31:17,275 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap contextInitialized
WARNING: The use of javax.ws.rs.core.Application is deprecated, please use
javax
.ws.rs.Application as a context-param instead
10:31:17,277 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap setProviders
INFO: Adding listed @Provider class org.jboss.bpm.report.FileWriter
10:31:17,309 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider DataSourceProvider
10:31:17,312 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider DefaultTextPlain
10:31:17,315 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.StringTextSta
r
10:31:17,319 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.InputStreamPr
ovider
10:31:17,323 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.ByteArrayProv
ider
10:31:17,327 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.FormUrlEncode
dProvider
10:31:17,330 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.FormUrlEncode
dProvider
10:31:17,334 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.StreamingOutp
utProvider
10:31:17,342 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartReader
10:31:17,361 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Li
stMultipartReader
10:31:17,364 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartFormDataReader
10:31:17,369 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Ma
pMultipartFormDataReader
10:31:17,373 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartWriter
10:31:17,380 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartFormDataWriter
10:31:17,385 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Lis
tMultipartWriter
10:31:17,388 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Map
MultipartFormDataWriter
10:31:17,391 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartFormAnnotationReader
10:31:17,397 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartFormAnnotationWriter
10:31:17,403 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalProvider
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.IIOImageProv
ider
10:31:17,409 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalProvider
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.Mi
meMultipartProvider
10:31:17,462 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Deploying javax.ws.rs.core.Application: class
org.jboss.bpm.console.server
.ConsoleServerApplication
10:31:17,466 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.report.ReportFacade from
Applicati
on javax.ws.rs.core.Application
10:31:17,502 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.TaskMgmtFacade
from
Application javax.ws.rs.core.Application
10:31:17,519 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.ProcessMgmtFacade f
rom Application javax.ws.rs.core.Application
10:31:17,532 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.TaskListFacade
from
Application javax.ws.rs.core.Application
10:31:17,536 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.UserMgmtFacade
from
Application javax.ws.rs.core.Application
10:31:17,543 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.FormProcessingFacad
e from Application javax.ws.rs.core.Application
10:31:17,552 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.EngineFacade
from A
pplication javax.ws.rs.core.Application
10:31:17,558 ERROR [STDERR] Apr 9, 2010 10:31:17 AM
org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.InfoFacade from
App
lication javax.ws.rs.core.Application
10:31:17,593 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console,
warUrl=.../dep
loy/jmx-console.war/
10:31:17,769 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on
http-127.0.0.1-8
080
10:31:17,797 INFO [AjpProtocol] Starting Coyote AJP/1.3 on
ajp-127.0.0.1-8009
10:31:17,815 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build:
SVNTag=JBos
s_4_2_3_GA date=200807181417)] Started in 26s:425ms
I can enter the GWT-Console but when I search the process I get the
following errors:
- URL: 'http://127.0.0.1:8080/gwt-console-server/rs/process/definitions'
- Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction'
- Exception: 'class com.google.gwt.http.client.RequestException'
- URL: 'http://127.0.0.1:8080/gwt-console-server/rs/process/definitions'
- Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction'
- Exception: 'class com.google.gwt.http.client.RequestException'
HTTP 500: HTTP Status 500 -
------------------------------
*type* Exception report
*message*
*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*
*exception*
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException:
Could not initialize stateful knowledge session: null
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
*root cause*
java.lang.RuntimeException: Could not initialize stateful knowledge
session: null
org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69)
org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77)
org.drools.integration.console.DroolsFlowCommandDelegate.<init>(DroolsFlowCommandDelegate.java:35)
org.drools.integration.console.DroolsFlowProcessManagement.<init>(DroolsFlowProcessManagement.java:20)
org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11)
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:83)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96
Thanks a lot in advance for your Help !
14 years, 8 months
Drools Flow: Skipping some LHS evaluations at time of insert
by madchen
Hi,
According to my understanding of Drools Flow, when you insert an object into
drools, it tries to match it against all the existing rules and every rule,
for which the 'When' clause conditions are met, becomes activated.
I was wondering if it was possible, that when an object is inserted into
drools, drools stops trying to match that object against the rules once the
first rule is activated. Or in other words, drools would go through the list
of rules comparing the object with the 'When' clause conditions and then
when it finds a rule that matches, it stops going through the rest of the
rules for that object.
Thanks!
Kevin
--
View this message in context: http://n3.nabble.com/Drools-Flow-Skipping-some-LHS-evaluations-at-time-of...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 8 months
Flow with Rules (RuleFlowGroup): how to share parameters/facts
by Nol de Wit
(using Flow and Rules 5.0)
In a small pilot we are considering to replace part of the work in
some of the subprocesses with rules. I can't seem to figure out how to
transport the parameters within the flow to the data the rules should
act upon.
In the Flow-only model, parameters are added as a parametermap at the
point the flow is started using:
parameterMap.put("report", report);
ksession.startProcess("myModule", parameterMap);
A 'standalone' rule model is given its data by feeding it some 'facts' using:
ksession.insert(report);
ksession.fireAllRules();
(..right? Haven't done to much of that, but I believe that is the way
it is done)
So if I combine Flows and Rules (using RuleFlowGroup), how do I make
sure the rules are given the correct data? My data (report) first
needs to go through a couple of flow actions, next through an XOR, of
which each output is connectedand then after each XOR output contraint
a
Currently I still use the first option, but the rules don't get fired
(the flow is started, and runs untill the RuleFlowGroup....). If I add
a ksession.fireAllRules() I see no difference.
Thanks,
Nol
14 years, 8 months