// If your activity returns a value, derive from CodeActivity<TResult> // and return the value from the Execute method. protected override void Execute(CodeActivityContext context) { // Obtain the runtime value of the Text input argument string quoteId = context.GetValue(this.QuoteId); string workflowId = context.WorkflowInstanceId.ToString(); if (quoteId != null && workflowId != null) { GPControlBusinessLogic.UpdateQuoteWaitApprovalWorkflowId(quoteId, workflowId); } }
// If your activity returns a value, derive from CodeActivity<TResult> // and return the value from the Execute method. protected override void Execute(CodeActivityContext context) { // Obtain the runtime value of the Text input argument string quoteId = context.GetValue(this.QuoteId); double levelNum = context.GetValue(this.LevelNum); string workflowId = context.WorkflowInstanceId.ToString(); string url = context.GetValue(this.Url); string approver = context.GetValue(this.Approver); string approverType = context.GetValue(this.ApproverType); bool viewGP = context.GetValue(this.ViewGp); GPControlBusinessLogic.CreateQuoteApprover(quoteId, levelNum, workflowId, url, approver, approverType, viewGP, null, null); }
// Define an activity input argument of type string // If your activity returns a value, derive from CodeActivity<TResult> // and return the value from the Execute method. protected override void Execute(CodeActivityContext context) { // Obtain the runtime value of the Text input argument var waitingApprovals = context.GetExtension <List <WorkFlowApproval> >(); if (waitingApprovals != null) { foreach (var approval in waitingApprovals) { GPControlBusinessLogic.CreateQuoteApprover( approval.TypeID, (double)approval.LevelNum, context.WorkflowInstanceId.ToString(), approval.Url, approval.Approver, approval.ApproverType, Convert.ToBoolean(approval.ViewGP), approval.Mailbody, approval.FinalMailBody); } } }
// If your activity returns a value, derive from CodeActivity<TResult> // and return the value from the Execute method. protected override void Execute(CodeActivityContext context) { var workflowId = context.WorkflowInstanceId.ToString(); GPControlBusinessLogic.AssignWorkFlowIdToApprovers(QuoteID.Get(context), workflowId); }