0
사용자 정의 실행 리스너를 작성하여 시작 양식의 텍스트 필드에 값을 설정하고자합니다. 또한 나는 사람들의 명단에 이메일을 보내야한다. 다음과 같이Alfresco bpmn 사용자 정의 executionListener
내 청취자
<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>
....
<b>org.springframework.extensions.webscripts.WebScriptException - 10080001 Script url /api/workflow/activiti$LegalDocFlow/formprocessor does not support the method GET</b>
이 난 단지 확장 요소를 BPMN에 추가 : 내가 실행 요소를 추가 할 때 난 예외를 잡을 워크 플로우하는
을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");
}
}
와트 내가 잘못합니까?
<startEvent id="alfrescoStartevent1" name="Alfresco start" activiti:formKey="dfrwr:startProcesstask" >
<extensionElements>
<activiti:executionListener event="start" class="${StartListener}"/>
<activiti:executionListener event="end" class="${EndListener}"/>
</extensionElements>
</startEvent>
를 그리고 작업입니다 :