Esempio n. 1
0
 public static IQueryable <AlertEntity> MyActiveAlerts(this Entity e) =>
 As.Expression(() => e.Alerts().Where(a => a.Recipient == UserHolder.Current.ToLite() && a.CurrentState == AlertCurrentState.Alerted));
Esempio n. 2
0
 public static bool IsShared(this ProcessEntity p) =>
 As.Expression(() => !ProcessLogic.JustMyProcesses && p.MachineName == ProcessEntity.None);
Esempio n. 3
0
 public static IQueryable <PredictSimpleResultEntity> SimpleResults(this PredictorEntity e) =>
 As.Expression(() => Database.Query <PredictSimpleResultEntity>().Where(a => a.Predictor.Is(e)));
Esempio n. 4
0
 public string ToStringOriginal() => As.Expression(() => this.CleanName);
Esempio n. 5
0
 public override string ToString() => As.Expression(() => FullClassName);
Esempio n. 6
0
 public static IQueryable <WorkflowConnectionEntity> WorkflowConnections(this WorkflowPoolEntity e) =>
 As.Expression(() => Database.Query <WorkflowConnectionEntity>().Where(a => a.From.Lane.Pool == e && a.To.Lane.Pool == e));
Esempio n. 7
0
 public static IQueryable <PrintLineEntity> Lines(this PrintPackageEntity e) =>
 As.Expression(() => Database.Query <PrintLineEntity>().Where(a => a.Package.Is(e)));
Esempio n. 8
0
 public DateTime Subtract(DateTime date) => As.Expression(() => date.AddYears(-Years).AddMonths(-Months).AddDays(-Days));
Esempio n. 9
0
 public DateTime Add(DateTime date) => As.Expression(() => date.AddDays(Days).AddHours(Hours).AddMinutes(Minutes).AddSeconds(Seconds));
Esempio n. 10
0
 public static IQueryable <WordTemplateEntity> WordTemplates(this WordModelEntity e) =>
 As.Expression(() => Database.Query <WordTemplateEntity>().Where(a => a.Model == e));
Esempio n. 11
0
 public DateTime Add(DateTime date) => As.Expression(() => date.AddYears(Years).AddMonths(Months).AddDays(Days));
Esempio n. 12
0
 public override string ToString() => As.Expression(() => CompanyName);
Esempio n. 13
0
 public static Lite <IsolationEntity>?Isolation(this IEntity entity) =>
 As.Expression(() => ((Entity)entity).Mixin <IsolationMixin>().Isolation);
Esempio n. 14
0
 public static IQueryable <PredictorEpochProgressEntity> EpochProgresses(this PredictorEntity e) =>
 As.Expression(() => Database.Query <PredictorEpochProgressEntity>().Where(a => a.Predictor.Is(e)));
Esempio n. 15
0
 public static IQueryable <WorkflowConnectionEntity> WorkflowMessageConnections(this WorkflowEntity e) =>
 As.Expression(() => e.WorkflowConnections().Where(a => a.From.Lane.Pool != a.To.Lane.Pool));
Esempio n. 16
0
 public DateTime Subtract(DateTime date) => As.Expression(() => date.AddDays(-Days).AddHours(-Hours).AddMinutes(-Minutes).AddMinutes(-Seconds));
Esempio n. 17
0
 public static IQueryable <WorkflowLaneEntity> WorkflowLanes(this WorkflowPoolEntity e) =>
 As.Expression(() => Database.Query <WorkflowLaneEntity>().Where(a => a.Pool == e));
Esempio n. 18
0
 public static IQueryable <TerritoryEntity> Territories(this RegionEntity r) =>
 As.Expression(() => Database.Query <TerritoryEntity>().Where(a => a.Region.Is(r)));
Esempio n. 19
0
 public static IQueryable <WorkflowActivityEntity> WorkflowActivities(this WorkflowLaneEntity e) =>
 As.Expression(() => Database.Query <WorkflowActivityEntity>().Where(a => a.Lane == e));
Esempio n. 20
0
 public static WorkflowEntity Workflow(this CaseActivityEntity ca) =>
 As.Expression(() => ca.Case.Workflow);
Esempio n. 21
0
 public override string ToString() => As.Expression(() => this.CleanName);
Esempio n. 22
0
 public static IQueryable <WorkflowConnectionEntity> PreviousConnections(this IWorkflowNodeEntity e) =>
 As.Expression(() => Database.Query <WorkflowConnectionEntity>().Where(a => a.To == e));
Esempio n. 23
0
 public override string ToString() => As.Expression(() => Name ?? BpmnElementId);
Esempio n. 24
0
 public static bool HasExpired(this WorkflowEntity w) =>
 As.Expression(() => w.ExpirationDate.HasValue && w.ExpirationDate.Value < TimeZoneManager.Now);
Esempio n. 25
0
 public static bool IsMine(this ProcessEntity p) =>
 As.Expression(() => p.MachineName == Environment.MachineName && p.ApplicationName == Schema.Current.ApplicationName);
Esempio n. 26
0
 public static WorkflowEventEntity?WorkflowStartEvent(this WorkflowEntity e) =>
 As.Expression(() => e.WorkflowEvents().Where(we => we.Type == WorkflowEventType.Start).SingleOrDefault());
Esempio n. 27
0
 public override string ToString() => As.Expression(() => UniqueName);
Esempio n. 28
0
 public static IQueryable <WorkflowGatewayEntity> WorkflowGateways(this WorkflowEntity e) =>
 As.Expression(() => Database.Query <WorkflowGatewayEntity>().Where(a => a.Lane.Pool.Workflow == e));
Esempio n. 29
0
 public static IQueryable <PredictorCodificationEntity> Codifications(this PredictorEntity e) =>
 As.Expression(() => Database.Query <PredictorCodificationEntity>().Where(a => a.Predictor.Is(e)));
Esempio n. 30
0
 public static IQueryable <AlertEntity> Alerts(this Entity e) =>
 As.Expression(() => Database.Query <AlertEntity>().Where(a => a.Target.Is(e)));