Hi, I’m trying to run JUnit tests to a camunda model, everything goes well but got an error in an particualr send task.
Unknown property used in expression: ${MailResubmissionInvitationReminder}
<bpmn:sendTask id="SendTask_0tp9j8q" name="send reminder" camunda:delegateExpression="${MailResubmissionInvitationReminder}"> <bpmn:incoming>SequenceFlow_1ie059g</bpmn:incoming> <bpmn:outgoing>SequenceFlow_10665ef</bpmn:outgoing> </bpmn:sendTask>
The class :
@Component
public class MailResubmissionInvitationReminder implements JavaDelegate
{
@Autowired
MandrillMailer mandrillMailer;
public void execute(DelegateExecution execution)
{
Integer amountOfMonths = 3 + ((Integer) execution.getVariable("loopCounter"));
execution.setVariable("timePeriod", amountOfMonths.toString() + " months");
mandrillMailer.send(execution, (String) execution.getVariable("toEmail"), (String) execution.getVariable("name"), "ad-reminder-after-agree");
}
}
The stacktrace does not provide much more information than what I posted… Any help? thanks