[jboss-user] [jBPM] - Not able to change state of human task, persistance

Erik X do-not-reply at jboss.com
Wed Jan 4 05:37:22 EST 2012


Erik X [http://community.jboss.org/people/erikx] created the discussion

"Not able to change state of human task, persistance"

To view the discussion, visit: http://community.jboss.org/message/644560#644560

--------------------------------------------------------------
Hello,

I am writing a unit test to learn about JBPM.

The idea develop an basic example of a human task, in combination with the mina server, backed by a H2 in-memory database. 

The database schema is created successfully. Starting and connecting to the mina server seems to work fine. Fetching available tasks for a user works fine, too. A basic process example, based on script tasks, also works fine.

However, claiming, starting and completing a human task does not change the status of the human task.
Interestingly, the name of the human task in question is NULL. Whereas the ID is set.
The script task just before the human task is reached automatically.

Please find the files below.

Thanks
Erik


h1. persistance.xml (taken from current JBPM docs)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence version="1.0"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
       http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
       http://java.sun.com/xml/ns/persistence/orm
       http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
    xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/persistence">

    <persistence-unit name="org.jbpm.task">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <class>org.jbpm.task.Attachment</class>
        <class>org.jbpm.task.Content</class>
        <class>org.jbpm.task.BooleanExpression</class>
        <class>org.jbpm.task.Comment</class>
        <class>org.jbpm.task.Deadline</class>
        <class>org.jbpm.task.Comment</class>
        <class>org.jbpm.task.Deadline</class>
        <class>org.jbpm.task.Delegation</class>
        <class>org.jbpm.task.Escalation</class>
        <class>org.jbpm.task.Group</class>
        <class>org.jbpm.task.I18NText</class>
        <class>org.jbpm.task.Notification</class>
        <class>org.jbpm.task.EmailNotification</class>
        <class>org.jbpm.task.EmailNotificationHeader</class>
        <class>org.jbpm.task.PeopleAssignments</class>
        <class>org.jbpm.task.Reassignment</class>
        <class>org.jbpm.task.Status</class>
        <class>org.jbpm.task.Task</class>
        <class>org.jbpm.task.TaskData</class>
        <class>org.jbpm.task.SubTasksStrategy</class>
        <class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>
        <class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>
        <class>org.jbpm.task.User</class>

        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
            <property name="hibernate.connection.driver_class" value="org.h2.Driver" />
            <property name="hibernate.connection.url" value="jdbc:h2:mem:mydb" />
            <property name="hibernate.connection.username" value="sa" />
            <property name="hibernate.connection.password" value="sasa" />
            <property name="hibernate.connection.autocommit" value="false" />
            <property name="hibernate.max_fetch_depth" value="3" />
            <property name="hibernate.hbm2ddl.auto" value="create-drop" />
            <property name="hibernate.show_sql" value="true" />
        </properties>
    </persistence-unit>
</persistence>


h1. HumanTask.bpmn

<?xml version="1.0" encoding="UTF-8"?>
<definitions id="Definition" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes"
    expressionLanguage="http://www.mvel.org/2.0" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" xmlns:g="http://www.jboss.org/drools/flow/gpd"
    xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
    xmlns:tns="http://www.jboss.org/drools">

    <process processType="Private" isExecutable="true" id="net.we.process.human.test" name="Basic Test Process">

        <startEvent id="start" name="Start" />

        <scriptTask id="print1" name="Before" scriptFormat="http://www.java.com/java">
            <script>
                System.out.println(Before user task);
            </script>
        </scriptTask>

        <userTask id="htask1" name="HumanTask1">
            <potentialOwner>
                <resourceAssignmentExpression>
                    <formalExpression>mina, anim</formalExpression>
                </resourceAssignmentExpression>
            </potentialOwner>
        </userTask>

        <scriptTask id="print2" name="Before" scriptFormat="http://www.java.com/java">
            <script>
                System.out.println(After user task);
            </script>
        </scriptTask>

        <endEvent id="end" name="End">
            <terminateEventDefinition />
        </endEvent>

        <sequenceFlow id="start_print1" sourceRef="start" targetRef="print1" />
        <sequenceFlow id="print1_htask1" sourceRef="print1" targetRef="htask1" />
        <sequenceFlow id="htask1_print2" sourceRef="htask1" targetRef="print2" />
        <sequenceFlow id="print2_end" sourceRef="print2" targetRef="end" />
    </process>
</definitions>



Java

package net.bigpoint.cash.service.process;
 
import static org.junit.Assert.*;
 
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
 
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
 
import org.drools.KnowledgeBase;
import org.drools.KnowledgeBaseFactory;
import org.drools.SystemEventListener;
import org.drools.SystemEventListenerFactory;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.KnowledgeBuilderFactory;
import org.drools.builder.ResourceType;
import org.drools.io.ResourceFactory;
import org.drools.logger.KnowledgeRuntimeLogger;
import org.drools.logger.KnowledgeRuntimeLoggerFactory;
import org.drools.runtime.Environment;
import org.drools.runtime.EnvironmentName;
import org.drools.runtime.StatefulKnowledgeSession;
//import org.jbpm.examples.humantask.HumanTaskExample.SystemEventListener;
import org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler;
import org.jbpm.process.workitem.wsht.WSHumanTaskHandler;
import org.jbpm.task.AccessType;
import org.jbpm.task.Content;
import org.jbpm.task.Task;
import org.jbpm.task.User;
import org.jbpm.task.query.TaskSummary;
import org.jbpm.task.service.ContentData;
import org.jbpm.task.service.TaskClient;
import org.jbpm.task.service.TaskService;
import org.jbpm.task.service.TaskServiceSession;
import org.jbpm.task.service.mina.MinaTaskClientConnector;
import org.jbpm.task.service.mina.MinaTaskClientHandler;
import org.jbpm.task.service.mina.MinaTaskServer;
import org.jbpm.task.service.responsehandlers.BlockingGetContentResponseHandler;
import org.jbpm.task.service.responsehandlers.BlockingGetTaskResponseHandler;
import org.jbpm.task.service.responsehandlers.BlockingTaskOperationResponseHandler;
import org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler;
import org.junit.Before;
import org.junit.Test;
 
public class HumanTaskExampleTest {
 
    private Logger logger = Logger.getLogger(this.getClass().toString());
 
    @Before
    public void testSetup() {
        try {
            EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task");
            TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
            TaskServiceSession taskSession = taskService.createSession();
 
            taskSession.addUser(new User("Administrator"));
            taskSession.addUser(new User("mina"));
            taskSession.addUser(new User("anim"));
 
            MinaTaskServer server = new MinaTaskServer(taskService);
            Thread thread = new Thread(server);
            thread.start();
        } catch (Throwable t) {
            t.printStackTrace();
        }
    }
 
    @Test
    public void testHumanTask() throws Exception {
 
        KnowledgeBase kbase = readKnowledgeBase();
        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
        WSHumanTaskHandler handler = new WSHumanTaskHandler();
        // CommandBasedWSHumanTaskHandler handler = new
        // CommandBasedWSHumanTaskHandler(ksession);
        ksession.getWorkItemManager().registerWorkItemHandler("Human Task", handler);
 
        KnowledgeRuntimeLogger log = KnowledgeRuntimeLoggerFactory.newThreadedFileLogger(ksession, "test", 1000);
        ksession.startProcess("net.we.process.human.test");
        // ksession.fireAllRules();
        log.close();
 
        TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new MinaTaskClientHandler(
                SystemEventListenerFactory.getSystemEventListener())));
        client.connect("127.0.0.1", 9123);
 
        BlockingTaskSummaryResponseHandler taskSummaryResponseHandler = new BlockingTaskSummaryResponseHandler();
        client.getTasksAssignedAsPotentialOwner("mina", "en-UK", taskSummaryResponseHandler);
        List<TaskSummary> tasks = taskSummaryResponseHandler.getResults();
 
        TaskSummary task = tasks.get(0);
 
        logger.info(task.getId() + ", name=" +task.getName()+ ", actualOwner=" + task.getActualOwner() + ", status=" + task.getStatus());
 
        BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
        client.claim(task.getId(), "mina", responseHandler);
        responseHandler.waitTillDone(10000);
 
        logger.info(task.getId() + ", name=" +task.getName()+ ", actualOwner=" + task.getActualOwner() + ", status=" + task.getStatus());
 
        responseHandler = new BlockingTaskOperationResponseHandler();
        client.start(task.getId(), "mina", responseHandler);
        responseHandler.waitTillDone(10000);
 
        logger.info(task.getId() + ", name=" +task.getName()+ ", actualOwner=" + task.getActualOwner() + ", status=" + task.getStatus());
 
        responseHandler = new BlockingTaskOperationResponseHandler();
        client.complete(task.getId(), "mina", null, responseHandler);
        responseHandler.waitTillDone(10000);
 
        logger.info(task.getId() + ", name=" +task.getName()+ ", actualOwner=" + task.getActualOwner() + ", status=" + task.getStatus());
    }
 
    private static KnowledgeBase readKnowledgeBase() throws Exception {
        KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
        kbuilder.add(ResourceFactory.newClassPathResource("humantask/HumanTask.bpmn"), ResourceType.BPMN2);
        return kbuilder.newKnowledgeBase();
    }
}



