public void SetWorkflowSteps(Server.Application.WorkflowStep[] workflowSteps)
        {
            WorkflowStepsRepeater.DataSource = workflowSteps;

            WorkflowStepsRepeater.DataBind();

            return;
        }
Example #2
0
        private void InitializeWorkflowSteps()
        {
            if (workQueueItem == null)
            {
                return;
            }

            //System.Data.DataTable stepTable = new System.Data.DataTable ();

            //stepTable.Columns.Add ("StepDate");

            //stepTable.Columns.Add ("Name");

            //stepTable.Columns.Add ("Description");

            //stepTable.Columns.Add ("UserName");


            //List<Mercury.Server.Application.WorkflowStep> workflowSteps = MercuryApplication.WorkQueueItemWorkflowStepsGet (workQueueItem.Id, false);

            //if (workflowSteps != null) {

            //    foreach (Mercury.Server.Application.WorkflowStep currentStep in workflowSteps) {

            //        stepTable.Rows.Add (

            //            currentStep.StepDate.ToString (),

            //            currentStep.Name,

            //            currentStep.Description,

            //            currentStep.UserDisplayName

            //        );

            //    }

            //}

            //if (stepTable.Rows.Count == 0) {

            //    stepTable.Rows.Add ("** No Steps", String.Empty, String.Empty, String.Empty);

            //}


            // WorkflowStepsRepeater.DataSource = stepTable;

            WorkflowStepsRepeater.DataSource = MercuryApplication.WorkQueueItemWorkflowStepsGet(workQueueItem.Id, false);

            WorkflowStepsRepeater.DataBind();

            return;
        }
        private void InitializeSteps()
        {
            #region Workflow Steps

            WorkflowStepsRepeater.DataSource = WorkflowPage.WorkflowResponse.WorkflowSteps;

            WorkflowStepsRepeater.DataBind();

            #endregion

            return;
        }