---
title: "human task 学习笔记一"
author: "cocogg"
date: "2009-03-02T15:59:46Z"
tags: ["Java", "XML"]
slug: "human-task"
draft: false
lastmod: "2009-03-02T15:59:46Z"
id: 341578
url: "https://cocogg.iteye.com/blog/341578"
---

A human task has two interfaces.
1、 interface exposes the service offered by the task.
  example：translation service or and approval service. 
2、 interface allows people to deal with tasks.
  example: query for human tasks waiting for them, and to work on these tasks.


```java
<?xml version="1.0" encoding="UTF-8"?>
<htd:humanInteractions
xmlns:htd="http://www.example.org/WS-HT"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="anyURI"
targetNamespace="anyURI"
expressionLanguage="anyURI"?
queryLanguage="anyURI"?>
<htd:extensions>?
<htd:extension namespace="anyURI" mustUnderstand="yes|no"/>+
</htd:extensions>
<htd:import namespace="anyURI"?
location="anyURI"?
importType="anyURI" />*
<htd:logicalPeopleGroups>?
<htd:logicalPeopleGroup name="NCName" reference="QName"?>+
<htd:parameter name="NCName" type="QName" />*
</htd:logicalPeopleGroup>
</htd:logicalPeopleGroups>
<htd:tasks>?
<htd:task name="NCName">+
...
</htd:task>
</htd:tasks>
<htd:notifications>?
<htd:notification name="NCName">+
...
</htd:notification>
</htd:notifications>
</htd:humanInteractions>

```