M
M
MaxLich2018-09-24 13:27:31
Business Informatics
MaxLich, 2018-09-24 13:27:31

How to use spring beans in expressions in Activiti (ServiceTask)?

Hello. Can't use beans in expressions in Activiti (in ServiceTask). He writes that he does not see this bin.
Excerpt from pom by version:

<springframework.version>5.0.2.RELEASE</springframework.version>
        <springframework.boot>2.0.4.RELEASE</springframework.boot>
        <activiti.version>6.0.0</activiti.version>

Beans are defined by annotations over classes.
Excerpt from the bpmn schema file:
<serviceTask id="SendStatus104" name="Формирование и отправка статуса" activiti:expression="${sendService.sendStatusCode(104)}">
      <documentation>Формирование и отправка статуса</documentation>
    </serviceTask>

Class declaration:
@Service("sendService")
public class SendServiceImpl implements SendService {
//some code
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question