public class InfoPlusService extends Object
构造器和说明 |
---|
InfoPlusService() |
限定符和类型 | 方法和说明 |
---|---|
edu.sjtu.json.Response<Object> |
alter(long instanceId,
InstanceState state,
String data,
String reason)
已过时。
|
edu.sjtu.json.Response<Object> |
alterData(long instanceId,
String data)
已过时。
|
edu.sjtu.json.Response<Object> |
alterStatus(long instanceId,
InstanceState state,
String reason)
已过时。
|
edu.sjtu.json.Response<Object> |
compensate(String workflowCode,
long instance)
4.5 触发补偿事件
|
edu.sjtu.json.Response<CodeItem> |
createCodeItem(String workflowCode,
String codeType,
CodeItem codeItem)
9.6 向代码表新增代码项
|
edu.sjtu.json.Response<Object> |
deleteCodeItem(String workflowCode,
String codeType,
String codeId)
9.6 删除代码表的代码项
|
edu.sjtu.json.Response<Object> |
doAction(String workflowCode,
long instance,
String step,
String action,
Map<String,String> nextUsers,
String comment)
以系统身份执行一步工作流。
|
edu.sjtu.json.Response<Object> |
doAction(String workflowCode,
long instance,
String step,
String splitPath,
String action,
Map<String,String> nextUsers,
String comment)
以系统身份执行一步工作流。
|
edu.sjtu.json.Response<App> |
getApp(String workflowCode,
String version,
boolean includeVersions)
4.1 获取app的meta信息(含表单字段、版本)
|
edu.sjtu.json.Response<App> |
getApp(String clientId,
String clientSecret,
String workflowCode,
String version,
boolean includeVersions)
4.1 获取app的meta信息(含表单字段、版本)
|
edu.sjtu.json.Response<CodeItem> |
getCodeItems(String workflowCode,
String codeType,
String codeId)
9.6 获取代码表中的代码项
|
String |
getEngieUrl()
已过时。
|
String |
getEngineUrl() |
edu.sjtu.json.Response<Profile> |
getUsersInPosition(String workflowCode,
String positionCode,
String depCode)
6.2 获取岗位中的用户
|
boolean |
isDebug() |
edu.sjtu.json.Response<Object> |
kill(String workflowCode,
long instance,
String remark)
4.5 终止流程
|
edu.sjtu.json.Response<FormTemplate> |
listCanDoTemplates(String userId)
已过时。
|
edu.sjtu.json.Response<Category> |
listCategories(String userId)
已过时。
|
edu.sjtu.json.Response<FormStep> |
listFormStepSummaries(String userId,
String category,
int start,
int limit)
已过时。
|
edu.sjtu.json.Response<FormField> |
listWorkflowFields(String workflowCode)
枚举给定工作流的表单字段
|
edu.sjtu.json.Response<CodeItem> |
modifyCodeItem(String workflowCode,
String codeType,
CodeItem codeItem)
9.6 修改代码表代码项
|
edu.sjtu.json.Response<Map<String,Object>> |
queryFormData(String workflowCode,
long instance)
查询指定表单实例数据。
|
edu.sjtu.json.Response<Post> |
queryPost(String workflowCode,
String postCode)
5.1 查询岗位详情
|
edu.sjtu.json.Response<Profile> |
queryUsers(String workflowCode,
String accounts,
String positions)
5.5 获取用户
|
void |
setApplication(InfoPlusApplication application) |
void |
setDebug(boolean debug) |
void |
setEngieUrl(String engineUrl)
已过时。
|
void |
setEngineUrl(String engineUrl) |
edu.sjtu.json.Response<String> |
start(String owner,
String nextUser,
String businessId,
String workflowCode,
String initialData)
启动一个表单实例
|
edu.sjtu.json.Response<String> |
start(String owner,
String nextUser,
String businessId,
String entrance,
String workflowCode,
String initialData)
启动一个表单实例
|
@Deprecated public String getEngieUrl()
@Deprecated public void setEngieUrl(String engineUrl)
public String getEngineUrl()
public void setEngineUrl(String engineUrl)
public boolean isDebug()
public void setDebug(boolean debug)
public void setApplication(InfoPlusApplication application)
public edu.sjtu.json.Response<String> start(String owner, String nextUser, String businessId, String workflowCode, String initialData)
owner
- 实例的拥有者nextUser
- 第一步办理用户businessId
- 业务系统idworkflowCode
- 流程代码initialData
- 表单数据public edu.sjtu.json.Response<String> start(String owner, String nextUser, String businessId, String entrance, String workflowCode, String initialData)
owner
- 实例的拥有者nextUser
- 第一步办理用户businessId
- 业务系统identrance
- 入口节点代码workflowCode
- 流程代码initialData
- 表单数据public edu.sjtu.json.Response<FormField> listWorkflowFields(String workflowCode)
workflowCode
- 指定工作流代码@Deprecated public edu.sjtu.json.Response<FormTemplate> listCanDoTemplates(String userId)
userId
- 用户的jaccountpublic edu.sjtu.json.Response<Object> doAction(String workflowCode, long instance, String step, String action, Map<String,String> nextUsers, String comment)
workflowCode
- 要执行的流程codeinstance
- 要执行的工作流的instance idstep
- 要执行的步骤的codeaction
- 要执行的动作的codenextUsers
- 指定执行后,下一步骤的执行人。Map的key为下一步骤的code,值为执行人。此参数可以为空,表示不指定。comment
- 备注public edu.sjtu.json.Response<Object> doAction(String workflowCode, long instance, String step, String splitPath, String action, Map<String,String> nextUsers, String comment)
workflowCode
- 要执行的流程codeinstance
- 要执行的工作流的instance idstep
- 要执行的步骤的codesplitPath
- 要执行的步骤的动态并行的路径序号。对于重复节嵌套情况,如第x节(0下标)中的第y节并行,应该给出路径为:"x/y"action
- 要执行的动作的codenextUsers
- 指定执行后,下一步骤的执行人。Map的key为下一步骤的code,值为执行人。此参数可以为空,表示不指定。comment
- 备注public edu.sjtu.json.Response<App> getApp(String workflowCode, String version, boolean includeVersions)
workflowCode
- 流程代码,对应流程应具有sys_app授权version
- 版本号includeVersions
- 是否包括版本信息public edu.sjtu.json.Response<App> getApp(String clientId, String clientSecret, String workflowCode, String version, boolean includeVersions)
clientId
- clientIdclientSecret
- client密钥workflowCode
- 工作流代码version
- 版本号includeVersions
- 是否包括版本信息public edu.sjtu.json.Response<Object> kill(String workflowCode, long instance, String remark)
workflowCode
- 流程代码,对应的流程应具有sys_process_edit授权instance
- 流程实例流水号remark
- 终止流程的备注public edu.sjtu.json.Response<Object> compensate(String workflowCode, long instance)
workflowCode
- 流程代码,对应的流程应具有sys_process_edit授权instance
- 流程实例流水号public edu.sjtu.json.Response<Post> queryPost(String workflowCode, String postCode)
workflowCode
- 流程代码,对应的流程应具有sys_triple权postCode
- 岗位代码@Deprecated public edu.sjtu.json.Response<Category> listCategories(String userId)
userId
- 用户@Deprecated public edu.sjtu.json.Response<FormStep> listFormStepSummaries(String userId, String category, int start, int limit)
userId
- 用户category
- 分类start
- 起始行limit
- 分页大小public edu.sjtu.json.Response<Map<String,Object>> queryFormData(String workflowCode, long instance)
workflowCode
- instance
- 实例流水号@Deprecated public edu.sjtu.json.Response<Object> alterStatus(long instanceId, InstanceState state, String reason)
instanceId
- 工作流实例Idstate
- 工作流状态
Offline: 挂起
Resume: 恢复
Complete: 完成
Terminate: 中止
Null: 不改变状态,仅修改表单数据/变量reason
- 挂起原因@Deprecated public edu.sjtu.json.Response<Object> alterData(long instanceId, String data)
instanceId
- 工作流实例Iddata
- 表单数据的JSON,通过data参数指定的(字段/变量名->值)的哈希表来修改、追加表单数据@Deprecated public edu.sjtu.json.Response<Object> alter(long instanceId, InstanceState state, String data, String reason)
instanceId
- 工作流实例Idstate
- 工作流状态
Offline: 挂起
Resume: 恢复
Complete: 完成
Terminate: 中止
Null: 不改变状态,仅修改表单数据/变量data
- 表单数据的JSON,通过data参数指定的(字段/变量名->值)的哈希表来修改、追加表单数据reason
- 挂起原因public edu.sjtu.json.Response<Profile> queryUsers(String workflowCode, String accounts, String positions)
workflowCode
- 流程代码,对应的流程应具有sys_triple授权accounts
- 用户帐号,可逗号分割多个positions
- 岗位部门过滤条件,同User控件的UserFilters设置public edu.sjtu.json.Response<Profile> getUsersInPosition(String workflowCode, String positionCode, String depCode)
workflowCode
- 流程代码,对应的流程应具有sys_triple授权positionCode
- 岗位代码,必需提供depCode
- 部门代码,可选public edu.sjtu.json.Response<CodeItem> getCodeItems(String workflowCode, String codeType, String codeId)
workflowCode
- 流程代码,对应流程应具有sys_code授权codeType
- 代码表代码codeId
- 代码项代码,可选public edu.sjtu.json.Response<CodeItem> createCodeItem(String workflowCode, String codeType, CodeItem codeItem)
workflowCode
- 流程代码,对应流程应具有sys_code授权codeType
- 代码表代码codeItem
- 代码项public edu.sjtu.json.Response<CodeItem> modifyCodeItem(String workflowCode, String codeType, CodeItem codeItem)
workflowCode
- 流程代码,对应流程应具有sys_code授权codeType
- 代码表代码codeItem
- 代码项Copyright © 2025. All rights reserved.