public int[] ResolveActCodes(HistoryMapParsingScenario scenario) { var actCodes = new List <int>(); var gatherer = new ActEntryGatherer(actCodes, _showAll, _workflowObject, scenario.Services, scenario.Services.GetInstance <ICurrentSDKUser>(), new HistoryPrivilegePolicyCache(new HistorySettings())); scenario.Map.Accept(gatherer); return(actCodes.ToArray()); }
public static int[] Create(Action <ActEntryGathererScenarioExpression> configure) { ActEntryGathererScenario actEntryScenario = null; var scenario = HistoryMapParsingScenario.Create(_ => { var actEntryExpression = new ActEntryGathererScenarioExpression(_); configure(actEntryExpression); actEntryScenario = actEntryExpression.As <IScenarioBuilder>().Create(); }); return(actEntryScenario.ResolveActCodes(scenario)); }