|
Oracle Fusion Middleware Java API Reference for Oracle BPM Suite 11g Release 1 (11.1.1.7.0) E25378-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMigrateMultipleInstancesRequest
The request to migrate multiple instances.
The following example creates a request to migrate all instances, including update of Data Object dataObject1 and Alter Flow from the removed Activity activity0, to the newly added activity activity2. The instances that failed to migrate will be suspended in order to resume the component successfully:
MigrateMultipleInstancesRequest request = new MigrateMultipleInstancesRequest(); request.setProcessDN(PROCESS_DN); request.setApplyToAllInstances(true); request.setMigrateInstance(true); request.setResumeComponent(true); request.setLeaveNonMigratedInstancesSuspended(true); final SetflowChangeItemSet = new HashSet (); final ActivityInfo source = ActivityInfo.create("activity0", "Activity 0"); final ActivityInfo target = ActivityInfo.create("activity2", "Activity 2"); flowChangeItemSet.add(FlowChangeItem.create(source, target)); request.setRequestedFlowChanges(flowChangeItemSet); final Set variableItemSet = new HashSet (); variableItemSet.add(VariableItem.create("dataObject1", "Modified by me")); request.setRequestedVariableValueChanges(variableItemSet);
Method Summary | |
---|---|
int |
getPageSize()
Gets the page size to batch the request. |
boolean |
isApplyToAllInstances()
Gets whether the request applies to all running instances. |
void |
setApplyToAllInstances(boolean applyToAllInstances)
Sets whether the request applies to all running instances. |
void |
setPageSize(int size)
Sets the page size to batch the request. |
Methods inherited from interface oracle.bpm.services.instancemanagement.model.IGrabMultipleInstancesRequest |
---|
getProcessDN, getProcessInstances, isResumeInstanceIfRequired, setProcessDN, setProcessInstances, setResumeInstanceIfRequired |
Methods inherited from interface oracle.bpm.services.instancemanagement.model.IBaseMigrateInstanceRequest |
---|
isLeaveNonMigratedInstancesSuspended, isMigrateInstance, isMigrateInstancesInResume, isResumeComponent, setLeaveNonMigratedInstancesSuspended, setMigrateInstance, setMigrateInstancesInResume, setResumeComponent |
Methods inherited from interface oracle.bpm.services.instancemanagement.model.IBaseGrabRequest |
---|
getComments, getRequestedCorrelationKeyValueChanges, getRequestedFlowChanges, getRequestedInstanceAttributeValueChanges, getRequestedVariableValueChanges, getRequester, isValidateValue, setComments, setRequestedCorrelationKeyValueChanges, setRequestedFlowChanges, setRequestedInstanceAttributeValueChanges, setRequestedVariableValueChanges, setRequester, setValidateValue |
Method Detail |
---|
void setPageSize(int size)
size
- the batch sizeint getPageSize()
boolean isApplyToAllInstances()
IGrabMultipleInstancesRequest
isApplyToAllInstances
in interface IGrabMultipleInstancesRequest
void setApplyToAllInstances(boolean applyToAllInstances)
IGrabMultipleInstancesRequest
setApplyToAllInstances
in interface IGrabMultipleInstancesRequest
applyToAllInstances
- true if the request applies to all instances, false otherwise
|
Oracle Fusion Middleware Java API Reference for Oracle BPM Suite 11g Release 1 (11.1.1.7.0) E25378-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |