我在论坛/文档中看到了很多JavaScript参考和代码片段(例如这个),其中execution
对象用于许多有用的事情,例如:
execution.createIncident(String incidentType, String configuration);
execution.resolveIncident(String incidentId);
execution.setVariable("name", value);
然而,我还没有看到实例化execution
对象的示例,当我尝试使用它时,会出现以下错误:
The process could not be started. :
Cannot instantiate process definition Finswitch_Tx:14:42ef803b-67df-11e8-a127-0242ac11001b: Unable to
evaluate script: ReferenceError: "execution" is not defined in <eval> at line number 7
请你能否给我一个实例,说明如何实例化对该对象的访问?
connector
是可用的,它与execution一起被提及作为“特殊变量”之一此处。 - Peter