[jboss-user] [JBoss Seam] - Re: How to extract the page id

trekker880 do-not-reply at jboss.com
Thu Jun 21 09:26:01 EDT 2007


Hi i am using the same thing u told but i am not getting the desired output pls tell me where i am wrong.
The output is

*******************************
----------pageflowDefinition is null-----------
-----instance.getProcessInstance()--------null
-----pageflow.getNode()--------null

*******************************

package com.sample.action;

import java.io.FileInputStream;

import org.jboss.seam.core.Jbpm;
import org.jboss.seam.core.Pageflow;
import org.jboss.seam.core.ProcessInstance;

import org.jbpm.graph.def.ProcessDefinition;

public class UserTest  {
	boolean b= true;
public void test() throws Exception{
		
		Jbpm jbpm = new Jbpm();

		
			ProcessDefinition pageflowDefinition =jbpm.getPageflowProcessDefinition("Webroot/submit2.jpdl.xml");


		
		if(pageflowDefinition == null){
			System.out.println("----------pageflowDefinition is null-----------");
		}else{
			System.out.println("----------pageflowDefinition is not null entry-----------");
		}
		
		Pageflow pageflow = new Pageflow();
		
		
//		pageflow.getPage();
//		System.out.println("---pageflow.getPage()---"+pageflow.getPage());
//		
		ProcessInstance instance = new ProcessInstance() ;		
		
		instance.getProcessInstance();
		
		System.out.println("-----instance.getProcessInstance()--------"+instance.getProcessInstance());
		

		
		pageflow.getNode();
		System.out.println("-----pageflow.getNode()--------"+pageflow.getNode());
	
	}
	public static void main(String[] args) throws Exception{
		UserTest test1 = new UserTest();
		test1.test();
	}
}


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056483#4056483

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056483



More information about the jboss-user mailing list