12-12-2014 02:05 PM
<process id="processParametro">
<startEvent id="iniciarProcessoParametro"/>
<sequenceFlow sourceRef="iniciarProcessoParametro" targetRef="criarParametro"/>
<serviceTask id="criarParametro"
name="Incluir Parametro"
activiti:expression="${parametroService.create(nomeParametro, descricaoParametro)}"
activiti:resultVariable="parametroCriado"/>
<sequenceFlow sourceRef="criarParametro" targetRef="finalizarProcessoParametro"/>
<endEvent id="finalizarProcessoParametro"/>
</process>
@Transactional(readOnly = false)
public Parametro create(String nome, String descricao) {
Parametro parametro = parametroRepository.findByNome(nome);
if (parametro != null){
throw new BusinessException("domain.parametro.business.exception.nome.duplicado");
}
Parametro parametro = new Parametro(nome, descricao, SituacaoParametroEnum.PENDENTE_ATIVACAO.asDomain());
return parametroRepository.save(parametro);
}
12-15-2014 08:20 AM
12-15-2014 01:49 PM
07-11-2017 06:20 AM
Hello, I'm trying to find a solution to the same problem.
somebody has an idea?
Thanks!
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.