コード例 #1
0
 public ProcessInstanceStore(BpmDbContext context, IUser user, ITenant tenant)
 {
     Context               = context;
     TenantId              = tenant == null ? null : tenant.TenantId;
     User                  = user;
     processInstanceStore  = new EntityStore <ProcessInstanceEntity>(context);
     processFlowStore      = new EntityStore <ProcessFlowEntity>(context);
     processTaskStore      = new EntityStore <ProcessTaskEntity>(context);
     processEntity         = context.Set <ProcessDefinitionEntity>();
     flowNodeEntity        = context.Set <FlowNodeEntity>();
     sequenceEntity        = context.Set <SequenceFlowEntity>();
     processVariableEntity = context.Set <ProcessVariableEntity>();
 }
コード例 #2
0
 public ProcessTaskStore(BpmDbContext context, IUser user, ITenant tenant)
 {
     Context               = context;
     TenantId              = tenant == null ? null : tenant.TenantId;
     User                  = user;
     TaskStore             = new EntityStore <ProcessTaskEntity>(context);
     ProcessVariableEntity = context.Set <ProcessVariableEntity>();
 }