Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Get All the Versions of a Workflow

  • Last UpdatedJun 10, 2024
  • 1 minute read

PROCEDURE

Dll REFERENCE

Workflow.Net.NET2

Skelta.Forms.Core

NAMESPACE USED

Workflow.NET

Skelta.Repository.List

Skelta.Forms.Core.Controls

The code below demonstrates how to get all the versions for a specified workflow.

//Namespaces

using Skelta.Repository.List;

using Skelta.Forms.Core.Controls;

using Workflow.NET;


//Class level Variables

string _applicationName = "MyRepo1";  //Repository Name


string Workflow="TestWf";  //Workflow name for which all version //information is required

string[] versions;  //Returns all the versions for a specified  workflow


Skelta.Repository.WorkflowList.WorkflowDataHandler wdh=new Skelta.Repository.WorkflowList.WorkflowDataHandler(_applicationName);


//Pass the workflow name to get all the versions for this workflow

ListItemVersion[] workflowVersions=wdh.GetAllVersions(Workflow);

Versions=new string[workflowVersions.Length];


int itemCount=0;

foreach(ListItemVersion version in workflowVersions)

{

 versions[itemCount]=version.VersionStamp;

itemCount++;

}  

 

Related Links
TitleResults for “How to create a CRG?”Also Available in