|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WAPI2 extensions for process definition and instance management. The
process repository functions provide for pluggable process definition
language support; at present only XPDL
is supported.
WAPI
superinterface provides many methods that accept a
filter
object to restrict the scope of the operation. The
filter refers to attributes of process instance, activity instance, and work
item as appropriate. In OBE, these system attributes are described by
interfaces in the org.obe.client.api.model
package.
WMClientFactory
,
ProcessInstanceAttributes
,
ActivityInstanceAttributes
,
WorkItemAttributes
Field Summary | |
static java.lang.String |
BPEL4WS
IBM/Microsoft/BEA's Business Process Execution Language for Web Services. |
static java.lang.String |
BPML
BPMI's Business Process Modeling Language. |
static java.lang.String |
WPDL
WfMC's Workflow Process Definition Language. |
static java.lang.String |
WSFL
IBM's Web Services Flow Language. |
static java.lang.String |
WSPL
BPMI's Web Services Process Language. |
static java.lang.String |
XLANG
Microsoft's BizTalk Process Definition Language. |
static java.lang.String |
XPDL
WfMC's XML Process Definition Language. |
Method Summary | |
java.lang.String |
createPackage(java.lang.String content,
java.lang.String contentType)
Creates a package using the supplied content in a specified format. |
java.lang.String |
createPackage(XPDLPackage pkg)
Creates a package using the supplied content. |
java.lang.String |
createProcessInstanceVersioned(java.lang.String name,
java.lang.String processInstanceName)
Creates a new instance of the named workflow process. |
int |
deleteAuditEntries(WMFilter filter)
Deletes audit entries matching a user-supplied criterion. |
void |
deletePackage(java.lang.String packageId)
Permanently deletes the specified process definition. |
void |
deleteProcessInstance(java.lang.String processInstanceId)
Deletes a process instance from persistent storage. |
void |
deleteProcessInstances(java.lang.String processDefinitionId,
WMFilter filter)
Deletes a process instance from persistent storage. |
ToolInvocation[] |
executeWorkItem(java.lang.String procInstId,
java.lang.String workItemId)
Returns information to enable a client to invoke a tool. |
XPDLPackage |
getPackage(java.lang.String packageId)
Retrieves an XPDL package. |
java.lang.String |
getPackageContent(java.lang.String packageId,
java.lang.String contentType)
Retrieves the content of the a package in the specified format. |
java.lang.String |
getProtocol()
Returns the protocol in use by this client instance. |
WMAAuditEntryIterator |
listAuditEntries(WMFilter filter)
Finds audit entries matching a user-supplied criterion. |
void |
setPackageContent(java.lang.String packageId,
java.lang.String content,
java.lang.String contentType)
Sets the content of the specified package. |
void |
toolFinished(java.lang.String procInstId,
java.lang.String workItemId,
int appStatus,
Parameter[] parms)
Informs the workflow engine that a tool has finished executing. |
void |
toolStarted(java.lang.String procInstId,
java.lang.String workItemId)
Informs the workflow engine that a tool is being started. |
void |
updatePackage(XPDLPackage pkg)
Updates the specified process definition package. |
Field Detail |
public static final java.lang.String BPEL4WS
public static final java.lang.String BPML
public static final java.lang.String WPDL
public static final java.lang.String WSFL
public static final java.lang.String WSPL
public static final java.lang.String XLANG
public static final java.lang.String XPDL
Method Detail |
public java.lang.String getProtocol()
public java.lang.String createPackage(XPDLPackage pkg) throws WMWorkflowException
pkg
- Package definition.
WMWorkflowException
public void updatePackage(XPDLPackage pkg) throws WMWorkflowException
pkg
- The process definition package.
WMWorkflowException
public java.lang.String createPackage(java.lang.String content, java.lang.String contentType) throws WMWorkflowException
content
- Package definition in specified format.contentType
- The MIME content type of the package definition, in a
supported format.
WMWorkflowException
public XPDLPackage getPackage(java.lang.String packageId) throws WMWorkflowException
packageId
- The package ID.
WMWorkflowException
public java.lang.String getPackageContent(java.lang.String packageId, java.lang.String contentType) throws WMWorkflowException
packageId
- The package ID.contentType
- The MIME content type of the package definition, must
be a supported format.
WMWorkflowException
public void setPackageContent(java.lang.String packageId, java.lang.String content, java.lang.String contentType) throws WMWorkflowException
packageId
- The ID of the package to update.content
- Package definition in a supported format.contentType
- The MIME content type of the package definition, must
be a supported format.
WMWorkflowException
public void deletePackage(java.lang.String packageId) throws WMWorkflowException
packageId
- The process definition ID.
WMWorkflowException
public java.lang.String createProcessInstanceVersioned(java.lang.String name, java.lang.String processInstanceName) throws WMWorkflowException
name
- The process definition name.processInstanceName
- The name of the process instance.
WMInvalidProcessDefinitionException
- if the process definition
does not exist, is disabled, under revision, or has no valid versions as
determined for the current system time.
WMWorkflowException
- Workflow client exceptionpublic void deleteProcessInstance(java.lang.String processInstanceId) throws WMWorkflowException
processInstanceId
- The ID of the process instance to delete.
WMWorkflowException
public void deleteProcessInstances(java.lang.String processDefinitionId, WMFilter filter) throws WMWorkflowException
processDefinitionId
- The ID of the process definition for which
to delete instances.filter
- A filter specification; can be null
.
WMWorkflowException
public WMAAuditEntryIterator listAuditEntries(WMFilter filter) throws WMWorkflowException
filter
- Filter criterion.
WMWorkflowException
public int deleteAuditEntries(WMFilter filter) throws WMWorkflowException
filter
- Filter criterion.
WMWorkflowException
public ToolInvocation[] executeWorkItem(java.lang.String procInstId, java.lang.String workItemId) throws WMWorkflowException
ToolInvocations
can either be used directly to
invoke the Application (in the case of a thick client), or can be used to
render a response document (in the case of a thin client such as a
web-based worklist handler).
procInstId
- The process instance ID.workItemId
- The work item ID.
WMWorkflowException
public void toolStarted(java.lang.String procInstId, java.lang.String workItemId) throws WMWorkflowException
procInstId
- The process instance ID.workItemId
- The work item ID.
WMWorkflowException
public void toolFinished(java.lang.String procInstId, java.lang.String workItemId, int appStatus, Parameter[] parms) throws WMWorkflowException
procInstId
- The process instance ID.workItemId
- The work item ID.appStatus
- The application exit status.parms
- Parameters containing output results.
WMWorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |