DOC : object
操作DOCUMENT(非当前)
Kind: global namespace
- DOC :
object- .getDocItemValue(docid, fieldName) ⇒
Object - .getDocItemValueAsString(docid, fieldName) ⇒
String - .getDocItemValueAsDouble(docid, fieldName) ⇒
Double - .getDocItemValueAsDate(docid, fieldName) ⇒
Date - .getDocItemValueAsInt(docid, fieldName) ⇒
Integer - .findDocument(docid) ⇒
Document - .removeDocument(docid)
- .isFirtNodeByDocId(docid) ⇒
Boolean - .updateDocumentWithoutVersions(doc)
- .buileDocument(formName, params)
- .createOrUpdate(doc)
- .getDocItemValue(docid, fieldName) ⇒
DOC.getDocItemValue(docid, fieldName) ⇒ Object
获取文档中Item的值,且以字符串形式返回
Kind: static method of DOC
Returns: Object - 获取文档中Item的值,以对象的形式返回
| Param | Type | Description |
|---|---|---|
| docid | String |
文档的id标识 |
| fieldName | String |
文档的字段名 |
DOC.getDocItemValueAsString(docid, fieldName) ⇒ String
获取文档中Item的值,且以字符串形式返回
Kind: static method of DOC
Returns: String - 获取文档中Item的值,且以字符串形式返回
| Param | Type | Description |
|---|---|---|
| docid | String |
文档的id标识 |
| fieldName | String |
文档的字段名 |
DOC.getDocItemValueAsDouble(docid, fieldName) ⇒ Double
获取文档中Item的值,且以double形式返回
Kind: static method of DOC
Returns: Double - 获取文档中Item的值,且以double形式返回
| Param | Type | Description |
|---|---|---|
| docid | String |
文档的id标识 |
| fieldName | String |
文档的字段名 |
DOC.getDocItemValueAsDate(docid, fieldName) ⇒ Date
获取文档中Item的值,且以日期形式返回
Kind: static method of DOC
Returns: Date - 获取文档中Item的值,且以日期形式返回
| Param | Type | Description |
|---|---|---|
| docid | String |
文档的id标识 |
| fieldName | String |
文档的字段名 |
DOC.getDocItemValueAsInt(docid, fieldName) ⇒ Integer
获取文档中Item的值,且以整型值形式返回
Kind: static method of DOC
Returns: Integer - 获取文档中Item的值,且以整型值形式返回
| Param | Type | Description |
|---|---|---|
| docid | String |
文档的id标识 |
| fieldName | String |
文档的字段名 |
DOC.findDocument(docid) ⇒ Document
根据给定的docid,获取Document对象
Kind: static method of DOC
Returns: Document - 根据给定的docid,获取Document对象
| Param | Type | Description |
|---|---|---|
| docid | String |
文档的id标识 |
DOC.removeDocument(docid)
根据给定的docid,删除Document对象
Kind: static method of DOC
| Param | Type |
|---|---|
| docid | String |
DOC.isFirtNodeByDocId(docid) ⇒ Boolean
获取指定文档是否处在流程第一个节点
Kind: static method of DOC
Returns: Boolean - true是流程第一个节点,false非流程第一个节点
| Param | Type | Description |
|---|---|---|
| docid | String |
文档ID |
DOC.updateDocumentWithoutVersions(doc)
更新文档但不更新版本号
Kind: static method of DOC
| Param | Description |
|---|---|
| doc | 文档对象 |
DOC.buileDocument(formName, params)
根据表单名称创建文档对象
Kind: static method of DOC
| Param | Type | Description |
|---|---|---|
| formName | String |
表单名称 |
| params | Java.ParamsTable |
参数表 |
DOC.createOrUpdate(doc)
按表单名创建或更新文档
Kind: static method of DOC
| Param | Type | Description |
|---|---|---|
| doc | Java.Document |
文档对象 |