The class diagram of IOrganizationService API is below: IOrganizationService

Figure 1. IOrganizationService API

It describes the API above as follows:

Namespace

ClassName

MethodName

Descriptions 

HSDc.RingleFlow.Api.Service

IOrganizationService

GetEmployee(string empId)

Get IEmp by Employee Id.

GetDepartment(string deptId)

Get IDept by defined Department Id.

GetDepartment(int Id)

Get IDept by Id(Auto count value).

HSDc.RingleFlow.Api.Kernel.Org

IEmp

Id                                

The unique Identifier for each employee

UserId

Employee User ID. It links the Assignee of the Task的(Unique Value).

Name

Employee Name

Email

Employee Email

Role

Role

DirectManager

Direct Manager. It returns a Manager object.

MainDepartment

Main Department. It returns a IDept object.

PartimeDepartment

Partime Department. It returns a list of IDept.

IDept

Id

Department ID (integer value). It links to Assignee's OrgId.

OrgId

The true department ID of the organization.

Name

Department Name.

MainManager

Main Manager. It returns a IManager object.

Managers

Managers. It returns IManager lists.

Employee

All Employee in a department. It returns a list of a IEmp.

Parent

Parent Department. It returns a IDept object.

Children

Parent Department. It returns a list of IDept.

IManager: IEmp

MainManagementDepartment

MainManagementDepartment. It returns a set of a IDept.

PartimeManagementDepartment

PartimeManagementDepartment. It returns a list of a IDept.

 

Sample Code: 

The API is used to access the workflow kernel. The developer or user doesn't need to use the API. If you want to extend your organization, please implement the interface of IEmp, IDept and IManager for your organization, and register it into RingleFlow kernel. 

Last edited Jun 13, 2012 at 8:23 AM by cathysung, version 10

Comments

No comments yet.