dubhe-sdk-flowable
v1.2.69
Published
javascript sdk for dubhe_flowable_service, generate at 2024-05-28 11:23:13, generate by [email protected]
Downloads
6
Readme
dubhe-sdk-flowable
dubhe-sdk-flowable - JavaScript client for dubhe flowable service
- Package version: 1.2.69, generate by [email protected]
- Build date: 2024-05-28 11:23:13
For more information, please visit http://www.billion-byte.com
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install dubhe-sdk-flowable --save
Finally, you need to build the module:
npm run build
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
To use the link you just defined in your project, switch to the directory you want to use your dubhe-sdk-flowable from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
Finally, you need to build the module:
npm run build
Getting Started
Please follow the installation instruction and execute the following JS code:
import { BpmControllerApi } from 'dubhe-sdk-flowable';
const api = new BpmControllerApi(ApiContext.getInstance());
const taskId = "taskId_example"; // {String} taskId
const comFromBean = new DubheSdkFlowable.ComFromBean(); // {ComFromBean} comFromBean
try {
const {data} = await api.applyOrReject(taskId, comFromBean);
} catch(error) {
console.error(error);
}
API Endpoints
All URIs are relative to http://139.3.24.189:28790/FLOWABLE
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- BpmControllerApi | applyOrReject | POST /rest/flowable/bpm/applyOrReject | 处理流程 BpmControllerApi | bpmAddFromAndStart | POST /rest/flowable/bpm/addStart | 开始流程 BpmControllerApi | bpmFindProcessDeployAll | GET /rest/flowable/bpm/findProcessDeployAll | 获取所有流程 BpmControllerApi | bpmStartOaForm | POST /rest/flowable/bpm/start | 开始流程 BpmControllerApi | cancelProcess | POST /rest/flowable/bpm/cancelProcess | 结束流程 BpmControllerApi | deployBpm | POST /rest/flowable/bpm/deployBpm | 部署流程图 BpmControllerApi | editBpm | GET /rest/flowable/bpm/editBpm | 编辑流程图 BpmControllerApi | finishProcess | POST /rest/flowable/bpm/finishProcess | 通过流程 BpmControllerApi | getFormDetail | GET /rest/flowable/bpm/getFormDetail | 获取form详情 BpmControllerApi | getOaFormUserRegInfo | GET /rest/flowable/bpm/getOaFormUserRegInfo | 通过businessId获取用户注册信息 BpmControllerApi | getProcessDetailByFormId | GET /rest/flowable/bpm/getProcessDetailByFormId | 获取流程详情(包含图片) BpmControllerApi | getProcessImage | GET /rest/flowable/bpm/getProcessImage | 获取当前流程进行图片 BpmControllerApi | getUserApplyedProcess | GET /rest/flowable/bpm/getUserApplyedProcess | 获取用户申请过的流程 BpmControllerApi | getUserDoProcessInfo | GET /rest/flowable/bpm/getUserDoProcessInfo | 获取用户DO流程信息List BpmControllerApi | getUserProcess | GET /rest/flowable/bpm/getUserProcess | 获取用户流程信息 BpmControllerApi | getUserProcessAll | GET /rest/flowable/bpm/getUserProcessAll | 获取所有用户流程信息 BpmControllerApi | getUserProcessCount | GET /rest/flowable/bpm/getUserProcessCount | 获取用户流程统计信息 BpmControllerApi | getUserTodoProcessInfo | GET /rest/flowable/bpm/getUserTodoProcessInfo | 获取用户TODO流程信息List CmOpenApiControllerApi | endTfProcess | POST /open/flowable/process/endTfProcess | 结束天府银行流程 CmOpenApiControllerApi | processCallback | POST /open/flowable/process/processCallback | 流程回调 CmOpenApiControllerApi | queryTfProcessOption | GET /open/flowable/process/queryTfProcessOption | 查询流程信息 CmOpenApiControllerApi | tesCallBack | POST /open/flowable/process/tesCallBack | 流程测试回调 CmOpenApiControllerApi | testProcess | GET /open/flowable/process/testProcess | 微信身份证认证 DiscoveryControllerApi | allApplication | GET /rest/flowable/discovery/allApplication | allApplication DiscoveryControllerApi | discoveryService | GET /rest/flowable/discovery/discoveryService/{serviceName} | discoveryService MockCacheControllerApi | doMockCache | GET /rest/flowable/mockCache/doMockCache | doMockCache OaFormControllerApi | getOaFormByTaskId | POST /rest/flowable/oaform/getOaFormByTaskId | 根据taskId获取 OaProcessApprovedCfgControllerApi | fetchOaProcessApprovedCfgDetail | GET /rest/flowable/oaProcessApprovedCfg/detail | 获取oa_process_approved_cfg详细 OaProcessApprovedCfgControllerApi | fetchOaProcessApprovedCfgList | GET /rest/flowable/oaProcessApprovedCfg/list | 获取oa_process_approved_cfg列表 OaProcessApprovedCfgControllerApi | fetchProcessNodeCfgList | GET /rest/flowable/oaProcessApprovedCfg/fetchProcessNodeCfgList | 获取指定流程节点cfg列表 OaProcessApprovedCfgControllerApi | removeOaProcessApprovedCfg | DELETE /rest/flowable/oaProcessApprovedCfg/remove | 删除oa_process_approved_cfg OaProcessApprovedCfgControllerApi | saveOaProcessApprovedCfg | POST /rest/flowable/oaProcessApprovedCfg/save | 保存oa_process_approved_cfg OaProcessApprovedControllerApi | addForwardUser | POST /rest/flowable/oaProcessApproved/addForwardUser | 保存审核人节点 OaProcessApprovedControllerApi | approvalAll | GET /rest/flowable/oaProcessApproved/approvalAll | 审核人节点all OaProcessApprovedControllerApi | approvedList | GET /rest/flowable/oaProcessApproved/approvedList | 审核人节点列表 OaProcessApprovedControllerApi | fetchApprovedList | GET /rest/flowable/oaProcessApproved/fetchApprovedList | 审核人节点列表 OaProcessApprovedControllerApi | fetchOaProcessApprovedDetail | GET /rest/flowable/oaProcessApproved/detail/{processApprovedId} | 获取流程审批人表详细信息 OaProcessApprovedControllerApi | fetchOaProcessApprovedList | GET /rest/flowable/oaProcessApproved/list | 获取流程审批人表列表信息 OaProcessApprovedControllerApi | getAllAppointNode | GET /rest/flowable/oaProcessApproved/getAllAppointNode | 获取所有任务节点 OaProcessApprovedControllerApi | getApplyInfo | GET /rest/flowable/oaProcessApproved/getApplyInfo | 获取流程审批信息 OaProcessApprovedControllerApi | removeOaProcessApproved | DELETE /rest/flowable/oaProcessApproved/remove/{processApprovedId} | 删除流程审批人表信息 OaProcessApprovedControllerApi | removeOaProcessApprovedByIds | DELETE /rest/flowable/oaProcessApproved/remove/ids | 批量删除流程审批人表信息 OaProcessApprovedControllerApi | saveApproval | POST /rest/flowable/oaProcessApproved/saveApproval | 保存审核人节点 OaProcessApprovedControllerApi | saveOaProcessApproved | POST /rest/flowable/oaProcessApproved/save | 保存流程审批人表信息 OaProcessApprovedControllerApi | updateApproval | PUT /rest/flowable/oaProcessApproved/updateApproval | 更新审核人节点 OaProcessApprovedControllerApi | updateForceOaProcessApproved | PUT /rest/flowable/oaProcessApproved/updateForce | 刷新流程审批人表信息 OaProcessApprovedControllerApi | updateOaProcessApproved | PATCH /rest/flowable/oaProcessApproved/update | 更新流程审批人表信息 OaProcessDataPoolControllerApi | applyDataPool | POST /rest/flowable/oaProcessDataPool/apply | 发起审批 OaProcessDataPoolControllerApi | fetchDataPoolList | GET /rest/flowable/oaProcessDataPool/list | 待发起数据-查询接口 OaProcessDataPoolControllerApi | fetchInitatedDataPoolList | GET /rest/flowable/oaProcessDataPool/fetchInitatedList | 已发起数据-查询接口 OaProcessDataPoolControllerApi | pushAndApply | POST /rest/flowable/oaProcessDataPool/pushAndApply | 推送待审批数据到数据池并且发起审批 OaProcessDataPoolControllerApi | pushData | POST /rest/flowable/oaProcessDataPool/pushData | 推送待审批数据到数据池 OaProcessDataPoolControllerApi | pushDataPoolAndApply | POST /rest/flowable/oaProcessDataPool/pushDataPoolAndApply | 推送待审批数据到数据池并且发起审批 OaProcessDataPoolControllerApi | revocationByCategory | POST /rest/flowable/oaProcessDataPool/revocation/byCategory | 根据业务类型撤销数据 OaProcessDataPoolControllerApi | revocationByCode | POST /rest/flowable/oaProcessDataPool/revocation/byCode | 根据code撤销数据 OaProcessDataPoolControllerApi | revocationByCodes | POST /rest/flowable/oaProcessDataPool/revocation/byCodes | 根据codes撤销数据 OaProcessDataPoolControllerApi | revocationByOperType | POST /rest/flowable/oaProcessDataPool/revocation/byOperType | 根据业务类型撤销数据 OaProcessManageControllerApi | disableOaProcessManage | PUT /rest/flowable/oaProcessManage/disable/{processId} | 禁用流程信息 OaProcessManageControllerApi | enableOaProcessManage | PUT /rest/flowable/oaProcessManage/enable/{processId} | 启用流程信息 OaProcessManageControllerApi | fetchByProcessKey | GET /rest/flowable/oaProcessManage/detail/processKey | 获取流程manage表详细信息 OaProcessManageControllerApi | fetchOaProcessManageDetail | GET /rest/flowable/oaProcessManage/detail/{processId} | 获取流程manage表详细信息 OaProcessManageControllerApi | fetchOaProcessManageList | GET /rest/flowable/oaProcessManage/list | 获取流程manage表列表信息 OaProcessManageControllerApi | removeOaProcessManage | DELETE /rest/flowable/oaProcessManage/remove/{processId} | 删除流程manage表信息 OaProcessManageControllerApi | saveOaProcessManage | POST /rest/flowable/oaProcessManage/save | 保存流程manage表信息 OaProcessManageControllerApi | toogleProcess | PUT /rest/flowable/oaProcessManage/toogleProcess/{processId} | 系统默认展示/隐藏 OaProcessManageControllerApi | updateForceOaProcessManage | PUT /rest/flowable/oaProcessManage/updateForce | 刷新流程manage表信息 OaProcessManageControllerApi | updateOaProcessManage | PATCH /rest/flowable/oaProcessManage/update | 更新流程manage表信息 PingControllerApi | systemPing | GET /open/flowable/ping/ping/ping | systemPing ServiceOfflineControllerApi | fireOffline | DELETE /rest/flowable/serviceOffline/fireOffline | fireOffline SystemCacheControllerApi | systemCacheClearAll | POST /rest/flowable/systemCache/clearAll | 清理L2CACHE全部缓存 SystemCacheControllerApi | systemCacheClearMulti | POST /rest/flowable/systemCache/clearMulti | 清理L2CACHE缓存 SystemCacheControllerApi | systemCacheList | GET /rest/flowable/systemCache/list | list TfProcessControllerApi | cancelTfProcess | POST /rest/flowable/tfProcess/cancelTfProcess | 结束天府银行流程 TfProcessControllerApi | queryProcessList | GET /rest/flowable/tfProcess/queryProcessList | 查询流程列表 TfProcessControllerApi | startTfProcess | POST /rest/flowable/tfProcess/startTfProcess | 发起天府银行流程 TfProcessControllerApi | testTfProcess | POST /rest/flowable/tfProcess/testTfProcess | 发起天府银行流程