Exemplo n.º 1
0
 protected WorkflowInstanceRecord(WorkflowInstanceRecord record)
     : base(record)
 {
     this.ActivityDefinitionId = record.ActivityDefinitionId;
     this.State = record.State;
     this.WorkflowDefinitionIdentity = record.WorkflowDefinitionIdentity;
 }
Exemplo n.º 2
0
        private WorkflowInstanceQuery Match(WorkflowInstanceRecord workflowRecord)
        {
            WorkflowInstanceQuery trackingQuery = null;

            if (_workflowEventSubscriptions != null)
            {
                if (!_workflowEventSubscriptions.TryGetValue(workflowRecord.State, out trackingQuery))
                {
                    _workflowEventSubscriptions.TryGetValue("*", out trackingQuery);
                }
            }
            return(trackingQuery);
        }