我想创建Beanshell脚本以启动单个订单的业务流程。
谢谢。
答案 0 :(得分:1)
您的beanshell应该是这样的:
BusinessProcessService processService =
(BusinessProcessService) Registry.getApplicationContext()
.getBean("businessProcessService");
OrderProcessModel businessProcessModel =
processService.createProcess(PROCESS_CODE, PROCESS_NAME);
processService.startProcess(businessProcessModel);
确保输入适当的PROCESS_CODE,适当的PROCESS_NAME,并为businessProcessModel设置任何有用的属性。