org.eclipse.stardust.engine.api.runtime
Class DataCopyOptions

java.lang.Object
  extended by org.eclipse.stardust.engine.api.runtime.DataCopyOptions
All Implemented Interfaces:
java.io.Serializable

public class DataCopyOptions
extends java.lang.Object
implements java.io.Serializable

Options class that specifies how the data should be copied between two process instances.

Version:
$Revision: $
Author:
Florin.Herinean
See Also:
Serialized Form

Field Summary
static DataCopyOptions DEFAULT
          The default data copy options used when no options are specified.
 
Constructor Summary
DataCopyOptions(boolean copyAllData, java.util.Map<java.lang.String,java.lang.String> dataTranslationTable, java.util.Map<java.lang.String,? extends java.io.Serializable> replacementTable, boolean useHeuristics)
          Creates a new DataCopyOptions object with the specified parameters.
 
Method Summary
 boolean copyAllData()
          Checks if the engine should attempt to copy all compatible data.
 java.util.Map<java.lang.String,java.lang.String> getDataTranslationTable()
          Gets the Map that specifies from where the data values should be retrieved.
 java.util.Map<java.lang.String,? extends java.io.Serializable> getReplacementTable()
          Gets the Map with concrete data values.
 boolean useHeuristics()
          Checks if heuristics should be applied to determine which data should be copied.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final DataCopyOptions DEFAULT
The default data copy options used when no options are specified.

Constructor Detail

DataCopyOptions

public DataCopyOptions(boolean copyAllData,
                       java.util.Map<java.lang.String,java.lang.String> dataTranslationTable,
                       java.util.Map<java.lang.String,? extends java.io.Serializable> replacementTable,
                       boolean useHeuristics)
Creates a new DataCopyOptions object with the specified parameters.

Parameters:
copyAllData - if true, it will attempt to copy all data from the source process instance to the target process instance.
dataTranslationTable - a Map that indicates that the values for the specified data should be taken from another data object. The keys are the IDs of the target data and the values are the IDs of the source data objects.
replacementTable - a Map that specifies concrete values for target data. The keys are the IDs of the target data.
useHeuristics - if true then the engine will attempt to auto determine which data must be copied by investigating the data mappings and data paths of the target process instance.
Method Detail

copyAllData

public boolean copyAllData()
Checks if the engine should attempt to copy all compatible data.


getDataTranslationTable

public java.util.Map<java.lang.String,java.lang.String> getDataTranslationTable()
Gets the Map that specifies from where the data values should be retrieved.

Returns:
a Map with data IDs. The keys are representing the IDs of the data in the target process instance while the values are representing the IDs of the data in the source process instance.

getReplacementTable

public java.util.Map<java.lang.String,? extends java.io.Serializable> getReplacementTable()
Gets the Map with concrete data values.

Returns:
a Map with ID/value pairs.

useHeuristics

public boolean useHeuristics()
Checks if heuristics should be applied to determine which data should be copied.



Copyright © 2013 SunGard CSA LLC. All Rights Reserved.