org.enhydra.shark.api.internal.instancepersistence
Interface PersistentManagerInterface


public interface PersistentManagerInterface

Interface that has to be implemented for each persistent layer that is supposed to be used.

Version:
1.0
Author:
Sasa Bojanic

Method Summary
 void configure(CallbackUtilities cus)
          Method configure is called at Shark start up, to configure implementation of PersistentManagerInterface.
 void delete(WMSessionHandle shandle, ActivityVariablePersistenceObject var)
          Method delete
 void delete(WMSessionHandle shandle, ProcessVariablePersistenceObject var)
          Method delete
 void deleteActivity(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId)
          Method deleteActivity
 void deleteAndJoinEntries(WMSessionHandle shandle, java.lang.String procId, java.lang.String blockActId, java.lang.String aDefId)
          Method deleteAndJoinEntries
 void deleteAssignment(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId, java.lang.String resUsername)
          Method deleteAssignment
 void deleteDeadlines(WMSessionHandle shandle, java.lang.String procId)
          Deletes all deadlines for all activities of given process.
 void deleteDeadlines(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId)
          Method delete all deadlines for a given activity.
 java.util.List deleteProcess(WMSessionHandle shandle, java.lang.String procId, boolean administrative)
          Method deleteProcess
 void deleteProcessMgr(WMSessionHandle shandle, java.lang.String mgrName)
          Method deleteProcessMgr
 void deleteResource(WMSessionHandle shandle, java.lang.String resUsername)
          Method deleteResource
 java.util.List getActivitiesForProcess(WMSessionHandle shandle, java.lang.String procId, java.lang.String actState)
           
 java.util.List getActivitiesWhere(WMSessionHandle shandle, java.lang.String sqlWhere, int startAt, int limit)
           
 ActivityVariablePersistenceObject getActivityVariable(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId, java.lang.String variableId)
          Method getVariablesForProcess
 java.util.List getActivityVariables(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId, java.util.List variableIds)
          Method getActivityVariables
 java.util.List getActivityVariablesWhere(WMSessionHandle shandle, java.lang.String activityId, java.lang.String sqlWhere, int startAt, int limit)
           
 java.util.List getAllActiveActivitiesForProcess(WMSessionHandle shandle, java.lang.String procId)
          Method getAllActiveActivitiesForProcess
 java.util.List getAllActivities(WMSessionHandle shandle)
          Method getAllActivities
 java.util.List getAllActivitiesForProcess(WMSessionHandle shandle, java.lang.String procId)
          Method getAllActivitiesForProcess
 java.util.List getAllAssignments(WMSessionHandle shandle)
          Method getAllAssignments
 java.util.List getAllAssignmentsForActivity(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId)
          Method getAllAssignmentsForActivity
 java.util.List getAllAssignmentsForResource(WMSessionHandle shandle, java.lang.String resUsername)
          Method getAllAssignmentsForResource
 java.util.List getAllDeadlinesForActivity(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId)
          Returns all deadlines of a given activity.
 java.util.List getAllDeadlinesForActivity(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId, long timeLimitBoundary)
          Returns all deadlines of a given activity which time limit is broken.
 java.util.List getAllDeadlinesForProcess(WMSessionHandle shandle, java.lang.String procId)
          Returns deadlines of all activities of given process.
 java.util.List getAllDeadlinesForProcess(WMSessionHandle shandle, java.lang.String procId, long timeLimitBoundary)
          Returns deadlines of all activities of given process which time limit is broken.
 java.util.List getAllFinishedActivitiesForProcess(WMSessionHandle shandle, java.lang.String procId)
          Method getAllActivitiesForProcess
 java.util.List getAllFinishedProcesses(WMSessionHandle shandle)
          Returns a list of processes which state starts with closed.
 java.util.List getAllIdsForProcessesWithExpiriedDeadlines(WMSessionHandle shandle, long timeLimitBoundary)
          Returns process ids for which deadline time limit is broken on any running activity .
 java.util.List getAllProcesses(WMSessionHandle shandle)
          Method getAllProcesses
 java.util.List getAllProcessesForMgr(WMSessionHandle shandle, java.lang.String mgrName)
          Method getAllProcessesForMgr
 java.util.List getAllProcessMgrs(WMSessionHandle shandle)
          Method getAllProcessMgrs
 java.util.List getAllResources(WMSessionHandle shandle)
          Method getAllResources
 java.util.List getAllRunningProcesses(WMSessionHandle shandle)
          Returns a list of processes which state is open.running.
 java.util.List getAllValidAssignmentsForActivity(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId)
          Method getAllValidAssignmentsForActivity
 java.util.List getAllValidAssignmentsForResource(WMSessionHandle shandle, java.lang.String resUsername)
          Method getAllValidAssignmentsForResource
 java.util.List getAllVariablesForActivity(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId)
          Method getAllVariablesForActivity
 java.util.List getAllVariablesForProcess(WMSessionHandle shandle, java.lang.String procId)
          Method getAllVariablesForProcess
 java.util.List getAndJoinEntries(WMSessionHandle shandle, java.lang.String procId, java.lang.String blockActId, java.lang.String aDefId)
          Method getAndJoinEntries
 java.util.List getAssignmentsWhere(WMSessionHandle shandle, java.lang.String sqlWhere, int startAt, int limit)
           
 int getExecuteCount(WMSessionHandle shandle, java.lang.String procId, java.lang.String aDefId)
          Method getExecuteCount
 java.lang.String getNextId(java.lang.String idName)
          Method getNextId
 java.util.List getProcessesWhere(WMSessionHandle shandle, java.lang.String sqlWhere, int startAt, int limit)
           
 java.util.List getProcessMgrsWhere(WMSessionHandle shandle, java.lang.String sqlWhere, int startAt, int limit)
           
 ProcessVariablePersistenceObject getProcessVariable(WMSessionHandle shandle, java.lang.String procId, java.lang.String variableId)
          Method getVariableForProcess
 java.util.List getProcessVariables(WMSessionHandle shandle, java.lang.String procId, java.util.List variableIds)
          Method getProcessVariables
 java.util.List getProcessVariablesWhere(WMSessionHandle shandle, java.lang.String processid, java.lang.String sqlWhere, int startAt, int limit)
           
 java.util.List getResourceRequestersProcessIds(WMSessionHandle shandle, java.lang.String resUsername)
          Method getResourceRequestersProcessIds
 java.util.List getResourcesWhere(WMSessionHandle shandle, java.lang.String sqlWhere, int startAt, int limit)
           
 int howManyAndJoinEntries(WMSessionHandle shandle, java.lang.String procId, java.lang.String blockActId, java.lang.String aDefId)
          Method howManyAndJoinEntries
 void migrate(WMSessionHandle shandle, ActivityPersistenceObject actPO)
          Method migrates activity to new version
 void migrate(WMSessionHandle shandle, ProcessPersistenceObject prPO)
          Method migrates process to new version
 void persist(WMSessionHandle shandle, ActivityPersistenceObject act, boolean isInitialPersistence)
          Method persist stores the activity data into repository (usually database).
 void persist(WMSessionHandle shandle, ActivityVariablePersistenceObject var, boolean isInitialPersistence)
          Method persist stores the activity variable into repository (usually database).
 void persist(WMSessionHandle shandle, AndJoinEntryPersitenceObject aje)
          Method persist stores the AND join data into repository (usually database).
 void persist(WMSessionHandle shandle, AssignmentPersistenceObject ass, boolean isInitialPersistence)
          Method persist stores the assignment data into repository (usually database).
 void persist(WMSessionHandle shandle, AssignmentPersistenceObject ass, java.lang.String oldResUname)
          Method persist updates the assignment data into repository (usually database).
 void persist(WMSessionHandle shandle, DeadlinePersistenceObject dpe, boolean isInitialPersistence)
          Method persist stores the Deadline data into repository (usually database).
 void persist(WMSessionHandle shandle, ProcessMgrPersistenceObject pm, boolean isInitialPersistence)
          Method persist stores the process manager data into repository (usually database).
 void persist(WMSessionHandle shandle, ProcessPersistenceObject pr, boolean isInitialPersistence)
          Method persist stores the process data into repository (usually database).
 void persist(WMSessionHandle shandle, ProcessVariablePersistenceObject var, boolean isInitialPersistence)
          Method persist stores the process relevant data into repository (usually database).
 void persist(WMSessionHandle shandle, ResourcePersistenceObject res, boolean isInitialPersistence)
          Method persist stores the resource data into repository (usually database).
 boolean restore(WMSessionHandle shandle, ActivityVariablePersistenceObject var)
          Method restore retrieves activity variable from the repository.
 boolean restore(WMSessionHandle shandle, ProcessVariablePersistenceObject var)
          Method restore retrieves process variable from the repository using supplied transaction.
 ActivityPersistenceObject restoreActivity(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId)
          Method restoreActivity restores activity from the repository.
 AssignmentPersistenceObject restoreAssignment(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId, java.lang.String resUsername)
          Method restoreAssignment restores assignment from the repository.
 ProcessPersistenceObject restoreProcess(WMSessionHandle shandle, java.lang.String procId)
          Method restoreProcess restores process from the repository.
 ProcessMgrPersistenceObject restoreProcessMgr(WMSessionHandle shandle, java.lang.String mgrName)
          Method restoreProcessMgr restores process manager from the repository.
 ResourcePersistenceObject restoreResource(WMSessionHandle shandle, java.lang.String resUsername)
          Method restoreResource restores resource from the repository.
 void shutdownDatabase(WMSessionHandle shandle)
          Method shutdownDatabase.
 void synchronizeProcess(WMSessionHandle shandle, java.lang.String procId)
           
 

