|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.shark.WfProcessWrapper
WfProcessWrapper - Workflow Process Object implementation.
Field Summary | |
protected java.lang.String |
mgrName
|
protected java.lang.String |
processId
|
protected WMSessionHandle |
shandle
|
Constructor Summary | |
protected |
WfProcessWrapper(WMSessionHandle shandle,
java.lang.String mgrName,
java.lang.String processId)
Creates new WfProcessWrapper. |
Method Summary | |
void |
abort()
Abort the execution of this process. |
void |
change_state(java.lang.String new_state)
Method change_state |
protected void |
checkSecurity(java.lang.String methodName,
java.util.Map d)
|
java.lang.String |
description()
Method description |
boolean |
equals(java.lang.Object obj)
It is assumed that there can't be two or more processes having the same key. |
WfActivityIterator |
get_activities_in_state(java.lang.String state)
Retrieve the iterator of activities in some specific state. |
WfEventAuditIterator |
get_iterator_history(java.lang.String query,
java.util.Map names_in_query)
Search in the history for specific elements. |
WfActivityIterator |
get_iterator_step()
Retrieve the Iterator of active activities of this process. |
WfEventAudit[] |
get_sequence_history(int max_number)
Getter for history sequence. |
WfActivity[] |
get_sequence_step(int max_number)
Retrieve the List of activities of this process. |
protected WfProcessInternal |
getProcessImpl(java.lang.String procId,
int mode)
|
int |
hashCode()
|
how_closedType |
how_closed()
Method how_closed |
int |
how_many_history()
Method how_many_history |
int |
how_many_step()
Retrieve the no of activities in this process. |
boolean |
is_member_of_history(WfExecutionObject member)
Checks if a 'member' is an element of the history. |
boolean |
is_member_of_step(WfActivity member)
Check if some activity is a member of this process. |
java.lang.String |
key()
Method key |
UtcT |
last_state_time()
Method last_state_time |
WfProcessMgr |
manager()
Retrieve the WfProcessMgr of this process. |
java.lang.String |
name()
Method name |
short |
priority()
Method priority |
java.util.Map |
process_context()
Method process_context |
WfRequester |
requester()
Retrieves the requestor of this process. |
java.util.Map |
result()
Retrieve the result for this process. |
void |
resume()
Resume this process. |
void |
set_description(java.lang.String new_value)
Method set_description |
void |
set_name(java.lang.String new_value)
Method set_name |
void |
set_priority(short new_value)
Method set_priority |
void |
set_process_context(java.util.Map new_value)
Method set_process_context |
void |
set_requester(WfRequester new_value)
Set the requester for this process. |
void |
start()
Starts the process - creates a separate thread. |
java.lang.String |
state()
Method state |
void |
suspend()
Suspend this process. |
void |
terminate()
Terminate this process. |
java.lang.String |
toString()
Method toString |
java.lang.String[] |
valid_states()
Method valid_states |
while_openType |
while_open()
|
why_not_runningType |
why_not_running()
Method why_not_running |
workflow_stateType |
workflow_state()
Method workflow_state |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected WMSessionHandle shandle
protected java.lang.String mgrName
protected java.lang.String processId
Constructor Detail |
protected WfProcessWrapper(WMSessionHandle shandle, java.lang.String mgrName, java.lang.String processId)
Method Detail |
public WfRequester requester() throws java.lang.Exception
requester
in interface WfProcess
Exception.
java.lang.Exception
public void set_requester(WfRequester new_value) throws java.lang.Exception, CannotChangeRequester
set_requester
in interface WfProcess
new_value
- a WfRequester
java.lang.Exception
CannotChangeRequester
public int how_many_step() throws java.lang.Exception
how_many_step
in interface WfProcess
java.lang.Exception
public WfActivityIterator get_iterator_step() throws java.lang.Exception
get_iterator_step
in interface WfProcess
java.lang.Exception
public WfActivity[] get_sequence_step(int max_number) throws java.lang.Exception
get_sequence_step
in interface WfProcess
max_number
- High limit of elements in the result set (0->all).
java.lang.Exception
public boolean is_member_of_step(WfActivity member) throws java.lang.Exception
is_member_of_step
in interface WfProcess
member
- a WfActivity
java.lang.Exception
public WfProcessMgr manager() throws java.lang.Exception
manager
in interface WfProcess
java.lang.Exception
public java.util.Map result() throws java.lang.Exception, ResultNotAvailable
result
in interface WfProcess
java.lang.Exception
ResultNotAvailable
public void start() throws java.lang.Exception, CannotStart, AlreadyRunning
start
in interface WfProcess
java.lang.Exception
CannotStart
AlreadyRunning
public WfActivityIterator get_activities_in_state(java.lang.String state) throws java.lang.Exception, InvalidState
get_activities_in_state
in interface WfProcess
state
- a String
java.lang.Exception
InvalidState
public workflow_stateType workflow_state() throws java.lang.Exception
workflow_state
in interface WfExecutionObject
java.lang.Exception
public while_openType while_open() throws java.lang.Exception
while_open
in interface WfExecutionObject
java.lang.Exception
public why_not_runningType why_not_running() throws java.lang.Exception
why_not_running
in interface WfExecutionObject
java.lang.Exception
public how_closedType how_closed() throws java.lang.Exception
how_closed
in interface WfExecutionObject
java.lang.Exception
public java.lang.String[] valid_states() throws java.lang.Exception
valid_states
in interface WfExecutionObject
java.lang.Exception
public java.lang.String state() throws java.lang.Exception
state
in interface WfExecutionObject
java.lang.Exception
public void change_state(java.lang.String new_state) throws java.lang.Exception, InvalidState, TransitionNotAllowed
change_state
in interface WfExecutionObject
new_state
- a String
java.lang.Exception
InvalidState
TransitionNotAllowed
public java.lang.String name() throws java.lang.Exception
name
in interface WfExecutionObject
java.lang.Exception
public void set_name(java.lang.String new_value) throws java.lang.Exception
set_name
in interface WfExecutionObject
new_value
- a String
java.lang.Exception
public java.lang.String key() throws java.lang.Exception
key
in interface WfExecutionObject
java.lang.Exception
public java.lang.String description() throws java.lang.Exception
description
in interface WfExecutionObject
java.lang.Exception
public void set_description(java.lang.String new_value) throws java.lang.Exception
set_description
in interface WfExecutionObject
new_value
- a String
java.lang.Exception
public java.util.Map process_context() throws java.lang.Exception
process_context
in interface WfExecutionObject
java.lang.Exception
public void set_process_context(java.util.Map new_value) throws java.lang.Exception, InvalidData, UpdateNotAllowed
set_process_context
in interface WfExecutionObject
new_value
- a Map
java.lang.Exception
InvalidData
UpdateNotAllowed
public short priority() throws java.lang.Exception
priority
in interface WfExecutionObject
java.lang.Exception
public void set_priority(short new_value) throws java.lang.Exception
set_priority
in interface WfExecutionObject
new_value
- a short
java.lang.Exception
public void resume() throws java.lang.Exception, CannotResume, NotSuspended
resume
in interface WfExecutionObject
java.lang.Exception
CannotResume
NotSuspended
public void suspend() throws java.lang.Exception, CannotSuspend, NotRunning, AlreadySuspended
suspend
in interface WfExecutionObject
java.lang.Exception
CannotSuspend
NotRunning
AlreadySuspended
public void terminate() throws java.lang.Exception, CannotStop, NotRunning
terminate
in interface WfExecutionObject
java.lang.Exception
CannotStop
NotRunning
public void abort() throws java.lang.Exception, CannotStop, NotRunning
abort
in interface WfExecutionObject
java.lang.Exception
CannotStop
NotRunning
public int how_many_history() throws java.lang.Exception, HistoryNotAvailable
how_many_history
in interface WfExecutionObject
java.lang.Exception
HistoryNotAvailable
public WfEventAuditIterator get_iterator_history(java.lang.String query, java.util.Map names_in_query) throws java.lang.Exception, HistoryNotAvailable
get_iterator_history
in interface WfExecutionObject
query
- a Stringnames_in_query
- a Map
java.lang.Exception
HistoryNotAvailable
public WfEventAudit[] get_sequence_history(int max_number) throws java.lang.Exception, HistoryNotAvailable
get_sequence_history
in interface WfExecutionObject
max_number
- an int
java.lang.Exception
HistoryNotAvailable
public boolean is_member_of_history(WfExecutionObject member) throws java.lang.Exception
is_member_of_history
in interface WfExecutionObject
member
- a WfExecutionObject
java.lang.Exception
public UtcT last_state_time() throws java.lang.Exception
last_state_time
in interface WfExecutionObject
java.lang.Exception
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public int hashCode()
protected void checkSecurity(java.lang.String methodName, java.util.Map d) throws java.lang.Exception
java.lang.Exception
protected WfProcessInternal getProcessImpl(java.lang.String procId, int mode) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |