Я хочу создать пользовательский исполнитель для установки значения текстового поля в стартовой форме. Также мне нужно отправить электронную почту в список людей. Но когда я добавить элементы выполнения рабочего процесса я поймать исключение:Alfresco bpmn custom executionListener
<b>org.springframework.extensions.webscripts.WebScriptException - 10080001 Script url /api/workflow/activiti$LegalDocFlow/formprocessor does not support the method GET</b>
добавить в BPMN только элементы расширения:
<process id="LegalDocFlow" isClosed="false" isExecutable="true" name="LegalProcessSchema" processType="None">
<extensionElements>
<activiti:executionListener event="start" activiti:delegateExpression="${StartListener}"/>
<activiti:executionListener event="end" activiti:delegateExpression="${EndListener}"/>
</extensionElements>
....
Мои слушатели выглядеть следующим образом:
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;
import org.alfresco.repo.workflow.activiti.script.DelegateExecutionScriptBase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;
@Component("StartListener")
public class StartListener implements ExecutionListener {
private static Log logger = LogFactory.getLog(StartListener.class);
public void notify(DelegateExecution execution) throws Exception {
System.out.println("CreateListener");
}
}
Ват я делаю неправильно?