Method Detail

configure

void configure(CallbackUtilities cus)
               throws java.lang.Exception
Method configure is called at Shark start up, to configure implementation of PersistentManagerInterface.

Parameters:
cus - an instance of CallbackUtilities used to get properties for configuring Persistent Manager in Shark.
Throws:
java.lang.Exception - Thrown if configuring doesn't succeed.

shutdownDatabase

void shutdownDatabase(WMSessionHandle shandle)
                      throws PersistenceException
Method shutdownDatabase.

Throws:
PersistenceException - on error.

persist

void persist(WMSessionHandle shandle,
             ProcessMgrPersistenceObject pm,
             boolean isInitialPersistence)
             throws PersistenceException
Method persist stores the process manager data into repository (usually database).

Parameters:
pm - ProcessMgrPersistenceInterface contiaing the data.
Throws:
PersistenceException - on error while writing.

persist

void persist(WMSessionHandle shandle,
             ProcessPersistenceObject pr,
             boolean isInitialPersistence)
             throws PersistenceException
Method persist stores the process data into repository (usually database).

Parameters:
pr - ProcessPersistenceInterface containing the data.
Throws:
PersistenceException - on error.

persist

void persist(WMSessionHandle shandle,
             ActivityPersistenceObject act,
             boolean isInitialPersistence)
             throws PersistenceException
Method persist stores the activity data into repository (usually database).

Parameters:
act - ActivityPersistenceInterface contianing the data.
Throws:
PersistenceException - on error

persist

void persist(WMSessionHandle shandle,
             ResourcePersistenceObject res,
             boolean isInitialPersistence)
             throws PersistenceException
Method persist stores the resource data into repository (usually database).

Parameters:
res - ResourcePersistenceInterface.
Throws:
PersistenceException - on error.

persist

void persist(WMSessionHandle shandle,
             AssignmentPersistenceObject ass,
             boolean isInitialPersistence)
             throws PersistenceException
Method persist stores the assignment data into repository (usually database).

Parameters:
ass - AssignmentPersistenceInterface containing the data.
Throws:
PersistenceException - on error.

persist

void persist(WMSessionHandle shandle,
             AssignmentPersistenceObject ass,
             java.lang.String oldResUname)
             throws PersistenceException
Method persist updates the assignment data into repository (usually database).

Parameters:
ass - AssignmentPersistenceInterface containing the data.
oldResUname - previous resource username.
Throws:
PersistenceException - on error.

persist

void persist(WMSessionHandle shandle,
             ProcessVariablePersistenceObject var,
             boolean isInitialPersistence)
             throws PersistenceException
Method persist stores the process relevant data into repository (usually database).

Parameters:
var - ProcessVariablePersistenceInterface.
Throws:
PersistenceException - on error.

persist

void persist(WMSessionHandle shandle,
             ActivityVariablePersistenceObject var,
             boolean isInitialPersistence)
             throws PersistenceException
Method persist stores the activity variable into repository (usually database).

Parameters:
var - ActivityVariablePersistenceInterface.
Throws:
PersistenceException - on error.

persist

void persist(WMSessionHandle shandle,
             AndJoinEntryPersitenceObject aje)
             throws PersistenceException
Method persist stores the AND join data into repository (usually database).

Parameters:
aje - AndJoinEntryInterface
Throws:
PersistenceException - on error.

persist

void persist(WMSessionHandle shandle,
             DeadlinePersistenceObject dpe,
             boolean isInitialPersistence)
             throws PersistenceException
Method persist stores the Deadline data into repository (usually database).

Parameters:
dpe - a DeadlinePersistenceInterface
Throws:
PersistenceException - on error.

migrate

void migrate(WMSessionHandle shandle,
             ProcessPersistenceObject prPO)
             throws PersistenceException
Method migrates process to new version

Parameters:
shandle -
pm -
Throws:
PersistenceException

migrate

void migrate(WMSessionHandle shandle,
             ActivityPersistenceObject actPO)
             throws PersistenceException
Method migrates activity to new version

Parameters:
shandle -
pm -
Throws:
PersistenceException

restoreProcessMgr

ProcessMgrPersistenceObject restoreProcessMgr(WMSessionHandle shandle,
                                              java.lang.String mgrName)
                                              throws PersistenceException
Method restoreProcessMgr restores process manager from the repository.

Parameters:
mgrName - name of the manager to restore
Returns:
a ProcessMgrPersistenceInterface
Throws:
PersistenceException - on error.

restoreProcess

ProcessPersistenceObject restoreProcess(WMSessionHandle shandle,
                                        java.lang.String procId)
                                        throws PersistenceException
Method restoreProcess restores process from the repository.

Parameters:
procId - id of a process to restore
Returns:
a ProcessPersistenceInterface
Throws:
PersistenceException - on error.

restoreActivity

ActivityPersistenceObject restoreActivity(WMSessionHandle shandle,
                                          java.lang.String procId,
                                          java.lang.String actId)
                                          throws PersistenceException
Method restoreActivity restores activity from the repository.

Parameters:
actId - id of activity to restore
Returns:
an ActivityPersistenceInterface
Throws:
PersistenceException - on error.

restoreResource

ResourcePersistenceObject restoreResource(WMSessionHandle shandle,
                                          java.lang.String resUsername)
                                          throws PersistenceException
Method restoreResource restores resource from the repository.

Parameters:
resUsername - username of the resource to restore
Returns:
a ResourcePersistenceInterface
Throws:
PersistenceException - on error.

restoreAssignment

AssignmentPersistenceObject restoreAssignment(WMSessionHandle shandle,
                                              java.lang.String procId,
                                              java.lang.String actId,
                                              java.lang.String resUsername)
                                              throws PersistenceException
Method restoreAssignment restores assignment from the repository.

Parameters:
actId - id of activity linked to assignment
resUsername - username of the resource linked to assignment
Returns:
an AssignmentPersistenceInterface
Throws:
PersistenceException - on error.

restore

boolean restore(WMSessionHandle shandle,
                ProcessVariablePersistenceObject var)
                throws PersistenceException
Method restore retrieves process variable from the repository using supplied transaction.

Parameters:
var - ProcessVariablePersistenceInterface must contain both process id and variable definition id
Returns:
true on success, false otherwise
Throws:
PersistenceException - on error.

restore

boolean restore(WMSessionHandle shandle,
                ActivityVariablePersistenceObject var)
                throws PersistenceException
Method restore retrieves activity variable from the repository.

Parameters:
var - ActivityVariablePersistenceInterface must contain both activity id and variable definition id
Returns:
true on success, false otherwise
Throws:
PersistenceException - on error.

deleteProcessMgr

void deleteProcessMgr(WMSessionHandle shandle,
                      java.lang.String mgrName)
                      throws PersistenceException
Method deleteProcessMgr

Parameters:
mgrName - a String
Throws:
PersistenceException - on error.

deleteProcess

java.util.List deleteProcess(WMSessionHandle shandle,
                             java.lang.String procId,
                             boolean administrative)
                             throws PersistenceException
Method deleteProcess

Parameters:
procId - a String
Throws:
PersistenceException - on error.

deleteActivity

void deleteActivity(WMSessionHandle shandle,
                    java.lang.String procId,
                    java.lang.String actId)
                    throws PersistenceException
Method deleteActivity

Parameters:
actId - a String
Throws:
PersistenceException - on error.

deleteResource

