//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010 huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/god4j
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : god4j@lists.sourceforge.net 
 */
//----------------------------END  LICENSE-----------------------------
package org.huihoo.god4j.tree;

import javax.swing.tree.DefaultMutableTreeNode;

import org.huihoo.workflow.xpdl.WorkflowProcess;

/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class WorkflowProcessNodeObject
{
	public WorkflowProcess workflowProcess = null;
	public DefaultMutableTreeNode activitysNode = null;
	public DefaultMutableTreeNode transitionsNode = null;
	
	public boolean is_subprocess;
	
	public WorkflowProcessNodeObject(WorkflowProcess workflowProcess)
	{
		this(workflowProcess,false);
	}
		
	public WorkflowProcessNodeObject(WorkflowProcess workflowProcess,boolean is_subprocess)
	{
		this.workflowProcess=workflowProcess;
		this.is_subprocess=is_subprocess;
	}
	
  public boolean isChildProcess()
  {
  	return is_subprocess;
  }
  
	public String getUUID()
	{
		return workflowProcess.getUUID();
	}
}
