|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl
org.apache.ode.bpel.engine.BpelManagementFacadeImpl
public class BpelManagementFacadeImpl
Implementation of the instance/process management interaction. This class implements the methods necessary to support process debugging. It also implements all the methods in the newer Process/Instance Management interface (pmapi).
Field Summary |
---|
Fields inherited from class org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl |
---|
__log, __msgs, __psc, _calendar, _db, _server, _store |
Constructor Summary | |
---|---|
BpelManagementFacadeImpl(BpelServer server,
ProcessStore store)
|
Method Summary | |
---|---|
ActivityBreakpoint |
addActivityBreakpoint(java.lang.Long iid,
java.lang.String activity)
Adds an activity breakpoint. |
ActivityBreakpoint |
addGlobalActivityBreakpoint(java.lang.String procid,
java.lang.String activity)
Adds an global activity breakpoint. |
VariableModificationBreakpoint |
addVariableModificationBreakpoint(java.lang.Long iid,
java.lang.String scopename,
java.lang.String variable)
Adds a variable modification breakpoint. |
Breakpoint[] |
getBreakpoints(java.lang.Long iid)
Returns the breakpoints registered with the process instance. |
javax.xml.namespace.QName |
getCompletedFault(java.lang.Long iid)
Gets the fault associated with a completed process instance. |
CorrelationKey |
getCorrelation(java.lang.Long iid,
java.lang.Long scopeId,
java.lang.String correlationSet)
Gets a correlation. |
int |
getEventCount(java.lang.Long iid)
Get the current number of events for an instance. |
EventInfoListDocument |
getEvents(java.lang.Long iid,
int startIdx,
int count)
Get exeuction event history for a process instance. |
Breakpoint[] |
getGlobalBreakpoints(java.lang.String procId)
Returns the global breakpoints registered with the process instance. |
OProcess |
getProcessDef(java.lang.String procid)
Return the process model. |
java.lang.Long |
getProcessInstance(java.lang.String pid,
CorrelationKey ckey)
Get the process instance with the given correlation correlationKey. |
java.lang.Long[] |
getScopeInstancesForScope(java.lang.Long iid,
java.lang.String scopeName)
Returns all the scope instance ids for a given instance and scope name. |
java.util.Date |
getStartTime(java.lang.Long iid)
Get the time that a process instance was started (created). |
short |
getState(java.lang.Long iid)
Get the state of a process instance. |
java.lang.String |
getVariable(java.lang.Long iid,
java.lang.Long scopeId,
java.lang.String varName)
Gets variable data. |
void |
removeBreakpoint(java.lang.Long iid,
Breakpoint sp)
Removes a breakpoint |
void |
removeGlobalBreakpoint(java.lang.String procid,
Breakpoint sp)
Removes a global breakpoint |
void |
setCorrelation(java.lang.Long iid,
java.lang.Long scopeId,
java.lang.String correlationSet,
javax.xml.namespace.QName[] propertyNames,
CorrelationKey values)
Sets a correlation. |
void |
setVariable(java.lang.Long pid,
java.lang.Long scopeId,
java.lang.String varName,
java.lang.String data)
Sets a variable |
void |
step(java.lang.Long iid)
Single step through a process instance. |
Methods inherited from class org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl |
---|
activate, dbexec, dbexec, delete, fault, getDebugger, getDebugger, getEventTimeline, getExtensibilityElements, getInstanceInfo, getProcessInfo, getProcessInfoCustom, getScopeInfo, getScopeInfoWithActivity, getVariableInfo, listAllInstances, listAllInstancesWithLimit, listAllProcesses, listEvents, listInstances, listInstancesSummary, listProcesses, listProcessesCustom, queryInstances, recoverActivity, resume, setPackageRetired, setProcessProperty, setProcessPropertyNode, setRetired, suspend, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ode.bpel.pmapi.ProcessManagement |
---|
activate, getExtensibilityElements, getProcessInfo, getProcessInfoCustom, listAllProcesses, listProcesses, listProcessesCustom, setPackageRetired, setProcessProperty, setProcessPropertyNode, setRetired |
Methods inherited from interface org.apache.ode.bpel.pmapi.InstanceManagement |
---|
delete, fault, getEventTimeline, getInstanceInfo, getScopeInfo, getScopeInfoWithActivity, getVariableInfo, listAllInstances, listAllInstancesWithLimit, listEvents, listInstances, listInstancesSummary, queryInstances, recoverActivity, resume, suspend, terminate |
Constructor Detail |
---|
public BpelManagementFacadeImpl(BpelServer server, ProcessStore store)
Method Detail |
---|
public short getState(java.lang.Long iid) throws ManagementException
BpelManagementFacade
getState
in interface BpelManagementFacade
iid
- process instance identifier
ManagementException
public java.lang.Long getProcessInstance(java.lang.String pid, CorrelationKey ckey) throws ManagementException
BpelManagementFacade
getProcessInstance
in interface BpelManagementFacade
pid
- the process identifierckey
- the correlation correlationKey to match
ManagementException
public EventInfoListDocument getEvents(java.lang.Long iid, int startIdx, int count) throws ManagementException
BpelManagementFacade
getEvents
in interface BpelManagementFacade
iid
- process instance identifierstartIdx
- first evetcount
- maximum number of events to get
ProcessInstanceEvent
s.
ManagementException
public int getEventCount(java.lang.Long iid) throws ManagementException
BpelManagementFacade
getEventCount
in interface BpelManagementFacade
iid
- process instance identifier
ManagementException
public java.lang.String getVariable(java.lang.Long iid, java.lang.Long scopeId, java.lang.String varName) throws ManagementException
BpelManagementFacade
getVariable
in interface BpelManagementFacade
ManagementException
public java.lang.Long[] getScopeInstancesForScope(java.lang.Long iid, java.lang.String scopeName) throws ManagementException
BpelManagementFacade
getScopeInstancesForScope
in interface BpelManagementFacade
ManagementException
public void setVariable(java.lang.Long pid, java.lang.Long scopeId, java.lang.String varName, java.lang.String data)
BpelManagementFacade
setVariable
in interface BpelManagementFacade
public void setCorrelation(java.lang.Long iid, java.lang.Long scopeId, java.lang.String correlationSet, javax.xml.namespace.QName[] propertyNames, CorrelationKey values) throws ManagementException
BpelManagementFacade
setCorrelation
in interface BpelManagementFacade
correlationSet
- name of the correlation setpropertyNames
- properties to set on correlation setvalues
- property values as a CorrelationKey object
ManagementException
public CorrelationKey getCorrelation(java.lang.Long iid, java.lang.Long scopeId, java.lang.String correlationSet) throws ManagementException
BpelManagementFacade
getCorrelation
in interface BpelManagementFacade
ManagementException
public OProcess getProcessDef(java.lang.String procid) throws ManagementException
BpelManagementFacade
getProcessDef
in interface BpelManagementFacade
procid
-
ManagementException
BpelManagementFacade.getProcessDef(String)
public void step(java.lang.Long iid) throws ManagementException
BpelManagementFacade
step
in interface BpelManagementFacade
ManagementException
public javax.xml.namespace.QName getCompletedFault(java.lang.Long iid) throws ManagementException
BpelManagementFacade
getCompletedFault
in interface BpelManagementFacade
ManagementException
public Breakpoint[] getGlobalBreakpoints(java.lang.String procId) throws ManagementException
BpelManagementFacade
getGlobalBreakpoints
in interface BpelManagementFacade
Breakpoint
s.
ManagementException
public Breakpoint[] getBreakpoints(java.lang.Long iid) throws ManagementException
BpelManagementFacade
getBreakpoints
in interface BpelManagementFacade
iid
- process instance identifier
Breakpoint
s.
ManagementException
public void removeGlobalBreakpoint(java.lang.String procid, Breakpoint sp) throws ManagementException
BpelManagementFacade
removeGlobalBreakpoint
in interface BpelManagementFacade
ManagementException
public void removeBreakpoint(java.lang.Long iid, Breakpoint sp) throws ManagementException
BpelManagementFacade
removeBreakpoint
in interface BpelManagementFacade
iid
- a iid of null removes a global breakpoint.
ManagementException
public ActivityBreakpoint addGlobalActivityBreakpoint(java.lang.String procid, java.lang.String activity) throws ManagementException
BpelManagementFacade
addGlobalActivityBreakpoint
in interface BpelManagementFacade
ManagementException
public ActivityBreakpoint addActivityBreakpoint(java.lang.Long iid, java.lang.String activity) throws ManagementException
BpelManagementFacade
addActivityBreakpoint
in interface BpelManagementFacade
iid
- a iid of null adds a global activity breakpoint.
ManagementException
public VariableModificationBreakpoint addVariableModificationBreakpoint(java.lang.Long iid, java.lang.String scopename, java.lang.String variable)
BpelManagementFacade
addVariableModificationBreakpoint
in interface BpelManagementFacade
public java.util.Date getStartTime(java.lang.Long iid) throws ManagementException
BpelManagementFacade
getStartTime
in interface BpelManagementFacade
iid
- process instance identifier
ManagementException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |