07-19-2012 04:47 PM
07-25-2012 04:42 AM
<userTask id="apcCaptureTask" name="Capture New Assignment" activiti:candidateGroups="GROUP_APCAdministrators" activiti:formKey="apcwf:apcCaptureTask">
<extensionElements>
<activiti:taskListener event="complete" class="za.edu.icg.alfrescoapc.listener.CaptureListener"></activiti:taskListener>
</extensionElements>
</userTask>
import org.activiti.engine.delegate.TaskListener;
public class CaptureListener extends TaskListener {
@Override
public void notify(DelegateTask task) {
try {
// Pass the values we get back to the workflow
DelegateExecution execution = task.getExecution();
execution.setVariable("apcwf_someId", task.getVariable("apcwf_someId"));
execution.setVariable("apcwf_someText", task.getVariable("apcwf_sometext"));
}
}
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.