Hi;
We run the process like that
ProcessSchema schema = userConnection.ProcessSchemaManager.GetInstanceByName("UsrSendExtraPaymentCancellationToNav");
bool canUseFlowEngine = ProcessSchemaManager.GetCanUseFlowEngine(userConnection, schema);
if (canUseFlowEngine)
{
var flowEngine = new FlowEngine(userConnection);
var param = new Dictionary();
param["Quotation"] = quotationId.ToString();
flowEngine.RunProcess(schema, param);
}
else
{
Process process = schema.CreateProcess(userConnection);
process.SetPropertyValue("Quotation", quotationId);
process.Execute(userConnection);
}
and from time to time error occurs:
Terrasoft.Common.ItemNotFoundException: Collection item with unique identifier "24240d57-78ed-41ad-8877-22acad56de30" not found. at Terrasoft.Core.Process.Process.GetFlowElementBySchemaElementUId(Guid schemaElementUId) at Terrasoft.Core.Process.TaskService.WriteErrorToProcessLog(TaskServiceQueueItem queueItem, ProcessComponentSet process) at Terrasoft.Core.Process.TaskService.ReceiveMessage(TaskServiceQueueItem taskServiceQueueItem) at Terrasoft.Core.Process.QueueEmulator.b__8_0(TaskServiceQueueItem message) at Terrasoft.Core.Process.FlowVisitor.Dequeue() at Terrasoft.Core.Process.FlowService.StartFlow(Guid processUId, FlowSchema flowSchema) at Terrasoft.Core.Process.FlowService.StartFlow(TaskServiceQueueItem message) at Terrasoft.Core.Process.FlowService.ReceiveMessage(TaskServiceQueueItem message) at Terrasoft.Core.Process.QueueEmulator.b__9_0(TaskServiceQueueItem message) at Terrasoft.Core.Process.FlowEngine.EnqueueProcess(ProcessComponentSet processComponentSet) at Terrasoft.Core.Process.FlowEngine.RunProcess(BaseProcessSchema schema, Dictionary`2 nameValueMap) at Terrasoft.Configuration.ClaimQuotationDAO.CancelExtraPaymentNAV(Guid quotationId) at Terrasoft.Configuration.ClaimQuotationDAO.ChangeStatusAndStatusReasonForAllClaimQuotation(String claimNumber, Guid statusId, Guid statusReasonId) at Terrasoft.Configuration.QuotationService.ChangeQuotationStatus(String claimNumber, Guid statusId, Guid statusReasonId) at Terrasoft.Core.Process.UsrCloseClaimLiquidationAfterReturnBenefitMethodsWrapper.UsrRejectedAllClaimQuotationsExecute(ProcessExecutingContext context) at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
Where identifier id id of startEvent
any idea?
Regards
Tomek