Open linonetwo opened 4 months ago
on
import { Execution, IServiceProvider } from 'bpmn-server'; export const twServiceProvider: IServiceProvider = { 'log-console'(input: Record<string, unknown>, _execution: Execution) { console.log('log-console service called:', input); return { a: 'b', } }, a: { b: (input: Record<string, unknown>, execution: Execution) => { console.log(`b is called with ${JSON.stringify(input)} and last output is ${JSON.stringify(execution.item.token.lastItem.output)}`); }, }, };
There are still many missing types on important types like item and token...
I'm working on this, add more types.
on
There are still many missing types on important types like item and token...