Click or drag to resize

CheckinManagerCheckForConflicts Method

Checks configuration in checkin manager for conflicts in array

Namespace:  Aras.IOME
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public ArrayList CheckForConflicts(
	ArrayList rulesArray
)

Parameters

rulesArray
Type: System.CollectionsArrayList
Array of IConflictDetectionRule for which check operation should be performed.

Return Value

Type: ArrayList
ArrayList of ConflictDetectionResult
Examples
C#
...
HttpServerConnection connection = CreateHttpServerConnection("innovatorServerUrl");
Innovator innovator = IomFactory.CreateInnovator(connection);
Item itm = innovator.newItem();
itm.loadAML("<AML/>");
CheckinManager checkin = factory.CreateCheckinManager(itm);
ConflictDetectionRuleFactory conflictFactory = checkin.GetConflictDetectionRuleFactory();
ArrayList rules = new ArrayList();
rules.Add(conflictFactory.FileNotAccessible);
ArrayList result = checkin.CheckForConflicts(rules);
...
C++
...
IOM::IHttpServerConnectionComIncomingPtr connection = iomFactory->CreateHttpServerConnection(innovatorServerUrl, database, userName, password);
connection->Login();
IOM::IInnovatorComIncomingPtr innovator = iomFactory->CreateInnovator(connection);
IOM::IItemComIncomingPtr configuration = innovator->newItem("CAD", "add");
configuration->loadAML(aml);
IOM::ICheckinManagerComIncomingPtr checkinManager = iomFactory->CreateCheckinManager(configuration);
IOM::IConflictDetectionRuleFactoryComIncomingPtr ruleFactory = checkinManager->GetConflictDetectionRuleFactory();
IOM::ILocalConflictDetectionRuleComIncomingPtr customRule = ruleFactory->CreateCustomConflictDetectionRule(innovator->getConnection(), "test");
mscorlib::_ArrayListPtr myAL = iomFactory->CreateArrayList();
mscorlib::IListPtr myList = myAL;
VARIANT v;
v.vt = VT_DISPATCH;
v.pdispVal = customRule;
myList->Add(v);
mscorlib::_ArrayListPtr result = checkinManager->CheckForConflicts(myAL);
...
See Also