org.enhydra.shark.api.internal.working
Interface WfActivityInternal

All Superinterfaces:
PersistenceInterface, WfExecutionObjectInternal, WfRequesterInternal

public interface WfActivityInternal
extends WfRequesterInternal, WfExecutionObjectInternal

Author:
Sasa Bojanic, Vladimir Puskas

Method Summary
 void abortFromProcess(WMSessionHandle shandle)
           
 boolean accepted_status(WMSessionHandle shandle)
           
 void activate(WMSessionHandle shandle)
           
 java.lang.String activity_definition_id(WMSessionHandle shandle)
           
 java.lang.String activity_definition_name(WMSessionHandle shandle)
           
 java.lang.String activity_set_definition_id(WMSessionHandle shandle)
           
 java.lang.String block_activity_id(WMSessionHandle shandle)
           
 WfActivityInternal block_activity(WMSessionHandle shandle)
           
 boolean checkDeadlines(WMSessionHandle shandle, long timeLimitBoundary, java.util.Map actsToAsyncExcNames)
           
 void complete(WMSessionHandle shandle)
           
 WfProcessInternal container(WMSessionHandle shandle)
           
 WfActivityInternal duplicate(WfProcessInternal proc)
           
 void finish(WMSessionHandle shandle)
           
 java.util.List getAssignmentResourceIds(WMSessionHandle shandle)
           
 java.util.List getDeadlineInfo(WMSessionHandle shandle)
           
 int getDefinitionType(WMSessionHandle shandle)
           
 java.lang.Exception getException(WMSessionHandle shandle)
           
 java.lang.String getExceptionName(WMSessionHandle shandle)
           
 java.lang.String getPerformerId(WMSessionHandle shandle)
           
 java.lang.String getResourceUsername(WMSessionHandle shandle)
           
 boolean isPerformerSynchronous(WMSessionHandle shandle)
           
 java.lang.String manager_name(WMSessionHandle shandle)
           
 java.lang.String process_id(WMSessionHandle shandle)
           
 int reevaluateAssignments(WMSessionHandle shandle)
           
 java.util.Map result(WMSessionHandle shandle)
           
 void set_accepted_status(WMSessionHandle shandle, boolean accepted, java.lang.String resourceUname)
           
 void set_result(WMSessionHandle shandle, java.util.Map result)
           
 void setException(WMSessionHandle shandle, java.lang.Exception tage)
           
 void setExceptionName(WMSessionHandle shandle, java.lang.String exceptionName)
           
 void terminateFromProcess(WMSessionHandle shandle)
           
 void updateAssignmentResourceIds(WMSessionHandle shandle, java.lang.String oldResUname, java.lang.String newResUname)
           
 
Methods inherited from interface org.enhydra.shark.api.internal.working.WfRequesterInternal
getExternalRequester, getResourceRequesterUsername, receive_event
 
Methods inherited from interface org.enhydra.shark.api.internal.working.WfExecutionObjectInternal
abort, calculateLimit, description, getContext, getCreationTime, getLimitTime, getStartTime, key, last_state_time, name, priority, process_context, resume, set_description, set_name, set_priority, set_process_context, state, suspend, terminate
 
Methods inherited from interface org.enhydra.shark.api.internal.working.PersistenceInterface
delete, persist
 

Method Detail

reevaluateAssignments

public int reevaluateAssignments(WMSessionHandle shandle)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getResourceUsername

public java.lang.String getResourceUsername(WMSessionHandle shandle)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getAssignmentResourceIds

public java.util.List getAssignmentResourceIds(WMSessionHandle shandle)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

updateAssignmentResourceIds

public void updateAssignmentResourceIds(WMSessionHandle shandle,
                                        java.lang.String oldResUname,
                                        java.lang.String newResUname)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

container

public WfProcessInternal container(WMSessionHandle shandle)
                            throws java.lang.Exception
Throws:
java.lang.Exception

result

public java.util.Map result(WMSessionHandle shandle)
                     throws java.lang.Exception,
                            ResultNotAvailable
Throws:
java.lang.Exception
ResultNotAvailable

set_result

public void set_result(WMSessionHandle shandle,
                       java.util.Map result)
                throws java.lang.Exception,
                       InvalidData
Throws:
java.lang.Exception
InvalidData

complete

public void complete(WMSessionHandle shandle)
              throws java.lang.Exception,
                     CannotComplete
Throws:
java.lang.Exception
CannotComplete

finish

public void finish(WMSessionHandle shandle)
            throws java.lang.Exception,
                   CannotComplete
Throws:
java.lang.Exception
CannotComplete

terminateFromProcess

public void terminateFromProcess(WMSessionHandle shandle)
                          throws java.lang.Exception,
                                 CannotStop,
                                 NotRunning
Throws:
java.lang.Exception
CannotStop
NotRunning

abortFromProcess

public void abortFromProcess(WMSessionHandle shandle)
                      throws java.lang.Exception,
                             CannotStop,
                             NotRunning
Throws:
java.lang.Exception
CannotStop
NotRunning

block_activity

public WfActivityInternal block_activity(WMSessionHandle shandle)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

activity_set_definition_id

public java.lang.String activity_set_definition_id(WMSessionHandle shandle)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

activity_definition_id

public java.lang.String activity_definition_id(WMSessionHandle shandle)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

activity_definition_name

public java.lang.String activity_definition_name(WMSessionHandle shandle)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

block_activity_id

public java.lang.String block_activity_id(WMSessionHandle shandle)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

manager_name

public java.lang.String manager_name(WMSessionHandle shandle)
                              throws java.lang.Exception
Throws:
java.lang.Exception

process_id

public java.lang.String process_id(WMSessionHandle shandle)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getPerformerId

public java.lang.String getPerformerId(WMSessionHandle shandle)

isPerformerSynchronous

public boolean isPerformerSynchronous(WMSessionHandle shandle)

activate

public void activate(WMSessionHandle shandle)
              throws java.lang.Exception,
                     CannotStart,
                     AlreadyRunning
Throws:
java.lang.Exception
CannotStart
AlreadyRunning

accepted_status

public boolean accepted_status(WMSessionHandle shandle)
                        throws java.lang.Exception
Throws:
java.lang.Exception

set_accepted_status

public void set_accepted_status(WMSessionHandle shandle,
                                boolean accepted,
                                java.lang.String resourceUname)
                         throws java.lang.Exception,
                                CannotAcceptSuspended
Throws:
java.lang.Exception
CannotAcceptSuspended

getException

public java.lang.Exception getException(WMSessionHandle shandle)

setException

public void setException(WMSessionHandle shandle,
                         java.lang.Exception tage)

getExceptionName

public java.lang.String getExceptionName(WMSessionHandle shandle)

setExceptionName

public void setExceptionName(WMSessionHandle shandle,
                             java.lang.String exceptionName)

checkDeadlines

public boolean checkDeadlines(WMSessionHandle shandle,
                              long timeLimitBoundary,
                              java.util.Map actsToAsyncExcNames)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getDeadlineInfo

public java.util.List getDeadlineInfo(WMSessionHandle shandle)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getDefinitionType

public int getDefinitionType(WMSessionHandle shandle)
                      throws java.lang.Exception
Throws:
java.lang.Exception

duplicate

public WfActivityInternal duplicate(WfProcessInternal proc)
                             throws java.lang.Exception
Throws:
java.lang.Exception