Java Reference
In-Depth Information
WfProcess[] get_sequence_process (
int
max_number)
throws
BaseException;
boolean
is_member_of_process (WfProcess member)
throws
BaseException;
process_mgr_stateType process_mgr_state ()
throws
BaseException;
void
set_process_mgr_state (process_mgr_stateType
new
_state)
throws
BaseException, TransitionNotAllowed;
String name ()
throws
BaseException;
void
set_name (String new_value)
throws
BaseException;
String description ()
throws
BaseException;
void
set_description (String new_value)
throws
BaseException;
String category ()
throws
BaseException;
void
set_category (String new_value)
throws
BaseException;
String version ()
throws
BaseException;
void
set_version (String new_value)
throws
BaseException;
NameValueInfo[] context_signature ()
throws
BaseException;
NameValueInfo[] result_signature ()
throws
BaseException;
WfProcess create_process(WfRequester requester)
throws
BaseException, NotEnabled;
}
The
WfPRocessMgrImpl
implements the
WfProcessImpl
interface. The con-
structor takes a process definition as an argument. All the methods are quite
simple since they are getters and setters. Most of the methods defined by
JFlow
in this and other interfaces are like these.
package
WfEngine;
...
class
WfProcessMgrImpl
implements
WfProcessMgr {
private
Vector instances;
private
WfProcessDefinition definition;
private
process_mgr_stateType state;
private
String description;
WfProcessMgrImpl(WfProcessDefinition definition) {
This.definition
#
definition;
state
#
process_mgr_stateType.enabled;
instances
#
new
Vector();
}
public int
how_many_processes()
throws
BaseException {
return
instances.size();
}
public
WfProcessIterator get_iterator_process()
throws
BaseException {
return
new WfProcessIteratorImpl(instances);
}