[jboss-user] [jBPM] - Re: How can I see process in JBPM 5.3.0 console?
Anatoliy Kalenskiy
do-not-reply at jboss.com
Thu Aug 30 06:07:02 EDT 2012
Anatoliy Kalenskiy [https://community.jboss.org/people/cybiks] created the discussion
"Re: How can I see process in JBPM 5.3.0 console?"
To view the discussion, visit: https://community.jboss.org/message/756964#756964
--------------------------------------------------------------
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 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 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 http://www.springframework.org/schema/beans"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xmlns:jbpm=" http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring"
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring.xsd 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
[https://community.jboss.org/message/756964#756964]
Start a new discussion in jBPM at Community
[https://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/20120830/99f8f158/attachment-0001.html
More information about the jboss-user
mailing list