jpl.mipl.pgs.perstore
Interface ProcessInstance_IF

All Superinterfaces:
Remote
All Known Subinterfaces:
IntrPerStore_IF, PersistentStore_IF
All Known Implementing Classes:
Database, PersistentStore

public interface ProcessInstance_IF
extends Remote

Purpose: This interface is used for storing new process instance and for retrieiving and modifying existing process instances that are active or have been completed but not archived.


     Copyright 2004, California Institute of Technology. 
     ALL RIGHTS RESERVED.
     U.S. Government Sponsorship acknowledge.2004.

 
 ============================================================================
 Modification History :
 --------------------

 Date          Who            What
 ----------------------------------------------------------------------------
 04/24/2006       hhl            Initial delivery
 ============================================================================

Version:
1.0
Author:
Hyun H. Lee (hhl@mipl.jpl.nasa.gov)

Method Summary
 void addProcessInstance(PGSSession session, Map pi)
           
 Map[] addProcessInstances(PGSSession session, Map[] pis)
           
 Map getProcessInstance(PGSSession session, long piId)
           
 PGSProcessInstance getProcessInstanceObj(PGSSession session, long piId)
           
 Map[] getProcessInstances(PGSSession session, long sfId, String status, long piId, String userId)
           
 Map[] getProcessInstances(PGSSession session, String status)
          Obtain all of the process instances for the given status
 Map[] getProcessInstances(PGSSession session, String instrument, long sfId)
          Obtain all of the process instances for the given instrument and service factory.
 Map[] getProcessInstancesStatus(PGSSession session, String status, String afterDate)
          Obtain all of the process instances for the given status
 Vector getProcessInstanceStatus(PGSSession session, long piId)
          Obtain all of the process instance status for the given process instance id
 void removeProcessInstance(PGSSession session, long piId)
           
 Map[] updateProcessInstances(PGSSession session, Map[] pis)
          Update the given
 boolean updateProcessInstanceStatus(PGSSession session, String instrument, Map pi)
          Update the given ProcessInstance
 

Method Detail

addProcessInstance

void addProcessInstance(PGSSession session,
                        Map pi)
                        throws RemoteException
Throws:
RemoteException

addProcessInstances

Map[] addProcessInstances(PGSSession session,
                          Map[] pis)
                          throws RemoteException
Throws:
RemoteException

updateProcessInstanceStatus

boolean updateProcessInstanceStatus(PGSSession session,
                                    String instrument,
                                    Map pi)
                                    throws RemoteException
Update the given ProcessInstance

Throws:
RemoteException

updateProcessInstances

Map[] updateProcessInstances(PGSSession session,
                             Map[] pis)
                             throws RemoteException
Update the given

Throws:
RemoteException

getProcessInstances

Map[] getProcessInstances(PGSSession session,
                          String status)
                          throws RemoteException
Obtain all of the process instances for the given status

Throws:
RemoteException

getProcessInstances

Map[] getProcessInstances(PGSSession session,
                          String instrument,
                          long sfId)
                          throws RemoteException
Obtain all of the process instances for the given instrument and service factory.

Throws:
RemoteException

getProcessInstances

Map[] getProcessInstances(PGSSession session,
                          long sfId,
                          String status,
                          long piId,
                          String userId)
                          throws RemoteException
Throws:
RemoteException

getProcessInstance

Map getProcessInstance(PGSSession session,
                       long piId)
                       throws RemoteException
Throws:
RemoteException

getProcessInstanceStatus

Vector getProcessInstanceStatus(PGSSession session,
                                long piId)
                                throws RemoteException
Obtain all of the process instance status for the given process instance id

Throws:
RemoteException

getProcessInstancesStatus

Map[] getProcessInstancesStatus(PGSSession session,
                                String status,
                                String afterDate)
                                throws RemoteException
Obtain all of the process instances for the given status

Throws:
RemoteException

getProcessInstanceObj

PGSProcessInstance getProcessInstanceObj(PGSSession session,
                                         long piId)
                                         throws RemoteException
Throws:
RemoteException

removeProcessInstance

void removeProcessInstance(PGSSession session,
                           long piId)
                           throws RemoteException
Throws:
RemoteException