org.enhydra.shark.corba
Class WfActivityCORBA

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.omg.WorkflowModel._WfActivityImplBase
          extended byorg.enhydra.shark.corba.WfActivityCORBA
All Implemented Interfaces:
BaseBusinessObject, BaseBusinessObjectOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object, java.io.Serializable, WfActivity, WfActivityOperations, WfExecutionObject, WfExecutionObjectOperations, WfRequester, WfRequesterOperations

public class WfActivityCORBA
extends _WfActivityImplBase

WfActivityImpl - Workflow Activity Object implementation

Version:
1.0
Author:
Sasa Bojanic
See Also:
Serialized Form

Constructor Summary
protected WfActivityCORBA(Collective toJoin, WfActivity sharkAct)
          Create a new WfActivityImpl
 
Method Summary
 void abort()
          Abort the execution of this process or activity.
 void change_state(java.lang.String new_state)
           
 void complete()
          Complete this activity.
 WfProcess container()
          Getter for the process of this activity.
 java.lang.String description()
           
 boolean equals(java.lang.Object obj)
          It is assumed that there can't be two or more activities having the same key.
 WfAssignmentIterator get_iterator_assignment()
          Retrieve the Iterator of Assignments objects.
 WfEventAuditIterator get_iterator_history(java.lang.String query, NameValue[] names_in_query)
          Search in the history for specific elements.
 WfProcessIterator get_iterator_performer()
          Gets an iterator of processes.
 WfAssignment[] get_sequence_assignment(int max_number)
          Retrieve all assignments of this activity.
 WfEventAudit[] get_sequence_history(int max_number)
          Getter for history sequence.
 WfProcess[] get_sequence_performer(int max_number)
          A list of processes
 how_closedType how_closed()
           
 int how_many_assignment()
          Retrieve the no. of Assignment objects.
 int how_many_history()
           
 int how_many_performer()
          Gets the number of processes.
 boolean is_member_of_assignment(WfAssignment member)
          Check if a specific assignment is a member of this activity.
 boolean is_member_of_history(WfExecutionObject member)
          Predicate to check if a 'member' is an element of the history.
 boolean is_member_of_performer(WfProcess member)
          Checks if a WfProcess is associated with this requester object
 java.lang.String key()
           
 org.omg.TimeBase.UtcT last_state_time()
           
 java.lang.String name()
           
 short priority()
           
 NameValue[] process_context()
           
 void receive_event(WfEventAudit event)
           
 NameValue[] result()
          Retrieve the Result map of this activity.
 void resume()
          Resume this process or activity.
 void set_description(java.lang.String new_value)
           
 void set_name(java.lang.String new_value)
           
 void set_priority(short new_value)
           
 void set_process_context(NameValue[] new_value)
           
 void set_result(NameValue[] results)
          Assign Result for this activity.
 java.lang.String state()
           
 void suspend()
          Suspend this process or activity.
 void terminate()
          Terminate this process or activity.
 java.lang.String toString()
           
 java.lang.String[] valid_states()
           
 while_openType while_open()
           
 why_not_runningType why_not_running()
           
 workflow_stateType workflow_state()
           
 
Methods inherited from class org.omg.WorkflowModel._WfActivityImplBase
_ids, _invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

WfActivityCORBA

protected WfActivityCORBA(Collective toJoin,
                          WfActivity sharkAct)
Create a new WfActivityImpl

Method Detail

how_many_assignment

public int how_many_assignment()
                        throws BaseException
Retrieve the no. of Assignment objects.

Returns:
No. of current assignments.
Throws:
BaseException - General workflow exception.

get_iterator_assignment

public WfAssignmentIterator get_iterator_assignment()
                                             throws BaseException
Retrieve the Iterator of Assignments objects.

Throws:
BaseException

get_sequence_assignment

public WfAssignment[] get_sequence_assignment(int max_number)
                                       throws BaseException
Retrieve all assignments of this activity.

Returns:
array of WfAssignment objects.
Throws:
BaseException

is_member_of_assignment

public boolean is_member_of_assignment(WfAssignment member)
                                throws BaseException
Check if a specific assignment is a member of this activity.

Returns:
true if the assignment is a member of this activity.
Throws:
BaseException

container

public WfProcess container()
                    throws BaseException
Getter for the process of this activity.

Throws:
BaseException

result

public NameValue[] result()
                   throws BaseException,
                          ResultNotAvailable
Retrieve the Result map of this activity.

Returns:
Map of results from this activity
Throws:
BaseException
ResultNotAvailable

set_result

public void set_result(NameValue[] results)
                throws BaseException,
                       InvalidData
Assign Result for this activity.

Throws:
BaseException
InvalidData

complete

