Exemple #1
0
 /// <summary>
 ///     Executes the specified profile key.
 /// </summary>
 /// <param name="profileKey">The profile key.</param>
 /// <param name="routeKey">The route key.</param>
 /// <param name="data">The data.</param>
 /// <returns>ReturnObject&lt;dynamic&gt;.</returns>
 public ReturnObject <dynamic> Execute(string profileKey, string routeKey, ParamStringObject data = null)
 {
     _agiliteConfig.Function = Constants.Functions.Connectors.Execute;
     _agiliteConfig.Headers.Add(Constants.Header.ProfileKey, profileKey);
     _agiliteConfig.Headers.Add(Constants.Header.RouteKey, routeKey);
     return(Base.SetReturnObject <dynamic>(AgiliteRequest.ExecuteCrudRequest(_agiliteConfig, Constants.Methods.Post, data)));
 }
Exemple #2
0
 /// <summary>
 ///     Executes the object.
 /// </summary>
 /// <param name="processKey">The process key.</param>
 /// <param name="bpmRecordId">The BPM record identifier.</param>
 /// <param name="optionSelected">The option selected.</param>
 /// <param name="currentUser">The current user.</param>
 /// <param name="comments">The comments.</param>
 /// <param name="data">The data.</param>
 /// <returns>ReturnObject&lt;BpmModel.ExecuteResult&gt;.</returns>
 public ReturnObject <BpmModel.ExecuteResult> ExecuteObject(string processKey = "", string bpmRecordId = "", string optionSelected = "", string currentUser = "", string comments = "", ParamStringObject data = null)
 {
     return(Base.SetReturnObject <BpmModel.ExecuteResult>(Execute(processKey, bpmRecordId, optionSelected, currentUser, comments, data)));
 }
Exemple #3
0
 /// <summary>
 ///     Executes the dynamic.
 /// </summary>
 /// <param name="processKey">The process key.</param>
 /// <param name="bpmRecordId">The BPM record identifier.</param>
 /// <param name="optionSelected">The option selected.</param>
 /// <param name="currentUser">The current user.</param>
 /// <param name="comments">The comments.</param>
 /// <param name="data">The data.</param>
 /// <returns>ReturnObject&lt;dynamic&gt;.</returns>
 public ReturnObject <dynamic> ExecuteDynamic(string processKey = "", string bpmRecordId = "", string optionSelected = "", string currentUser = "", string comments = "", ParamStringObject data = null)
 {
     return(Base.SetReturnObject <dynamic>(Execute(processKey, bpmRecordId, optionSelected, currentUser, comments, data)));
 }
Exemple #4
0
        /// <summary>
        ///     Executes the specified process key.
        /// </summary>
        /// <param name="processKey">The process key.</param>
        /// <param name="bpmRecordId">The BPM record identifier.</param>
        /// <param name="optionSelected">The option selected.</param>
        /// <param name="currentUser">The current user.</param>
        /// <param name="comments">The comments.</param>
        /// <param name="data">The data.</param>
        /// <returns>AgiliteResponse.</returns>
        private AgiliteResponse Execute(string processKey = "", string bpmRecordId = "", string optionSelected = "", string currentUser = "", string comments = "", ParamStringObject data = null)
        {
            _agiliteConfig.Function = Constants.Functions.Bpm.Execute;
            _agiliteConfig.Headers.Add(Constants.Header.ProcessKey, processKey);
            _agiliteConfig.Headers.Add(Constants.Header.BpmRecordId, bpmRecordId);
            _agiliteConfig.Headers.Add(Constants.Header.OptionSelected, optionSelected);
            _agiliteConfig.Headers.Add(Constants.Header.CurrentUser, currentUser);
            _agiliteConfig.Headers.Add(Constants.Header.Comments, comments);

            return(AgiliteRequest.ExecuteCrudRequest(_agiliteConfig, Constants.Methods.Post, data));
        }