Datapolis Process System SDK

Search:

Contents
:
IndexBookmarkPrint
Home > WBInterface > Methods > GetWBWorkflowInfo

GetWBWorkflowInfo

 

Function returns WBWorkflowInfo type, if you want to know all members of this class check Class Reference.

‚Äč

try
{
    WBInterfaceWebService.WBInterfaceSoapClient client = CreateSoapClient();
  
    WBWorkflowInfo wbWorkflowInfo = client.GetWBWorkflowInfo(new Guid("some guid"));
  
    if (wbWorkflowInfo != null)
    {
        textBoxWBWorkflowInfoAssociationID.Text = wbWorkflowInfo.AssociationID.ToString();
        textBoxWBWorkflowInfoBaseID.Text = wbWorkflowInfo.BaseID.ToString();
        textBoxWBWorkflowInfoInstanceID.Text = wbWorkflowInfo.InstanceID.ToString();
        textBoxWBWorkflowInfoInternalState.Text = wbWorkflowInfo.InternalState.ToString();
        textBoxWBWorkflowInfoItemID.Text = wbWorkflowInfo.ItemID.ToString();
        textBoxWBWorkflowInfoLCID.Text = wbWorkflowInfo.LCID.ToString();
        textBoxWBWorkflowInfoListDefaultViewUrl.Text = wbWorkflowInfo.ListDefaultViewUrl;
        textBoxWBWorkflowInfoListID.Text = wbWorkflowInfo.ListID.ToString();
        textBoxWBWorkflowInfoListName.Text = wbWorkflowInfo.ListName;
        textBoxWBWorkflowInfoListUrl.Text = wbWorkflowInfo.ListUrl;
        textBoxWBWorkflowInfoName.Text = wbWorkflowInfo.Name;
        textBoxWBWorkflowInfoState.Text = wbWorkflowInfo.State;
  
        listBoxWBWorkflowInfoActions.DataSource = wbWorkflowInfo.WorkflowActions;
        listBoxWBWorkflowInfoActions.DisplayMember = "ShortTitle";
        listBoxWBWorkflowInfoActions.ValueMember = "Name";
  
        panelWBWorkflowInfoResult.Visible = true;
    }
    else
    {
        MessageBox.Show(this, "Can't gen workflow information. Make sure you have at least Edit Items permissions for the item on which workflow instance is running", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    }
}
catch (Exception exc)
{
    MessageBox.Show(this, exc.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}