我需要修复一个业务流程,所以我有OrderProcess,但我不知道如何使用groovy修复它。有什么想法吗?
import de.hybris.platform.core.model.order.OrderModel
import de.hybris.platform.orderprocessing.model.OrderProcessModel
OrderModel orderModel = flexibleSearchService.search(String.format("SELECT {PK} FROM {AbstractOrder} WHERE {code} = '%s'", "P000015003")).result.get(0)
OrderProcessModel orderProcess = new OrderProcessModel();
orderModel.getOrderProcess().forEach {process ->
if(process.getProcessDefinitionName().contains("global-order-process")){
orderProcess = process
}
}
2条答案
按热度按时间vom3gejh1#
这可能很有用从“cancelOrderAction”节点修复订单流程
hgncfbus2#