public void complete()
              throws BaseException,
                     CannotComplete
Complete this activity.

Throws:
BaseException
CannotComplete

workflow_state

public workflow_stateType workflow_state()
                                  throws BaseException
Throws:
BaseException

while_open

public while_openType while_open()
                          throws BaseException
Throws:
BaseException

why_not_running

public why_not_runningType why_not_running()
                                    throws BaseException
Throws:
BaseException

how_closed

public how_closedType how_closed()
                          throws BaseException
Throws:
BaseException

valid_states

public java.lang.String[] valid_states()
                                throws BaseException
Throws:
BaseException

state

public java.lang.String state()
                       throws BaseException
Throws:
BaseException

change_state

public void change_state(java.lang.String new_state)
                  throws BaseException,
                         InvalidState,
                         TransitionNotAllowed
Throws:
BaseException
InvalidState
TransitionNotAllowed

name

public java.lang.String name()
                      throws BaseException
Throws:
BaseException

set_name

public void set_name(java.lang.String new_value)
              throws BaseException
Throws:
BaseException

key

public java.lang.String key()
                     throws BaseException
Throws:
BaseException

description

public java.lang.String description()
                             throws BaseException
Throws:
BaseException

set_description

public void set_description(java.lang.String new_value)
                     throws BaseException
Throws:
BaseException

process_context

public NameValue[] process_context()
                            throws BaseException
Throws:
BaseException

set_process_context

public void set_process_context(NameValue[] new_value)
                         throws BaseException,
                                InvalidData,
                                UpdateNotAllowed
Throws:
BaseException
InvalidData
UpdateNotAllowed

priority

public short priority()
               throws BaseException
Throws:
BaseException

set_priority

public void set_priority(short new_value)
                  throws BaseException
Throws:
BaseException

resume

public void resume()
            throws BaseException,
                   CannotResume,
                   NotSuspended
Resume this process or activity.

Throws:
BaseException
CannotResume
NotSuspended

suspend

public void suspend()
             throws BaseException,
                    CannotSuspend,
                    NotRunning,
                    AlreadySuspended
Suspend this process or activity.

Throws:
BaseException
CannotSuspend
NotRunning
AlreadySuspended

terminate

public void terminate()
               throws BaseException,
                      CannotStop,
                      NotRunning
Terminate this process or activity.

Throws:
BaseException
CannotStop
NotRunning

abort

public void abort()
           throws BaseException,
                  CannotStop,
                  NotRunning
Abort the execution of this process or activity.

Throws:
BaseException
CannotStop
NotRunning

how_many_history

public int how_many_history()
                     throws BaseException,
                            HistoryNotAvailable
Throws:
BaseException
HistoryNotAvailable

get_iterator_history

public WfEventAuditIterator get_iterator_history(java.lang.String query,
                                                 NameValue[] names_in_query)
                                          throws BaseException,
                                                 HistoryNotAvailable
Search in the history for specific elements.

Parameters:
query - Search criteria.
names_in_query - elements to search.
Returns:
Found history elements that meet the search criteria.
Throws:
BaseException
HistoryNotAvailable

get_sequence_history

public WfEventAudit[] get_sequence_history(int max_number)
                                    throws BaseException,
                                           HistoryNotAvailable
Getter for history sequence.

Parameters:
max_number - Maximum number of element in result list.
Returns:
List of History objects.
Throws:
BaseException
HistoryNotAvailable

is_member_of_history

public boolean is_member_of_history(WfExecutionObject member)
                             throws BaseException
Predicate to check if a 'member' is an element of the history.

Returns:
true if the element of the history, false otherwise.
Throws:
BaseException

last_state_time

public org.omg.TimeBase.UtcT last_state_time()
                                      throws BaseException
Throws:
BaseException

how_many_performer

public int how_many_performer()
                       throws BaseException
Gets the number of processes.

Throws:
BaseException

get_iterator_performer

public WfProcessIterator get_iterator_performer()
                                         throws BaseException
Gets an iterator of processes.

Throws:
BaseException

get_sequence_performer

public WfProcess[] get_sequence_performer(int max_number)
                                   throws BaseException
A list of processes

Returns:
List of WfProcess objects.
Throws:
BaseException

is_member_of_performer

public boolean is_member_of_performer(WfProcess member)
                               throws BaseException
Checks if a WfProcess is associated with this requester object

Returns:
true if the process is found.
Throws:
BaseException

receive_event

public void receive_event(WfEventAudit event)
                   throws BaseException,
                          InvalidPerformer
Throws:
BaseException
InvalidPerformer

equals

public boolean equals(java.lang.Object obj)
It is assumed that there can't be two or more activities having the same key.


toString

public java.lang.String toString()