public StageInstanceBuilder AddHumanTask(string id, string name, string performerRef, Action <HumanTaskInstanceBuilder> callback = null)
        {
            var stepBuilder = new HumanTaskInstanceBuilder(CasePlanInstanceId, id, name)
            {
                PerformerRef = performerRef
            };

            if (callback != null)
            {
                callback(stepBuilder);
            }

            Builders.Add(stepBuilder);
            return(this);
        }
        public StageInstanceBuilder AddHumanTask(string id, string name, string performerRef, Action <HumanTaskInstanceBuilder> callback = null)
        {
            var stepBuilder = new HumanTaskInstanceBuilder(CasePlanInstanceId, id, name)
            {
                PerformerRef    = performerRef,
                Implementation  = CMMNConstants.UserTaskImplementations.WSHUMANTASK,
                InputParameters = new Dictionary <string, string>()
            };

            if (callback != null)
            {
                callback(stepBuilder);
            }

            Builders.Add(stepBuilder);
            return(this);
        }