void deleteResource(WMSessionHandle shandle,
                    java.lang.String resUsername)
                    throws PersistenceException
Method deleteResource

Parameters:
resUsername - a String
Throws:
PersistenceException - on error.

deleteAssignment

void deleteAssignment(WMSessionHandle shandle,
                      java.lang.String procId,
                      java.lang.String actId,
                      java.lang.String resUsername)
                      throws PersistenceException
Method deleteAssignment

Parameters:
actId - a String
resUsername - a String
Throws:
PersistenceException - on error.

deleteAndJoinEntries

void deleteAndJoinEntries(WMSessionHandle shandle,
                          java.lang.String procId,
                          java.lang.String blockActId,
                          java.lang.String aDefId)
                          throws PersistenceException
Method deleteAndJoinEntries

Parameters:
procId - a String
blockActId - a String
aDefId - a String
Throws:
PersistenceException - on error.

deleteDeadlines

void deleteDeadlines(WMSessionHandle shandle,
                     java.lang.String procId)
                     throws PersistenceException
Deletes all deadlines for all activities of given process.

Parameters:
procId - a String
Throws:
PersistenceException

deleteDeadlines

void deleteDeadlines(WMSessionHandle shandle,
                     java.lang.String procId,
                     java.lang.String actId)
                     throws PersistenceException
Method delete all deadlines for a given activity.

Parameters:
procId - a String
actId - a String
Throws:
PersistenceException

delete

void delete(WMSessionHandle shandle,
            ProcessVariablePersistenceObject var)
            throws PersistenceException
Method delete

Parameters:
var - a ProcessVariablePersistenceInterface
Throws:
PersistenceException - on error.

delete

void delete(WMSessionHandle shandle,
            ActivityVariablePersistenceObject var)
            throws PersistenceException
Method delete

Parameters:
var - an ActivityVariablePersistenceInterface
Throws:
PersistenceException - on error.

getAllProcessMgrs

java.util.List getAllProcessMgrs(WMSessionHandle shandle)
                                 throws PersistenceException
Method getAllProcessMgrs

Returns:
a List
Throws:
PersistenceException - on error.

getAllResources

java.util.List getAllResources(WMSessionHandle shandle)
                               throws PersistenceException
Method getAllResources

Returns:
a List
Throws:
PersistenceException - on error.

getAllAssignments

java.util.List getAllAssignments(WMSessionHandle shandle)
                                 throws PersistenceException
Method getAllAssignments

Returns:
a List
Throws:
PersistenceException - on error.

getAllProcesses

java.util.List getAllProcesses(WMSessionHandle shandle)
                               throws PersistenceException
Method getAllProcesses

Returns:
a List
Throws:
PersistenceException - on error.

getAllActivities

java.util.List getAllActivities(WMSessionHandle shandle)
                                throws PersistenceException
Method getAllActivities

Returns:
a List
Throws:
PersistenceException - on error.

getAllProcessesForMgr

java.util.List getAllProcessesForMgr(WMSessionHandle shandle,
                                     java.lang.String mgrName)
                                     throws PersistenceException
Method getAllProcessesForMgr

Parameters:
mgrName - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAllRunningProcesses

java.util.List getAllRunningProcesses(WMSessionHandle shandle)
                                      throws PersistenceException
Returns a list of processes which state is open.running.

Returns:
a List
Throws:
PersistenceException - on error.

getAllFinishedProcesses

java.util.List getAllFinishedProcesses(WMSessionHandle shandle)
                                       throws PersistenceException
Returns a list of processes which state starts with closed.

Returns:
a List
Throws:
PersistenceException - on error.

getAllActivitiesForProcess

java.util.List getAllActivitiesForProcess(WMSessionHandle shandle,
                                          java.lang.String procId)
                                          throws PersistenceException
Method getAllActivitiesForProcess

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getActivitiesForProcess

java.util.List getActivitiesForProcess(WMSessionHandle shandle,
                                       java.lang.String procId,
                                       java.lang.String actState)
                                       throws PersistenceException
Throws:
PersistenceException

getAllFinishedActivitiesForProcess

java.util.List getAllFinishedActivitiesForProcess(WMSessionHandle shandle,
                                                  java.lang.String procId)
                                                  throws PersistenceException
Method getAllActivitiesForProcess

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAllActiveActivitiesForProcess

