Example #1
0
 public virtual IList <string> resolveCollection(IDelegateExecution delegateExecution)
 {
     DelegateEvent.RecordEventFor(delegateExecution);
     return(new List <string> {
         "1"
     });
 }
Example #2
0
        public static DelegateEvent FromExecution(IDelegateExecution delegateExecution)
        {
            var @event = new DelegateEvent();

            @event.ActivityInstanceId  = delegateExecution.ActivityInstanceId;
            @event.BusinessKey         = delegateExecution.BusinessKey;
            @event.currentActivityId   = delegateExecution.CurrentActivityId;
            @event.currentActivityName = delegateExecution.CurrentActivityName;
            @event.currentTransitionId = delegateExecution.CurrentTransitionId;
            @event.EventName           = delegateExecution.EventName;
            @event.Id = delegateExecution.Id;
            @event.parentActivityInstanceId = delegateExecution.ParentActivityInstanceId;
            @event.parentId            = delegateExecution.ParentId;
            @event.ProcessBusinessKey  = delegateExecution.ProcessBusinessKey;
            @event.ProcessDefinitionId = delegateExecution.ProcessDefinitionId;
            @event.ProcessInstanceId   = delegateExecution.ProcessInstanceId;
            @event.TenantId            = delegateExecution.TenantId;
            @event.VariableScopeKey    = delegateExecution.VariableScopeKey;

            return(@event);
        }
Example #3
0
 public void Notify(IBaseDelegateExecution execution)
 {
     DelegateEvent.RecordEventFor((IDelegateExecution)execution);
 }