[jboss-user] [jBPM] - jBPM and Seam-Debug-Page
Heri Bender
do-not-reply at jboss.com
Tue May 11 10:37:29 EDT 2010
Heri Bender [http://community.jboss.org/people/hbender] created the discussion
"jBPM and Seam-Debug-Page"
To view the discussion, visit: http://community.jboss.org/message/542334#542334
--------------------------------------------------------------
Hi
I'm quite new to jBPM (and seam) and have following problem: After I have accessed some JBPM stuff programmatically within a seam component (backing bean of a xhtml page, long running conversation started) I cannot call the seam debug page anymore. The error is:
"JbpmContext may only be used inside a transaction"
I do not actively put this JbpmContext into the conversation context.
The code I execute (in a @Observer(value="org.jboss.seam.beginConversation" method) :
JbpmContext jbpmContext = ManagedJbpmContext.instance();
GraphSession graphSession = jbpmContext.getGraphSession();
ProcessDefinition processDefinition = graphSession.findLatestProcessDefinition("pdPUKRetrieval");
graphSession.findProcessInstances( 0 );
ProcessInstance processInstance = new ProcessInstance(processDefinition);
org.jbpm.graph.exe.Token t = processInstance.getRootToken();
myLog.debug( "token.node before signal: " + t.getNode().getName() );
t.signal();
myLog.debug( "token.node after signal: " + t.getNode().getName() );
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542334#542334]
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/20100511/ef1d516a/attachment-0001.html
More information about the jboss-user
mailing list