java.util.List getAllActiveActivitiesForProcess(WMSessionHandle shandle,
                                                java.lang.String procId)
                                                throws PersistenceException
Method getAllActiveActivitiesForProcess

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAllAssignmentsForResource

java.util.List getAllAssignmentsForResource(WMSessionHandle shandle,
                                            java.lang.String resUsername)
                                            throws PersistenceException
Method getAllAssignmentsForResource

Parameters:
resUsername - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAllValidAssignmentsForResource

java.util.List getAllValidAssignmentsForResource(WMSessionHandle shandle,
                                                 java.lang.String resUsername)
                                                 throws PersistenceException
Method getAllValidAssignmentsForResource

Parameters:
resUsername - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAllAssignmentsForActivity

java.util.List getAllAssignmentsForActivity(WMSessionHandle shandle,
                                            java.lang.String procId,
                                            java.lang.String actId)
                                            throws PersistenceException
Method getAllAssignmentsForActivity

Parameters:
actId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAllValidAssignmentsForActivity

java.util.List getAllValidAssignmentsForActivity(WMSessionHandle shandle,
                                                 java.lang.String procId,
                                                 java.lang.String actId)
                                                 throws PersistenceException
Method getAllValidAssignmentsForActivity

Parameters:
actId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAllVariablesForProcess

java.util.List getAllVariablesForProcess(WMSessionHandle shandle,
                                         java.lang.String procId)
                                         throws PersistenceException
Method getAllVariablesForProcess

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getProcessVariable

ProcessVariablePersistenceObject getProcessVariable(WMSessionHandle shandle,
                                                    java.lang.String procId,
                                                    java.lang.String variableId)
                                                    throws PersistenceException
Method getVariableForProcess

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getActivityVariable

ActivityVariablePersistenceObject getActivityVariable(WMSessionHandle shandle,
                                                      java.lang.String procId,
                                                      java.lang.String actId,
                                                      java.lang.String variableId)
                                                      throws PersistenceException
Method getVariablesForProcess

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getProcessVariables

java.util.List getProcessVariables(WMSessionHandle shandle,
                                   java.lang.String procId,
                                   java.util.List variableIds)
                                   throws PersistenceException
Method getProcessVariables

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAllVariablesForActivity

java.util.List getAllVariablesForActivity(WMSessionHandle shandle,
                                          java.lang.String procId,
                                          java.lang.String actId)
                                          throws PersistenceException
Method getAllVariablesForActivity

Parameters:
actId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getActivityVariables

java.util.List getActivityVariables(WMSessionHandle shandle,
                                    java.lang.String procId,
                                    java.lang.String actId,
                                    java.util.List variableIds)
                                    throws PersistenceException
Method getActivityVariables

Parameters:
actId - a String
Returns:
a List
Throws:
PersistenceException - on error.

getResourceRequestersProcessIds

java.util.List getResourceRequestersProcessIds(WMSessionHandle shandle,
                                               java.lang.String resUsername)
                                               throws PersistenceException
Method getResourceRequestersProcessIds

Parameters:
resUsername - a String
Returns:
a List
Throws:
PersistenceException - on error.

getAndJoinEntries

java.util.List getAndJoinEntries(WMSessionHandle shandle,
                                 java.lang.String procId,
                                 java.lang.String blockActId,
                                 java.lang.String aDefId)
                                 throws PersistenceException
Method getAndJoinEntries

Parameters:
procId - a String
blockActId - a String
aDefId - a String
Returns:
a List
Throws:
PersistenceException - on error.

howManyAndJoinEntries

int howManyAndJoinEntries(WMSessionHandle shandle,
                          java.lang.String procId,
                          java.lang.String blockActId,
                          java.lang.String aDefId)
                          throws PersistenceException
Method howManyAndJoinEntries

Parameters:
procId - a String
blockActId - a String
aDefId - a String
Returns:
an int
Throws:
PersistenceException - on error.

getAllDeadlinesForProcess

java.util.List getAllDeadlinesForProcess(WMSessionHandle shandle,
                                         java.lang.String procId)
                                         throws PersistenceException
Returns deadlines of all activities of given process.

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException

getAllDeadlinesForProcess

java.util.List getAllDeadlinesForProcess(WMSessionHandle shandle,
                                         java.lang.String procId,
                                         long timeLimitBoundary)
                                         throws PersistenceException
Returns deadlines of all activities of given process which time limit is broken.

