提交 95b4c78f 编写于 作者: zcdtk's avatar zcdtk

补充工作流接口方法

上级 f79f34b8
...@@ -81,6 +81,24 @@ export class EntityServiceBase { ...@@ -81,6 +81,24 @@ export class EntityServiceBase {
*/ */
protected readonly rootUrl: string = ''; protected readonly rootUrl: string = '';
/**
* 当前应用名
*
* @protected
* @type {string}
* @memberof EntityServiceBase
*/
protected readonly appName: string = '';
/**
* 当前系统名
*
* @protected
* @type {string}
* @memberof EntityServiceBase
*/
protected readonly systemName: string = '';
/** /**
* Creates an instance of EntityServiceBase. * Creates an instance of EntityServiceBase.
* @param {string} deName * @param {string} deName
...@@ -697,6 +715,32 @@ export class EntityServiceBase { ...@@ -697,6 +715,32 @@ export class EntityServiceBase {
return this.http.post(`/${this.dePath}/${context[this.key]}/wfsubmit`, data); return this.http.post(`/${this.dePath}/${context[this.key]}/wfsubmit`, data);
} }
/**
* WFGetWFStep接口方法(根据系统实体查找当前适配的工作流模型步骤)
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityServiceBase
*/
public async WFGetWFStep(context: any = {}, data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/wfcore/${this.systemName}-app-${this.appName}/${this.dePath}/process-definitions-nodes`);
}
/**
* GetWFLink接口方法(根据业务主键和当前步骤获取操作路径)
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof EntityServiceBase
*/
public async GetWFLink(context: any = {}, data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/wfcore/${this.systemName}-app-${this.appName}/${this.dePath}/${context[this.deName]}/usertasks/${data['taskDefinitionKey']}/ways`);
}
/** /**
* 获取其他实体服务 * 获取其他实体服务
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册