Пример #1
0
        protected virtual void LinkActivityToProcess(Activity activity, EmailTemplateUserTask userTask)
        {
            Guid   resultColumntUId = activity.Schema.Columns.GetByName("Status").UId;
            string conditionData    =
                ProcessUserTaskUtilities.GetConditionData(UserConnection, resultColumntUId, activity);

            UserConnection.IProcessEngine.AddProcessListener(activity, userTask.UId, conditionData);
            UserConnection.IProcessEngine.LinkProcessToEntity(userTask.Owner, activity.Schema.UId, activity.Id);
        }
 /// <summary>
 /// Returns serialized filter that matches final status column values.
 /// </summary>
 /// <param name="resultColumnUId">The status column identifier.</param>
 /// <param name="activity">The activity.</param>
 public virtual string GetConditionData(Guid resultColumnUId, Entity activity)
 {
     return(ProcessUserTaskUtilities.GetConditionData(UserConnection, resultColumnUId, activity));
 }