Parameters:
procId - a String
Returns:
a List
Throws:
PersistenceException

getAllIdsForProcessesWithExpiriedDeadlines

java.util.List getAllIdsForProcessesWithExpiriedDeadlines(WMSessionHandle shandle,
                                                          long timeLimitBoundary)
                                                          throws PersistenceException
Returns process ids for which deadline time limit is broken on any running activity .

Throws:
PersistenceException

getAllDeadlinesForActivity

java.util.List getAllDeadlinesForActivity(WMSessionHandle shandle,
                                          java.lang.String procId,
                                          java.lang.String actId)
                                          throws PersistenceException
Returns all deadlines of a given activity.

Parameters:
procId - a String
actId - a String
Returns:
a List
Throws:
PersistenceException

getAllDeadlinesForActivity

java.util.List getAllDeadlinesForActivity(WMSessionHandle shandle,
                                          java.lang.String procId,
                                          java.lang.String actId,
                                          long timeLimitBoundary)
                                          throws PersistenceException
Returns all deadlines of a given activity which time limit is broken.

Parameters:
procId - a String
actId - a String
Returns:
a List
Throws:
PersistenceException

getExecuteCount

int getExecuteCount(WMSessionHandle shandle,
                    java.lang.String procId,
                    java.lang.String aDefId)
                    throws PersistenceException
Method getExecuteCount

Parameters:
procId - a String
aDefId - a String
Returns:
an int
Throws:
PersistenceException

getProcessMgrsWhere

java.util.List getProcessMgrsWhere(WMSessionHandle shandle,
                                   java.lang.String sqlWhere,
                                   int startAt,
                                   int limit)
                                   throws PersistenceException
Parameters:
sqlWhere -
Returns:
list of process manager objects complying to sqlWhere clause
Throws:
PersistenceException

getProcessesWhere

java.util.List getProcessesWhere(WMSessionHandle shandle,
                                 java.lang.String sqlWhere,
                                 int startAt,
                                 int limit)
                                 throws PersistenceException
Parameters:
sqlWhere -
Returns:
list of process objects complying to sqlWhere clause
Throws:
PersistenceException

getActivityVariablesWhere

java.util.List getActivityVariablesWhere(WMSessionHandle shandle,
                                         java.lang.String activityId,
                                         java.lang.String sqlWhere,
                                         int startAt,
                                         int limit)
                                         throws PersistenceException
Parameters:
shandle -
activityId -
sqlWhere -
startAt -
limit -
Returns:
list of activity variables objects complying to sqlWhere clause
Throws:
PersistenceException

getProcessVariablesWhere

java.util.List getProcessVariablesWhere(WMSessionHandle shandle,
                                        java.lang.String processid,
                                        java.lang.String sqlWhere,
                                        int startAt,
                                        int limit)
                                        throws PersistenceException
Parameters:
sqlWhere -
Returns:
list of process variables objects complying to sqlWhere clause
Throws:
PersistenceException

getActivitiesWhere

java.util.List getActivitiesWhere(WMSessionHandle shandle,
                                  java.lang.String sqlWhere,
                                  int startAt,
                                  int limit)
                                  throws PersistenceException
Parameters:
sqlWhere -
Returns:
list of activity objects complying to sqlWhere clause
Throws:
PersistenceException

getAssignmentsWhere

java.util.List getAssignmentsWhere(WMSessionHandle shandle,
                                   java.lang.String sqlWhere,
                                   int startAt,
                                   int limit)
                                   throws PersistenceException
Parameters:
sqlWhere -
Returns:
list of assignment objects complying to sqlWhere clause
Throws:
PersistenceException

getResourcesWhere

java.util.List getResourcesWhere(WMSessionHandle shandle,
                                 java.lang.String sqlWhere,
                                 int startAt,
                                 int limit)
                                 throws PersistenceException
Parameters:
sqlWhere -
Returns:
list of resource objects complying to sqlWhere clause
Throws:
PersistenceException

synchronizeProcess

void synchronizeProcess(WMSessionHandle shandle,
                        java.lang.String procId)
                        throws PersistenceException
Throws:
PersistenceException

getNextId

java.lang.String getNextId(java.lang.String idName)
                           throws PersistenceException
Method getNextId

Parameters:
idName - a String
Returns:
a String
Throws:
PersistenceException - on error.