in src/main/java/com/epam/digital/data/platform/bpwebservice/service/StartBpService.java [103:119]
public StartBpResponse startBp(StartBpDto startBpDto) {
var bpDefinitionKey = startBpDto.getBusinessProcessDefinitionKey();
log.info("Executing process {}", bpDefinitionKey);
var bpProperties = getBusinessProcessProperties(bpDefinitionKey);
var bpInputParameters = getBusinessProcessInputParameters(startBpDto, bpProperties);
var signature = bpProperties.isRequiresSignature() ?
getInputParamsDigitalSignature(bpInputParameters) : null;
var storageKey = putInputParamsToStorage(bpDefinitionKey, bpInputParameters, signature);
var processInstance = startProcessInstance(bpDefinitionKey, storageKey);
var bpOutputParameters = getBusinessProcessOutputParameters(bpProperties, processInstance);
var startBpResponse = new StartBpResponse();
startBpResponse.setResultVariables(bpOutputParameters);
log.info("Process {} finished", bpDefinitionKey);
return startBpResponse;
}