org.jbpm.workflow.instance
Class WorkflowRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jbpm.workflow.instance.WorkflowRuntimeException
All Implemented Interfaces:
Serializable

public class WorkflowRuntimeException
extends RuntimeException

This exception provides the context information of the error in execution of the flow.
It would be helpful to located the error instead of confusing stack trace

Since:
See Also:
Serialized Form

Constructor Summary
WorkflowRuntimeException(Exception e)
           
WorkflowRuntimeException(NodeInstance nodeInstance, Exception e)
           
 
Method Summary
 String getMessage()
           
 long getNodeId()
           
 long getNodeInstanceId()
           
 String getNodeName()
           
 String getProcessId()
           
 long getProcessInstanceId()
           
 void setNodeId(long nodeId)
           
 void setNodeInstanceId(long nodeInstanceId)
           
 void setNodeName(String nodeName)
           
 void setProcessId(String processId)
           
 void setProcessInstanceId(long processInstanceId)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkflowRuntimeException

public WorkflowRuntimeException(Exception e)

WorkflowRuntimeException

public WorkflowRuntimeException(NodeInstance nodeInstance,
                                Exception e)
Method Detail

getProcessInstanceId

public long getProcessInstanceId()
Returns:
the processInstanceId

setProcessInstanceId

public void setProcessInstanceId(long processInstanceId)
Parameters:
processInstanceId - the processInstanceId to set

getProcessId

public String getProcessId()
Returns:
the processId

setProcessId

public void setProcessId(String processId)
Parameters:
processId - the processId to set

getNodeInstanceId

public long getNodeInstanceId()
Returns:
the nodeInstanceId

setNodeInstanceId

public void setNodeInstanceId(long nodeInstanceId)
Parameters:
nodeInstanceId - the nodeInstanceId to set

getNodeId

public long getNodeId()
Returns:
the nodeId

setNodeId

public void setNodeId(long nodeId)
Parameters:
nodeId - the nodeId to set

getNodeName

public String getNodeName()
Returns:
the nodeName

setNodeName

public void setNodeName(String nodeName)
Parameters:
nodeName - the nodeName to set

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.