JBoss Community

Re: How can I see process in JBPM 5.3.0 console?

created by Anatoliy Kalenskiy in jBPM - View the full discussion

Thanks a lot,  for you reply!

It works - I can see my process in jbpm-console in Process Overview.

But I can't see any process instances.

http://localhost:8080/gwt-console-server/rs/process/definitions   :

 

{"definitions":[{"id":"com.example.myprocess","name":"MyProcess","version":0,"packageName":"defaultPackage","deploymentId":"N/A","suspended":false}]}

But

http://localhost:8080/gwt-console-server/rs/process/definition/com.example.myprocess/instances :

{"instances":[]}

 

I am in debug prosess - I can see that my process starts and  stops on some debug point inside my hander for service task. So,as I think , one process instances should be created.

 

I use spring config like:

<beans xmlns="http://www.springframework.org/schema/beans"

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       xmlns:jbpm="http://drools.org/schema/drools-spring"

       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd

                           http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring.xsd ">

 

    <jbpm:kbase id="kbase">

        <jbpm:resources>

            <jbpm:resource type="BPMN2" source="classpath:MyProcess.bpmn"/>

 

        </jbpm:resources>

    </jbpm:kbase>

    <jbpm:ksession id="ksession" type="stateful" kbase="kbase">

        <jbpm:configuration>

 

            <jbpm:work-item-handlers>

 

                <jbpm:work-item-handler name="ServiceTask1" ref="event1Handler"/>

                <jbpm:work-item-handler name="ServiceTask2" ref="event2Handler"/>

 

            </jbpm:work-item-handlers>

        </jbpm:configuration>

    </jbpm:ksession>

 

    <bean id="event1Handler" class="com.example.MyEvent1HandlerHandler">

    </bean>

    <bean id="event2Handler" class="com.example.MyEvent2HandlerHandler">

    </bean>

 

</beans>

 

So I put breackpoint inside MyEvent1HandlerHandler.executeWorkItem and stay here -so my process runs but I can't see anty process instances in JBPM console.

 

So where jbpm console takes information about current instances? From PROCESSINSTANCELOG ? I have such empty table in my scheme...

Possible problem connected with transaction management?

When information for new instances stores in DB and retreaves by JBPM console?

Possible I should somehow specify when such information should be stored?

(I have reconffigured all wars to use my connection to Oracle DB that I use for application, not H2).

Reply to this message by going to Community

Start a new discussion in jBPM at Community