CheckinManagerCheckForConflicts Method |
Namespace: Aras.IOME
... 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); ...
... 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); ...