This project is read-only.

The class diagram of ITaskService API is below:

ITaskService 

Figure 1.     ITaskService API

It describes the API above as follows:

Namespace

ClassName

MethodName

Descriptions 

HSDc.RingleFlow.Api.Service

ITaskService

GetTasks(string UserID)

Get the user's all Tasks by User ID.

GetTask(string UserID, string ProcessInstanceID)

Overloading:

  1. Get the user's specific Task by User ID and Process Instance ID
  2. Get only one Task by TaskID

GetTask(string TaskID)

CompleteTask(ITask task)

Save and complete a Task. The method will finish the execution result and go into the next stage.

SaveTask(ITask task)

Save the Task,but not complete the Task. The Task will stay in the present stage, and be end until CompleteTask is called.

HSDc.RingleFlow.Api.Kernel

ITask

Id

Every Task's unique identifier (guid)

CurrentState

The present Task status. It returns the enum code of a TaskState. There are three statuses (Open, Completed and Suspended).

Assignee

String Value. The task assignee.

TaskName

Task Name

Description

Task Descriptions

DueDate

Task Due Date

CreateTime

The time to create Task

Instance

Get the task belong to IProcessInstance.

ChangeAssignee(string UserID)

Force to change the task's assignee. 

AddVaraible(string VariableName, object Variable)

Add a variable into task by Variable Name and variable.


Sample Code: C#

Sample Code: VB.NET

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

Comments

No comments yet.