/**
 * Created on Feb 12, 2003
 * Copyright (C) 2002  Aditisoft Inc
 */
package com.opensymphony.workflow.designer;

import org.jgraph.graph.DefaultGraphCell;
import com.opensymphony.workflow.loader.ResultDescriptor;

public class ResultCell extends WorkflowCell implements Keyable
{
  private DefaultGraphCell fromCell;
  private ResultDescriptor descriptor;

  //   private String mKey;
  public ResultCell(DefaultGraphCell fromCell, ResultDescriptor resultDescriptor, String actionName)
  {
    super(actionName);
    this.fromCell = fromCell;
    descriptor = resultDescriptor;
    id = descriptor.getId();
  }

  public String getKey()
  {
    return null;
  }

  public DefaultGraphCell getFromCell()
  {
    return fromCell;
  }

  public int getStep()
  {
    return descriptor.getStep();
  }

  public ResultDescriptor getDescriptor()
  {
    return descriptor;
  }

  public int getSplit()
  {
    return descriptor.getSplit();
  }

  public int getJoin()
  {
    return descriptor.getJoin();
  }
}

@@ -209,16 +209,74 @@
 criptor;
+%0Aimport com.opensymphony.workflow.loader.ActionDescriptor;
 %0A%0Apublic
@@ -410,16 +410,90 @@
 criptor;
+%0A  //the action that causes this result%0A  private ActionDescriptor action;
 %0A%0A  //  
@@ -600,25 +600,31 @@
 or, 
-String
+ActionDescriptor
  action
-Name
 )%0A  
@@ -645,12 +645,8 @@
 tion
-Name
 );%0A 
@@ -734,24 +734,50 @@
 or.getId();%0A
+    this.action = action;%0A
   %7D%0A%0A  publi
@@ -1159,11 +1159,77 @@
 n();%0A  %7D
+%0A%0A  public ActionDescriptor getAction()%0A  %7B%0A    return action;%0A  %7D
 %0A%7D%0A

Store ActionDescriptor