xflow.server.controller
Class WorkflowP

java.lang.Object
  extended byxflow.server.controller.WorkflowP

public class WorkflowP
extends java.lang.Object


Constructor Summary
WorkflowP()
           
 
Method Summary
 void abortWorkflow(java.lang.Integer workflowId)
           
 boolean existsOrtab(java.lang.Integer workflowId, int nodeId)
           
 java.util.List getActiveWorkflows()
           
 java.util.List getAllWorkflows()
           
 int getGraphId(java.lang.Integer workflowId)
           
 java.util.List getModels()
           
 java.util.List getProcessesWithTimeouts()
           
 java.util.List getSuspendedWorkflows()
           
 java.lang.Object getVariable(java.lang.Integer workflowId, java.lang.String name)
           
 java.util.List getWorkflowsByName(java.lang.String name)
           
 WorkflowState getWorkflowState(java.lang.Integer workflowId)
           
 void insertOrtab(java.lang.Integer workflowId, int nodeId)
           
 boolean isCompleted(int workflowId)
           
 void resumeWorkflow(java.lang.Integer workflowId)
           
 java.lang.Integer saveNewWorkflow(int graphId, java.lang.String workflowName, java.lang.String initiator, int parentWorkflowId)
           
 void setCompleted(java.lang.Integer workflowId)
           
 void setVariable(java.lang.Integer workflowId, java.lang.String name, java.lang.Object value)
           
 void suspendWorkflow(java.lang.Integer workflowId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowP

public WorkflowP()
Method Detail

insertOrtab

public void insertOrtab(java.lang.Integer workflowId,
                        int nodeId)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

existsOrtab

public boolean existsOrtab(java.lang.Integer workflowId,
                           int nodeId)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

saveNewWorkflow

public java.lang.Integer saveNewWorkflow(int graphId,
                                         java.lang.String workflowName,
                                         java.lang.String initiator,
                                         int parentWorkflowId)
                                  throws XflowException
Parameters:
graphId -
workflowName -
initiator -
parentWorkflowId -
Returns:
ID of the new Workflow
Throws:
XflowException

getGraphId

public int getGraphId(java.lang.Integer workflowId)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getActiveWorkflows

public java.util.List getActiveWorkflows()
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getSuspendedWorkflows

public java.util.List getSuspendedWorkflows()
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getAllWorkflows

public java.util.List getAllWorkflows()
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getWorkflowsByName

public java.util.List getWorkflowsByName(java.lang.String name)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getModels

public java.util.List getModels()
                         throws java.sql.SQLException
Returns:
list of WorkflowModel
Throws:
java.sql.SQLException

abortWorkflow

public void abortWorkflow(java.lang.Integer workflowId)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

suspendWorkflow

public void suspendWorkflow(java.lang.Integer workflowId)
                     throws XflowException,
                            java.sql.SQLException
Throws:
XflowException
java.sql.SQLException

resumeWorkflow

public void resumeWorkflow(java.lang.Integer workflowId)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getWorkflowState

public WorkflowState getWorkflowState(java.lang.Integer workflowId)
                               throws XflowException,
                                      java.sql.SQLException
Throws:
XflowException
java.sql.SQLException

setVariable

public void setVariable(java.lang.Integer workflowId,
                        java.lang.String name,
                        java.lang.Object value)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getVariable

public java.lang.Object getVariable(java.lang.Integer workflowId,
                                    java.lang.String name)
                             throws java.sql.SQLException
Throws:
java.sql.SQLException

setCompleted

public void setCompleted(java.lang.Integer workflowId)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

isCompleted

public boolean isCompleted(int workflowId)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getProcessesWithTimeouts

public java.util.List getProcessesWithTimeouts()
                                        throws XflowException,
                                               java.sql.SQLException
Throws:
XflowException
java.sql.SQLException