Output

0
INFO  org.hibernate.cfg.annotations.Version  - Hibernate Annotations 3.4.0.GA

13   INFO  org.hibernate.cfg.Environment  - Hibernate 3.3.0.SP1
17   INFO  org.hibernate.cfg.Environment  - hibernate.properties not found
19   INFO  org.hibernate.cfg.Environment  - Bytecode provider name : javassist
23   INFO  org.hibernate.cfg.Environment  - using JDK 1.4 java.sql.Timestamp handling
76   INFO  org.hibernate.annotations.common.Version  - Hibernate Commons Annotations 3.1.0.GA
79   INFO  org.hibernate.ejb.Version  - Hibernate EntityManager 3.4.0.GA
1631 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksAssignedAsBusinessAdministrator => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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.subjects as subject left join t.descriptions as description left join t.names as name, OrganizationalEntity businessAdministrator where businessAdministrator.id = :userId and businessAdministrator in elements ( t.peopleAssignments.businessAdministrators ) and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
1631 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksAssignedAsExcludedOwner => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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.subjects as subject left join t.descriptions as description left join t.names as name, OrganizationalEntity excludedOwners where excludedOwners.id = :userId and excludedOwners in elements ( t.peopleAssignments.excludedOwners ) and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksAssignedAsPotentialOwner => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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 left join t.descriptions as description left join t.names as name, OrganizationalEntity potentialOwners where potentialOwners.id = :userId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksAssignedAsPotentialOwnerWithGroups => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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 left join t.descriptions as description left join t.names as name, OrganizationalEntity potentialOwners where ( potentialOwners.id = :userId or potentialOwners.id in (:groupIds) ) and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksAssignedAsPotentialOwnerByGroup => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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 left join t.descriptions as description left join t.names as name, OrganizationalEntity potentialOwners where potentialOwners.id = :groupId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: SubTasksAssignedAsPotentialOwner => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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 left join t.descriptions as description left join t.names as name, OrganizationalEntity potentialOwners where t.taskData.parentId = :parentId and potentialOwners.id = :userId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: GetSubTasksByParentTaskId => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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.subjects as subject left join t.descriptions as description left join t.names as name where t.taskData.parentId = :parentId and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksAssignedAsRecipient => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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.subjects as subject left join t.descriptions as description left join t.names as name, OrganizationalEntity recipients where recipients.id = :userId and recipients in elements ( t.peopleAssignments.recipients ) and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksAssignedAsTaskInitiator => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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.subjects as subject left join t.descriptions as description left join t.names as name, OrganizationalEntity taskInitiator where taskInitiator.id = :userId and taskInitiator = t.peopleAssignments.taskInitiator and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksAssignedAsTaskStakeholder => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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.subjects as subject left join t.descriptions as description left join t.names as name, OrganizationalEntity taskStakeholder where taskStakeholder.id = :userId and taskStakeholder in elements ( t.peopleAssignments.taskStakeholders ) and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
1632 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TasksOwned => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, name.text, subject.text, description.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.subjects as subject left join t.descriptions as description left join t.names as name where t.taskData.actualOwner.id = :userId and ( name.language = :language or t.names.size = 0 ) and ( subject.language = :language or t.subjects.size = 0 ) and ( description.language = :language or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
1633 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: UnescalatedDeadlines => select new org.jbpm.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
1633 INFO  org.hibernate.cfg.annotations.QueryBinder  - Binding Named query: TaskByWorkItemId => select t from Task t where t.taskData.workItemId = :workItemId
1636 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Attachment
1660 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.Attachment on table Attachment
1700 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Content
1700 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.Content on table Content
1706 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.BooleanExpression
1706 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.BooleanExpression on table BooleanExpression
1707 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Comment
1708 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.Comment on table task_comment
1709 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Deadline
1709 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.Deadline on table Deadline
1736 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Escalation
1737 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.Escalation on table Escalation
1740 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.OrganizationalEntity
1740 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.OrganizationalEntity on table OrganizationalEntity
1779 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Group
1793 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.I18NText
1793 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.I18NText on table I18NText
1794 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Notification
1794 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.Notification on table Notification
1803 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.EmailNotification
1808 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.EmailNotificationHeader
1808 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.EmailNotificationHeader on table email_header
1810 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Reassignment
1810 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.Reassignment on table Reassignment
1813 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.Task
1813 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.Task on table Task
1833 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.SubTasksStrategy
1833 INFO  org.hibernate.cfg.annotations.EntityBinder  - Bind entity org.jbpm.task.SubTasksStrategy on table SubTasksStrategy
1835 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.OnParentAbortAllSubTasksEndStrategy
1836 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.OnAllSubTasksEndParentEndStrategy
1836 INFO  org.hibernate.cfg.AnnotationBinder  - Binding entity from annotated class: org.jbpm.task.User
1841 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Task.taskData.comments -> task_comment
1843 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Task.taskData.attachments -> Attachment
1843 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Task.subjects -> I18NText
1843 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Task.subTaskStrategies -> SubTasksStrategy
1843 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Task.names -> I18NText
1844 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Task.descriptions -> I18NText
1844 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Task.deadlines.startDeadlines -> Deadline
1844 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Task.deadlines.endDeadlines -> Deadline
1844 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Reassignment.documentation -> I18NText
1847 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Notification.subjects -> I18NText
1848 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Notification.names -> I18NText
1848 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Notification.documentation -> I18NText
1848 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Notification.descriptions -> I18NText
1848 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Escalation.reassignments -> Reassignment
1848 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Escalation.notifications -> Notification
1848 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Escalation.constraints -> BooleanExpression
1848 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Deadline.escalations -> Escalation
1848 INFO  org.hibernate.cfg.annotations.CollectionBinder  - Mapping collection: org.jbpm.task.Deadline.documentation -> I18NText
1850 INFO  org.hibernate.cfg.AnnotationConfiguration  - Hibernate Validator not found: ignoring
1872 WARN  org.hibernate.ejb.Ejb3Configuration  - hibernate.connection.autocommit = false break the EJB3 specification
1878 INFO  org.hibernate.cfg.search.HibernateSearchEventListenerRegister  - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
1912 INFO  org.hibernate.connection.DriverManagerConnectionProvider  - Using Hibernate built-in connection pool (not for production use!)
1912 INFO  org.hibernate.connection.DriverManagerConnectionProvider  - Hibernate connection pool size: 20
1912 INFO  org.hibernate.connection.DriverManagerConnectionProvider  - autocommit mode: false
1916 INFO  org.hibernate.connection.DriverManagerConnectionProvider  - using driver: org.h2.Driver at URL: jdbc:h2:mem:mydb
1916 INFO  org.hibernate.connection.DriverManagerConnectionProvider  - connection properties: {user=sa, password=****, autocommit=false, release_mode=auto}
2079 INFO  org.hibernate.cfg.SettingsFactory  - RDBMS: H2, version: 1.3.162 (2011-11-26)
2079 INFO  org.hibernate.cfg.SettingsFactory  - JDBC driver: H2 JDBC Driver, version: 1.3.162 (2011-11-26)
2090 INFO  org.hibernate.dialect.Dialect  - Using dialect: org.hibernate.dialect.H2Dialect
2093 INFO  org.hibernate.transaction.TransactionFactoryFactory  - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
2095 INFO  org.hibernate.transaction.TransactionManagerLookupFactory  - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2095 INFO  org.hibernate.cfg.SettingsFactory  - Automatic flush during beforeCompletion(): disabled
2095 INFO  org.hibernate.cfg.SettingsFactory  - Automatic session close at end of transaction: disabled
2095 INFO  org.hibernate.cfg.SettingsFactory  - JDBC batch size: 15
2095 INFO  org.hibernate.cfg.SettingsFactory  - JDBC batch updates for versioned data: disabled
2095 INFO  org.hibernate.cfg.SettingsFactory  - Scrollable result sets: enabled
2095 INFO  org.hibernate.cfg.SettingsFactory  - JDBC3 getGeneratedKeys(): enabled
2095 INFO  org.hibernate.cfg.SettingsFactory  - Connection release mode: auto
2096 INFO  org.hibernate.cfg.SettingsFactory  - Maximum outer join fetch depth: 3
2096 INFO  org.hibernate.cfg.SettingsFactory  - Default batch fetch size: 1
2096 INFO  org.hibernate.cfg.SettingsFactory  - Generate SQL with comments: disabled
2096 INFO  org.hibernate.cfg.SettingsFactory  - Order SQL updates by primary key: disabled
2096 INFO  org.hibernate.cfg.SettingsFactory  - Order SQL inserts for batching: disabled
2096 INFO  org.hibernate.cfg.SettingsFactory  - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2098 INFO  org.hibernate.hql.ast.ASTQueryTranslatorFactory  - Using ASTQueryTranslatorFactory
2098 INFO  org.hibernate.cfg.SettingsFactory  - Query language substitutions: {}
2098 INFO  org.hibernate.cfg.SettingsFactory  - JPA-QL strict compliance: enabled
2098 INFO  org.hibernate.cfg.SettingsFactory  - Second-level cache: enabled
2098 INFO  org.hibernate.cfg.SettingsFactory  - Query cache: disabled
2098 INFO  org.hibernate.cfg.SettingsFactory  - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
2098 INFO  org.hibernate.cfg.SettingsFactory  - Optimize cache for minimal puts: disabled
2098 INFO  org.hibernate.cfg.SettingsFactory  - Structured second-level cache entries: disabled
2103 INFO  org.hibernate.cfg.SettingsFactory  - Statistics: disabled
2103 INFO  org.hibernate.cfg.SettingsFactory  - Deleted entity synthetic identifier rollback: disabled
2103 INFO  org.hibernate.cfg.SettingsFactory  - Default entity-mode: pojo
2103 INFO  org.hibernate.cfg.SettingsFactory  - Named query checking : enabled
2138 INFO  org.hibernate.impl.SessionFactoryImpl  - building session factory
2315 INFO  org.hibernate.impl.SessionFactoryObjectFactory  - Not binding factory to JNDI, no JNDI name configured
2326 INFO  org.hibernate.tool.hbm2ddl.SchemaExport  - Running hbm2ddl schema export
2326 INFO  org.hibernate.tool.hbm2ddl.SchemaExport  - exporting generated schema to database
2424 INFO  org.hibernate.tool.hbm2ddl.SchemaExport  - schema export complete
Before user task
4546 INFO  org.apache.mina.filter.logging.LoggingFilter  - CREATED
4547 INFO  org.apache.mina.filter.logging.LoggingFilter  - OPENED
4557 INFO  org.apache.mina.filter.logging.LoggingFilter  - RECEIVED: HeapBuffer[pos=0 lim=675 cap=2048: 00 00 01 4F AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4571 INFO  org.apache.mina.filter.logging.LoggingFilter  - RECEIVED: HeapBuffer[pos=0 lim=835 cap=2048: 00 00 01 4D AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4610 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=212 cap=256: 00 00 00 D0 AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4610 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
4674 INFO  org.apache.mina.filter.logging.LoggingFilter  - CREATED
4674 INFO  org.apache.mina.filter.logging.LoggingFilter  - OPENED
4677 INFO  org.apache.mina.filter.logging.LoggingFilter  - RECEIVED: HeapBuffer[pos=0 lim=196 cap=2048: 00 00 00 C0 AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4689 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=288 cap=512: 00 00 01 1C AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4689 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
04.01.2012 11:25:51 net.bigpoint.cash.service.process.HumanTaskExampleTest testHumanTask
INFO: 1, name=null, actualOwner=null, status=Ready
4696 INFO  org.apache.mina.filter.logging.LoggingFilter  - RECEIVED: HeapBuffer[pos=0 lim=270 cap=2048: 00 00 01 0A AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4720 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=165 cap=256: 00 00 00 A1 AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4720 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
04.01.2012 11:25:51 net.bigpoint.cash.service.process.HumanTaskExampleTest testHumanTask
INFO: 1, name=null, actualOwner=null, status=Ready
4721 INFO  org.apache.mina.filter.logging.LoggingFilter  - RECEIVED: HeapBuffer[pos=0 lim=270 cap=1024: 00 00 01 0A AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4724 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=165 cap=256: 00 00 00 A1 AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4724 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
04.01.2012 11:25:51 net.bigpoint.cash.service.process.HumanTaskExampleTest testHumanTask
INFO: 1, name=null, actualOwner=null, status=Ready
4725 INFO  org.apache.mina.filter.logging.LoggingFilter  - RECEIVED: HeapBuffer[pos=0 lim=275 cap=1024: 00 00 01 0F AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4729 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=367 cap=512: 00 00 01 6B AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4730 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
4732 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=165 cap=256: 00 00 00 A1 AC ED 00 05 73 72 01 00 1D 6F 72 67...]
4732 INFO  org.apache.mina.filter.logging.LoggingFilter  - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
4732 INFO  org.apache.mina.filter.logging.LoggingFilter  - RECEIVED: HeapBuffer[pos=0 lim=211 cap=1024: 00 00 00 CF AC ED 00 05 73 72 01 00 1D 6F 72 67...]
04.01.2012 11:25:51 net.bigpoint.cash.service.process.HumanTaskExampleTest testHumanTask
INFO: 1, name=null, actualOwner=null, status=Ready
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/644560#644560]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120104/63ff9269/attachment-0001.html 


More information about the jboss-user mailing list