Ejemplo n.º 1
0
            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());
            }
Ejemplo n.º 2
0
            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));
            }