Verifying and Dropping Partitions

10-4 Oracle Fusion Middleware Administrators Guide for Oracle SOA Suite and Oracle BPM Suite

10.3.1 Retrieving the State of a Composite

You can retrieve the state of a composite with the Facade API. ■ Mode: active | retired This setting decides whether new instances can be created active or old ones are allowed to finish without new ones being allowed to be created retired. ■ State: on | off This setting is the composite state and overrides the active or retired composite modes in either, allowing call access invokecallback to the composite revision on or not allowing call access off. Use oracle.soa.management.facade.LocatorgetCompositecompositeDN to get a reference to a composite of interest. From the composite reference, you can query the mode and state using the following methods: ■ String getMode ■ String getState

10.3.2 Finding Composite and Component Instances

You can find composite and component instances with the Facade API. Use the Locator interface to find a Composite locator.lookupCompositecompositeDN. Note that if the composite has not yet been invoked, there are no instances. You can then find its instances and get related information for example, the instance ID, which components were executed, and so on. Composite composite = locator.lookupCompositedefaultOrderBookingComposite1.0; The context is already the composite, so there is no need to set the DN as a filter criterion CompositeInstanceFilter filter = new CompositeInstanceFilter; filter.setMinCreationDatenew java.util.DateSystem.currentTimeMillis - 20000; Get composite instances by filter List compositeInstances = composite.getInstancesfilter; for each of the returned composite instances.. for CompositeInstance instance : compositeInstances { long instanceId = instance.getId; Date created = instance.getCreationDate; String state = instance.getState; Configure a component instance filter ComponentInstanceFilter cInstanceFilter = new ComponentInstanceFilter ; Get the child component instances List componentInstances = instance.getChildComponentInstancescInstanceFilter; for ComponentInstance compInstance : componentInstances { String compName = compInstance.getComponentName; long compInstanceId = compInstance.getId;