@5minds/processcube_app_sdk 0.0.1-develop-fd0c6d-llvwwzha → 0.0.1-develop-451c8a-llz3t52c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/server/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var G=Object.create;var T=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var J=(e,s)=>{for(var t in s)T(e,t,{get:s[t],enumerable:!0})},
|
|
1
|
+
"use strict";var G=Object.create;var T=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var J=(e,s)=>{for(var t in s)T(e,t,{get:s[t],enumerable:!0})},h=(e,s,t,n)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of Y(s))!H.call(e,r)&&r!==t&&T(e,r,{get:()=>s[r],enumerable:!(n=X(s,r))||n.enumerable});return e};var Z=(e,s,t)=>(t=e!=null?G(j(e)):{},h(s||!e||!e.__esModule?T(t,"default",{value:e,enumerable:!0}):t,e)),Q=e=>h(T({},"__esModule",{value:!0}),e);var ge={};J(ge,{finishUserTask:()=>ke,finishUserTaskAndGetNext:()=>z,getActiveProcessInstances:()=>ie,getAssignedUserTasksByIdentity:()=>oe,getIdentity:()=>ae,getReservedUserTasksByIdentity:()=>ne,getUserTasks:()=>_,getWaitingUserTaskByFlowNodeInstanceId:()=>C,getWaitingUserTasks:()=>ee,getWaitingUserTasksByCorrelationId:()=>re,getWaitingUserTasksByFlowNodeId:()=>te,getWaitingUserTasksByProcessInstanceId:()=>se,hardNavigate:()=>we,navigateToUrl:()=>ye,startProcess:()=>Te,subscribeToExternalTasks:()=>ue,waitForUserTask:()=>V});module.exports=Q(ge);var je=require("only-server");var i=require("@5minds/processcube_engine_client");var P=require("@5minds/processcube_engine_client"),N=process.env.PROCESSCUBE_ENGINE_URL??"http://localhost:10560",o=new P.EngineClient(N);async function V(e={}){let{processInstanceId:s,flowNodeId:t}=e;return new Promise(async(n,r)=>{let c=await o.userTasks.onUserTaskWaiting(async a=>{let g=a.flowNodeInstanceId===void 0,E=s!==void 0&&a.processInstanceId!==s,w=t!==void 0&&a.flowNodeId!==t,l=s!==void 0&&t!==void 0&&a.processInstanceId!==s&&a.flowNodeId!==t;if(g||E||w||l)return;let p=await C(a.flowNodeInstanceId);return o.notification.removeSubscription(c),p===null?r(new Error(`UserTask with instance ID "${a.flowNodeInstanceId}" does not exist.`)):n(p)}),f=(await _({processInstanceId:s,flowNodeId:t,state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended})).userTasks[0];f&&(o.notification.removeSubscription(c),n(f))})}async function z(e,s,t){await o.userTasks.finishUserTask(e,s);let n=await o.userTasks.query({flowNodeId:t,state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended});return n.userTasks.length===0?null:n.userTasks[0]}async function _(...e){return await o.userTasks.query(...e)}async function ee(e){return await o.userTasks.query({state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended},e)}async function se(e,s){let t=await o.userTasks.query({processInstanceId:e,state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended},s);return t.userTasks.length===0?null:t.userTasks}async function te(e,s){return await o.userTasks.query({flowNodeId:e,state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended},s)}async function C(e,s){let t=await o.userTasks.query({flowNodeInstanceId:e,state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended},{...s,limit:1});return t.userTasks.length===0?null:t.userTasks[0]}async function re(e,s){return await o.userTasks.query({correlationId:e,state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended},s)}async function ne(e,s){let t=await o.userTasks.query({state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:e,...s}),n=t.userTasks.filter(r=>r.actualOwnerId===e.userId);return t.userTasks=n,t}async function oe(e,s){let t=await o.userTasks.query({state:i.DataModels.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:e,...s}),n=t.userTasks.filter(r=>r.assignedUserIds?.includes(e.userId));return t.userTasks=n,t}var k=require("next/headers"),U=require("next-auth/jwt");async function ae(){let e=await(0,U.getToken)({req:{cookies:(0,k.cookies)(),headers:(0,k.headers)()}});if(!e?.accessToken||!e?.sub)throw new Error("AccessToken or Sub could not be determined!");return{token:e?.accessToken,userId:e?.sub}}var F=require("@5minds/processcube_engine_client");async function ie(e){return await o.processInstances.query({...e?.query,state:F.DataModels.ProcessInstances.ProcessInstanceState.running},e?.options)}var R=require("@5minds/processcube_engine_sdk"),D=require("@5minds/processcube_engine_client");var d=require("node:path"),M=require("esbuild"),I=require("node:fs"),L=require("openid-client"),A=Z(require("jwt-decode"),1),ce={token:"ZHVtbXlfdG9rZW4=",userId:"dummy_token"},de=.85,le="external_task.ts",u=new R.Logger("processcube_app_sdk:external_task_adapter"),y=process.env.PROCESSCUBE_AUTHORITY_URL!==void 0;async function ue(e){let s,t=[e,(0,d.join)(process.cwd(),"app"),(0,d.join)(process.cwd(),"src","app")];for(let r of t)if(r&&(0,I.existsSync)(r)){s=r;break}if(!s)throw new Error("Could not find external tasks directory");let n=await O(s);for(let r of n){let c=await fe(r);if(!c)continue;let m=(0,d.join)(r,c),f=await pe(m),a=y?await b():null,g={identity:await q(a),...f?.config},E=f.default,w=(0,d.relative)(s,r).replace(/^\.\/+/,""),l=new D.ExternalTaskWorker(N,w,E,g);await x(a,l),u.info(`Starting external task worker ${l.workerId} for topic '${w}'`),l.onWorkerError((p,S,K)=>{u.error(`Intercepted "${p}"-type error: ${S.message}`,{err:S,type:p,externalTask:K})}),l.start()}}async function fe(e){let t=(await I.promises.readdir(e)).filter(n=>n===le);if(t.length===0)return null;if(t.length>1)throw new Error(`Found more than one external task file in directory '${e}'`);return t[0]}async function b(){if(!y)throw new Error("No authority is configured");let e=await L.Issuer.discover(process.env.PROCESSCUBE_AUTHORITY_URL);return await new e.Client({client_id:process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID,client_secret:process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET}).grant({grant_type:"client_credentials",scope:"engine_etw"})}async function q(e){if(!y||e===null)return ce;let s=e.access_token,t=(0,A.default)(s);return{token:e.access_token,userId:t.sub}}async function x(e,s,t=5){try{if(!y||e===null)return;let r=await Ie(e)*de*1e3;setTimeout(async()=>{let c=await b(),m=await q(c);s.identity=m,await x(c,s)},r)}catch(n){if(t===0)throw n;u.error(`Could not refresh identity for external task worker ${s.workerId}`,{err:n,workerId:s.workerId});let r=2*1e3;setTimeout(async()=>await x(e,s,t-1),r)}}async function pe(e){let s=await(0,M.build)({entryPoints:[e],write:!1,bundle:!0,platform:"node",target:"node18",format:"cjs"}),t=s.outputFiles[0].text,n=me(t,e);if(s.errors.length>0)throw u.error(`Could not transpile file at '${e}'`,{errors:s.errors}),new Error(`Could not transpile file at '${e}'`);return s.warnings.length>0&&u.warn(`Transpiled file at '${e}' with warnings`,{warnings:s.warnings}),n}async function O(e){let s=await I.promises.readdir(e,{withFileTypes:!0}),t=await Promise.all(s.map(async n=>{let r=(0,d.join)(e.toString(),n.name);return n.isDirectory()?[r,...await O(r)]:[]}));return Array.prototype.concat(...t)}async function Ie(e){let s=e.expires_in;if(!s&&e.expires_at&&(s=Math.floor(e.expires_at-Date.now()/1e3)),s===void 0)throw new Error("Could not determine the time until the access token for external task workers expires");return s}function me(e,s){try{var t=module.constructor,n=new t;return n._compile(e,s),n.exports}catch(r){throw u.error("Could not require module from string",{err:r}),r}}var v=require("next/cache"),B=require("next/navigation");async function we(e,s){(0,v.revalidatePath)(e),(0,B.redirect)(e,s)}async function Te(...e){return await o.processModels.startProcessInstance(...e)}async function ke(...e){await o.userTasks.finishUserTask(...e)}var W=require("next/cache"),$=require("next/navigation");function ye(e){(0,W.revalidatePath)(e),(0,$.redirect)(e)}0&&(module.exports={finishUserTask,finishUserTaskAndGetNext,getActiveProcessInstances,getAssignedUserTasksByIdentity,getIdentity,getReservedUserTasksByIdentity,getUserTasks,getWaitingUserTaskByFlowNodeInstanceId,getWaitingUserTasks,getWaitingUserTasksByCorrelationId,getWaitingUserTasksByFlowNodeId,getWaitingUserTasksByProcessInstanceId,hardNavigate,navigateToUrl,startProcess,subscribeToExternalTasks,waitForUserTask});
|
package/server/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"only-server";import{DataModels as i}from"@5minds/processcube_engine_client";import{EngineClient as
|
|
1
|
+
import"only-server";import{DataModels as i}from"@5minds/processcube_engine_client";import{EngineClient as _}from"@5minds/processcube_engine_client";var y=process.env.PROCESSCUBE_ENGINE_URL??"http://localhost:10560",o=new _(y);async function te(e={}){let{processInstanceId:s,flowNodeId:t}=e;return new Promise(async(r,n)=>{let c=await o.userTasks.onUserTaskWaiting(async a=>{let T=a.flowNodeInstanceId===void 0,k=s!==void 0&&a.processInstanceId!==s,I=t!==void 0&&a.flowNodeId!==t,d=s!==void 0&&t!==void 0&&a.processInstanceId!==s&&a.flowNodeId!==t;if(T||k||I||d)return;let f=await U(a.flowNodeInstanceId);return o.notification.removeSubscription(c),f===null?n(new Error(`UserTask with instance ID "${a.flowNodeInstanceId}" does not exist.`)):r(f)}),u=(await C({processInstanceId:s,flowNodeId:t,state:i.FlowNodeInstances.FlowNodeInstanceState.suspended})).userTasks[0];u&&(o.notification.removeSubscription(c),r(u))})}async function re(e,s,t){await o.userTasks.finishUserTask(e,s);let r=await o.userTasks.query({flowNodeId:t,state:i.FlowNodeInstances.FlowNodeInstanceState.suspended});return r.userTasks.length===0?null:r.userTasks[0]}async function C(...e){return await o.userTasks.query(...e)}async function ne(e){return await o.userTasks.query({state:i.FlowNodeInstances.FlowNodeInstanceState.suspended},e)}async function oe(e,s){let t=await o.userTasks.query({processInstanceId:e,state:i.FlowNodeInstances.FlowNodeInstanceState.suspended},s);return t.userTasks.length===0?null:t.userTasks}async function ae(e,s){return await o.userTasks.query({flowNodeId:e,state:i.FlowNodeInstances.FlowNodeInstanceState.suspended},s)}async function U(e,s){let t=await o.userTasks.query({flowNodeInstanceId:e,state:i.FlowNodeInstances.FlowNodeInstanceState.suspended},{...s,limit:1});return t.userTasks.length===0?null:t.userTasks[0]}async function ie(e,s){return await o.userTasks.query({correlationId:e,state:i.FlowNodeInstances.FlowNodeInstanceState.suspended},s)}async function ce(e,s){let t=await o.userTasks.query({state:i.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:e,...s}),r=t.userTasks.filter(n=>n.actualOwnerId===e.userId);return t.userTasks=r,t}async function de(e,s){let t=await o.userTasks.query({state:i.FlowNodeInstances.FlowNodeInstanceState.suspended},{identity:e,...s}),r=t.userTasks.filter(n=>n.assignedUserIds?.includes(e.userId));return t.userTasks=r,t}import{cookies as F,headers as R}from"next/headers";import{getToken as D}from"next-auth/jwt";async function pe(){let e=await D({req:{cookies:F(),headers:R()}});if(!e?.accessToken||!e?.sub)throw new Error("AccessToken or Sub could not be determined!");return{token:e?.accessToken,userId:e?.sub}}import{DataModels as M}from"@5minds/processcube_engine_client";async function Te(e){return await o.processInstances.query({...e?.query,state:M.ProcessInstances.ProcessInstanceState.running},e?.options)}import{Logger as L}from"@5minds/processcube_engine_sdk";import{ExternalTaskWorker as A}from"@5minds/processcube_engine_client";import{join as m,relative as b}from"node:path";import{build as q}from"esbuild";import{promises as N,existsSync as O}from"node:fs";import{Issuer as v}from"openid-client";import B from"jwt-decode";var W={token:"ZHVtbXlfdG9rZW4=",userId:"dummy_token"},$=.85,K="external_task.ts",l=new L("processcube_app_sdk:external_task_adapter"),w=process.env.PROCESSCUBE_AUTHORITY_URL!==void 0;async function Re(e){let s,t=[e,m(process.cwd(),"app"),m(process.cwd(),"src","app")];for(let n of t)if(n&&O(n)){s=n;break}if(!s)throw new Error("Could not find external tasks directory");let r=await h(s);for(let n of r){let c=await G(n);if(!c)continue;let p=m(n,c),u=await X(p),a=w?await x():null,T={identity:await S(a),...u?.config},k=u.default,I=b(s,n).replace(/^\.\/+/,""),d=new A(y,I,k,T);await g(a,d),l.info(`Starting external task worker ${d.workerId} for topic '${I}'`),d.onWorkerError((f,E,P)=>{l.error(`Intercepted "${f}"-type error: ${E.message}`,{err:E,type:f,externalTask:P})}),d.start()}}async function G(e){let t=(await N.readdir(e)).filter(r=>r===K);if(t.length===0)return null;if(t.length>1)throw new Error(`Found more than one external task file in directory '${e}'`);return t[0]}async function x(){if(!w)throw new Error("No authority is configured");let e=await v.discover(process.env.PROCESSCUBE_AUTHORITY_URL);return await new e.Client({client_id:process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_ID,client_secret:process.env.PROCESSCUBE_EXTERNAL_TASK_WORKER_CLIENT_SECRET}).grant({grant_type:"client_credentials",scope:"engine_etw"})}async function S(e){if(!w||e===null)return W;let s=e.access_token,t=B(s);return{token:e.access_token,userId:t.sub}}async function g(e,s,t=5){try{if(!w||e===null)return;let n=await Y(e)*$*1e3;setTimeout(async()=>{let c=await x(),p=await S(c);s.identity=p,await g(c,s)},n)}catch(r){if(t===0)throw r;l.error(`Could not refresh identity for external task worker ${s.workerId}`,{err:r,workerId:s.workerId});let n=2*1e3;setTimeout(async()=>await g(e,s,t-1),n)}}async function X(e){let s=await q({entryPoints:[e],write:!1,bundle:!0,platform:"node",target:"node18",format:"cjs"}),t=s.outputFiles[0].text,r=j(t,e);if(s.errors.length>0)throw l.error(`Could not transpile file at '${e}'`,{errors:s.errors}),new Error(`Could not transpile file at '${e}'`);return s.warnings.length>0&&l.warn(`Transpiled file at '${e}' with warnings`,{warnings:s.warnings}),r}async function h(e){let s=await N.readdir(e,{withFileTypes:!0}),t=await Promise.all(s.map(async r=>{let n=m(e.toString(),r.name);return r.isDirectory()?[n,...await h(n)]:[]}));return Array.prototype.concat(...t)}async function Y(e){let s=e.expires_in;if(!s&&e.expires_at&&(s=Math.floor(e.expires_at-Date.now()/1e3)),s===void 0)throw new Error("Could not determine the time until the access token for external task workers expires");return s}function j(e,s){try{var t=module.constructor,r=new t;return r._compile(e,s),r.exports}catch(n){throw l.error("Could not require module from string",{err:n}),n}}import{revalidatePath as H}from"next/cache";import{redirect as J}from"next/navigation";async function Be(e,s){H(e),J(e,s)}async function Ke(...e){return await o.processModels.startProcessInstance(...e)}async function Ge(...e){await o.userTasks.finishUserTask(...e)}import{revalidatePath as Z}from"next/cache";import{redirect as Q}from"next/navigation";function He(e){Z(e),Q(e)}export{Ge as finishUserTask,re as finishUserTaskAndGetNext,Te as getActiveProcessInstances,de as getAssignedUserTasksByIdentity,pe as getIdentity,ce as getReservedUserTasksByIdentity,C as getUserTasks,U as getWaitingUserTaskByFlowNodeInstanceId,ne as getWaitingUserTasks,ie as getWaitingUserTasksByCorrelationId,ae as getWaitingUserTasksByFlowNodeId,oe as getWaitingUserTasksByProcessInstanceId,Be as hardNavigate,He as navigateToUrl,Ke as startProcess,Re as subscribeToExternalTasks,te as waitForUserTask};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { DataModels } from '@5minds/processcube_engine_client';
|
|
2
2
|
import { Client } from './internal/EngineClient';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @param options The
|
|
6
|
-
* @returns {DataModels.ProcessInstances.
|
|
4
|
+
* @param query.query The query of {@link Client.processInstances.query}
|
|
5
|
+
* @param query.options The options of {@link Client.processInstances.query}
|
|
6
|
+
* @returns The list of active process instances {@link DataModels.ProcessInstances.ProcessInstanceList}
|
|
7
7
|
*/
|
|
8
|
-
export declare function getActiveProcessInstances(
|
|
8
|
+
export declare function getActiveProcessInstances(query?: {
|
|
9
|
+
query?: Omit<DataModels.ProcessInstances.ProcessInstanceQuery, 'state'>;
|
|
10
|
+
options?: Parameters<typeof Client.processInstances.query>[1];
|
|
11
|
+
}): Promise<DataModels.ProcessInstances.ProcessInstanceList>;
|
|
@@ -14,13 +14,13 @@ export declare function waitForUserTask(filterBy?: {
|
|
|
14
14
|
flowNodeId?: string;
|
|
15
15
|
}): Promise<DataModels.FlowNodeInstances.UserTaskInstance>;
|
|
16
16
|
export declare function finishUserTaskAndGetNext(flowNodeInstanceId: string, result: any, flowNodeId: string): Promise<DataModels.FlowNodeInstances.UserTaskInstance | null>;
|
|
17
|
-
export declare function getUserTasks(...args: Parameters<typeof Client.userTasks.query>): Promise<DataModels.FlowNodeInstances.
|
|
17
|
+
export declare function getUserTasks(...args: Parameters<typeof Client.userTasks.query>): Promise<DataModels.FlowNodeInstances.UserTaskList>;
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @param options Additional options for the query e.g. {@link DataModels.Iam.Identity} or {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
|
|
21
|
-
* @returns {Promise<DataModels.FlowNodeInstances.
|
|
21
|
+
* @returns {Promise<DataModels.FlowNodeInstances.UserTaskList>}
|
|
22
22
|
*/
|
|
23
|
-
export declare function getWaitingUserTasks(options?: Parameters<typeof Client.userTasks.query>[1]): Promise<DataModels.FlowNodeInstances.
|
|
23
|
+
export declare function getWaitingUserTasks(options?: Parameters<typeof Client.userTasks.query>[1]): Promise<DataModels.FlowNodeInstances.UserTaskList>;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @param processInstanceId The Process Instance ID
|
|
@@ -32,9 +32,9 @@ export declare function getWaitingUserTasksByProcessInstanceId(processInstanceId
|
|
|
32
32
|
*
|
|
33
33
|
* @param flowNodeId The UserTasks ID (BPMN)
|
|
34
34
|
* @param options Additional options for the query e.g. {@link DataModels.Iam.Identity} or {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
|
|
35
|
-
* @returns {Promise<DataModels.FlowNodeInstances.
|
|
35
|
+
* @returns {Promise<DataModels.FlowNodeInstances.UserTaskList>}
|
|
36
36
|
*/
|
|
37
|
-
export declare function getWaitingUserTasksByFlowNodeId(flowNodeId: string | string[], options?: Parameters<typeof Client.userTasks.query>[1]): Promise<DataModels.FlowNodeInstances.
|
|
37
|
+
export declare function getWaitingUserTasksByFlowNodeId(flowNodeId: string | string[], options?: Parameters<typeof Client.userTasks.query>[1]): Promise<DataModels.FlowNodeInstances.UserTaskList>;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @param flowNodeInstanceId The UserTask Instance ID
|
|
@@ -45,27 +45,27 @@ export declare function getWaitingUserTaskByFlowNodeInstanceId(flowNodeInstanceI
|
|
|
45
45
|
/**
|
|
46
46
|
* @param correlationId The Correlation ID
|
|
47
47
|
* @param options Additional options for the query e.g. {@link DataModels.Iam.Identity}
|
|
48
|
-
* @returns {Promise<DataModels.FlowNodeInstances.
|
|
48
|
+
* @returns {Promise<DataModels.FlowNodeInstances.UserTaskList>}
|
|
49
49
|
*/
|
|
50
|
-
export declare function getWaitingUserTasksByCorrelationId(correlationId: string, options?: Parameters<typeof Client.userTasks.query>[1]): Promise<DataModels.FlowNodeInstances.
|
|
50
|
+
export declare function getWaitingUserTasksByCorrelationId(correlationId: string, options?: Parameters<typeof Client.userTasks.query>[1]): Promise<DataModels.FlowNodeInstances.UserTaskList>;
|
|
51
51
|
/**
|
|
52
52
|
* @param identity The identity of the user
|
|
53
53
|
* @param options Additional options for the query e.g. {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
|
|
54
|
-
* @returns {Promise<DataModels.FlowNodeInstances.
|
|
54
|
+
* @returns {Promise<DataModels.FlowNodeInstances.UserTaskList>}
|
|
55
55
|
*/
|
|
56
56
|
export declare function getReservedUserTasksByIdentity(identity: DataModels.Iam.Identity, options?: {
|
|
57
57
|
offset?: number;
|
|
58
58
|
limit?: number;
|
|
59
59
|
sortSettings?: DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings;
|
|
60
|
-
}): Promise<DataModels.FlowNodeInstances.
|
|
60
|
+
}): Promise<DataModels.FlowNodeInstances.UserTaskList>;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @param identity The identity of the user
|
|
64
64
|
* @param options Additional options for the query e.g. {@link DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings}
|
|
65
|
-
* @returns {Promise<DataModels.FlowNodeInstances.
|
|
65
|
+
* @returns {Promise<DataModels.FlowNodeInstances.UserTaskList>}
|
|
66
66
|
*/
|
|
67
67
|
export declare function getAssignedUserTasksByIdentity(identity: DataModels.Iam.Identity, options?: {
|
|
68
68
|
offset?: number;
|
|
69
69
|
limit?: number;
|
|
70
70
|
sortSettings?: DataModels.FlowNodeInstances.FlowNodeInstanceSortSettings;
|
|
71
|
-
}): Promise<DataModels.FlowNodeInstances.
|
|
71
|
+
}): Promise<DataModels.FlowNodeInstances.UserTaskList>;
|