import { HttpService } from '@ecp-caf/caf-common'; import { Observable } from 'rxjs/Observable'; import { ProcessDeUtil } from './process-de-util'; import { AuditProcessDefInfo } from './entities/audit-processDef-info'; import { ProcessInfo } from '../model/process-info'; import { RTProcessInfo } from '../model/rt-process-info'; export declare class ProcessDesignerDataService { private http; private util; constructor(http: HttpService, util: ProcessDeUtil); GetFlowFormbyId(id: string): Observable; getParametersbyFlowFormKey(id: string): Observable; getComponentsbyFlowformkey(id: string): Observable; getExecuteFormbyFlowFormKey(id: string): Observable; /** * 基于流程分类Id获取业务活动 * @param ffId 流程分类id */ getBizActivities(ffId: string): Observable; /** * 基于流程分类ID获取自定义动作 * @param formId 流程分类ID */ getCustomizeActions(formId: string): Observable; /** * 基于业务活动id获取业务活动构件 * @param id 业务活动id */ private getBizActivityComponents; private getBizActivityActions; getBusinessEntitybyId(id: string): Observable; /** * 基于流程定义Key获取上下文 * @param key 流程定义key */ getProcContentbyKey(key: string): Observable; /** * 基于流程定义Key获取上下文 * @param key 流程定义Id */ getRTProcContentbyId(id: string): Observable; /** * 查询当前设计时流程是否处在审核状态中 * @param procDefKey 流程定义key * @returns */ findReleaseProcessByProcDefKey(procDefKey: string): Observable; /** * 保存流程 * @param content */ saveProcess(content: string, processInfo: ProcessInfo, state: number): Observable; saveAsProcess(content: string, bizDefKey: string, procKey: string, procName: string, procId: string): Observable; auditProcessDef(info: AuditProcessDefInfo): void; /** * 发布流程 * @param content */ deployProcess(content: string): Observable; saveRTProcess(content: string, procDefId: string): Observable; syncDtProcess(content: string, rtProcessInfo: RTProcessInfo): Observable; /** * 获取流程扩展属性 * @param bizDefKey * @param startMode * @param bizCategoryId * @returns */ getProcExtendProperty(bizDefKey: string, startMode: string, bizCategoryId: string): Observable; /** * 获取流程构件 * @returns */ getBizCmp(): Observable; /** * 获取全部流程构件 * @param flowFormKey * @returns */ getAllBizCmp(flowFormKey: any): Observable; /** * 获取表单格式 */ getFormFormat(bizCategoryId: string): Observable; /** * 获取配置 * @returns */ getGeneralConfig(): Observable<{ enableTransfer: any; enableNotify: any; enableAddSignBehind: any; enableAddSignFront: any; }>; }