Esempio n. 1
0
        public void AddAutoTrigger(AutoTrigger autoTrigger, IWorkflowInstanceEntity entity)
        {
            var workItem = WorkItem.Create(
                autoTrigger.Trigger,
                entity.Id,
                entity.Type,
                autoTrigger.DueDate
                );

            this.DbContext.WorkItems.Add(workItem);
        }
Esempio n. 2
0
        private void CreateWorkItemEntry(AutoTrigger autoTrigger, IEntityWorkflow entity)
        {
            var workItem = WorkItem.Create(
                autoTrigger.Trigger,
                entity.Id,
                entity.Type,
                autoTrigger.DueDate
                );

            this._context.WorkItems.Add(workItem);
        }
Esempio n. 3
0
    private IEnumerator BeatsElapsed(AutoTrigger at, float time)
    {
        yield return(new WaitForSeconds(time));

        at.EndBeatsElapsed();
    }
Esempio n. 4
0
 public void StartBeatsElapsed(AutoTrigger at, float time)
 {
     StartCoroutine(BeatsElapsed(at, time));
 }
Esempio n. 5
0
 // These need to be outside of AutoTrigger because it isn't a MonoBehaviour
 public void StartTimeElapsed(AutoTrigger at, float time)
 {
     StartCoroutine(TimeElapsed(at, time));
 }
Esempio n. 6
0
	private IEnumerator BeatsElapsed (AutoTrigger at, float time) {
		yield return new WaitForSeconds (time);
		at.EndBeatsElapsed ();
	}
Esempio n. 7
0
	public void StartBeatsElapsed (AutoTrigger at, float time) {
		StartCoroutine (BeatsElapsed (at, time));
	}
Esempio n. 8
0
	// These need to be outside of AutoTrigger because it isn't a MonoBehaviour
	public void StartTimeElapsed (AutoTrigger at, float time) {
		StartCoroutine (TimeElapsed (at, time));
	}