|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl
public class ProcessAndInstanceManagementImpl
Implementation of the Process and InstanceManagement APIs.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
__log
|
protected static Messages |
__msgs
|
protected static org.apache.ode.bpel.engine.ProcessStatusConverter |
__psc
|
protected java.util.Calendar |
_calendar
|
protected BpelDatabase |
_db
|
protected BpelServerImpl |
_server
|
protected ProcessStore |
_store
|
| Constructor Summary | |
|---|---|
ProcessAndInstanceManagementImpl(BpelServer server,
ProcessStore store)
|
|
| Method Summary | ||
|---|---|---|
ProcessInfoDocument |
activate(javax.xml.namespace.QName pid)
|
|
protected
|
dbexec(BpelDatabase.Callable<T> callable)
Execute a database transaction, unwrapping nested ManagementExceptions. |
|
protected
|
dbexec(org.apache.ode.bpel.engine.BpelProcessDatabase.Callable<T> runnable)
Execute a database transaction, unwrapping nested ManagementExceptions. |
|
java.util.Collection<java.lang.Long> |
delete(java.lang.String filter)
|
|
InstanceInfoDocument |
fault(java.lang.Long iid,
javax.xml.namespace.QName faultname,
org.w3c.dom.Element faultData)
|
|
GetCommunicationResponseDocument |
getCommunication(GetCommunication request)
|
|
protected DebuggerSupport |
getDebugger(java.lang.Long iid)
Get the DebuggerSupport object for the given instance identifier. |
|
protected DebuggerSupport |
getDebugger(javax.xml.namespace.QName procid)
Get the DebuggerSupport object for the given process identifier. |
|
java.util.List<java.lang.String> |
getEventTimeline(java.lang.String instanceFilter,
java.lang.String eventFilter)
|
|
ActivityExtInfoListDocument |
getExtensibilityElements(javax.xml.namespace.QName pid,
java.lang.Integer[] aids)
|
|
InstanceInfoDocument |
getInstanceInfo(java.lang.Long iid)
|
|
ProcessInfoDocument |
getProcessInfo(javax.xml.namespace.QName pid)
|
|
ProcessInfoDocument |
getProcessInfoCustom(javax.xml.namespace.QName pid,
ProcessInfoCustomizer custom)
|
|
ScopeInfoDocument |
getScopeInfo(java.lang.String siid)
|
|
ScopeInfoDocument |
getScopeInfoWithActivity(java.lang.String siid,
boolean includeActivityInfo)
|
|
VariableInfoDocument |
getVariableInfo(java.lang.String scopeId,
java.lang.String varName)
|
|
InstanceInfoListDocument |
listAllInstances()
|
|
InstanceInfoListDocument |
listAllInstancesWithLimit(int limit)
|
|
ProcessInfoListDocument |
listAllProcesses()
|
|
EventInfoListDocument |
listEvents(java.lang.String instanceFilter,
java.lang.String eventFilter,
int maxCount)
|
|
InstanceInfoListDocument |
listInstances(java.lang.String filter,
java.lang.String order,
int limit)
|
|
InstanceInfoListDocument |
listInstancesSummary(java.lang.String filter,
java.lang.String order,
int limit)
|
|
ProcessInfoListDocument |
listProcesses(java.lang.String filter,
java.lang.String orderKeys)
|
|
ProcessInfoListDocument |
listProcessesCustom(java.lang.String filter,
java.lang.String orderKeys,
ProcessInfoCustomizer custom)
|
|
ProcessInfoListDocument |
listProcessesSummaryAndProperties()
|
|
ProcessInfoListDocument |
listProcessesSummaryOnly()
|
|
InstanceInfoListDocument |
queryInstances(java.lang.String query)
|
|
InstanceInfoDocument |
recoverActivity(java.lang.Long iid,
java.lang.Long aid,
java.lang.String action)
|
|
ReplayResponseDocument |
replay(Replay request)
|
|
InstanceInfoDocument |
resume(java.lang.Long iid)
|
|
void |
setPackageRetired(java.lang.String packageName,
boolean retired)
|
|
ProcessInfoDocument |
setProcessProperty(javax.xml.namespace.QName pid,
javax.xml.namespace.QName propertyName,
java.lang.String value)
|
|
ProcessInfoDocument |
setProcessPropertyNode(javax.xml.namespace.QName pid,
javax.xml.namespace.QName propertyName,
org.w3c.dom.Node value)
|
|
ProcessInfoDocument |
setRetired(javax.xml.namespace.QName pid,
boolean retired)
|
|
VariableInfoDocument |
setVariable(java.lang.String scopeId,
java.lang.String varName,
org.apache.xmlbeans.XmlObject value)
|
|
InstanceInfoDocument |
suspend(java.lang.Long iid)
|
|
InstanceInfoDocument |
terminate(java.lang.Long iid)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Messages __msgs
protected static org.apache.commons.logging.Log __log
protected static final org.apache.ode.bpel.engine.ProcessStatusConverter __psc
protected BpelDatabase _db
protected ProcessStore _store
protected java.util.Calendar _calendar
protected BpelServerImpl _server
| Constructor Detail |
|---|
public ProcessAndInstanceManagementImpl(BpelServer server,
ProcessStore store)
| Method Detail |
|---|
public ProcessInfoListDocument listProcessesCustom(java.lang.String filter,
java.lang.String orderKeys,
ProcessInfoCustomizer custom)
listProcessesCustom in interface ProcessManagement
public ProcessInfoListDocument listProcesses(java.lang.String filter,
java.lang.String orderKeys)
listProcesses in interface ProcessManagementpublic ProcessInfoListDocument listAllProcesses()
listAllProcesses in interface ProcessManagementpublic ProcessInfoListDocument listProcessesSummaryOnly()
listProcessesSummaryOnly in interface ProcessManagementpublic ProcessInfoListDocument listProcessesSummaryAndProperties()
listProcessesSummaryAndProperties in interface ProcessManagement
public ProcessInfoDocument getProcessInfoCustom(javax.xml.namespace.QName pid,
ProcessInfoCustomizer custom)
getProcessInfoCustom in interface ProcessManagementpublic ProcessInfoDocument getProcessInfo(javax.xml.namespace.QName pid)
getProcessInfo in interface ProcessManagementpublic ProcessInfoDocument activate(javax.xml.namespace.QName pid)
activate in interface ProcessManagement
public ProcessInfoDocument setRetired(javax.xml.namespace.QName pid,
boolean retired)
throws ManagementException
setRetired in interface ProcessManagementManagementException
public void setPackageRetired(java.lang.String packageName,
boolean retired)
throws ManagementException
setPackageRetired in interface ProcessManagementManagementException
public ProcessInfoDocument setProcessPropertyNode(javax.xml.namespace.QName pid,
javax.xml.namespace.QName propertyName,
org.w3c.dom.Node value)
throws ManagementException
setProcessPropertyNode in interface ProcessManagementManagementException
public ProcessInfoDocument setProcessProperty(javax.xml.namespace.QName pid,
javax.xml.namespace.QName propertyName,
java.lang.String value)
throws ManagementException
setProcessProperty in interface ProcessManagementManagementException
public InstanceInfoListDocument listInstances(java.lang.String filter,
java.lang.String order,
int limit)
listInstances in interface InstanceManagement
public InstanceInfoListDocument listInstancesSummary(java.lang.String filter,
java.lang.String order,
int limit)
listInstancesSummary in interface InstanceManagementpublic InstanceInfoListDocument listAllInstances()
listAllInstances in interface InstanceManagementpublic InstanceInfoListDocument listAllInstancesWithLimit(int limit)
listAllInstancesWithLimit in interface InstanceManagement
public InstanceInfoDocument getInstanceInfo(java.lang.Long iid)
throws InstanceNotFoundException
getInstanceInfo in interface InstanceManagementInstanceNotFoundExceptionpublic ScopeInfoDocument getScopeInfo(java.lang.String siid)
getScopeInfo in interface InstanceManagement
public ScopeInfoDocument getScopeInfoWithActivity(java.lang.String siid,
boolean includeActivityInfo)
getScopeInfoWithActivity in interface InstanceManagement
public VariableInfoDocument getVariableInfo(java.lang.String scopeId,
java.lang.String varName)
throws ManagementException
getVariableInfo in interface InstanceManagementManagementException
public VariableInfoDocument setVariable(java.lang.String scopeId,
java.lang.String varName,
org.apache.xmlbeans.XmlObject value)
throws ManagementException
ManagementException
public InstanceInfoDocument fault(java.lang.Long iid,
javax.xml.namespace.QName faultname,
org.w3c.dom.Element faultData)
fault in interface InstanceManagementpublic InstanceInfoDocument resume(java.lang.Long iid)
resume in interface InstanceManagement
public InstanceInfoDocument suspend(java.lang.Long iid)
throws ManagementException
suspend in interface InstanceManagementManagementException
public InstanceInfoDocument terminate(java.lang.Long iid)
throws ManagementException
terminate in interface InstanceManagementManagementException
public InstanceInfoDocument recoverActivity(java.lang.Long iid,
java.lang.Long aid,
java.lang.String action)
recoverActivity in interface InstanceManagementpublic java.util.Collection<java.lang.Long> delete(java.lang.String filter)
delete in interface InstanceManagement
public java.util.List<java.lang.String> getEventTimeline(java.lang.String instanceFilter,
java.lang.String eventFilter)
getEventTimeline in interface InstanceManagement
public EventInfoListDocument listEvents(java.lang.String instanceFilter,
java.lang.String eventFilter,
int maxCount)
listEvents in interface InstanceManagement
public ActivityExtInfoListDocument getExtensibilityElements(javax.xml.namespace.QName pid,
java.lang.Integer[] aids)
getExtensibilityElements in interface ProcessManagement
protected final DebuggerSupport getDebugger(javax.xml.namespace.QName procid)
throws ManagementException
DebuggerSupport object for the given process identifier.
Debugger support is required for operations that resume execution in some
way or manipulate the breakpoints.
procid - process identifier
ManagementExceptionprotected final DebuggerSupport getDebugger(java.lang.Long iid)
DebuggerSupport object for the given instance identifier.
Debugger support is required for operations that resume execution in some
way or manipulate the breakpoints.
iid - instance identifier
ManagementException
protected <T> T dbexec(org.apache.ode.bpel.engine.BpelProcessDatabase.Callable<T> runnable)
throws ManagementException
ManagementExceptions.
runnable - action to run
ManagementException
protected <T> T dbexec(BpelDatabase.Callable<T> callable)
throws ManagementException
ManagementExceptions.
callable - action to run
ManagementExceptionpublic InstanceInfoListDocument queryInstances(java.lang.String query)
queryInstances in interface InstanceManagementInstanceManagement.queryInstances(java.lang.String)
public ReplayResponseDocument replay(Replay request)
throws ManagementException
ManagementException
public GetCommunicationResponseDocument getCommunication(GetCommunication request)
throws ManagementException
ManagementException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||