private void loadWorkflow(Properties ctx,int AD_Workflow_ID,HttpSession sess){
  MWorkflow wf=new MWorkflow(ctx,AD_Workflow_ID,null);
  MWFNode[] nodes=wf.getNodes(true,Env.getContextAsInt(ctx,"#AD_Client_ID"));
  MWFNode wfn=null;
  ArrayList nodes_ID=new ArrayList();
  for (int i=0; i < nodes.length; i++) {
    wfn=nodes[i];
    nodes_ID.add(new Integer(wfn.getAD_WF_Node_ID()));
  }
  int imageMap[][]=generateImageMap(nodes_ID);
  sess.setAttribute(WORKFLOW,wf);
  sess.setAttribute(NODES,nodes);
  sess.setAttribute(NODES_ID,nodes_ID);
  sess.setAttribute(IMAGE_MAP,imageMap);
  sess.setAttribute(ACTIVE_NODE,new Integer(-999));
}

private void loadWorkflow ( Properties ctx , int AD_Workflow_ID , HttpSession sess ) { MWorkflow wf = new MWorkflow ( ctx , AD_Workflow_ID , null ) ; MWFNode [ ] nodes = wf . getNodes ( true , Env . getContextAsInt ( ctx , "#AD_Client_ID" ) ) ; MWFNode wfn = null ; ArrayList nodes_ID = new ArrayList ( ) ; for ( int i = 0 ; i < nodes . length ; i ++ ) { wfn = nodes [ i ] ; nodes_ID . add ( new Integer ( wfn . getAD_WF_Node_ID ( ) ) ) ; } int imageMap [ ] [ ] = generateImageMap ( nodes_ID ) ; sess . setAttribute ( WORKFLOW , wf ) ; sess . setAttribute ( NODES , nodes ) ; sess . setAttribute ( NODES_ID , nodes_ID ) ; sess . setAttribute ( IMAGE_MAP , imageMap ) ; sess . setAttribute ( ACTIVE_NODE , new Integer ( - 999 ) ) ; }
load workflw and initialize the session attributes .
