use of com.axelor.apps.bpm.db.WkfInstance in project axelor-open-suite by axelor.
the class WkfInstanceServiceImpl method createWkfInstance.
@Override
@Transactional
public WkfInstance createWkfInstance(String processInstanceId, WkfProcess wkfProcess) {
WkfInstance instance = new WkfInstance();
instance.setWkfProcess(wkfProcess);
instance.setInstanceId(processInstanceId);
instance.setName(wkfProcess.getProcessId() + " : " + processInstanceId);
return wkfInstanceRepository.save(instance);
}
Aggregations