The class diagram of the IRepositoryService API is below:

 IRepositoryService API

Figure 1: IRepositoryService API

It describes the API above as follows:

Namespace

ClassName

MethodName

Descriptions

HSDc.RingleFlow.Api.Service

IRepositoryService

GetRepositoryDefinition(string guid)

Get the definition by the unique ID(a guid). It will return a IProcessDefinition instance.

GetRepositoryDefinition(string name)

Get the definition by the definition name. (It will return the latest version of the same definition name by the method.) It returns IProcessDefinition instance by the method.

RegisterProcessDefinition(string xml)

Register a ProcessDefinition into workflow engine by the XML definition of BPEL. It returns the unique ID of a ProcessDefinition.

HSDc.RingleFlow.Api.Kernel

IProcessDefinition

Active

True/False. Judge if the process definition is active or not.

ActiveProcessInstances

It returns a value to describe the instance numbers that the process definition is running its own right now.

Id

Id is a unique identifier. Every process definition has its own Id as guid.

Name

It is the name of process definition. Name+ Version is the unique value in workflow engine.

Version

It is the version of the process definition. Name+ Version is the unique value in workflow engine.

Sample Code: C#


Sample Code: VB.NET

Last edited Jun 13, 2012 at 3:25 AM by cathysung, version 10

Comments

No comments yet.