I am trying to print out the processes defined in the JbpmContext and their nodes.
I get the message failed to lazily initialize a collection of role: org.jbpm.graph.def.ProcessDefinition.nodes, no session or session was closed The bean public class ProcessManagerBean { @Logger private Log logger; @In(create=true) JbpmContext jbpmContext; @DataModel private List processList; @DataModelSelection @Out(required=false) private ProcessDefinition process; @PersistenceContext(type=EXTENDED) private EntityManager em; //not used yet @Out(required=false) private List nodeList; @Factory("processList") public void findMessages() { GraphSession graph = jbpmContext.getGraphSession(); processList=graph.findLatestProcessDefinitions(); } .... A fragment from the page is <h:dataTable id="someTable" var="proc" value="#{processList}" rendered="#{!empty processList}"> <h:column> <f:facet name="header"> <h:outputText value="Name"/> </f:facet> <h:commandLink value="#{proc.name}" action="#{processManager.select}"/> </h:column> </h:dataTable> <h3><h:outputText value="#{process.name}"/></h3> <h3><h:outputText value="#{process.nodes}"/></h3> The exception is caused by adding the last line My guess is that the jbpm session is not using an extended persistence context If thats the case how do I get it to use one. If not what is the problem. Thanks Andy Bailey www.hazlorealidad.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970178#3970178 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970178 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user