Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.7.0)
E25378-07

oracle.bpm.services.instancemanagement.model
Interface IMigrateMultipleInstancesRequest

All Superinterfaces:
IBaseGrabRequest, IBaseMigrateInstanceRequest, IGrabMultipleInstancesRequest, java.io.Serializable

public interface IMigrateMultipleInstancesRequest
extends IGrabMultipleInstancesRequest, IBaseMigrateInstanceRequest

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 Set flowChangeItemSet = 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

setPageSize

void setPageSize(int size)
Sets the page size to batch the request.

Parameters:
size - the batch size

getPageSize

int getPageSize()
Gets the page size to batch the request.

Returns:
the batch size

isApplyToAllInstances

boolean isApplyToAllInstances()
Description copied from interface: IGrabMultipleInstancesRequest
Gets whether the request applies to all running instances.

Specified by:
isApplyToAllInstances in interface IGrabMultipleInstancesRequest
Returns:
true if the request applies to all instances, false otherwise

setApplyToAllInstances

void setApplyToAllInstances(boolean applyToAllInstances)
Description copied from interface: IGrabMultipleInstancesRequest
Sets whether the request applies to all running instances.

Specified by:
setApplyToAllInstances in interface IGrabMultipleInstancesRequest
Parameters:
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

Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved.