Skelta Workflow.NET 2004 Help
Using GroupActionUI

This web server control can be used to have a multi select option for the activity list. This control has to be placed along with the activity list web server control. The property GroupByActionType for Workflow.NET.Web.GroupByUIControl and Workflow.NET.Web.ActivityControl is mandatory for this view. Also other properties like, application and workflow have to be configured for the controls. The ActivityIds have to be passed to the group action ui control using the CaptureGroupSubmitActivityIds event fired by the control from application. Group UI behaviour has been enabled only for the Approval and Work actions.

The Design view would be as shown below.

Adding GroupActionUI Web control

The Code behind page would look like this.

protected Workflow.NET.Web.GroupByUIControl.GroupActionView GroupActionView1;

//Register for event
private void InitializeComponent()
 {
 this.Load += new System.EventHandler(this.Page_Load);
 GroupActionView1.CaptureGroupSubmitActivityIds +=new Workflow.NET.Web.GroupByUIControl.GroupActionView.GroupSubmit(GroupActionView1_CaptureGroupSubmitActivityIds);
 } //Set the control ActivityId’s
private void GroupActionView1_CaptureGroupSubmitActivityIds(HttpRequest WebRequest)
 {   string activityIds = this.Context.Request.Form["chkActivityId"];
  if(activityIds != null)
    {
      string[] activityIdsArr = activityIds.Split(',');

      ArrayList listIds = new ArrayList();
      foreach(string str in activityIdsArr)
      {
        listIds.Add(Int32.Parse(str));
      }

      GroupActionView1.GroupActivityIds = listIds;
    }
 }


An example of the GroupActionUI can be seen in the Activity List shown below. The activities in the list can be selected for performing an action on them by checking the check boxes next to each.

Group Action View in Activity List

Alternative method to display the GroupActionUI

GroupActionUI can be loaded through the Activity Control by enabling the property EnableGroupUI and setting the GroupByActionType properties. The property GroupByActionType is mandatory for the control.

The Design view would be as shown below.

Setting Activity Control properties for enabling GroupActionUI

The following properties have to be set in the Activity Control for the GroupActionUI to be enabled in the Activity List of participants.

Mandatory Properties:

Optional Properties:




 Skelta - A BPM Workflow Software Company